/* 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;
    padding-top: 70px; /* Added to prevent content from being hidden by the fixed header */
}

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

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

ul {
    list-style: none;
}

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

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

.site-header .logo {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700; /* Auxiliary color */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.site-header .main-nav {
    display: flex;
    align-items: center;
}

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

.site-header .main-nav a {
    color: #fff;
    font-weight: 500;
    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: #FFD700; /* Auxiliary color */
    transition: width 0.3s ease;
}

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

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
    color: #FFD700; /* Auxiliary color */
}

.header-buttons {
    margin-left: 30px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    background-color: transparent;
    border: 2px solid #FFD700; /* Auxiliary color */
    color: #FFD700;
}

.btn-login:hover {
    background-color: #FFD700;
    color: #1A237E;
}

.btn-register {
    background-color: #FFD700; /* Auxiliary color */
    border: 2px solid #FFD700;
    color: #1A237E;
}

.btn-register:hover {
    background-color: transparent;
    color: #FFD700;
}

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

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

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

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

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

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

.footer-about p {
    margin-bottom: 15px;
    color: #ccc;
}

.footer-about .read-more {
    color: #FFD700;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-about .read-more:hover {
    color: #fff;
}

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

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

.footer-links a:hover {
    color: #FFD700;
}

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

.footer-contact a {
    color: #FFD700;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

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

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

    .site-header .main-nav a {
        font-size: 0.95em;
    }

    .header-buttons {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-header .logo {
        flex-grow: 1;
    }

    .hamburger-menu {
        display: block;
    }

    .site-header .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        flex-basis: 100%;
        order: 3; /* Push nav below logo and hamburger */
        background-color: #1A237E; /* Ensure background for dropdown */
    }

    .site-header .main-nav.active {
        max-height: 500px; /* Adjust as needed for content */
        transition: max-height 0.5s ease-in;
    }

    .site-header .main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header .main-nav ul li {
        margin-bottom: 15px;
    }

    .site-header .main-nav ul li:last-child {
        margin-bottom: 0;
    }

    .site-header .main-nav a {
        padding: 10px 0;
        display: block;
    }

    .header-buttons {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
        width: 100%;
    }

    .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-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-col {
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

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