:root {
    --primary-color: #004AAD;
    --secondary-color: #FFD700;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 60px; /* Default padding for fixed header on desktop */
}

/* --- Header Styles --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* Solid background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Default for mobile, will be overridden for desktop */
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure logo is visible on all devices */
}

/* Desktop Navigation (Global styles are desktop-first) */
.main-nav {
    flex-grow: 1;
    display: flex; /* Desktop: visible */
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Desktop: horizontal */
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.btn-primary:hover {
    background-color: #003a8a;
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background-color: #e6c200;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-tertiary {
    background-color: #5cb85c; /* Example color for a third button */
    color: #fff;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

.btn-tertiary:hover {
    background-color: #4cae4c;
    box-shadow: 0 6px 20px rgba(92, 184, 92, 0.4);
}

/* Mobile-specific elements (hidden on desktop by default) */
.hamburger-menu,
.mobile-nav-buttons,
.mobile-menu-overlay {
    display: none;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--dark-bg);
    color: #f0f0f0;
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

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

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

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* --- Responsive / Mobile Styles --- */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Header (60px) + Mobile Buttons (60px) */
    }

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

    .header-main-row {
        padding: 10px 15px;
        justify-content: space-between;
        min-height: 60px;
    }

    .header-logo-container {
        flex: 1;
        justify-content: flex-start;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
        z-index: 1;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001; /* Above logo and other header content */
        position: relative;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }

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

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

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

    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 70%; /* Sidebar width */
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding-top: 80px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

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

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

    .main-nav li {
        border-bottom: 1px solid #eee;
    }

    .main-nav a {
        padding: 15px 20px;
        display: block;
        font-size: 16px;
        color: var(--text-color);
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background-color: var(--light-bg);
        padding: 10px 15px;
        width: 100%;
        position: fixed; /* Ensures it stays below the main header row */
        top: 60px; /* Below the main header row */
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .mobile-nav-buttons .btn {
        flex: 1;
        max-width: 120px;
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 20px;
    }

    .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;
    }

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

    body.no-scroll {
        overflow: hidden;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

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