/* General Body Styling for content protection */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 98px; /* Default padding for desktop header height (approx 58px + 40px) */
    color: #333;
}

/* Site Header - Fixed & Global Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #0A246A; /* Base background for the whole fixed header */
    display: flex;
    flex-direction: column; /* Stack header-top and main-nav vertically */
    min-height: 50px; /* Minimum height for desktop */
}

.header-top {
    width: 100%;
    background-color: #0A246A; /* Primary Dark Blue */
    color: white;
    display: flex;
    flex-direction: row; /* For desktop: header-container and mobile-buttons-wrapper (hidden) */
    justify-content: center; /* Center the header-container */
    align-items: center;
    padding: 15px 0; /* Vertical padding, horizontal handled by container */
}

.header-container {
    max-width: 1200px;
    width: 100%; /* Important for centering with max-width */
    margin: 0 auto; /* Center the container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; /* Padding for logo/buttons from container edge */
}

.logo {
    color: #FFD700;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    display: block; /* Ensure logo is visible */
    padding: 0;
}

.desktop-nav-buttons {
    display: flex; /* Show on desktop */
    gap: 10px;
}

/* Hamburger menu and mobile buttons wrapper are hidden on desktop */
.hamburger-menu,
.mobile-nav-buttons-wrapper {
    display: none;
}

/* Main Navigation - Desktop */
.main-nav {
    width: 100%;
    background-color: #34495e; /* Dark Gray/Blue for contrast */
    color: white;
    display: flex; /* Show on desktop */
    justify-content: center;
    padding: 10px 0; /* Vertical padding, horizontal handled by container */
}

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

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    white-space: nowrap; /* Prevent wrapping */
    transition: background-color 0.3s ease;
}
.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A246A; /* Dark blue text */
    border: none;
}
.btn-primary:hover {
    background-color: #e6c200; /* Darker gold */
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}
.btn-secondary {
    background-color: #0A246A; /* Dark blue */
    color: #FFD700; /* Gold text */
    border: 1px solid #FFD700;
}
.btn-secondary:hover {
    background-color: #1A3A8A; /* Lighter blue */
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}
.btn-tertiary {
    background-color: #CC0000; /* Red for urgency */
    color: white;
    border: none;
}
.btn-tertiary:hover {
    background-color: #990000;
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

/* Hamburger Menu Icon */
.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    padding: 5px;
    z-index: 1002; /* Above menu and overlay */
}
.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Footer Styles */
.site-footer {
    background-color: #0A246A;
    color: white;
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
}
.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;
}
.footer-logo {
    color: #FFD700;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}
.footer-column h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,215,0,0.3);
    padding-bottom: 5px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: #FFD700;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}
.copyright {
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Adjust padding for mobile header height (approx 48px + 48px) */
    }

    .site-header {
        min-height: auto; /* Allow height to adjust */
    }

    .header-top {
        padding: 10px 0;
        flex-direction: row; /* For hamburger, logo, empty space */
        justify-content: space-between;
        align-items: center;
    }

    .header-container {
        width: 100%; /* Take full width */
        max-width: none; /* No max-width on mobile */
        padding: 0 15px; /* Smaller horizontal padding */
        justify-content: flex-start; /* Align hamburger to start */
    }

    .logo {
        flex-grow: 1; /* Allows logo to take available space for centering */
        text-align: center;
        font-size: 24px; /* Adjust font size for mobile */
    }

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

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        order: -1; /* Place hamburger first */
    }

    .mobile-nav-buttons-wrapper {
        display: flex; /* Show mobile buttons wrapper */
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        background-color: #0A246A; /* Match header-top background */
        gap: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Slight shadow below buttons */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed; /* Fix to viewport, not parent */
        top: 0; /* Start from top of viewport */
        left: 0;
        width: 80%; /* Menu takes 80% of screen width */
        height: 100vh;
        background-color: #0A246A; /* Match header background */
        flex-direction: column;
        padding-top: 100px; /* Push menu items down to clear fixed header parts */
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease-out;
        z-index: 1001; /* Above overlay */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

    .nav-container {
        width: 100%; /* Take full width */
        max-width: none; /* No max-width on mobile */
        flex-direction: column; /* Stack nav links vertically */
        align-items: flex-start; /* Align links to the left */
        padding: 20px;
    }

    .nav-link {
        width: 100%; /* Make links take full width */
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 18px;
    }
    .nav-link:last-child {
        border-bottom: none;
    }

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

    body.no-scroll {
        overflow: hidden;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
    .footer-column {
        min-width: unset;
    }
    .site-footer {
        padding: 30px 15px 15px;
    }
}
