:root {
    --header-height: 70px; /* Default desktop height, updated by JS */
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: var(--header-height); /* Add padding for fixed header */
}

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

/* Header styles */
.site-header {
    background-color: #0A2239;
    color: #fff;
    padding: 15px 0;
    position: fixed; /* Changed to fixed for sticky header */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Added shadow for fixed header */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Ensure consistent height for mobile menu positioning */
}

.logo {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    color: #E0B400;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #fff;
}

.main-nav {
    margin-left: auto; /* Pushes nav and subsequent elements to the right */
    margin-right: 25px; /* Space between nav and buttons */
}

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

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

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

.main-nav a:hover,
.main-nav a.active {
    color: #E0B400;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #E0B400;
}

/* Header Actions (Buttons) */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-register {
    background-color: #E0B400; /* Yellow */
    color: #0A2239; /* Dark blue */
    border: 1px solid #E0B400;
}

.btn-register:hover {
    background-color: #FFD700; /* Lighter yellow */
    color: #0A2239;
}

.btn-login {
    background-color: transparent;
    color: #E0B400; /* Yellow border */
    border: 1px solid #E0B400;
}

.btn-login:hover {
    background-color: #E0B400;
    color: #0A2239;
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #E0B400;
    transition: all 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);
}

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

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

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

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

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

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

.footer-col h3 {
    color: #E0B400;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

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

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

.copyright {
    margin: 0;
}

/* Responsive styles for tablets and mobiles */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        padding: 10px 15px; /* Adjust padding for mobile */
        height: auto; /* Allow height to adjust based on content */
        min-height: auto; /* Remove fixed min-height */
        position: relative; /* For absolute positioning of hamburger */
    }

    .logo {
        margin: 0 auto; /* Center logo */
        order: 1; /* Ensure logo is first in flex order */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        position: absolute; /* Position independently */
        top: 15px; /* Adjust as needed, roughly centered vertically with logo */
        right: 15px; /* Position on the right */
    }

    .header-actions {
        display: flex; /* Show buttons side-by-side */
        justify-content: center; /* Center the group of buttons */
        width: 100%; /* Take full width to help centering */
        margin: 10px 0; /* Add top/bottom margin */
        order: 2; /* Position after logo in flex order */
    }

    .main-nav {
        flex-direction: column;
        position: fixed; /* Keep it fixed for mobile menu */
        top: var(--header-height); /* Adjusted based on dynamic header height */
        left: 0;
        width: 100%;
        background-color: #0A2239;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        padding: 20px 0;
        height: calc(100vh - var(--header-height)); /* Full height minus header */
        overflow-y: auto;
        z-index: 999;
        order: 3; /* Position after buttons in flex order, though fixed positioning takes it out of flow */
        margin-left: 0; /* Reset desktop margin */
        margin-right: 0; /* Reset desktop margin */
        display: none; /* Hidden by default on mobile */
    }

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

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

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

    .main-nav a {
        font-size: 1.2em;
        padding: 10px 20px;
        display: block;
    }

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

    .footer-col {
        margin-right: 0;
        margin-bottom: 30px;
    }

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