:root {
    --primary-color: #0A192F; /* Dark blue */
    --secondary-color: #FFD700; /* Gold/Yellow */
    --text-light: #F0F0F0;
    --text-dark: #333;
    --bg-dark-accent: #1A2B42; /* Slightly lighter dark blue */
    --header-top-height: 0px;
    --main-nav-height: 0px;
    --header-top-height-mobile: 0px;
    --mobile-button-area-height-mobile: 0px;
}

/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #F8F8F8;
    transition: padding-top 0.3s ease; /* Smooth transition for padding */
}

/* Header - Fixed and Floating */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 60px; /* Ensure content adaptation */
    background-color: var(--primary-color); /* Fallback for transparency */
}

/* Header Top Area (Desktop) */
.header-top {
    background-color: var(--primary-color);
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    display: block; /* Ensure visibility */
}

.desktop-nav-buttons {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    display: inline-block; /* Ensure button styling applies */
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #E6C200; /* Slightly darker gold */
    border-color: #E6C200;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

/* Main Navigation Area (Desktop) */
.main-nav {
    background-color: var(--bg-dark-accent); /* Distinct from header-top */
    padding: 10px 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    position: static; /* Desktop default */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 0 20px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

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

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

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

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

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

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

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container,
    .nav-container {
        width: 100%;
        max-width: none; /* Crucial for mobile full width */
        padding: 0 15px;
    }

    .header-top {
        padding: 10px 0; /* Adjust padding for mobile header-top */
    }

    .header-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .logo {
        order: 2;
        flex-grow: 1;
        text-align: center;
        font-size: 24px;
        display: block; /* Ensure visibility */
    }

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

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        order: 1;
        position: relative;
        z-index: 1002; /* Above overlay */
    }

    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--secondary-color);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

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

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

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

    .mobile-button-area {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        background-color: var(--primary-color);
        padding: 10px 15px;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 990; /* Below mobile menu and toggle */
    }

    .main-nav {
        display: none; /* Default hidden */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Adjust as needed */
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 60px; /* Space for content above nav links */
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        z-index: 1001; /* Above overlay */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

    .nav-container {
        flex-direction: column;
        gap: 0px; /* Reset gap for vertical list */
        padding: 20px 0;
    }

    .nav-link {
        font-size: 18px;
        width: 100%;
        text-align: left;
        padding: 15px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav-link::after {
        display: none; /* Hide underline effect for mobile menu */
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.6);
        z-index: 1000;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

    body.no-scroll {
        overflow: hidden;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-col {
        min-width: unset; /* Remove min-width for stacking */
        text-align: center;
    }

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

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

    .site-footer h3 {
        text-align: center;
    }
}
