/* General body padding for fixed header */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: 100px; /* Default desktop header height: header-top (60px) + main-nav (40px) */
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

/* Site Header (Fixed Navigation) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: #f8f8f8; /* Overall header background, subtle light gray */
    min-height: 100px; /* Minimum height to ensure content fits on desktop */
}

/* Header Top Area (Desktop First) */
.header-top {
    background-color: #0C4B8F; /* Dark Blue */
    color: #fff;
    padding: 10px 0; /* Vertical padding */
    min-height: 60px; /* Fixed height for header-top */
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; /* Horizontal padding for desktop */
    width: 100%;
    box-sizing: border-box;
}

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

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex; /* Show on desktop */
    gap: 12px;
}

/* Main Navigation Area (Desktop First) */
.main-nav {
    background-color: #FFD700; /* Gold */
    padding: 10px 0;
    display: flex; /* Default desktop display */
    flex-direction: row; /* Default desktop direction */
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 40px; /* Fixed height for main-nav */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center menu items */
    align-items: center;
    padding: 0 20px; /* Horizontal padding for desktop */
    width: 100%;
    box-sizing: border-box;
}

.nav-link {
    color: #0C4B8F; /* Dark Blue text for gold background */
    text-decoration: none;
    padding: 8px 15px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent wrapping */
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(0,0,0,0.1);
    color: #000;
}

/* Buttons Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0C4B8F; /* Dark Blue text */
}

.btn-primary:hover {
    background-color: #FFEB3B; /* Lighter Gold */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: #1E90FF; /* Dodger Blue */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #46A0FF; /* Lighter Dodger Blue */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: absolute; /* Positioned for mobile, hidden on desktop */
    z-index: 1002; /* Above overlay */
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Gold for hamburger */
    position: absolute;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-icon {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Hamburger Active State (X icon) */
.hamburger-menu.active .hamburger-icon {
    background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
    background-color: #FFD700;
}

.hamburger-menu.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: #FFD700;
}

/* Mobile-only Buttons Bar (Hidden on Desktop) */
.mobile-buttons-bar {
    display: none; /* Hidden on desktop */
    background-color: #1E90FF; /* Dodger Blue */
    padding: 10px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px; /* Fixed height for mobile button bar */
    display: flex; /* Use flex to center container */
    align-items: center;
    justify-content: center;
}

.mobile-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%; /* Important for mobile container */
    max-width: none; /* Important for mobile container */
    padding: 0 15px; /* Mobile horizontal padding */
    box-sizing: border-box;
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 110px; /* header-top (60px) + mobile-buttons-bar (50px) */
    }

    .site-header {
        min-height: auto; /* Allow height to adjust based on content */
        flex-direction: column;
    }

    .header-top {
        padding: 10px 0;
        min-height: 60px; /* Fixed height for header-top on mobile */
    }

    .header-container {
        width: 100%;
        max-width: none; /* Crucial: no max-width on mobile */
        padding: 0 15px; /* Smaller padding for mobile */
        justify-content: center; /* Center logo by default */
        position: relative; /* For hamburger positioning */
    }

    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center logo */
        color: #FFD700; /* Gold */
    }

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

    .hamburger-menu {
        display: block; /* Show hamburger menu */
        position: absolute; /* Position relative to header-container */
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-buttons-bar {
        display: flex; /* Show mobile buttons bar */
        z-index: 990; /* Below hamburger menu and main nav, above content */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS to be below header-top and buttons bar */
        left: 0;
        width: 280px; /* Width of the side menu */
        height: 100%;
        background-color: #2c3e50; /* Darker background for mobile menu */
        flex-direction: column;
        padding-top: 20px; /* Padding inside the menu */
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        z-index: 1001; /* Above overlay */
        box-shadow: 2px 0 5px rgba(0,0,0,0.3);
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

    .nav-container {
        width: 100%;
        max-width: none; /* Crucial: no max-width on mobile */
        flex-direction: column; /* Stack links vertically */
        padding: 0 15px;
        align-items: flex-start; /* Align links to the left */
    }

    .nav-link {
        color: #fff; /* White text for dark menu background */
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

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

/* Footer Styles */
.site-footer {
    background-color: #333; /* Dark Gray */
    color: #f8f8f8; /* Light text */
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    gap: 30px;
    padding: 0 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px; /* Minimum width for each section before wrapping */
}

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

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }

    .footer-section {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
    }

    .footer-nav {
        align-items: center;
    }
}