/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #E0E0E0;
    background-color: #2D3748;
    /* IMPORTANT: padding-top will be dynamically set by JS or media query for mobile */
    padding-top: 0; /* Default for desktop, adjusted for mobile */
}

a {
    text-decoration: none;
    color: #FFD700;
}

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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #FFFFFF; /* White text for contrast */
    text-decoration: none; /* Remove underline */
}

.btn-primary {
    background-image: linear-gradient(45deg, #FF6F00, #FFD700);
    border: none;
}

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

.btn-secondary {
    background-color: #1A202C;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Header - Desktop First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1A202C; /* Solid background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Floating effect */
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Default to column, will be row for header-top-bar on desktop */
    justify-content: center;
    align-items: center;
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px; /* Max width for content */
    padding: 10px 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    display: block; /* Ensure logo is always visible */
    order: 1; /* Desktop: left */
    padding-right: 20px;
}

.main-nav {
    flex: 1; /* Occupy middle space */
    display: flex; /* Desktop: flex */
    flex-direction: row; /* Desktop: horizontal */
    justify-content: center;
    order: 2;
}

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

.main-nav ul li a {
    color: #E0E0E0;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

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

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

/* Footer */
.site-footer {
    background-color: #1A202C;
    color: #E0E0E0;
    padding: 40px 20px 20px;
    border-top: 1px solid #333;
    margin-top: 50px;
}

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

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 8px;
}

.footer-nav li a {
    color: #E0E0E0;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #999;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* IMPORTANT: Adjust padding-top for mobile to prevent content from being obscured */
    /* Header-top-bar height ~60px, Mobile-buttons-area height ~50px. Total ~110px. */
    body {
        padding-top: 110px; 
    }

    .site-header {
        min-height: unset; /* Allow height to be determined by content */
        flex-direction: column;
        align-items: center;
    }

    .header-top-bar {
        padding: 10px 15px;
        justify-content: space-between; /* Hamburger left, Logo center, empty space right */
        position: relative; /* For logo centering */
        min-height: 60px;
    }

    .logo {
        font-size: 24px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding-right: 0;
        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: 1002; /* Above overlay and buttons */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #FFD700;
        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);
    }

    .desktop-buttons-container {
        display: none; /* Hide desktop buttons on mobile */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 70%; /* Side menu width */
        height: 100%;
        background-color: #1A202C;
        flex-direction: column;
        padding-top: 80px; /* Space for fixed header */
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease;
        z-index: 1002; /* Above overlay */
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 20px;
    }

    .main-nav ul li a {
        font-size: 18px;
        width: 100%;
        display: block;
        padding: 10px 0;
    }
    
    .main-nav ul li a::after {
        bottom: 0;
    }

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        width: 100%;
        background-color: #2D3748; /* Slightly different background for distinction */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 999; /* Below hamburger menu, above content */
        min-height: 50px;
    }

    .mobile-buttons-area .btn {
        flex: 1;
        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.6);
        z-index: 1001; /* Below menu, above content */
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

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

    .footer-section {
        min-width: unset;
    }

    .footer-bottom {
        margin-top: 20px;
    }
}

/* Utility for preventing scroll */
body.no-scroll {
    overflow: hidden;
}