:root {
    --primary-color: #0047AB;
    --primary-color-dark: #003380;
    --accent-color: #FFD700;
    --text-color-light: #f0f0f0;
    --text-color-dark: #333;
    --button-bg-primary: linear-gradient(135deg, #FFD700, #FFA500);
    --button-bg-secondary: linear-gradient(135deg, #32CD32, #228B22);
    --button-bg-tertiary: linear-gradient(135deg, #8A2BE2, #4B0082);
    --header-height-desktop: 70px;
    --header-height-mobile-top: 60px;
    --header-height-mobile-buttons: 60px;
    --header-total-height-mobile: calc(var(--header-height-mobile-top) + var(--header-height-mobile-buttons));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #f8f8f8;
    padding-top: var(--header-height-desktop); /* Desktop content offset */
}

/* --- General Button Styles --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-primary {
    background: var(--button-bg-primary);
    color: var(--primary-color-dark);
}

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

.btn-secondary {
    background: var(--button-bg-secondary);
    color: #fff;
}

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

.btn-tertiary {
    background: var(--button-bg-tertiary);
    color: #fff;
}

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

/* --- Header Styles (Desktop First) --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: var(--header-height-desktop);
    display: flex;
    flex-direction: column; /* Default for mobile, overridden for desktop */
    align-items: center;
    padding: 0 20px;
}

.site-header .header-inner-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
}

.site-header .logo {
    color: var(--accent-color);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    padding: 0;
    order: 1; /* Desktop: left */
}

.site-header .main-nav {
    flex: 1; /* Takes available space */
    display: flex;
    justify-content: center;
    order: 2; /* Desktop: center */
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.site-header .main-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.site-header .main-nav a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.site-header .main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.site-header .main-nav a:hover::after {
    width: 100%;
}

.site-header .desktop-nav-buttons {
    display: flex;
    gap: 15px;
    order: 3; /* Desktop: right */
}

.site-header .mobile-nav-buttons {
    display: none; /* Hidden on desktop */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002;
}

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

/* Mobile menu overlay (hidden on desktop) */
.mobile-menu-overlay {
    display: none;
}

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

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.site-footer .footer-col h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.site-footer .footer-col p {
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

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

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

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

.site-footer .footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-total-height-mobile); /* Mobile content offset */
    }

    .site-header {
        flex-direction: column; /* Stack elements vertically */
        align-items: stretch;
        padding: 0 15px;
        min-height: auto;
    }

    .site-header .header-inner-wrapper {
        padding: 10px 0;
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: space-between;
    }

    .site-header .logo {
        order: 2; /* Center logo */
        flex: 1;
        text-align: center;
        font-size: 24px;
        padding: 0;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        order: 1;
        width: 48px; /* Fixed width for button */
        height: 48px;
    }

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

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

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

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

    .site-header .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        min-height: var(--header-height-mobile-buttons);
    }

    .site-header .mobile-nav-buttons .btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .site-header .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-total-height-mobile); /* Position below header + mobile buttons */
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-total-height-mobile));
        background-color: var(--primary-color-dark);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%); /* Start off-screen to the left */
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        padding-bottom: 20px;
    }

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

    .site-header .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .site-header .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header .main-nav li:last-child {
        border-bottom: none;
    }

    .site-header .main-nav a {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .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: 999;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

    .no-scroll {
        overflow: hidden;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .footer-col h3 {
        margin-top: 30px;
    }

    .site-footer .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}