/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* Added: To prevent content from being hidden by fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

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

.header-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #0A2239; /* Primary color */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed; /* Added: Make header sticky */
    top: 0; /* Added: Stick to the top */
    width: 100%; /* Added: Take full width */
    z-index: 1000; /* Added: Ensure it's above other content */
}

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

.site-header .logo-area .logo {
    font-size: 2.5em; /* Creative logo size */
    font-weight: bold;
    color: #FFD700; /* Accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Georgia', serif; /* Example creative font */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.site-header .logo-area .logo:hover {
    color: #fff;
}

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

.site-header .main-nav a {
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.site-header .main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700; /* Accent color */
    transition: width 0.3s ease;
}

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

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

.site-header .auth-buttons {
    display: flex;
    gap: 10px;
}

.site-header .auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.site-header .auth-buttons .btn-register {
    background-color: #FFD700; /* Accent color */
    color: #0A2239; /* Primary color */
}

.site-header .auth-buttons .btn-register:hover {
    background-color: #e6c200; /* Darker accent */
}

.site-header .auth-buttons .btn-login {
    background-color: transparent;
    color: #fff;
    border: 2px solid #FFD700; /* Accent color */
}

.site-header .auth-buttons .btn-login:hover {
    background-color: #FFD700; /* Accent color */
    color: #0A2239; /* Primary color */
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other content */
}

.nav-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700; /* Accent color */
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

.site-footer .footer-col {
    flex: 1;
    min-width: 250px;
    max-width: 30%;
}

.site-footer .footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700; /* Accent color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.site-footer .footer-col h3 {
    color: #FFD700; /* Accent color */
    font-size: 1.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

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

.site-footer .footer-col a {
    color: #fff;
    transition: color 0.3s ease;
}

.site-footer .footer-col a:hover {
    color: #FFD700; /* Accent color */
}

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

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

.site-footer .copyright {
    color: #aaa;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .site-header .main-nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .site-header .header-container {
        flex-direction: column; /* Changed: Stack elements vertically */
        align-items: center; /* Changed: Center items horizontally */
        padding: 0; /* Changed: Remove default horizontal padding from container */
    }

    /* New: Mobile top row for hamburger and logo */
    .header-mobile-top-row {
        display: flex;
        justify-content: space-between; /* Hamburger left, logo centered */
        align-items: center;
        width: 100%; /* Take full width */
        padding: 15px 20px; /* Padding for the row */
    }

    .site-header .logo-area {
        flex-grow: 1; /* Changed: Allows logo-area to take available space */
        text-align: center; /* Changed: Centers the logo text within logo-area */
        margin: 0; /* Changed: Override any conflicting margins */
    }

    /* New: Placeholder to balance logo centering */
    .header-mobile-right-placeholder {
        width: 45px; /* Approximate width of nav-toggle (25px icon + 2*10px padding) */
        height: 0;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
        margin-left: 0; /* Changed: Override margin-left: auto to place it on the far left */
    }

    .site-header .main-nav {
        display: none; /* Hide nav by default on mobile */
        flex-direction: column;
        /* Changed: Position relative to the fixed header, adjusted top value */
        position: absolute;
        top: 160px; /* Estimated height of the mobile header combined (top-row + auth-buttons + header padding) */
        left: 0;
        width: 100%;
        background-color: #0A2239; /* Primary color */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        z-index: 999; /* Ensure it's below nav-toggle */
    }

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

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

    .site-header .main-nav ul li {
        margin: 10px 0;
    }

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

    .site-header .main-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-header .auth-buttons {
        display: flex; /* Changed: Show auth buttons on mobile */
        justify-content: center; /* Changed: Center buttons horizontally */
        width: 100%; /* Changed: Take full width */
        padding: 10px 20px; /* Changed: Padding for the button row */
        background-color: #0A2239; /* Changed: Ensure it matches header background */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added: Add shadow */
    }
    
    .footer-col {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .site-footer .footer-col h3 {
        text-align: center;
    }

    .site-footer .footer-col ul {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header .logo-area .logo {
        font-size: 2em;
    }
}