:root {
    --primary-color: #0A2463; 
    --secondary-color: #E3B505; 
    --text-color: #333;
    --light-text-color: #fff;
    --link-hover-color: #f0c030; 
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif; 
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Added for fixed header */
}

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

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

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

.site-header {
    background-color: var(--primary-color);
    padding: 15px 0;
    color: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed; /* Added for fixed header */
    top: 0; /* Added for fixed header */
    width: 100%; /* Added for fixed header */
    z-index: 1000; /* Added for fixed header */
}

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

.site-header .logo {
    font-family: 'Georgia', serif; 
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: var(--link-hover-color);
}

.site-header .main-nav {
    margin-left: auto; /* Pushes nav to the right on desktop */
}

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

.site-header .main-nav a {
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1.05em;
    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: var(--secondary-color);
    transition: width 0.3s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
    color: var(--secondary-color);
}

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

.site-header .auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px; /* Space between nav and buttons */
}

.site-header .auth-buttons .btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent buttons from wrapping */
}

.site-header .auth-buttons .btn:hover {
    background-color: var(--link-hover-color);
    color: var(--primary-color);
}

.site-header .auth-buttons .btn-login {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.site-header .auth-buttons .btn-login:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.hamburger-menu {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; 
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
    font-size: 0.95em;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.site-footer .footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.site-footer .footer-logo {
    font-family: 'Georgia', serif;
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    display: inline-block;
}

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

.site-footer .quick-links ul li {
    margin-bottom: 8px;
}

.site-footer .quick-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.site-footer .quick-links a:hover {
    color: var(--secondary-color);
}

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

.site-footer .contact-info a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.site-footer .contact-info a:hover {
    color: var(--link-hover-color);
}

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

.site-footer .copyright {
    margin: 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .site-header .main-nav .nav-list {
        gap: 15px;
    }
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer .brand-info {
        grid-column: span 2;
        text-align: center;
    }
    .site-footer .brand-info .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: flex-start; /* Align items to the start for mobile */
        /* flex-direction: column; Removed to allow hamburger and logo on same line */
        align-items: center;
    }

    .site-header .logo {
        order: 2; /* LOGO after hamburger */
        flex-grow: 1; /* LOGO takes remaining space */
        text-align: center; /* Center LOGO text */
        margin: 0; /* Reset desktop margin */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu */
        order: 1; /* Hamburger menu on the far left */
    }

    .site-header .auth-buttons {
        order: 3; /* Buttons below logo */
        width: 100%; /* Take full width */
        display: flex;
        justify-content: center; /* Center buttons horizontally */
        gap: 15px;
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.2);
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .site-header .auth-buttons .btn {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .site-header .main-nav {
        width: 100%;
        order: 4; /* Main navigation last */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        background-color: rgba(10, 36, 99, 0.95); 
    }

    .site-header .main-nav.active {
        max-height: 400px; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .site-header .main-nav .nav-list {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

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

    .site-header .main-nav a {
        display: block;
        padding: 10px 15px;
        font-size: 1.1em;
    }
    
    .site-header .main-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .site-footer .brand-info {
        grid-column: span 1; 
    }
    .site-footer .brand-info .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

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