/* General Body Styles for fixed header spacing */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 0; /* Will be adjusted by JS on mobile */
    background-color: #f4f4f4;
    color: #333;
}

/* Site Header - Fixed & Suspended */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0A2239;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-height: 80px; /* Base height for desktop */
    display: flex;
    flex-direction: column; /* Default for mobile, overridden for desktop */
    align-items: center;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1200px; /* Max width for content */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Desktop: Logo left, Nav center, Buttons right */
}

.logo {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    display: block; /* Ensure logo is always visible */
    white-space: nowrap;
}

.main-nav {
    flex: 1; /* Take available space */
    display: flex; /* Desktop: visible, horizontal */
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 1002; /* Above overlay when active on mobile */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Desktop: horizontal */
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

.main-nav a:hover {
    color: #FFD700;
}

.desktop-buttons {
    display: flex; /* Desktop: visible */
    gap: 10px;
}

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

.btn-register {
    background-color: #FFD700; /* Accent color */
    color: #0A2239; /* Primary color for text */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-register:hover {
    background-color: #e6c200; /* Slightly darker */
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-login {
    background-color: #0A2239; /* Primary color */
    color: #FFD700; /* Accent color for text */
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-login:hover {
    background-color: #1a3a5a; /* Slightly darker */
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-download {
    background-color: #33aaff; /* A distinct color for download */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(51, 170, 255, 0.4);
}

.btn-download:hover {
    background-color: #2a94e1;
    box-shadow: 0 6px 20px rgba(51, 170, 255, 0.6);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003; /* Above everything else for clickable */
    position: relative; /* For bar animation */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-buttons-area {
    display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Footer Styles */
.site-footer {
    background-color: #0A2239;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h3, .footer-column h4 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column p {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

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

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

.footer-nav li {
    margin-bottom: 8px;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Stack header-container and mobile-buttons-area vertically */
        min-height: auto; /* Allow height to adjust based on content */
        padding-bottom: 0;
    }

    .header-container {
        padding: 10px 15px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: 1;
        margin-right: 15px;
    }

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

    .logo {
        order: 2;
        flex: 1; /* Allows logo to take available space and center */
        text-align: center;
        font-size: 24px;
        margin-left: -50px; /* Offset to visually center it despite hamburger on left */
    }

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS */
        left: 0;
        height: 100%; /* Will be adjusted by JS */
        width: 280px; /* Sidebar width */
        background-color: #0A2239;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px; /* Base padding, top will be set by JS */
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* Show menu when active */
        transform: translateX(0); /* Slide in */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li {
        margin: 10px 0;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons area */
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: #0A2239;
        flex-wrap: wrap;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .mobile-menu-overlay.active {
        display: block; /* Show overlay when active */
    }

    body.no-scroll {
        overflow: hidden;
    }

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

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

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

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