/* General body styling for fixed header offset */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    /* padding-top will be dynamically set by JS, this is a fallback */
    padding-top: 100px; /* Estimated desktop: header-top (60px) + main-nav (40px) */
}

body.no-scroll {
    overflow: hidden;
}

/* Site Header - Fixed on top */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #fff; /* Fallback background */
    display: flex;
    flex-direction: column; /* Stack header-top and main-nav (desktop) */
}

/* Header Top Area - Desktop */
.header-top {
    background-color: #0A2463; /* Primary dark blue */
    padding: 10px 0;
    color: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

/* Logo */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Secondary gold for logo */
    text-decoration: none;
    padding: 5px 0;
    display: block;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex;
    gap: 12px;
}

/* Hamburger menu (hidden on desktop) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700; /* Gold color for hamburger */
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile specific button area (hidden on desktop) */
.mobile-buttons-area {
    display: none;
    background-color: #1a3a7a; /* Slightly lighter blue than header-top */
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-buttons-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
}

/* Main Navigation Area - Desktop */
.main-nav {
    background-color: #FFD700; /* Secondary gold for main nav */
    padding: 10px 0;
    width: 100%;
    display: flex; /* Desktop default: visible, horizontal */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row; /* Desktop default: horizontal */
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-link {
    color: #0A2463; /* Dark blue for nav links on gold background */
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
    border-radius: 5px;
}

.nav-link:hover, .nav-link.active {
    background-color: #0A2463;
    color: #FFD700;
}

/* General Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-register {
    background-image: linear-gradient(to right, #FFD700, #FFC107); /* Gold gradient */
    color: #0A2463; /* Dark blue text */
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.btn-login {
    background-color: #0A2463; /* Dark blue */
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #FFD700;
    color: #0A2463;
    border-color: #0A2463;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Footer Styles */
.site-footer {
    background-color: #0A2463; /* Dark blue background */
    color: #f0f0f0;
    padding: 40px 0 20px;
    font-size: 15px;
}

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

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

.footer-col h3 {
    color: #FFD700; /* Gold for headings */
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-col p, .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #FFD700;
}

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


/* --- Mobile Styles --- */
@media (max-width: 768px) {
    /* Body padding adjustment for mobile fixed header */
    body {
        padding-top: 110px; /* header-top height (60px) + mobile-buttons-area height (50px) */
    }

    /* Site Header - Stacks children on mobile */
    .site-header {
        flex-direction: column; /* Ensure children stack */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    /* Header Top Area - Mobile */
    .header-top {
        padding: 5px 0;
        min-height: 60px;
        width: 100%;
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        max-width: none;
        justify-content: space-between;
    }

    /* Logo - Mobile */
    .logo {
        order: 2;
        flex-grow: 1;
        text-align: center;
        font-size: 24px;
    }

    /* Hamburger menu (visible on mobile) */
    .hamburger-menu {
        display: block;
        order: 1;
    }

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

    /* Desktop buttons (hidden on mobile) */
    .desktop-nav-buttons {
        display: none;
    }

    /* Mobile specific button area (visible on mobile) */
    .mobile-buttons-area {
        display: block;
        background-color: #1a3a7a;
        padding: 10px 0;
        min-height: 50px;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .mobile-buttons-container {
        padding: 0 15px;
        flex-wrap: wrap;
    }

    /* Main Navigation Area - Mobile */
    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        background-color: #0A2463;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding-top: 110px; /* Space for fixed header elements */
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px 15px;
        max-width: none;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        color: #fff;
        padding: 12px 15px;
        border-radius: 0;
    }

    .nav-link:hover, .nav-link.active {
        background-color: #FFD700;
        color: #0A2463;
    }

    /* Footer - Mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        padding: 15px;
    }
}