/* Base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* Added to offset fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header styles */
.site-header {
    background-color: #0A192F; /* Primary color */
    color: #fff;
    padding: 0; /* Changed from 15px 20px, inner elements will handle padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed; /* Changed from relative to fixed */
    top: 0; /* Added */
    width: 100%; /* Added */
    z-index: 1000; /* Added for sticky header */
    display: block; /* Allow inner rows to stack */
}

/* Removed .site-header .header-container */
.site-header .header-main-row {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Desktop padding */
}

.site-header .logo {
    font-family: 'Impact', sans-serif; /* Creative font for logo */
    font-size: 2.2em;
    font-weight: bold;
    color: #FFD700; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #fff; /* Lighter hover effect */
}

.site-header .main-nav .nav-list {
    display: flex;
    gap: 25px;
}

.site-header .main-nav .nav-list li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.site-header .main-nav .nav-list li a:hover {
    color: #FFD700; /* Secondary color on hover */
}

.site-header .main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.site-header .main-nav .nav-list li a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex; /* Default for desktop-buttons */
    gap: 10px;
}

.auth-buttons .btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent buttons from wrapping */
}

.auth-buttons .btn-register {
    background-color: #FFD700; /* Secondary color */
    color: #0A192F; /* Primary color for text */
    border: 2px solid #FFD700;
}

.auth-buttons .btn-register:hover {
    background-color: #e0b800;
    border-color: #e0b800;
}

.auth-buttons .btn-login {
    background-color: transparent;
    color: #FFD700; /* Secondary color */
    border: 2px solid #FFD700;
}

.auth-buttons .btn-login:hover {
    background-color: #FFD700;
    color: #0A192F;
}

.auth-buttons.mobile-buttons {
    display: none; /* Hidden by default on desktop */
}

.site-header .hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    /* Removed absolute positioning for desktop, it's now part of flex layout */
    z-index: 1002;
}

.site-header .hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Secondary color for bars */
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.site-header .hamburger-menu .bar:last-child {
    margin-bottom: 0;
}

/* Footer styles (unchanged) */
.site-footer {
    background-color: #0A192F; /* Primary color */
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
}

.site-footer .footer-column {
    flex: 1;
    min-width: 250px;
}

.site-footer .footer-column h3 {
    color: #FFD700; /* Secondary color for headings */
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.site-footer .footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #FFD700;
}

.site-footer .footer-column p,
.site-footer .footer-column ul li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.site-footer .footer-column ul li a {
    transition: color 0.3s ease;
}

.site-footer .footer-column ul li a:hover {
    color: #FFD700; /* Secondary color on hover */
}

.site-footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.site-footer .contact-info a {
    color: #FFD700;
}

.site-footer .contact-info a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Adjusted padding-top for mobile fixed header height */
    }

    .site-header {
        padding-right: 0; /* No longer needed */
    }

    /* Updated header-main-row for mobile layout */
    .site-header .header-main-row {
        display: grid; /* Use grid for specific positioning */
        grid-template-columns: auto 1fr auto; /* Hamburger | Logo | Spacer */
        align-items: center;
        padding: 10px 20px; /* Mobile top bar padding */
    }

    /* Invisible spacer to balance grid and center logo */
    .site-header .header-main-row::after {
        content: '';
        display: block;
        width: 30px; /* Match hamburger width */
        height: 24px; /* Match hamburger height */
        visibility: hidden;
    }

    .site-header .logo {
        font-size: 1.8em;
        grid-column: 2; /* Logo in the middle column */
        text-align: center; /* Center logo text */
        margin: 0; /* Reset margin */
    }

    .site-header .main-nav {
        /* The main-nav itself is no longer hidden, .nav-list becomes an overlay */
        /* display: none; */ /* REMOVED: Hiding the parent nav container was preventing the menu from showing */
    }

    .site-header .main-nav .nav-list {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        background-color: #0A192F;
        position: fixed; /* Take over screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-top: 120px; /* Adjusted space for fixed header, approx height of header-main-row + mobile-buttons */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        text-align: center;
        overflow-y: auto;
    }

    .site-header .main-nav .nav-list.active {
        display: flex; /* Show mobile nav */
    }

    .site-header .main-nav .nav-list li {
        margin: 10px 0;
    }

    .site-header .main-nav .nav-list li a {
        padding: 15px 20px; /* Larger touch area */
        display: block;
        color: #fff;
        font-size: 1.1em;
    }
    
    .site-header .main-nav .nav-list li a:hover {
        background-color: rgba(255, 215, 0, 0.1); /* Light gold background on hover */
        color: #FFD700;
    }

    .site-header .main-nav .nav-list li a::after {
        display: none; /* Hide underline for mobile menu */
    }

    /* Hide desktop buttons on mobile */
    .auth-buttons.desktop-buttons {
        display: none;
    }

    /* Show mobile buttons below logo */
    .auth-buttons.mobile-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center; /* Center buttons */
        gap: 15px; /* Space between buttons */
        width: 100%;
        padding: 10px 20px; /* Padding for the button row */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
        background-color: #0A192F; /* Match header background */
    }

    /* Show hamburger on mobile */
    .site-header .hamburger-menu {
        display: block;
        grid-column: 1; /* Place in the first column (left) */
        position: static; /* Remove absolute positioning */
        transform: none; /* Reset transform */
        margin-right: 15px; /* Space between hamburger and logo */
    }
    
    /* Hamburger animation */
    .site-header .hamburger-menu.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .site-header .hamburger-menu.open .bar:nth-child(2) {
        opacity: 0;
    }
    .site-header .hamburger-menu.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-footer .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-column {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .site-footer .footer-column h3::after {
        margin: 0 auto; /* Center underline for mobile */
    }
}