/* Global Styles & Desktop First */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Default for desktop header height */
    overflow-x: hidden; /* Prevent horizontal scroll from menu */
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0A2463; /* Primary color */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: 80px;
    display: flex;
    flex-direction: column; /* Default to column for mobile, overridden for desktop */
    justify-content: center;
    align-items: center;
}

.header-main-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    min-height: 80px; /* Ensure a minimum height for this row */
}

.logo {
    color: #FFD700; /* Secondary color */
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    margin-right: 30px;
    white-space: nowrap;
    order: 1;
}

.main-nav {
    flex: 1;
    display: flex; /* Desktop default */
    justify-content: flex-start;
    align-items: center;
    order: 2;
}

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

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

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

.desktop-nav-buttons {
    display: flex; /* Desktop default */
    gap: 15px;
    margin-left: auto;
    order: 3;
}

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

.btn-primary {
    background-color: #FFD700;
    color: #0A2463;
    border: none;
}

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

.btn-secondary {
    background-color: #0A2463;
    color: #FFD700;
    border: 2px solid #FFD700;
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
}

/* Mobile Button Area (Hidden on Desktop) */
.mobile-button-area {
    display: none;
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
    display: none;
}

/* Footer Styles */
.site-footer {
    background-color: #0A2463;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

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

.footer-col {
    flex: 1 1 300px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-logo {
    color: #FFD700;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.footer-col h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

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

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

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

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    color: #FFD700;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 110px; /* Adjust for mobile header + button area */
    }

    .site-header {
        flex-direction: column; /* Stack header-main-content and mobile-button-area */
        min-height: auto;
        padding: 0;
    }

    .header-main-content {
        min-height: 60px; /* Smaller height for mobile top bar */
        padding: 10px 15px;
        justify-content: space-between; /* Hamburger left, logo center */
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        margin: 0;
        order: 2;
        font-size: 24px;
    }

    .hamburger-menu {
        display: block;
        order: 1;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1001;
        padding: 0;
    }

    .hamburger-menu span {
        display: block;
        height: 3px;
        background-color: #FFD700;
        margin: 6px 0;
        transition: all 0.3s ease;
    }

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

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

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #0A2463;
        padding-top: 80px; /* Space for header content */
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* CRITICAL: Must set display to show */
        transform: translateX(0);
    }

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

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

    .desktop-nav-buttons {
        display: none;
    }

    .mobile-button-area {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
        background-color: #0A2463;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 990; /* Below hamburger menu, above overlay */
        flex-shrink: 0;
    }

    .mobile-button-area .btn {
        flex: 1;
        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: 999;
    }

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

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

    .footer-col {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}