/* Global Styles & Desktop Layout (Desktop First) */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* Default padding for desktop fixed header */
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #0A2463;
    min-height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.header-primary-row {
    display: contents; /* Allows children to participate in .site-header's flex layout */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
}

.header-spacer {
    display: none; /* Hidden on desktop */
}

.logo {
    order: 1;
    font-size: 28px;
    font-weight: bold;
    color: #E3B505;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.main-nav {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.main-nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease;
}

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

.header-buttons {
    order: 3;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none; /* Ensure no default button border */
}

.btn-primary {
    background-color: #E3B505;
    color: #0A2463;
}

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

.btn-secondary {
    background-color: #fff;
    color: #0A2463;
    border: 1px solid #E3B505;
}

.btn-secondary:hover {
    background-color: #f2f2f2;
}

.btn-tertiary {
    background-color: transparent;
    color: #E3B505;
    border: 1px solid #E3B505;
}

.btn-tertiary:hover {
    background-color: #E3B505;
    color: #0A2463;
}

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

/* Footer Styles */
.site-footer {
    background-color: #0A2463;
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9em;
}

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

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

.footer-section h3 {
    color: #E3B505;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-section p {
    margin: 0;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

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

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

.footer-bottom p {
    margin: 0;
    color: #ccc;
}

/* Mobile Layout (Overrides Desktop Styles) */
@media (max-width: 768px) {
    body {
        padding-top: calc(60px + 60px); /* Adjust for mobile header primary row (60px) + button area (approx 60px) */
    }

    .site-header {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        min-height: auto;
    }

    .header-primary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background-color: #0A2463;
        z-index: 1001;
        position: relative; /* For hamburger span positioning */
        min-height: 60px; /* Define height for primary row */
    }

    .hamburger-menu {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 1002;
        background: none;
        border: none;
        padding: 0;
    }

    .hamburger-menu span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #E3B505;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    .hamburger-menu span:nth-child(1) { top: 0px; }
    .hamburger-menu span:nth-child(2) { top: 10px; }
    .hamburger-menu span:nth-child(3) { top: 20px; }

    .hamburger-menu.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
    .hamburger-menu.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

    .logo {
        flex-grow: 1;
        text-align: center;
        order: 0; /* Ensures logo is between hamburger and spacer in flex order */
        margin: 0;
    }

    .header-spacer {
        display: block;
        width: 30px;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Starts from the top of the viewport */
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: #0A2463;
        flex-direction: column;
        padding-top: 80px; /* Space for the header-primary-row */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%); /* Off-screen to the left */
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* Crucial: make it visible */
        transform: translateX(0); /* Slide into view */
    }

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

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

    .header-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 20px;
        background-color: #0A2463;
        z-index: 1000;
        min-height: 60px; /* Define height for button area */
    }

    .btn {
        flex: 1 1 auto; /* Allow buttons to grow and wrap */
        max-width: 150px; /* Limit button width */
        text-align: center;
    }

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

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.no-scroll {
        overflow: hidden;
    }

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

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

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