:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #FFCC00; /* Golden Yellow */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --header-top-height: 60px;
    --main-nav-height: 50px;
    --mobile-nav-buttons-height: 50px;
    --header-height-desktop: calc(var(--header-top-height) + var(--main-nav-height));
    --header-height-mobile: calc(var(--header-top-height) + var(--mobile-nav-buttons-height));
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color-dark);
    padding-top: var(--header-height-desktop); /* Default padding for desktop */
}

/* --- Header Styles --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: block; /* header-top and main-nav are block-level children */
    background-color: transparent; /* Background set by children */
}

.header-top {
    background-color: var(--primary-color);
    padding: 10px 0;
    min-height: var(--header-top-height);
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.logo {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 0;
    white-space: nowrap;
}

.desktop-nav-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e6b800; /* Slightly darker gold */
    border-color: #e6b800;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 1px solid var(--text-color-light);
}

.btn-secondary:hover {
    background-color: #004d99; /* Slightly lighter blue */
    border-color: #004d99;
}

.btn-tertiary {
    background-color: #FFA500; /* Orange for app download */
    color: var(--text-color-light);
    border: 1px solid #FFA500;
}

.btn-tertiary:hover {
    background-color: #cc8400; /* Darker orange */
    border-color: #cc8400;
}

.main-nav {
    background-color: var(--secondary-color); /* Golden Yellow for main nav */
    padding: 10px 0;
    display: flex; /* Desktop: visible, horizontal */
    min-height: var(--main-nav-height);
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    gap: 25px;
    width: 100%;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.current-page {
    color: #001a33; /* Darker blue */
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.current-page::after {
    width: 100%;
}

.hamburger-menu,
.mobile-nav-buttons,
.mobile-menu-overlay,
.mobile-placeholder {
    display: none; /* Hidden on desktop by default */
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    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: 250px;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

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

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

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

.footer-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

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

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile); /* Override padding for mobile */
    }

    .site-header {
        min-height: auto; 
    }

    .header-top {
        padding: 10px 0;
    }

    .header-container {
        width: 100%;
        max-width: none; /* Critical: mobile container must occupy full width */
        padding: 0 15px;
        justify-content: space-between; 
    }

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

    .hamburger-menu::before,
    .hamburger-menu::after,
    .hamburger-menu span {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .hamburger-menu::before {
        top: 0;
    }

    .hamburger-menu::after {
        bottom: 0;
    }

    .hamburger-menu span {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger-menu.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .hamburger-menu.active span {
        transform: translateX(-50px);
        opacity: 0;
    }

    .logo {
        order: 2; /* Center the logo */
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        font-size: 24px;
        padding: 5px 0;
    }

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

    .mobile-placeholder {
        display: block; /* To push logo to center */
        width: 30px; /* Match hamburger width */
        order: 3;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 70%; /* Adjust as needed */
        height: 100%;
        background-color: var(--primary-color); /* Use primary color for mobile menu background */
        flex-direction: column;
        justify-content: flex-start;
        padding-top: var(--header-height-mobile); /* Push content below header/buttons */
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease-in-out;
        z-index: 1001; /* Above overlay, below hamburger */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

    .nav-container {
        width: 100%;
        max-width: none; /* Critical: mobile container must occupy full width */
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px; /* Adjust padding for mobile menu items */
        gap: 15px;
    }

    .nav-link {
        color: var(--text-color-light); /* White text for mobile menu */        font-size: 18px;
        width: 100%;
        padding: 10px 0;
    }
    .nav-link::after {
        background-color: var(--secondary-color); /* Underline color */
    }

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background-color: var(--primary-color); /* Same as header-top */
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box; /* Include padding in width */
        z-index: 999; /* Below main nav */
        min-height: var(--mobile-nav-buttons-height);
    }
    .mobile-nav-buttons .btn {
        flex: 1; /* Distribute buttons evenly */
        font-size: 14px;
        padding: 8px 10px;
        text-align: center;
    }

    .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: 1000; /* Below main nav, above page content */
    }

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

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

    .footer-column {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-nav li {
        margin: 0;
    }
    .footer-nav a {
        padding: 5px 10px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 5px;
        white-space: nowrap;
    }

    .body.no-scroll {
        overflow: hidden;
    }
}