/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

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

/* Variables */
:root {
    --primary-color: #0A2342; /* Dark Blue */
    --accent-color: #E0B400; /* Gold/Yellow */
    --text-light: #fff;
    --text-dark: #333;
    --header-height: 60px;
}

/* Site Header */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color); /* M88 logo in accent color */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #ffd700; /* Slightly brighter gold on hover */
}

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

.site-header .main-nav .nav-list li {
    margin-left: 30px;
}

.site-header .main-nav .nav-list a {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.site-header .main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

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

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

.site-header .btn:hover {
    background-color: #ffd700;
    color: var(--primary-color);
}

.site-header .hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

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

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

/* Hamburger menu active state */
.site-header .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.site-header .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.site-header .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Site Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #c0c0c0;
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

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

.site-footer .footer-column h3 {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

.site-footer .footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.site-footer .footer-nav a,
.site-footer .footer-contact a {
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-contact a:hover {
    color: var(--accent-color);
}

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

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

.site-footer .copyright {
    margin: 0;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-header .main-nav .nav-list li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .site-header .main-nav {
        display: none; /* Hide main nav by default on mobile */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        z-index: 999;
        max-height: 0; /* For smooth transition */
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .site-header .main-nav.active {
        display: flex; /* Show when active */
        max-height: 500px; /* Adjust as needed for content */
    }

    .site-header .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .site-header .main-nav .nav-list li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .site-header .main-nav .nav-list a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-header .main-nav .nav-list a::after {
        display: none; /* Remove underline animation on mobile */
    }

    .site-header .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    .site-header .header-actions {
        order: 3; /* Move actions to the right of hamburger */
    }
    
    .site-header .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-footer .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .site-footer .footer-column {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    
    .site-footer .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer .footer-nav {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 24px;
    }
    .site-header .btn {
        padding: 6px 10px;
        font-size: 13px;
        margin-left: 5px;
    }
    .site-header .hamburger-menu {
        margin-left: 10px;
    }
    .site-footer {
        padding: 30px 15px 15px;
    }
}