:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-color: #f0f0f0;
    --dark-bg: #1a1a1a;
    --light-bg: #2a2a2a;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0d0d0d;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

.site-header {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--text-color);
    text-decoration: none;
}

.main-nav {
    margin-left: auto; /* Pushes nav to the right, after the logo */
    margin-right: 20px; /* Space between nav and buttons */
}

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

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions .btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-actions .btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-color: var(--secondary-color);
}

.header-actions .btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.header-actions .btn-login:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

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

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: 0.4s;
}

.site-footer {
    background-color: var(--dark-bg);
    padding: 3rem 0 1.5rem;
    color: var(--text-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-column {
    padding: 10px;
}

.footer-logo {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-column p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

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

.footer-nav ul li:last-child {
    margin-bottom: 0;
}

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

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .main-nav ul {
        gap: 15px;
    }
    .main-nav a {
        font-size: 1rem;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto; /* Hamburger | Logo | (empty space or padding) */
        grid-template-rows: auto auto; /* Row 1: Hamburger, Logo. Row 2: Buttons */
        align-items: center;
        padding: 0 15px;
        gap: 0;
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu on mobile */
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-self: start;
        margin: 0; /* Reset any desktop margins */
    }

    .logo {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: center;
        font-size: 2rem;
    }

    .header-actions {
        grid-column: 1 / -1; /* Span across all columns */
        grid-row: 2 / 3; /* Place in the second row */
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
        padding-top: 10px;
        padding-bottom: 5px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--dark-bg);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.4s ease-in-out;
        z-index: 999;
        display: block;
        margin-left: initial; /* Reset desktop margin */
        margin-right: initial; /* Reset desktop margin */
    }

    .main-nav.active {
        right: 0;
    }

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

    .main-nav ul li {
        width: 100%;
        margin-bottom: 15px;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--primary-color);
        background-color: rgba(255, 255, 255, 0.05);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .hamburger-menu.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

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

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        margin: 0 auto 15px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.8rem 0;
    }
    .logo {
        font-size: 1.8rem;
    }
    .header-actions .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .footer-column h3 {
        font-size: 1.2rem;
    }
    .footer-column p, .footer-nav a, .copyright {
        font-size: 0.9rem;
    }
}