/* General Body & Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Site Header - Fixed and Suspended */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #003366; /* Primary color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 60px; /* Base height for content */
    display: flex;
    flex-direction: column; /* Default stack, will be row for desktop */
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Desktop: space between elements */
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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

/* Desktop Navigation Menu */
.main-nav {
    flex: 1; /* Takes up middle space */
    display: flex; /* Desktop default: visible */
    justify-content: center; /* Center menu items */
    margin: 0 20px;
    position: static; /* Desktop default: in normal flow */
    transition: transform 0.3s ease; /* For mobile animation */
    overflow-y: visible; /* Desktop default */
}

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

.main-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

.main-nav li a:hover {
    background-color: rgba(255, 204, 0, 0.2); /* Secondary color with transparency */
    color: #FFCC00;
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Mobile Navigation Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
}

/* General Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #FFCC00; /* Secondary color */
    color: #003366; /* Primary color */
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

.btn-primary:hover {
    background-color: #e6b800;
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.6);
}

.btn-secondary {
    background-color: #0056b3; /* A darker blue for contrast */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.4);
}

.btn-secondary:hover {
    background-color: #004494;
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.6);
}

.btn-tertiary { /* For mobile download button */
    background-color: #28a745; /* Green for download */
    color: #fff;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

.btn-tertiary:hover {
    background-color: #218838;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.6);
}

/* Mobile Menu Overlay (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.5);
    z-index: 997; /* Below menu */
}

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

/* Footer Styles */
.site-footer {
    background-color: #003366; /* Primary color */
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

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

.footer-column h3 {
    color: #FFCC00; /* Secondary color */
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.3);
    padding-bottom: 5px;
}

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

.footer-column p a,
.footer-nav li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-column p a:hover,
.footer-nav li a:hover {
    color: #FFCC00;
}

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

/* Prevent body scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Stack header elements */
        min-height: auto; /* Allow height to adjust */
    }

    .header-container {
        justify-content: space-between; /* Hamburger left, logo center */
        padding: 10px 15px;
    }

    .logo {
        flex-grow: 1; /* Allow logo to take space */
        text-align: center; /* Center logo */
        order: 2; /* Place logo in the middle */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        z-index: 1001; /* Above mobile buttons and overlay */
        order: 1; /* Place hamburger left */
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #FFCC00;
        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);
    }

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

    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
        z-index: 998; /* Below hamburger, above content */
        background-color: #003366; /* Match header background */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for separation */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Will be dynamically set by JS */
        left: 0;
        width: 70%; /* Side menu width */
        height: 100vh;
        background-color: #003366;
        flex-direction: column;
        padding-top: 0; /* Will be dynamically 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: 999; /* Below hamburger (1001), above overlay (997) */
        overflow-y: auto; /* Allow scrolling for long menus */
    }

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

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

    .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Footer mobile adjustments */
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

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

    .footer-bottom {
        margin-top: 20px;
    }
}