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

/* Fonts */
.montserrat-regular { font-family: "Montserrat", sans-serif; font-weight: 400; }
.montserrat-bold { font-family: "Montserrat", sans-serif; font-weight: 700; }
.oswald-regular { font-family: "Oswald", sans-serif; font-weight: 400; }

/* Colors from User */
:root {
    --primary: #054721;
    --secondary: #9E2014;
    --tertiary: #FCBE00;
    --bg-color: var(--primary);
    --text-dark: #333;
    --text-light: #fff;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.text-white { color: var(--text-light) !important; }

/* Header Area with Glassmorphism */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,71,33,0.1), rgba(0,0,0,0.4));
}

.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 950px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-overlay-card {
    margin: -120px auto 40px auto;
    position: relative;
    z-index: 20;
}

/* ... */

.hero-title {
    font-size: 3em;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--tertiary) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px auto 0 auto;
    max-width: 600px;
}

@media (max-width: 600px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

.hero-metrics div {
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    border-left: 4px solid var(--secondary);
    text-align: left;
}

/* Content Area */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.main-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

.col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.centered-schedule {
    width: calc(60% - 18px);
    margin: 30px auto;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .centered-schedule {
        width: 100%;
    }
}

.card-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-top: 4px solid var(--tertiary);
}

.section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e0e0e0;
}

/* Contact List */
.contact-list div {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-list a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

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

/* Utilities needed by JS */
.optionalInfo { display: none; }
#videoSelectWrapper { display: none; margin-bottom: 15px; }
.videoPlayer { width: 100%; border-radius: 8px; margin-top: 10px; }

/* Schedule Styling (Re-using some from original) */
.teamScheduleBlock {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    background-color: #fafafa;
}

.scheduleTeamName { font-size: 1.2em; margin-bottom: 12px; color: var(--primary); }
.scrollableContainer::-webkit-scrollbar-thumb:active {
    background: #999;
}

/* --- Floating Navigation UI --- */

/* Back to Top Button (Global) */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--tertiary);
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#backToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: #032b14;
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

/* Mobile-Only Navigation Elements */
#mobileNavToggle,
#mobileMenu {
    display: none;
}

@media (max-width: 900px) {
    /* Show Hamburger */
    #mobileNavToggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        z-index: 200;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    #mobileNavToggle span {
        display: block;
        position: absolute;
        left: 10px;
        right: 10px;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
        -webkit-transform-origin: center;
        transform-origin: center;
    }
    
    #mobileNavToggle span:nth-child(1) { top: 12px; }
    #mobileNavToggle span:nth-child(2) { top: 20px; }
    #mobileNavToggle span:nth-child(3) { top: 28px; }

    /* Morphing to X */
    #mobileNavToggle.open span:nth-child(1) {
        top: 20px;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #mobileNavToggle.open span:nth-child(2) {
        opacity: 0;
    }
    #mobileNavToggle.open span:nth-child(3) {
        top: 20px;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    #mobileMenu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 250px;
        height: 50vh;
        background: rgba(5, 71, 33, 0.95); /* Primary Green */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.2);
        z-index: 150;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 20px 20px 20px;
        box-shadow: -5px 5px 20px rgba(0,0,0,0.5);
        border-radius: 0 0 0 16px; /* Rounded bottom-left corner */
        max-width: none;
    }

    #mobileMenu.open {
        right: 0; /* Slide in */
    }

    #mobileMenu a {
        color: #fff;
        font-size: 1.2em;
        text-decoration: none;
        margin: 15px 0;
        font-weight: bold;
        text-transform: uppercase;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s ease;
        font-family: "Montserrat", sans-serif;
    }

    #mobileMenu a:hover,
    #mobileMenu a:active {
        border-bottom: 2px solid var(--tertiary);
    }
    
    /* Adjust Back to Top button on mobile to not overlap */
    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
}
.scrollableContainer { 
    position: relative; 
    max-height: 400px; 
    overflow-y: auto; 
    padding-right: 10px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.scheduleGame { padding: 12px; border-bottom: 1px solid #e0e0e0; font-size: 0.95em; line-height: 1.4; }
.scheduleGame:nth-child(even) { background-color: #fff; }
.scheduleGame:last-child { border-bottom: none; }
.scheduleGameDate { font-weight: bold; }
.nextUpcomingGame { background-color: #fff8e1 !important; border-left: 4px solid var(--tertiary); padding-left: 10px; }
.nextGameBadge { display: inline-block; background-color: var(--tertiary); color: #000; font-size: 0.75em; font-weight: bold; padding: 3px 6px; border-radius: 4px; margin-bottom: 6px; }
.calendarBtn { display: inline-block; margin-top: 6px; padding: 4px 10px; background-color: #eee; border-radius: 4px; text-decoration: none; color: #333; font-size: 0.8em; font-weight: bold; }
.pastGame { color: #888; }
.scheduleHeaderActions { margin-bottom: 15px; }
.globalYoutubeBtn { display: inline-block; background-color: #ff0000; color: #fff !important; padding: 6px 12px; text-decoration: none; border-radius: 4px; font-weight: bold; }
.gcBtn { display: inline-block; margin-top: 6px; padding: 4px 10px; background-color: #333; color: #fff !important; border-radius: 4px; text-decoration: none; font-size: 0.8em; font-weight: bold; }
.liveGcBtn { background-color: var(--secondary); }
.ytReplayBtn { display: inline-block; margin-top: 6px; padding: 4px 10px; background-color: #f4f4f4; border: 1px solid #dcdcdc; border-radius: 4px; text-decoration: none; color: #cc0000 !important; font-size: 0.8em; font-weight: bold; transition: background-color 0.2s ease; }
.ytReplayBtn:hover { background-color: #e0e0e0; }
.scheduleActionButtons { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }

/* News Styling */
.newsCardBlock { padding-top: 10px; }
.newsItem { padding: 15px 0; border-bottom: 1px solid #eee; }
.newsSource { font-weight: bold; font-size: 1.05em; color: var(--primary); }
.newsDateTitle { font-style: italic; color: #666; margin-bottom: 10px; }
.newsArticleBody { display: flex; gap: 15px; align-items: flex-start; }
.newsThumbnail { width: 120px; height: auto; border-radius: 6px; flex-shrink: 0; -o-object-fit: cover; object-fit: cover; }
.newsQuoteBlock { border-left: 3px solid var(--tertiary); padding-left: 12px; color: #444; }
.newsLink { display: inline-block; margin-top: 8px; font-weight: bold; color: var(--secondary); text-decoration: none; }
