/* Base styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1A202C; /* Primary dark color */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Stack top, buttons, nav on mobile */
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 50px;
}

.logo {
    color: #FFD700; /* Secondary accent color */
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    text-align: left;
    flex-grow: 1;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other elements */
}

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

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #FFD700;
}

.header-buttons {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    justify-content: flex-end; /* Align right on desktop */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1A202C;
}

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

.btn-secondary {
    background-color: #00BFFF; /* Deep Sky Blue */
    color: #fff;
}

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

/* Footer styles */
.site-footer {
    background-color: #1A202C; /* Primary dark color */
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9em;
    margin-top: 50px; /* To prevent fixed header from overlapping content */
}

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

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

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

.footer-section p, .footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .header-top {
        justify-content: space-between;
        padding: 10px 15px;
        min-height: 50px;
    }

    .hamburger-menu {
        display: block;
    }

    .logo {
        text-align: center;
        flex-grow: 1;
        margin: 0;
        order: 2; /* Move logo to center */
    }

    .empty-space {
        order: 3; /* Push empty space to right */
        width: 45px; /* Match hamburger width for alignment */
    }

    .main-nav {
        display: block; /* Always block for transition */
        position: absolute;
        top: 100%; /* Position below the current header height */
        left: 0;
        width: 100%;
        background-color: #1A202C;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: 0; /* Start hidden */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .site-header.nav-open .main-nav {
        max-height: 500px; /* Or a suitable max-height to show all items */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .main-nav li {
        width: 100%;
        margin: 0;
    }

    .main-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .header-buttons {
        justify-content: center;
        padding: 10px 15px;
        background-color: #1A202C; /* Ensure background consistency */
        z-index: 1000; /* Below hamburger, above main content */
    }

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

    .footer-section {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .footer-section ul {
        padding-left: 0;
    }
}

/* Hamburger menu animation */
.site-header.nav-open .hamburger-menu .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .hamburger-menu .bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .hamburger-menu .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
