/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0A2E36; /* Main color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-height: 60px; /* Base min-height for desktop */
    color: #fff;
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Accent color */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    color: #fff;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
}

.header-desktop-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-register {
    background-color: #FFD700; /* Accent color */
    color: #0A2E36; /* Main color */
    border: 2px solid #FFD700;
}

.btn-register:hover {
    background-color: #e6c200;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-login {
    background-color: #0A2E36; /* Main color */
    color: #FFD700; /* Accent color */
    border: 2px solid #FFD700;
}

.btn-login:hover {
    background-color: #1a4f5c;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Footer Styles */
.site-footer {
    background-color: #0A2E36; /* Main color */
    color: #f0f0f0;
    padding: 40px 20px;
    border-top: 1px solid #1a4f5c;
    font-size: 14px;
    line-height: 1.6;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Accent color */
    margin-bottom: 15px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-column h3 {
    color: #FFD700; /* Accent color */
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #FFD700;
    padding-bottom: 5px;
}

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

.footer-nav li {
    margin-bottom: 10px;
}

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

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

.contact-info p {
    margin-bottom: 10px;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        min-height: auto; /* Let content dictate height on mobile */
    }

    .header-top-bar {
        justify-content: flex-start;
        padding: 10px 15px;
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        order: 2;
        padding: 0;
    }

    .hamburger-menu {
        display: block;
        order: 1;
        margin-right: 15px;
    }

    .desktop-nav,
    .header-desktop-buttons {
        display: none;
    }

    .header-mobile-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 10px 15px;
        background-color: #0A2E36;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        z-index: 1000; /* Below mobile nav when open */
    }

    .mobile-nav {
        position: absolute;
        top: calc(var(--header-height, 100px) + var(--mobile-buttons-height, 60px)); /* Dynamically set by JS */
        left: 0;
        width: 100%;
        background-color: #0A2E36;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        padding: 20px 0;
        text-align: center;
    }

    .mobile-nav.active {
        display: block;
    }

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

    .mobile-nav li {
        margin-bottom: 15px;
    }

    .mobile-nav a {
        color: #fff;
        font-size: 18px;
        padding: 10px 0;
        display: block;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .mobile-nav a:hover,
    .mobile-nav a.active {
        background-color: #1a4f5c;
        color: #FFD700;
    }

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

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

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

    .footer-column h3 {
        text-align: center;
    }
}
