:root {
    --primary-color: #0A2463;
    --accent-color: #FFD700;
    --text-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-bg-color: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
    background-color: var(--light-bg-color);
}

/* Header - Desktop First & Sticky */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-height: 60px;
    display: flex;
    flex-direction: column; /* Default for mobile, overridden for desktop */
    justify-content: center;
    align-items: center;
}

.header-main-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
}

.logo {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    display: block; /* Ensure logo is always visible */
    order: 1; /* Desktop: logo on the left */
}

.main-nav {
    flex: 1; /* Takes up available space */
    display: flex; /* Desktop: visible, horizontal */
    justify-content: center;
    align-items: center;
    order: 2;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--accent-color);
}

.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Push to the right */
    order: 3;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #FF4500; /* Bright red-orange */
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #E03E00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #E0C000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
    background-color: #1E90FF; /* Dodger Blue */
    color: var(--text-color);
}

.btn-tertiary:hover {
    background-color: #1C86EE;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: 0; /* Mobile: left */
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    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);
}

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

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

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 20px;
    font-size: 14px;
    margin-top: 40px; /* Provide some space from main content */
}

.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: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column p,
.footer-column ul {
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-column a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Desktop specific layout */
@media (min-width: 769px) {
    .site-header {
        flex-direction: row; /* Desktop header is a single row */
        min-height: 80px;
    }
    .header-main-content {
        justify-content: space-between;
        padding: 0 20px;
    }
    .logo {
        margin-right: 30px;
    }
    .main-nav {
        display: flex; /* Ensure it's visible */
        position: static; /* Not fixed or absolute */
        height: auto;
        background: none;
        width: auto;
        transform: translateX(0); /* Ensure it's in view */
        flex-direction: row; /* Horizontal nav items */
        z-index: auto;
    }
    .nav-list {
        flex-direction: row;
    }
    .mobile-nav-buttons {
        display: none;
    }
    .mobile-menu-overlay {
        display: none;
    }
    body {
        padding-top: 80px; /* Space for fixed header on desktop */
    }
}

/* Mobile specific layout */
@media (max-width: 768px) {
    .site-header {
        min-height: auto; /* Let content define height */
        flex-direction: column; /* Stack main content and mobile buttons */
    }

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

    .logo {
        flex: 1;
        text-align: center;
        font-size: 24px;
        margin: 0;
        order: 1; /* Center */
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        order: 0; /* Left */
    }

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

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent background for buttons */
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 998; /* Below hamburger menu */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS to below header */
        left: 0;
        width: 70%; /* Side menu width */
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 80px; /* Space for logo/hamburger in side menu */
        transform: translateX(-100%); /* Slide out to left */
        transition: transform 0.3s ease-in-out;
        z-index: 1000; /* Above overlay */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-list li a {
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }

    .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;
        transition: opacity 0.3s ease-in-out;
        opacity: 0;
    }

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

    body.no-scroll {
        overflow: hidden;
    }

    /* Adjust body padding for fixed header and mobile buttons */
    body {
        padding-top: 110px; /* Approx. 60px for header-main-content + 50px for mobile-nav-buttons */
    }

    .footer-column {
        flex: 1 1 100%; /* Stack columns on mobile */
        text-align: center;
    }

    .footer-column ul {
        padding: 0;
    }

    .footer-column ul li a {
        display: inline-block;
        padding: 5px 10px;
    }
}
