/* ============================= */
/* Global Styles and Reset */
/* ============================= */
:root {
    --primary-color: #9c0b2f;
    --primary-color-gradient-start: #9c0b2f;
    --primary-color-gradient-end: #004aad;
    --secondary-color: #004aad;
    --accent-color-light: #ffcccb;
    --text-light: #ffffff;
    --text-dark: #222;
    --text-muted-light: rgba(255, 255, 255, 0.85);
    --text-placeholder: #6c757d;
    --background-body: #f4f6fc;
    --background-light: #f9fafc;
    --background-white: #ffffff;
    --background-footer: #001f3f;
    --button-cta-primary-bg: var(--text-light);
    --button-cta-primary-text: var(--primary-color);
    --button-cta-primary-hover-bg: #f1f1f1;
    --button-cta-secondary-bg: var(--secondary-color);
    --button-cta-secondary-text: var(--text-light);
    --button-cta-secondary-hover-bg: #003087;
    --button-form-bg: var(--secondary-color);
    --button-form-hover-bg: #003087;
    --slider-control-bg: rgba(0, 0, 0, 0.5);
    --slider-control-hover-bg: rgba(0, 0, 0, 0.8);
    --slider-dot-bg: rgba(255, 255, 255, 0.5);
    --slider-dot-active-bg: var(--text-light);
    --feature-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --testimonial-box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --platform-tag-bg: #e9ecef;
    --platform-tag-text: #495057;
    --platform-tag-border: #dee2e6;
    --font-family-default: 'Montserrat', sans-serif;
    --line-height-default: 1.6;
    --focus-outline-color: #007bff;
    --blue-section-bg: #004aad;
    --bar-opacity: 0.9; /* Slightly reduce opacity for bars */

    /* RGB values for gradients to use with rgba() */
    --primary-color-gradient-start-rgb: 156, 11, 47; 
    --primary-color-rgb: 156, 11, 47;
    --secondary-color-rgb: 0, 74, 173;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body {
    font-family: var(--font-family-default);
    background-color: var(--background-body);
    color: var(--text-dark);
    line-height: var(--line-height-default);
    position: relative;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
    z-index: 9999;
    text-decoration: none;
    border-bottom-right-radius: 5px;
}
.skip-link:focus {
    top: 0;
}

/* Custom Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.slider-dot:focus-visible {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.25);
}
input:focus-visible, textarea:focus-visible {
    border-color: var(--focus-outline-color);
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ============================= */
/* Header Styles |cite: 2]*/
/* ============================= */
header {
    background: linear-gradient(90deg, var(--primary-color-gradient-start), var(--primary-color-gradient-end));
    padding: 1rem 0;
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.logo img {
    height: 50px;
    display: block;
}

nav#main-navigation {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

nav#main-navigation.mobile-nav-active {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a3c6d, var(--primary-color));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    padding-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow-y: auto;
    align-items: flex-start;
    box-sizing: border-box;
}

nav#main-navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav#main-navigation.mobile-nav-active a.nav-link {
    padding: 0.5rem 0;
    margin-top: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
}

nav#main-navigation.mobile-nav-active a.nav-link:first-of-type {
    margin-top: 3rem;
}

nav#main-navigation a:hover {
    color: var(--accent-color-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
    transition: fill 0.3s ease;
}

.social-icons a:hover svg {
    fill: var(--accent-color-light);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 1.5rem;
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    z-index: 1002;
}

.close-menu-button {
    display: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 1.5rem;
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    z-index: 1003;
}

.mobile-menu-footer {
    display: none;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

nav#main-navigation.mobile-nav-active .mobile-menu-footer {
    display: block;
    color: var(--text-muted-light);
}

/* ============================= */
/* Hero Slider Styles |cite: 2]*/
/* ============================= */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(1) { background-image: url('images/matespicks-stadium.jpg'); background-repeat: no-repeat; background-position: center center; background-size: cover; }
.hero-slide:nth-child(2) { background-image: url('images/matespicks-stadium2.jpg'); background-repeat: no-repeat; background-position: center center; background-size: cover; }
.hero-slide:nth-child(3) { background-image: url('images/matespicks-banter.jpg'); background-repeat: no-repeat; background-position: center center; background-size: cover; }
.hero-slide:nth-child(4) { background-image: url('images/matespicks-ground.jpg'); background-repeat: no-repeat; background-position: center center; background-size: cover; }

.hero-slide h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.hero-slide h2 { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2rem; font-weight: normal; }

.cta-btn, .read-more-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 auto;
}

.cta-btn {
    background: var(--button-cta-primary-bg);
    color: var(--button-cta-primary-text);
}
.cta-btn:hover { background: var(--button-cta-primary-hover-bg); }

.read-more-btn {
    background: var(--button-cta-secondary-bg);
    color: var(--button-cta-secondary-text);
}
.read-more-btn:hover { background: var(--button-cta-secondary-hover-bg); }

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    box-sizing: border-box;
    z-index: 10;
}

.slider-controls button {
    background: var(--slider-control-bg);
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}
.slider-controls button:hover { background: var(--slider-control-hover-bg); }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.hero-slider:has(#hero-pause-play) .slider-dots {
    bottom: 50px;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--slider-dot-bg);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    padding: 0;
    border: none;
}
.slider-dot.active { background: var(--slider-dot-active-bg); }

.slider-pause-play-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 15;
    background: var(--slider-control-bg);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.slider-pause-play-button svg {
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    fill: currentColor;
}
.slider-pause-play-button:hover { background: var(--slider-control-hover-bg); }


/* ============================= */
/* Features Section |cite: 2]*/
/* ============================= */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 5rem 2rem;
    background: var(--background-white);
    margin-top: 0;
}

.feature-box {
    flex: 1 1 300px;
    max-width: 300px;
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--feature-box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}
.feature-box:hover { transform: translateY(-5px); }

.feature-box svg { width: 60px; height: 60px; margin-bottom: 1.2rem; }
.feature-box svg path { fill: var(--primary-color); }

.feature-box h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.feature-box p { font-size: 1rem; }

/* ============================= */
/* In-App Screens Section |cite: 2]*/
/* ============================= */
.in-app-content {
    padding: 5rem 2rem;
    background: linear-gradient(to right, var(--primary-color-gradient-start), var(--primary-color-gradient-end));
    color: var(--text-light);
    text-align: center;
    margin-top: 0;
}
.in-app-content h2 { font-size: 2rem; margin-bottom: 2rem; }
.zoomable { position: relative; display: inline-block; }
.zoomable:hover { transform: scale(1.05); }
.zoom-icon-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 1.2em;
    pointer-events: none;
}

.in-app-screens-wrapper { width: 100%; max-width: 300px; margin: 0 auto; position: relative; overflow: hidden; user-select: none;}
.in-app-screens-inner { display: flex; transition: transform 0.5s ease; gap: 1.5rem; }
.in-app-screens-inner a { flex: 0 0 100%; position: relative; }
.in-app-screens-inner a img { border-radius: 20px !important; width: 100%; height: auto; display: block; }

.in-app-screens-controls {
    display: flex; justify-content: space-between; position: absolute; top: 50%; left: 0; right: 0;
    transform: translateY(-50%); padding: 0 0.5rem; z-index: 10;
}
.in-app-screens-controls button {
    background: var(--slider-control-bg); border: none; color: var(--text-light); font-size: 1.2rem;
    padding: 0.3rem 0.8rem; cursor: pointer; border-radius: 5px;
}
.in-app-screens-controls button:hover { background: var(--slider-control-hover-bg); }

/* GLightbox Customizations */
.gclose {
    left: 20px !important;
    right: auto !important;
    transform: scale(1.5) !important;
}


/* ============================= */
/* Generic Section Styles |cite: 2]*/
/* ============================= */
.section {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--background-light);
    margin-top: 0;
}
#main-content {
    /* No specific styles needed unless for targeting */
}

.section h2 { font-size: 2rem; margin-bottom: 1.2rem; color: var(--primary-color); }
.section p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; }
.section img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* ============================= */
/* Sports Calendar Section |cite: 2]*/
/* ============================= */
.sports-calendar-section {
    padding: 5rem 2rem;
    background: linear-gradient(to right, var(--primary-color-gradient-start), var(--primary-color-gradient-end));
    color: var(--text-light);
    text-align: center;
    margin-top: 0;
}

.sports-calendar-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.sports-calendar-section .table-container {
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.sports-calendar-section table {
    width: 100%;
    border-collapse: separate; /* Allow border-radius on cells */
    border-spacing: 0; /* Remove space between cells */
    font-size: 14px;
    color: var(--text-dark);
    min-width: 600px;
}

.sports-calendar-section th,
.sports-calendar-section td {
    border: none; /* Remove all borders from individual cells */
    padding: 8px;
    text-align: center;
    height: 30px;
    position: relative;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.sports-calendar-section thead th {
    background-color: var(--background-light);
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 1px solid #ccc; /* Keep a bottom border for header row */
}
.sports-calendar-section thead th:first-child {
    border-top-left-radius: 8px;
}
.sports-calendar-section thead th:last-child {
    border-top-right-radius: 8px;
}

.sports-calendar-section tbody tr:not(:last-child) td {
    border-bottom: 1px solid #eee; /* Light horizontal line between rows */
}

.sports-calendar-section .sport-name {
    text-align: left;
    background-color: var(--background-light);
    font-weight: bold;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #eee; /* Vertical separator for the sport name column */
    color: #333; /* Dark grey for sport names */
}

.sports-calendar-section .sport-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    font-size: 24px;
}

/* New merged bar style */
.sports-calendar-section td.season-finals-bar {
    padding: 0; /* Remove internal padding to make gradient fill entirely */
    height: 30px; /* Ensure consistent height for bars */
    text-align: left; /* Align text to left of the bar */
    line-height: 30px; /* Vertically center content */
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-light); /* Text color for content within the bar */
    font-weight: bold;
    background: linear-gradient(to right,
        rgba(var(--primary-color-gradient-start-rgb), var(--bar-opacity)),
        rgba(var(--secondary-color-rgb), var(--bar-opacity))
    );
    display: table-cell; /* Ensure it behaves like a table cell for layout */
    vertical-align: middle; /* Center content vertically */
    position: relative; /* For icon absolute positioning */
}

.sports-calendar-section td.season-finals-bar .season-text {
    padding-left: 8px; /* Padding for 'Season' text at the start of the bar */
}

.sports-calendar-section .finals-icon {
    /* position: absolute; This caused issues with layout in merged cells */
    /* right: 8px; */ /* This caused issues with layout in merged cells */
    float: right; /* Use float to push to right while remaining in flow */
    margin-right: 8px; /* Padding for icon at the end of the bar */
    font-size: 1.2em; /* Make icon slightly larger */
    vertical-align: middle; /* Align icon vertically */
    line-height: 30px; /* Match parent line-height for vertical centering */
}

/* Rounded corners for the "bars" */
/* Apply to the combined season-finals-bar */
.sports-calendar-section td.season-finals-bar.start-round {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sports-calendar-section td.season-finals-bar.end-round {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Ensure no default border-radius for non-rounded cells */
.sports-calendar-section td:not(.season-finals-bar) {
    border-radius: 0;
}


/* ============================= */
/* User Feed Section |cite: 2]*/
/* ============================= */
.user-feed { background: var(--background-white); padding: 5rem 2rem; text-align: center; margin-top: 0; }
.user-feed h2 { color: var(--primary-color); font-size: 2rem; margin-bottom: 2rem; }

.user-cards-wrapper { width: 100%; max-width: 300px; margin: 0 auto; position: relative; overflow: hidden; user-select: none;}
.user-cards-inner { display: flex; transition: transform 0.5s ease; gap: 1.5rem; }
.user-cards-inner .user-card { flex: 0 0 100%; }

.user-cards-controls {
    display: flex; justify-content: space-between; position: absolute; top: 50%; left: 0; right: 0;
    transform: translateY(-50%); padding: 0 0.5rem; z-index: 10;
}
.user-cards-controls button {
    background: var(--slider-control-bg); border: none; color: var(--text-light); font-size: 1.2rem;
    padding: 0.3rem 0.8rem; cursor: pointer; border-radius: 5px;
}
.user-cards-controls button:hover { background: var(--slider-control-hover-bg); }

.user-card {
    background: var(--background-body);
    border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: var(--card-shadow);
    display: flex; flex-direction: column; align-items: center;
}
.user-card:hover { transform: translateY(-5px); }

/* User Avatars - Border Removed */
.user-avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 1rem;
    order: 1;
    /* border: 2px solid var(--secondary-color); REMOVED */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-card .sport-team-logos {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    order: 2;
    align-items: center;
}
.user-card .sport-team-logos img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}
.user-card .location-info {
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem;
    font-size: 0.8rem; color: #555; order: 4;
}
.user-card .location-info svg { margin-right: 0.3rem; fill: #777; }
.user-card h4 { margin-bottom: 0.2rem; font-size: 1.1rem; color: var(--secondary-color); order: 3; }
.user-card > p { font-size: 0.9rem; order: 5; }


/* ============================= */
/* Testimonials Section ("Users Love Our Apps!") |cite: 2]*/
/* ============================= */
.testimonials-section {
    background: var(--background-light);
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 0;
}
.testimonials-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.testimonials-section .subtitle {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}
.testimonials-wrapper { width: 100%; max-width: 400px; margin: 0 auto; position: relative; overflow: hidden; user-select: none;}
.testimonials-inner { display: flex; gap: 2rem; transition: transform 0.5s ease; }
.testimonials-inner > div {
    flex: 0 0 100%; background: var(--background-white); border-radius: 12px; padding: 2rem;
    box-shadow: var(--testimonial-box-shadow); display: flex; flex-direction: column; align-items: center;
}

/* Testimonial Avatars (Users Love Our Apps!) - Border Removed */
.testimonials-inner > div .testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    /* border: 2px solid var(--primary-color); REMOVED */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonials-inner > div svg.quote-icon path { fill: var(--secondary-color); }
.testimonials-inner > div svg.quote-icon { margin-bottom: 0.5rem; }


.platform-icons { margin-top: 0.75rem; display: flex; gap: 0.5rem; justify-content: center; }
.platform-tag {
    font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 4px;
    background-color: var(--platform-tag-bg); color: var(--platform-tag-text);
    border: 1px solid var(--platform-tag-border); display: inline-block;
}

.testimonials-controls {
    display: flex; justify-content: space-between; position: absolute; top: 50%; left: 0; right: 0;
    transform: translateY(-50%); padding: 0 0.5rem; z-index: 10;
}
.testimonials-controls button {
    background: var(--slider-control-bg); border: none; color: var(--text-light); font-size: 1.2rem;
    padding: 0.3rem 0.8rem; cursor: pointer; border-radius: 5px;
}
.testimonials-controls button:hover { background: var(--slider-control-hover-bg); }

/* ============================= */
/* Testimonials Carousel (ID based - "Fan Feedback") |cite: 2]*/
/* ============================= */
.fan-feedback-section {
    background: var(--background-body);
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 0;
}
.fan-feedback-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
#carousel-wrapper { overflow: hidden; max-width: 100%; margin: 0 auto; position: relative; user-select: none;}
#carousel-inner { display: flex; transition: transform 0.5s ease; gap: 1.5rem; }
.testimonial-card {
    min-width: 100%; padding: 2rem; background: var(--background-white); border-radius: 12px;
    box-shadow: var(--card-shadow); flex: 0 0 100%; display: flex; flex-direction: column; align-items: center;
}

/* Testimonial Avatars (Fan Feedback) - Border Removed */
.testimonial-card .testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    /* border: 2px solid var(--primary-color); REMOVED */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#carousel-navigation-buttons {
    margin-top: 1.5rem;
}
#carousel-navigation-buttons button {
    margin: 0 0.5rem; padding: 0.5rem 1rem; border-radius: 8px; border: none;
    background-color: var(--slider-control-bg); color: var(--text-light);
    cursor: pointer; font-size: 1.2rem;
}
.testimonial-card .testimonial-img + p { /* Adjusted selector for spacing if needed */
    margin-top: 1rem;
}
#carousel-navigation-buttons button:hover { background-color: var(--slider-control-hover-bg); }

/* ============================= */
/* Form Section |cite: 2]*/
/* ============================= */
.form-section {
    background: linear-gradient(to right, var(--primary-color-gradient-start), var(--primary-color-gradient-end));
    color: var(--text-light); padding: 5rem 2rem; text-align: center; margin-top: 0;
}
.form-section h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.form-section form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.form-section input, .form-section textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family-default);
    color: var(--text-dark);
}
.form-section input::placeholder, .form-section textarea::placeholder {
    color: var(--text-placeholder);
    font-family: var(--font-family-default);
}
.form-section button {
    background: var(--button-form-bg);
    color: var(--text-light);
    padding: 1rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: background-color 0.3s ease;
}
.form-section button:hover { background: var(--button-form-hover-bg); }
.form-section button.submitting {
    background: #003087;
    color: transparent;
}
.form-section button .submit-text { transition: opacity 0.2s ease; }
.form-section button.submitting .submit-text { opacity: 0; }

.dots-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
}
.form-section button.submitting .dots-loader { display: flex; }
.dots-loader div {
    width: 8px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 50%;
    margin: 0 3px;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}
.dots-loader div:nth-child(1) { animation-delay: -0.32s; }
.dots-loader div:nth-child(2) { animation-delay: -0.16s; }
@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Form Status Message Styling */
#my-form-status {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color); /* Default color for success */
    text-align: center;
    min-height: 1.5em; /* Reserve space to prevent layout shift */
    line-height: 1.5em; /* Ensure single line messages fit */
    opacity: 1; /* Ensure it's visible by default */
    transition: opacity 0.3s ease; /* Smooth transition for status messages */
}


/* ============================= */
/* Footer Styles |cite: 2]*/
/* ============================= */
footer {
    background: var(--background-footer); color: var(--text-light); padding: 3rem 2rem;
    text-align: left; margin-top: 0;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}
.footer-column { flex: 1; min-width: 200px; }
.footer-column h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--accent-color-light); }
.footer-column p, .footer-column a { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.5rem; text-decoration: none; }
.footer-column a { display: block; }
.footer-column a:hover { color: var(--accent-color-light); }
.footer-column .footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
    display: block;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}
.footer-bottom a { color: var(--accent-color-light) !important; text-decoration: none; }


/* ============================= */
/* Divider Styles |cite: 2]*/
/* ============================= */
.divider {
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23ffffff" fill-opacity="1" d="M0,96L40,90.7C80,85,160,75,240,90.7C320,107,400,149,480,154.7C560,160,640,128,720,128C800,128,880,160,960,165.3C1040,171,1120,149,1200,149.3C1280,149,1360,171,1400,181.3L1440,192L1440,0L1400,0C1360,0,1280,0,1200,0C1120,0,1040,0,960,0C880,0,800,0,720,0C640,0,560,0,480,0C400,0,320,0,240,0C160,0,80,0,40,0L0,0Z"%3E%3C/path%3E%3C/svg%3E') no-repeat center center;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* Back to Top Button |cite: 2]*/
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.1s linear, opacity 0.3s, visibility 0.3s;
}
#back-to-top.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}
#back-to-top.on-blue-bg {
    background-color: white;
    color: var(--blue-section-bg);
}


/* ============================= */
/* Responsive Styles |cite: 2]*/
/* ============================= */
@media (min-width: 769px) {
    /* Ensure content is visible on desktop */
    .in-app-content,
    .user-feed,
    .testimonials-section,
    .fan-feedback-section {
        display: block; /* Or 'flex' as appropriate for layout */
    }

    .in-app-screens-wrapper { max-width: 100%; overflow: visible; }
    .in-app-screens-inner { display: flex; flex-wrap: wrap; justify-content: center; transform: none !important; gap: 2rem; }
    .in-app-screens-inner a { flex: 0 0 auto; max-width: 200px; }
    .in-app-screens-controls { display: none; }

    .user-cards-wrapper { max-width: 1200px; overflow: visible; }
    .user-cards-inner { display: flex; flex-wrap: wrap; justify-content: center; transform: none !important; gap: 2rem; }
    .user-cards-inner .user-card { flex: 1 1 250px; max-width: 300px; }
    .user-cards-controls { display: none; }

    .testimonials-wrapper { max-width: 1200px; overflow: visible; }
    .testimonials-inner { display: flex; flex-wrap: wrap; justify-content: center; transform: none !important; gap: 2rem; }
    .testimonials-inner > div { flex: 1 1 400px; max-width: 450px; }
    .testimonials-controls { display: none; }

    #carousel-wrapper { max-width: 1200px; overflow: visible; }
    #carousel-inner { display: flex; flex-wrap: wrap; justify-content: center; transform: none !important; gap: 2rem; }
    .testimonial-card { flex: 1 1 350px; max-width: 400px; min-width: 0; }
    #carousel-navigation-buttons { display: none !important; }

    /* Left justify logo on desktop */
    .header-inner .logo {
        position: static;
        transform: none;
        margin-right: auto; /* Pushes logo to the left, taking precedence */
    }
    /* Make logo slightly smaller on desktop */
    .header-inner .logo img {
        height: 40px; /* Slightly smaller */
    }

    /* Center menu items on desktop */
    nav#main-navigation {
        display: flex; /* Ensure it's a flex container */
        justify-content: center; /* Center the menu items */
        flex-grow: 1; /* Allow navigation to take available space */
    }
}

@media (max-width: 768px) {
    .header-inner { justify-content: space-between; }
    nav#main-navigation { display:none; }
    .header-right { display: none; }
    .logo { position: absolute; left: 50%; transform: translateX(calc(-50% + 30px)); z-index: 1; }
    .logo img { height: 36px; }
    .mobile-menu-button { display: block; margin-right: 5px; }

    .hero-slider { min-height: 400px; }
    .hero-slider:has(#hero-pause-play) .slider-dots {
        bottom: 50px;
    }
    .slider-pause-play-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        bottom: 10px;
        right: 10px;
    }

    .hero-slide { padding: 3rem 1rem; }
    .hero-slide h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .hero-slide h2 { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .cta-btn, .read-more-btn { padding: 0.75rem 1.75rem; font-size: 0.9rem; }
    .slider-controls { padding: 0 0.5rem; }
    .slider-controls button { font-size: 1rem; padding: 0.2rem 0.5rem; }
    .slider-dots { bottom: 10px; }
    .slider-dot { width: 8px; height: 8px; margin: 0 3px; }

    .features { padding: 3rem 1rem; gap: 1.5rem; }
    .feature-box { flex: 1 1 100%; max-width: 100%; padding: 1.5rem; }
    .feature-box svg { width: 40px; height: 40px; }
    .feature-box h3 { font-size: 1.1rem; }
    .feature-box p { font-size: 0.9rem; }

    .in-app-content { padding: 3rem 1rem; }
    .in-app-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .in-app-screens-wrapper { max-width: 250px; }
    .in-app-screens-controls { display: flex; }
    .in-app-screens-controls button { font-size: 1rem; padding: 0.2rem 0.5rem; }

    .section { padding: 3rem 1rem; }
    .section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .section p { font-size: 0.9rem; }

    .sports-calendar-section { padding: 3rem 1rem; }
    .sports-calendar-section h2 { font-size: 1.5rem; }
    .sports-calendar-section .table-container { padding: 15px; }
    .sports-calendar-section table { font-size: 12px; }
    /* Adjusted for merged cells, no individual cell padding, line-height for text centering */
    .sports-calendar-section th, .sports-calendar-section td { padding: 6px; height: auto; }
    .sports-calendar-section td.season-finals-bar { height: 25px; line-height: 25px; } /* Smaller bar height on mobile */
    .sports-calendar-section .sport-icon { font-size: 20px; }


    .user-feed { padding: 3rem 1rem; }
    .user-feed h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .user-cards-wrapper { max-width: 280px; }
    .user-cards-controls { display: flex; }
    .user-cards-controls button { font-size: 1rem; padding: 0.2rem 0.5rem; }
    .user-card { padding: 1.25rem; }
    .user-card .avatar-placeholder { width: 60px; height: 60px; } /* This block is now unused */
    .user-card h4 { font-size: 1rem; }
    .user-card p { font-size: 0.8rem; }

    .testimonials-section { padding: 3rem 1rem; }
    .testimonials-section h2 { font-size: 1.5rem; }
    .testimonials-section .subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .testimonials-wrapper { max-width: 280px; }
    .testimonials-inner > div { padding: 1.5rem; }
    .testimonials-inner p { font-size: 0.9rem; margin: 0.75rem 0; }
    .testimonials-inner strong { font-size: 0.9rem; }
    .testimonials-controls { display: flex; }
    .testimonials-controls button { font-size: 1rem; padding: 0.2rem 0.5rem; }

    .fan-feedback-section { padding: 3rem 1rem; }
    .fan-feedback-section h2 { font-size: 1.5rem; }
    #carousel-wrapper { max-width: 280px; }
    #carousel-inner { gap: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .testimonial-card p { font-size: 0.9rem; }
    .testimonial-card strong { font-size: 0.9rem; }
    #carousel-navigation-buttons { display: block !important; text-align: center; margin-top: 1.5rem; }

    .form-section { padding: 3rem 1rem; }
    .form-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
    .form-section p { font-size: 0.9rem; }
    .form-section form { padding: 1.5rem; }
    .form-section input, .form-section textarea { padding: 0.8rem; font-size: 1rem; border-radius: 8px; }
    .form-section button { padding: 0.8rem; font-size: 1rem; border-radius: 25px; }

    footer { padding: 2rem 1rem; }
    .footer-container { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-column h3 { font-size: 1.1rem; }
    .footer-column p, .footer-column a { font-size: 0.8rem; display: block; }
    .footer-column .footer-logo img { margin: 0 auto 1rem; }
    .footer-column .social-icons { justify-content: center; }
    .footer-bottom { margin-top: 1.5rem; font-size: 0.8rem; }

    .divider { height: 40px; }

    #back-to-top { width: 40px; height: 40px; font-size: 20px; bottom: 15px; right: 15px;}
}