:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #28a745; /* Green */
    --text-color: #333;
    --light-text-color: #fff;
    --header-top-bg: #007bff; /* Primary blue for header-top */
    --main-nav-bg: #f8f9fa; /* Light grey for main-nav */
    --mobile-menu-bg: #222; /* Dark background for mobile menu */
    --header-top-height: 60px; /* Example height */
    --main-nav-height: 50px; /* Example height */
    --mobile-buttons-height: 50px; /* Example height for mobile buttons */
}

/* General Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    /* Desktop default padding-top, will be overridden by JS for dynamic height */
    padding-top: calc(var(--header-top-height) + var(--main-nav-height)); 
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

/* --- Site Header (Fixed Navigation) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: transparent; /* Background set by header-top and main-nav */
}

/* Header Top Area */
.header-top {
    background-color: var(--header-top-bg); /* Distinct background for top area */
    color: var(--light-text-color);
    padding: 10px 0;
    min-height: var(--header-top-height);
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Padding for logo/buttons from container edge */
    width: 100%; /* Ensure it spans the full width of its parent */
}

/* Logo */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--light-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure visibility on all devices */
}

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

/* Buttons General Style */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline */
    white-space: nowrap; /* Prevent button text from wrapping */
}

.btn-primary {
    background-color: var(--secondary-color); /* Green, stands out */
    color: var(--light-text-color);
    border: none;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background-color: #218838; /* Darker green */
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-bg-color); /* Light background */
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: #6c757d; /* Grey */
    color: var(--light-text-color);
    border: none;
    box-shadow: 0 2px 5px rgba(108, 117, 125, 0.2);
}

.btn-tertiary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

/* Main Navigation Area (Desktop) */
.main-nav {
    background-color: var(--main-nav-bg); /* Light grey, distinct from header-top */
    padding: 10px 0;
    display: flex; /* Desktop: visible and horizontal */
    flex-direction: row; /* Desktop: horizontal */
    justify-content: center; /* Center menu items */
    border-bottom: 1px solid #eee;
    min-height: var(--main-nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center nav links */
    align-items: center;
    gap: 25px; /* Spacing between nav links */
    padding: 0 20px;
    width: 100%; /* Ensure it spans the full width of its parent */
}

.nav-link {
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent nav links from wrapping */
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above other elements */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

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

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

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

/* Mobile Navigation Buttons (Mobile Only) */
.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
    background-color: #e9ecef; /* Light grey background */
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 990; /* Below hamburger menu, above main content */
    min-height: var(--mobile-buttons-height);
    display: flex; /* Ensure flex for centering buttons */
    align-items: center;
}

.mobile-buttons-container {
    width: 100%; /* Occupy full width */
    max-width: none; /* No max-width restriction */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px; /* Smaller padding for mobile */
    flex-wrap: wrap; /* Allow buttons to wrap */
}

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

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

/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #f8f9fa;
    padding: 40px 0;
    font-size: 14px;
}

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

.footer-col {
    flex: 1;
    min-width: 200px; /* Ensure columns don't get too narrow */
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-col p {
    margin-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

/* --- Responsive Adjustments (Mobile) --- */
@media (max-width: 768px) {
    /* Adjust body padding for mobile header (header-top + mobile-nav-buttons) */
    body {
        padding-top: calc(var(--header-top-height) + var(--mobile-buttons-height));
    }

    .site-header {
        flex-direction: column; /* Stack header elements */
    }

    .header-top {
        padding: 5px 0; /* Smaller padding for mobile top bar */
        min-height: var(--header-top-height);
        display: flex; /* Ensure flex for hamburger/logo alignment */
        align-items: center;
        justify-content: space-between; /* Space for hamburger and logo */
    }

    .header-container {
        width: 100%; /* Occupy full width */
        max-width: none; /* No max-width restriction */
        padding: 0 15px; /* Smaller padding for mobile */
        justify-content: space-between; /* Hamburger left, Logo center, empty space right */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu */
        order: 1; /* Place on the left */
        color: var(--light-text-color); /* Hamburger bars color */
    }

    .logo {
        font-size: 24px;
        order: 2; /* Center the logo */
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center the logo text */
    }

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

    /* Show mobile buttons */
    .mobile-nav-buttons {
        display: flex; /* Override desktop display: none */
        position: relative; /* Relative to flow, but part of fixed header */
        z-index: 990;
        padding: 10px 0;
    }

    .mobile-buttons-container {
        padding: 0 10px; /* Adjust padding for mobile buttons */
    }

    /* Main Navigation (Mobile Menu) */
    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: calc(var(--header-top-height) + var(--mobile-buttons-height)); /* Position below header and mobile buttons */
        left: 0;
        width: 80%; /* Menu width */
        height: calc(100% - var(--header-top-height) - var(--mobile-buttons-height)); /* Full height below header */
        background-color: var(--mobile-menu-bg); /* Dark background for mobile menu */
        flex-direction: column; /* Vertical layout */
        padding: 20px 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease-in-out;
        z-index: 999; /* Below overlay, but above content */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

    .main-nav .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
        width: 100%;
        max-width: none; /* No max-width */
        align-items: flex-start; /* Align links to the left */
    }

    .main-nav .nav-link {
        color: var(--light-text-color);
        width: 100%; /* Full width links */
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 18px;
    }

    .main-nav .nav-link::after {
        background-color: var(--secondary-color); /* Highlight color for mobile */
    }

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

    .mobile-menu-overlay.is-visible {
        top: 0; /* Overlay covers entire screen */
        height: 100%;
    }

    /* Footer adjustments for mobile */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .footer-col {
        min-width: unset; /* Remove min-width for full width columns */
        width: 100%;
    }

    .footer-col h3 {
        width: 100%;
        text-align: center;
        border-bottom: none; /* Remove border for mobile */
        padding-bottom: 0;
        margin-bottom: 10px;
    }

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