/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333;
}

/* Site Header */
.site-header {
    background-color: #333333;
    color: #ffffff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: #CC0000;
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.logo:hover {
    color: #FF6666; /* Lighter red on hover */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.current-page {
    color: #CC0000;
    border-bottom-color: #CC0000;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Rotate first bar */
.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* Fade out second bar */
.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

/* Rotate third bar */
.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Site Footer */
.site-footer {
    background-color: #333333;
    color: #ffffff;
    padding: 3rem 2rem;
    font-size: 0.9rem;
}

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

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

.footer-heading {
    color: #CC0000;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
    color: #cccccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: #CC0000;
}

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

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444444;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.copyright {
    color: #cccccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 2rem;
    }

    .hamburger-menu {
        display: block;
    }

    .main-nav {
        flex-basis: 100%;
        order: 3; /* Push nav below logo and hamburger */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .main-nav.is-active {
        max-height: 500px; /* Adjust as needed for content, ensure it covers all links */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .main-nav ul li {
        margin: 0.5rem 0;
    }

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

    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 1.5rem;
    }

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