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

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

/* Header Styles */
.site-header {
    background-color: #B22222; /* Main color */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed; /* Make header sticky */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
}

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

.site-header .logo {
    font-family: 'Georgia', serif; /* Creative font for logo */
    font-size: 2.2em;
    font-weight: bold;
    color: #FFD700; /* Accent color */
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.site-header .header-right {
    display: flex; /* Added for desktop alignment of nav, buttons, hamburger */
    align-items: center;
}

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

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

.site-header .main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
    color: #FFD700; /* Accent color on hover/active */
    border-bottom: 2px solid #FFD700;
}

/* Header Buttons Styles */
.header-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.header-buttons .btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.btn-register {
    background-color: #FFD700; /* Accent color */
    color: #B22222; /* Main color for text */
    border: 1px solid #FFD700;
}

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

.btn-login {
    background-color: transparent;
    color: #FFD700; /* Accent color for text */
    border: 1px solid #FFD700;
}

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

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    margin-left: 20px; /* Space from buttons */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

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

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

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

.site-footer .footer-col {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 20px 0;
}

.site-footer .footer-col:last-child {
    margin-right: 0;
}

.site-footer h3 {
    color: #FFD700; /* Accent color for headings */
    font-size: 1.3em;
    margin-bottom: 15px;
}

.site-footer p,
.site-footer a {
    color: #ccc;
    text-decoration: none;
}

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

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

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

.site-footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        position: relative; /* For absolute positioning of hamburger */
        padding-top: 10px; /* Adjust container padding for mobile */
        padding-bottom: 10px;
    }

    .site-header .header-left {
        width: 100%; /* Take full width to center logo */
        text-align: center; /* Center the logo */
        order: 2; /* Logo comes second visually */
        margin-top: 10px; /* Space below hamburger */
    }

    .site-header .header-right {
        width: 100%; /* Take full width */
        display: flex; /* Enable flex for its children */
        flex-direction: column; /* Stack nav and buttons */
        align-items: center; /* Center nav and buttons */
        order: 3; /* Header-right comes third visually */
        margin-top: 15px; /* Space below logo */
    }

    .site-header .main-nav {
        display: none; /* Hide main nav by default on mobile */
        flex-direction: column;
        position: absolute; /* Keep absolute positioning for overlay effect */
        top: 130px; /* Adjusted based on new header height for mobile */
        left: 0;
        width: 100%;
        background-color: #B22222; /* Main color */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 1000;
        padding: 20px 0;
        text-align: center;
        order: 2; /* Within header-right, comes after buttons */
    }

    .site-header .main-nav.active {
        display: flex; /* Show when active */
    }

    .site-header .main-nav ul {
        flex-direction: column;
    }

    .site-header .main-nav li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .site-header .main-nav a {
        display: block;
        padding: 10px 15px;
        font-size: 1.1em;
    }

    .header-buttons {
        display: flex; /* Show buttons on mobile */
        justify-content: center; /* Center buttons */
        width: 100%; /* Take full width */
        margin-left: 0; /* Remove desktop margin */
        order: 1; /* Within header-right, comes before nav */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: 1; /* Hamburger comes first visually in container */
        position: absolute; /* Position independently */
        left: 15px; /* Align to the left */
        top: 25px; /* Adjust vertical position */
        margin-left: 0; /* Remove desktop margin */
    }

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

    .site-footer .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    .site-footer .footer-col {
        margin: 0 0 30px 0;
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .site-footer .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}