/* Basic Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* NEW: Offset for fixed header */
}

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

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

ul {
    list-style: none;
}

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

.site-header .container {
    /* flex properties moved to .header-main-flex for desktop */
}

.site-header .header-main-flex { /* NEW: Wrapper for desktop header elements */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-header .logo {
    font-size: 2.2em;
    font-weight: bold;
    color: #FFCC00;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.site-header .main-nav {
    margin-left: auto; /* Push nav and buttons to the right */
    margin-right: 25px; /* Space between nav and buttons */
}

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

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

.site-header .main-nav a:hover {
    color: #FFCC00;
}

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

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

.site-header .hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000; /* Ensure it's above other content */
}

.site-header .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

/* NEW: Header Buttons Styles */
.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-buttons.mobile-only {
    display: none; /* Hidden on desktop */
}

.header-buttons .btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent buttons from wrapping */
}

.header-buttons .login-btn {
    background-color: #FFCC00;
    color: #003366;
    border: 2px solid #FFCC00;
}

.header-buttons .login-btn:hover {
    background-color: #e6b800;
    color: #001a33;
}

.header-buttons .register-btn {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.header-buttons .register-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

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

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

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

.site-footer .footer-column.brand-info .logo {
    font-size: 2em;
    color: #FFCC00;
    margin-bottom: 10px;
    display: block;
}

.site-footer .footer-column.brand-info p {
    color: #ccc;
    line-height: 1.8;
}

.site-footer h3 {
    color: #FFCC00;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.site-footer .footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .footer-nav a {
    color: #ccc;
    transition: color 0.3s ease;
}

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

.site-footer .contact-info p {
    color: #ccc;
    margin-bottom: 8px;
}

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

.site-footer .copyright {
    color: #ccc;
}

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

@media (max-width: 768px) {
    body {
        padding-top: 120px; /* NEW: Adjust for stacked header height on mobile */
    }

    .site-header {
        padding: 0; /* NEW: Remove padding from site-header itself on mobile */
    }

    .site-header .container {
        flex-direction: column; /* NEW: Stack header-main-flex and mobile-buttons */
        align-items: center; /* NEW: Center items horizontally within container */
        padding: 0 15px; /* Keep horizontal padding for container */
    }

    .site-header .header-main-flex {
        width: 100%;
        display: flex;
        justify-content: space-between; /* Hamburger left, logo center */
        align-items: center;
        padding: 15px 0 10px; /* NEW: Top padding, bottom space for buttons */
    }

    .site-header .logo {
        flex-grow: 1; /* NEW: Allow logo to take available space */
        text-align: center; /* NEW: Center the logo text */
        margin-left: -40px; /* NEW: Offset for hamburger-menu width to truly center */
    }

    .site-header .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: -1; /* NEW: Move to the very left */
    }

    .site-header .main-nav {
        display: none; /* Hide main nav by default */
        flex-direction: column;
        background-color: #003366;
        position: absolute;
        top: 120px; /* NEW: Adjust based on header-main-flex height + mobile-buttons height + padding */
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        z-index: 999;
    }

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

    .site-header .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .site-header .main-nav li {
        width: 100%;
        text-align: center;
    }

    .site-header .main-nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
        color: #fff;
    }

    .site-header .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #FFCC00;
    }

    .site-header .main-nav a::after {
        display: none; /* Hide underline for mobile menu items */
    }

    .header-buttons.desktop-only {
        display: none; /* NEW: Hide desktop buttons on mobile */
    }

    .header-buttons.mobile-only {
        display: flex; /* NEW: Show mobile buttons */
        justify-content: center; /* NEW: Center the buttons */
        width: 100%;
        padding-bottom: 15px; /* NEW: Padding for the bottom of the header */
    }

    .header-buttons.mobile-only .btn {
        font-size: 0.9em;
        padding: 8px 12px; /* Slightly smaller padding for mobile buttons */
    }

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

    .site-footer .footer-column {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .site-footer .footer-nav ul {
        align-items: center;
    }
}

/* Hamburger menu animation */
.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}