/* --- Global Styles & Fonts --- */
:root {
    --primary-text-color: #333;
    --heading-color: #004d40; /* Dark Teal/Green */
    --background-color: #f8f9fa;
    --sidebar-width: 220px;
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    display: flex;
    line-height: 1.6;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-right: 1px solid #e0e0e0;
    z-index: 10; /* Added to ensure it stays on top */
}

.site-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.site-title .leaf-icon {
    font-size: 2rem;
    color: var(--heading-color);
}

.site-title h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-text-color);
    line-height: 1.3;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 1rem;
}

.sidebar nav a {
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.sidebar nav a:hover {
    color: var(--heading-color);
}

/* --- Main Content Area --- */
.content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 0 4%;
}

h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

section {
    margin: 4rem auto;
    max-width: 900px;
}

/* --- Hero Section --- */
.hero-section {
    height: 60vh;
    margin: 0; /* Remove top/bottom margin for hero */
    max-width: none; /* Allow hero to span full width of content area */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(static/banner.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.2rem;
}

/* --- Table of Contents --- */
.table-of-contents {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.table-of-contents a {
    color: #444;
}

/* --- Player Section Layout --- */
.player-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.player-section img {
    flex: 0 0 300px; /* Don't grow, don't shrink, base width 300px */
    width: 300px;
    height: auto;
    object-fit: cover;
}

.player-section h2 {
    font-size: 2.5rem;
}

/* --- Trophies Section --- */
.trophy-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.trophy-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trophy-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* --- Two-Column Layout --- */
.two-column-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.column-item img {
    width: 100%;
    margin-bottom: 1rem;
}
.column-item h3 {
    font-size: 1.8rem;
}

/* --- Centered Section --- */
.player-section-centered {
    text-align: center;
}

.player-section-centered img {
    max-width: 500px;
    width: 100%;
    margin: 0 auto 1rem auto;
}

.player-section-centered h3 {
    font-size: 2.2rem;
}

/* --- Gallery Section --- */
.gallery-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    align-items: stretch;
}

.gallery-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-img1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.gallery-img2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.gallery-img3 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

.action-button {
    background-color: var(--heading-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #00382d;
}

.contact-info {
    color: #777;
    font-size: 0.9rem;
}


/* --- Responsive Design --- */

/* For Tablets */
@media (max-width: 1024px) {
    .player-section {
        flex-direction: column;
    }
    .player-section img {
        width: 100%;
        max-width: 400px;
        flex-basis: auto;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    body {
        /* Change the body's flex-direction to stack sidebar and content vertically */
        flex-direction: column;
    }

    .sidebar {
        /* Change from fixed sidebar to a static top header */
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;

        /* Arrange title and nav horizontally */
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Allows items to stack on very small screens */
        padding: 1rem;
    }

    .site-title {
        /* Remove bottom margin to align better in the new flex layout */
        margin-bottom: 0;
    }
    
    .sidebar nav ul {
        /* Display navigation links in a row */
        display: flex;
        gap: 1rem;
    }

    .sidebar nav li {
        margin-bottom: 0;
    }

    .content {
        /* Remove the margin and set width to 100% to fill the screen */
        margin-left: 0;
        width: 100%;
        padding: 0 5%;
    }

    .trophy-grid, .two-column-section {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .gallery-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-section img {
        grid-column: auto;
        grid-row: auto;
    }

    .trophy-item {
        /* Stack image on top of text for smaller screens */
        flex-direction: column;
        text-align: center;
    }
}