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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Added: To prevent content from being hidden by the fixed header */
}

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

ul {
    list-style: none;
}

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

/* Header Styles */
.site-header {
    background-color: #003366; /* Primary color */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed; /* Added: Make the header stick to the top */
    top: 0; /* Added: Position at the top of the viewport */
    width: 100%; /* Added: Ensure it spans the full width */
    z-index: 1000; /* Added: Ensure it stays on top of other content */
}

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

.site-header .logo {
    font-size: 2.2em;
    font-weight: bold;
    color: #FFCC00; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    flex-shrink: 0;
    margin-right: 30px;
}

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

.site-header .main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 20px;
}

.site-header .nav-list {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    margin-right: 0;
}

.site-header .nav-list li a {
    color: #fff;
    font-weight: 600;
    padding: 8px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.site-header .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #FFCC00; /* Secondary color */
    transition: width 0.3s ease-in-out;
}

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

.site-header .nav-list li a:hover,
.site-header .nav-list li a.active {
    color: #FFCC00;
}

.site-header .auth-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.site-header .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.site-header .btn-login {
    background-color: #fff;
    color: #003366; /* Primary color */
    border: 1px solid #fff;
}

.site-header .btn-login:hover {
    background-color: #f0f0f0;
    color: #002244;
}

.site-header .btn-register {
    background-color: #FFCC00; /* Secondary color */
    color: #003366; /* Primary color */
    border: 1px solid #FFCC00;
}

.site-header .btn-register:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #002244;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

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

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

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

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

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

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

.site-footer .footer-col p,
.site-footer .footer-nav ul li a {
    color: #ccc;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .site-header .nav-list {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Adjusted: More padding for taller mobile header */
    }

    .site-header .container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "hamburger logo"
            "buttons buttons";
        align-items: center;
        gap: 0;
        position: relative;
    }

    .site-header .main-nav {
        position: static;
        display: block;
        flex-grow: 0;
        text-align: left;
    }

    .hamburger-menu {
        display: block !important;
        grid-area: hamburger;
        position: static;
        align-self: center;
        z-index: 1001;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        margin-right: 10px;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-header .logo {
        grid-area: logo;
        justify-self: center;
        text-align: center;
        margin-right: 0;
        margin-left: 0;
    }

    .site-header .auth-buttons {
        grid-area: buttons;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 15px 0;
        margin-left: 0;
        margin-top: 0;
    }

    .site-header {
        /* position: relative;  Removed as it conflicts with 'fixed' */
    }

    .site-header .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #003366;
        flex-direction: column;
        padding: 80px 0 20px 0;
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 998;
        border-top: none;
        overflow-y: auto;
    }

    .site-header .nav-list.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .site-header .nav-list li a {
        padding: 12px 25px;
        display: block;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .site-header .nav-list li:last-child a {
        border-bottom: none;
    }

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

    .site-footer .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .site-footer .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 1.8em;
    }
    .site-header .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .site-header .hamburger-menu {
        margin-right: 0;
    }
    .site-header .auth-buttons {
        gap: 5px;
    }
}