:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --button-primary-bg: linear-gradient(to right, #FFCC00, #FFAA00);
    --button-secondary-bg: linear-gradient(to right, #0056b3, #004085);
    --button-tertiary-bg: linear-gradient(to right, #28a745, #218838);
    --button-text-primary: var(--primary-color);
    --button-text-secondary: var(--text-color-light);
    --button-text-tertiary: var(--text-color-light);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    padding-top: 0; /* Adjusted by JS */
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-height: 60px;
}

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

.logo {
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    flex-shrink: 0;
    padding: 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Desktop Navigation */
.desktop-nav-container {
    display: flex;
    align-items: center;
}

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

.main-nav li {
    margin-left: 25px;
}

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

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

/* Desktop Buttons */
.desktop-buttons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

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

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

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

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

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

/* Mobile Buttons (Initially hidden on desktop) */
.header-buttons-mobile {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    overflow-y: auto;
    z-index: 999;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* Start off-screen */
}

.mobile-nav-overlay.active {
    display: block;
    transform: translateX(0); /* Slide in */
}

.mobile-nav-overlay ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav-overlay li {
    margin-bottom: 15px;
}

.mobile-nav-overlay a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 20px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

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

/* General Button Styles */
.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;
    font-size: 15px;
}

.btn-primary {
    background: var(--button-primary-bg);
    color: var(--button-text-primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: var(--button-secondary-bg);
    color: var(--button-text-secondary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.btn-tertiary {
    background: var(--button-tertiary-bg);
    color: var(--button-text-tertiary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    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 auto;
    gap: 30px;
}

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

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

.footer-section p, .footer-section a {
    color: var(--text-color-light);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

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

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

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 15px;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
        order: -1; /* Move to the left */
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        font-size: 24px;
    }

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

    .header-buttons-mobile {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        margin-top: 20px;
    }

    .mobile-nav-overlay {
        transform: translateX(100%); /* Ensure it's off-screen initially */
    }

    .mobile-nav-overlay.active {
        transform: translateX(0); /* Slide in */
    }

    body.no-scroll {
        overflow: hidden;
    }
}