/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700; /* Primary color */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #fff;
}

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

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700; /* 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: #FFD700; /* Primary color */
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
}

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

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

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

/* New Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.btn-register {
    background-color: #FFD700; /* Primary color */
    color: #000;
    border: 2px solid #FFD700;
    margin-left: 15px; /* Spacing from nav or other buttons */
}

.btn-register:hover {
    background-color: #e6c200;
    color: #000;
    border-color: #e6c200;
}

.btn-login {
    background-color: transparent;
    color: #FFD700; /* Primary color */
    border: 2px solid #FFD700;
    margin-left: 10px;
}

.btn-login:hover {
    background-color: #FFD700;
    color: #000;
    border-color: #FFD700;
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Space from main nav */
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.site-footer a {
    color: #FFD700; /* Primary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-col h3 {
    color: #FFD700; /* Primary color */
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 1px solid #8B0000; /* Auxiliary color */
    padding-bottom: 5px;
}

.footer-col p {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
}

.scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700; /* Primary color */
    color: #8B0000; /* Auxiliary color */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 2em;
    }

    .hamburger-menu {
        display: block;
    }

    .main-nav {
        flex-basis: 100%;
        order: 3; /* Push nav below logo and hamburger */
        display: none; /* Hidden by default on mobile */
        width: 100%;
        background-color: #1a1a1a;
        position: absolute;
        left: 0;
        top: 130px; /* Adjusted based on header height including new auth buttons */
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        z-index: 990;
    }

    .main-nav.active {
        display: block; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #333;
    }

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

    .main-nav a {
        display: block;
        padding: 10px 15px;
    }

    .main-nav a::after {
        display: none; /* Remove underline animation on mobile */
    }

    /* Auth Buttons Responsive Styles */
    .auth-buttons {
        flex-basis: 100%; /* Take full width */
        order: 2; /* Position after logo/hamburger, before main-nav */
        justify-content: center; /* Center buttons */
        padding: 15px 0; /* Add some vertical spacing */
        margin-left: 0; /* Reset margin */
        background-color: #000; /* Match header background */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow for separation */
    }

    .auth-buttons .btn {
        margin: 0 5px; /* Adjust margin between buttons */
        padding: 8px 15px; /* Adjust padding for smaller screens */
        font-size: 0.9em;
    }

    .btn-login {
        margin-left: 10px; /* Keep a small gap between buttons */
    }

    .footer-columns {
        flex-direction: column;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
    }

    .scroll-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}