/* General Body Styles for fixed header padding */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Default padding for desktop fixed header */
    color: #333;
    line-height: 1.6;
}
body.no-scroll {
    overflow: hidden;
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #8B0000; /* Dark Red */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    /* Desktop layout: Logo (left), Nav (center), Buttons (right) */
    justify-content: space-between; /* Distribute items */
}

/* Logo */
.site-header .logo {
    color: #FFD700; /* Gold */
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 0;
    display: block; /* Ensure logo is visible */
    white-space: nowrap; /* Prevent logo text from wrapping */
}

/* Main Navigation (Desktop Default) */
.main-nav {
    flex: 1; /* Take up remaining space */
    display: flex; /* Desktop: visible */
    flex-direction: row; /* Desktop: horizontal */
    justify-content: center; /* Center nav items */
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

.main-nav a:hover,
.main-nav a.active {
    color: #FFD700; /* Gold */
}

/* Desktop Nav Buttons */
.desktop-nav-buttons {
    display: flex; /* Desktop: visible */
    gap: 10px;
    margin-left: auto; /* Push to the right */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden on desktop by default */
}

/* Mobile Nav Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
    display: none; /* Hidden on desktop by default */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    display: block; /* Ensure it's visible when active */
}

/* Button Base Styles */
.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    display: inline-block; /* For <a> tags to behave like buttons */
}

.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red */
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background-color: #fff;
    color: #8B0000; /* Dark Red */
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    border-color: #e6c200;
}


/* Footer styles */
.site-footer {
    background-color: #333;
    color: #eee;
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #FFD700; /* Gold */
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 8px;
}

.footer-section p {
    margin: 0;
    color: #ccc;
}

.footer-section a {
    color: #FFD700; /* Gold */
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

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

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

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #FFD700; /* Gold */
    text-decoration: underline;
}

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


/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Adjust padding for mobile fixed header + button area */
    }

    .site-header {
        flex-wrap: wrap; /* Allow items to wrap to next line */
        padding: 0 10px;
        min-height: auto; /* Allow height to adjust */
    }
    
    .site-header > .logo { /* Target logo directly for centering */
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        padding: 10px 0;
        margin-left: -45px; /* Offset hamburger menu width to truly center logo */
        order: 1; /* Ensure logo is after hamburger for visual order */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu on mobile */
        order: 0; /* Place hamburger menu to the very left */
        margin-right: 10px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 1001; /* Ensure hamburger is above other elements */
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #FFD700;
        margin-bottom: 5px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .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);
    }

    .main-nav {
        display: none; /* Hide main nav by default on mobile */
        flex-direction: column; /* Stack nav items vertically */
        position: fixed;
        top: 100px; /* Adjust to be below the header's top bar + button area */
        left: 0;
        width: 70%;
        height: calc(100% - 100px); /* Fill remaining height */
        background-color: #8B0000; /* Dark Red */
        padding-top: 20px; /* Some padding at the top of the menu itself */
        box-shadow: 2px 0 5px rgba(0,0,0,0.3);
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        z-index: 999; /* Below hamburger menu, above overlay */
        overflow-y: auto; /* Enable scrolling for long menus */
        align-items: flex-start; /* Align menu items to the left */
    }

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

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

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%; /* Ensure li takes full width */
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        color: #fff;
        width: 100%; /* Ensure link takes full width */
        box-sizing: border-box;
    }

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

    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px 0;
        background-color: #7a0000; /* Slightly different shade for button area */
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 999; /* Below hamburger, above overlay */
        order: 2; /* Place mobile buttons as the second row */
    }

    .mobile-nav-buttons .btn {
        padding: 8px 15px;
        font-size: 14px;
        border-radius: 20px;
    }

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

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

    .footer-section h3 {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav li {
        margin: 0;
    }

    .footer-nav a {
        padding: 5px 10px;
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-radius: 5px;
        display: block;
    }
}