/* Global Styles & Desktop First */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #004AAD; /* Primary color */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;
    box-sizing: border-box;
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Secondary color */
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

/* Mobile specific elements - hidden on desktop */
.mobile-logo,
.mobile-header-top,
.hamburger-menu,
.mobile-buttons-container,
.mobile-menu-overlay {
    display: none;
}

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

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

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

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

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

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

.btn-primary {
    background-color: #FFD700; /* Secondary color */
    color: #004AAD; /* Primary color */
}

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

.btn-secondary {
    background-color: #003A8C; /* Darker primary */
    color: #fff;
    border: 1px solid #003A8C;
}

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

.btn-tertiary {
    background-color: transparent;
    color: #FFD700; /* Secondary color */
    border: 2px solid #FFD700;
}

.btn-tertiary:hover {
    background-color: #FFD700;
    color: #004AAD; /* Primary color */
}

/* Footer Styles */
.site-footer {
    background-color: #003A8C; /* Darker primary */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-section h3 {
    color: #FFD700; /* Secondary color */
    margin-bottom: 15px;
    font-size: 18px;
}

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

.footer-nav li a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #FFD700; /* Secondary color */
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        /* Ensure main content is not obscured by fixed header and mobile buttons */
        padding-top: calc(60px + 60px); /* mobile-header-top height + mobile-buttons-container height */
    }

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

    .site-header .logo { /* Hide desktop logo */
        display: none;
    }

    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 20px;
        background-color: #004AAD; /* Primary color */
        height: 60px; /* Fixed height for mobile top bar */
        box-sizing: border-box;
        z-index: 1002; /* Above other header elements */
    }

    .mobile-logo {
        display: block; /* Show mobile logo */
        font-size: 24px;
        font-weight: bold;
        color: #FFD700; /* Secondary color */
        text-decoration: none;
        flex-grow: 1;
        text-align: center;
    }

    .mobile-header-spacer {
        width: 30px; /* To balance hamburger menu width for logo centering */
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        padding: 0;
        border: none;
        background: transparent;
        z-index: 1003; /* Above mobile-header-top */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

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

    .mobile-buttons-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px 20px;
        background-color: #003A8C; /* Darker primary */
        box-sizing: border-box;
        height: 60px; /* Fixed height for mobile buttons */
        z-index: 1001; /* Below mobile menu overlay and menu itself */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-wrap: wrap;
    }

    .mobile-buttons-container .btn {
        flex: 1 1 auto;
        max-width: 120px;
        font-size: 14px;
        padding: 8px 15px;
    }

    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        background-color: #003A8C; /* Darker primary */
        padding-top: 80px; /* Space for mobile-header-top */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%); /* Start off-screen to the left */
        transition: transform 0.3s ease;
        flex-direction: column;
        z-index: 1002; /* Above mobile-buttons-container, below hamburger */
        box-sizing: border-box;
        overflow-y: auto;
    }

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

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

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

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

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

    body.no-scroll {
        overflow: hidden;
    }

    .footer-content {
        text-align: center;
        grid-template-columns: 1fr;
    }

    .footer-section {
        margin-bottom: 20px;
    }
    .footer-section:last-child {
        margin-bottom: 0;
    }
}