/* Base Styles */
:root {
    --primary-color: #0A2463;
    --accent-color: #FFD700;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --background-color: #f4f7f6;
    --dark-bg-color: #1a1a1a;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 80px; /* Desktop header height */
    transition: padding-top 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none; /* Remove underline for buttons */
}

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

.btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: #071a47;
    border-color: #071a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    min-height: 60px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    display: block; /* Ensure logo is always visible */
}

.logo:hover {
    opacity: 0.9;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.main-nav ul {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.main-nav a {
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

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

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

.desktop-nav-buttons {
    display: flex;
    gap: 15px;
    margin-left: auto; /* Push to right */
}

.mobile-nav-buttons, .hamburger-menu, .mobile-menu-overlay {
    display: none; /* Hidden by default on desktop */
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    padding: 40px 20px;
    border-top: 5px solid var(--accent-color);
    text-align: center;
}

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

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

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

.footer-column p, .footer-column a {
    font-size: 14px;
    color: var(--light-text-color);
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 130px; /* Adjusted for mobile fixed header + buttons */
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 15px;
    }

    .header-container {
        min-height: 60px;
        justify-content: space-between;
        width: 100%;
    }

    .logo {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        order: 2; /* Center logo */
        display: block; /* Ensure logo is always visible */
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        order: 1; /* Leftmost */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--accent-color);
        transition: all 0.3s ease;
    }

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

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

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

    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 80px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out to left */
        transition: transform 0.3s ease;
        z-index: 1000;
        justify-content: flex-start;
        align-items: flex-start;
    }

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

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

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a::after {
        display: none;
    }

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

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

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
        background-color: var(--primary-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 990; /* Below hamburger menu, above content */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-buttons .btn {
        flex: 1;
        max-width: 150px;
        font-size: 14px;
        padding: 8px 15px;
    }

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

    .mobile-menu-overlay.active {
        display: block; /* Show overlay when active */
        opacity: 1;
    }

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

    .footer-column {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

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