/* =========================================
   Reset and Basic Styles
   ========================================= */
html {
    box-sizing: border-box;
    font-size: 16px;
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4; /* Light light background for contrast */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #3d4a3e; /* Darker Olive Drab from the jersey */
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   Helper Classes
   ========================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.button-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7b4e28; /* Brown from the jersey */
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
}

.button-primary:hover {
    background-color: #3d4a3e; /* Darker Olive Drab on hover */
}

/* =========================================
   Site Header
   ========================================= */
.site-header {
    background-color: #8c8f7d; /* Lighter Grey-Olive background from the jersey */
    color: #fff;
    padding: 1rem 0;
}

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

.logo-container {
    width: 160px; /* Base size on mobile */
}

.site-title {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

/* =========================================
   Mobile Navigation (Mobile-First)
   ========================================= */
.main-navigation {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

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

/* Hamburger to X animation when active */
.menu-toggle.active .hamburger-bar:nth-child(2) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
    opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(4) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-list {
    display: none; /* Initially hide on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #7b4e28; /* Brown background for mobile menu */
    padding: 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 9;
}

/* Show menu when active */
.menu-list.active {
    display: block;
}

.menu-list li {
    margin-bottom: 0.5rem;
}

.menu-list a {
    display: block;
    padding: 10px;
    color: #fff;
    font-weight: 500;
}

.menu-list a:hover {
    background-color: #3d4a3e; /* Darker Olive Drab on hover */
}

/* Mobile Sub-menu (inside the list on mobile) */
.menu-list .sub-menu {
    margin-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.menu-list .sub-menu a {
    padding-left: 1rem;
}

/* =========================================
   Main Content Area
   ========================================= */
.site-main {
    padding: 2rem 0;
}

.main-container > section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    text-align: center;
}

.hero-section h2 {
    font-size: 2rem;
}

/* =========================================
   Footer Area
   ========================================= */
.site-footer {
    background-color: #3d4a3e; /* Darker Olive Drab from the jersey */
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* =========================================
   Desktop Responsiveness (Query)
   ========================================= */
@media screen and (min-width: 768px) {
    
    .logo-container {
        width: 200px; /* Larger logo on desktop */
    }
    
    .site-title {
        font-size: 2rem; /* Larger title */
    }

    /* Reset mobile menu items */
    .menu-toggle {
        display: none; /* Hide hamburger */
    }

    .menu-list {
        display: flex; /* Display as flex row */
        position: static; /* Standard positioning */
        background-color: transparent; /* Remove background color */
        padding: 0;
        border-radius: 0;
        width: auto;
    }

    .menu-list li {
        margin-bottom: 0;
        margin-left: 1.5rem;
        position: relative; /* Base for dropdown submenus */
    }

    .menu-list a {
        display: inline;
        padding: 0.5rem 0;
        color: #fff;
    }

    .menu-list a:hover {
        background-color: transparent;
        border-bottom: 2px solid #7b4e28; /* Brown underline hover effect */
    }

    /* Desktop Dropdown Sub-menus */
    .menu-list .sub-menu {
        display: none; /* Initially hide */
        position: absolute;
        top: 100%;
        left: 0;
        width: 200px;
        background-color: #7b4e28; /* Brown background for dropdown */
        padding: 0.5rem 0;
        border-radius: 0 0 4px 4px;
        z-index: 10;
    }

    /* Show on hover for desktop */
    .menu-item-has-children:hover .sub-menu {
        display: block;
    }

    .menu-list .sub-menu li {
        margin: 0;
        display: block;
    }

    .menu-list .sub-menu a {
        display: block;
        padding: 10px 20px;
        color: #fff;
    }

    .menu-list .sub-menu a:hover {
        background-color: #3d4a3e; /* Darker Olive Drab on sub-menu hover */
        border-bottom: none; /* Remove underline for submenus */
    }
}