/* 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;
}

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

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

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

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

.site-header .main-nav {
    flex-grow: 1;
    text-align: center;
}

.site-header .nav-list {
    display: flex;
    justify-content: center;
    gap: 25px;
}

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

.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) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .site-header .main-nav {
        order: 3; /* Move nav below logo and auth buttons */
        flex-basis: 100%; /* Take full width */
        text-align: left;
    }

    .site-header .nav-list {
        flex-direction: column;
        background-color: #003366;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none; /* Hidden by default */
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
    }

    .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-header .auth-buttons {
        order: 2;
    }

    .hamburger-menu {
        display: block;
        order: 1;
        margin-right: 15px;
    }
    
    .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-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;
    }
}