/* Base styles */
:root { --primary-color: #003366; --secondary-color: #FFCC00; --text-light: #f4f4f4; --text-dark: #333; --bg-dark: #222; }
body { margin: 0; font-family: Arial, sans-serif; color: var(--text-dark); line-height: 1.6; padding-top: 6rem; /* Added padding for fixed header */ }
a { text-decoration: none; color: var(--primary-color); }
a:hover { color: var(--secondary-color); }

/* Header styles */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed; /* Make it sticky */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Default to flex for desktop */
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}
.site-header .logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    font-family: 'Georgia', serif;
}
.site-header .logo:hover { color: var(--text-light); }

.main-nav { /* Ensure main-nav is flex for desktop to align nav-list */
    display: flex;
    align-items: center;
}
.main-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.main-nav .nav-list li a {
    color: var(--text-light);
    font-weight: bold;
    padding: 0.5rem 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}
.main-nav .nav-list li a:hover, .main-nav .nav-list li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}
.hamburger-menu {
    display: none; /* Hide hamburger on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Auth Buttons */
.auth-buttons {
    display: flex; /* Show on desktop */
    gap: 1rem;
    align-items: center;
}
.auth-buttons .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase; /* Added for consistency with logo */
}
.auth-buttons .btn-register {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}
.auth-buttons .btn-register:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.auth-buttons .btn-login {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.auth-buttons .btn-login:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Footer styles */
.site-footer { background-color: var(--bg-dark); color: var(--text-light); padding: 3rem 0; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding: 0 1.5rem; }
.footer-col h3 { color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; }
.footer-col p { margin-bottom: 0.8rem; color: var(--text-light); }
.footer-col a { color: var(--text-light); transition: color 0.3s ease; }
.footer-col a:hover { color: var(--secondary-color); }
.footer-about .logo-footer { font-size: 2rem; font-weight: bold; color: var(--secondary-color); text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Georgia', serif; display: block; margin-bottom: 1rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.5rem; }

/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        display: grid; /* Use grid for mobile layout */
        grid-template-columns: auto 1fr; /* Col1: Hamburger, Col2: Flexible for Logo */
        grid-template-rows: auto auto; /* Row1: Hamburger, Logo; Row2: Auth buttons */
        align-items: center;
        padding: 0 1rem;
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        grid-column: 1 / 2; /* Place in first column */
        grid-row: 1 / 2; /* Place in first row */
        justify-self: start; /* Align to the start (left) */
        z-index: 1001; /* Ensure it's on top */
    }

    .site-header .logo {
        grid-column: 1 / -1; /* Span across all columns for centering */
        grid-row: 1 / 2; /* Place in first row */
        justify-self: center; /* Center horizontally within its grid area */
        margin: 0; /* Remove any desktop margins */
        text-align: center; /* Ensure text is centered */
    }

    .main-nav {
        /* REMOVED: display: none; */ /* Allow main-nav to be part of the flow so its absolute child can be visible */
        /* Its child .nav-list is absolutely positioned and toggled by JS */
    }

    .main-nav .nav-list {
        /* Existing mobile nav-list styles */
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 999; /* Below hamburger, above content */
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .main-nav .nav-list.active {
        display: flex;
        max-height: 500px;
    }
    .main-nav .nav-list li {
        text-align: center;
        margin: 0.5rem 0;
    }
    .main-nav .nav-list li a {
        padding: 0.8rem 1rem;
        display: block;
        border-bottom: none;
    }

    .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .auth-buttons {
        display: flex; /* Show buttons on mobile */
        grid-column: 1 / -1; /* Span across all columns */
        grid-row: 2 / 3; /* Place in the second row */
        justify-content: center; /* Center buttons horizontally */
        gap: 1rem; /* Space between buttons */
        padding: 0.5rem 0; /* Add vertical padding */
    }

    /* Footer responsive styles */
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-col { margin-bottom: 1.5rem; }
    .footer-about .logo-footer { margin: 0 auto 1rem; }
}

@media (max-width: 480px) {
    .site-header .logo { font-size: 2rem; }
    .auth-buttons .btn {
        padding: 0.5rem 1rem; /* Slightly smaller buttons on very small screens */
        font-size: 0.9rem;
    }
}