/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #0F1D2F;
    line-height: 1.6;
}

/* Global Link & Button Resets */
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none; /* Remove underline for buttons */
}

.btn-primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #1A2E44; /* Main color */
}

.btn-primary:hover {
    background-color: #E6C200;
}

.btn-secondary {
    background-color: #1A2E44; /* Main color */
    color: #FFD700; /* Auxiliary color */
    border: 1px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #2A445C;
    color: #FFD700;
}

/* Site Header - Desktop First (Global Styles) */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1A2E44; /* Solid background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 80px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Default for mobile, will be overridden for desktop */
}

.site-header .header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    min-height: 80px;
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    letter-spacing: 1.5px;
    display: block; /* Ensure logo is always visible */
}

.site-header .main-nav {
    flex: 1;
    display: flex; /* Desktop default: flex */
    justify-content: center;
    margin: 0 20px;
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Desktop default: row */
    flex-direction: row;
}

.site-header .main-nav li a {
    color: #fff;
    padding: 10px 18px;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.site-header .main-nav li a:hover {
    color: #FFD700;
    background-color: rgba(255, 255, 255, 0.1);
}

.site-header .desktop-nav-buttons {
    display: flex; /* Desktop default: flex */
    gap: 10px;
    align-items: center;
}

.site-header .hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.site-header .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Hamburger menu active state (desktop: hidden) */
.site-header .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.site-header .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.site-header .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header .mobile-fixed-buttons {
    display: none; /* Hidden on desktop */
}

.site-header .mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Site Footer */
.site-footer {
    background-color: #1A2E44;
    color: #ccc;
    padding: 40px 25px;
    font-size: 14px;
    border-top: 1px solid #2A445C;
}

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

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

.site-footer .footer-section h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

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

.site-footer .footer-nav li a {
    color: #ccc;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.site-footer .footer-nav li a:hover {
    color: #FFD700;
}

.site-footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2A445C;
    color: #aaa;
}

/* Responsive Styles - Mobile First Overrides */
@media (max-width: 768px) {
    body {
        /* Adjust padding-top to account for fixed header and mobile buttons */
        padding-top: calc(60px + 60px); /* header-main-content (60px) + mobile-fixed-buttons (60px) */
    }

    .site-header .header-main-content {
        min-height: 60px;
        padding: 0 15px;
        position: relative; /* For proper z-index of hamburger and logo */
    }

    .site-header .logo {
        flex: 1;
        text-align: center;
        font-size: 24px;
        order: 2; /* Center logo */
        display: block; /* Ensure logo is visible */
    }

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

    .site-header .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        order: 1; /* Place hamburger on left */
        margin-right: auto; /* Push logo to center */
    }

    .site-header .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Aligns to top of viewport */
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #1A2E44;
        flex-direction: column;
        padding-top: 60px; /* Space for the fixed header content */
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .site-header .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide into view */
    }

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

    .site-header .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: calc(100% - 40px); /* Adjust for padding */
    }

    .site-header .mobile-fixed-buttons {
        display: flex; /* Visible on mobile */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: #1A2E44;
        width: 100%;
        box-sizing: border-box;
        z-index: 999; /* Below main nav, above content */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        min-height: 60px; /* Ensure content adaptation */
    }

    .site-header .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

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

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

    .site-footer .footer-section h3 {
        margin-top: 30px;
    }
    .site-footer .footer-section:first-child h3 {
        margin-top: 0;
    }
    .site-footer .footer-nav ul {
        align-items: center;
    }
}
