/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Use shared background variable */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-sports__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-sports__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken video for text readability, no color change */
    cursor: pointer; /* Indicate video is clickable */
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for content */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #333333;
}

.page-sports__hero-title {
    font-size: 3.2em;
    color: #26A9E0; /* Brand primary color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 30px;
}

.page-sports__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styles */
.page-sports__section {
    padding: 80px 20px;
    text-align: center;
}

.page-sports__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Default title color */
}

.page-sports__section-title--white {
    color: #ffffff;
}

.page-sports__section-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #666666;
}

.page-sports__section-subtitle--white {
    color: #f0f0f0;
}

/* Content Grid */
.page-sports__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-sports__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-sports__content-text {
    flex: 1;
}

.page-sports__content-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-sports__content-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card Grid */
.page-sports__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-sports__card:hover {
    transform: translateY(-5px);
}

.page-sports__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-sports__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* How-to-Join Steps */
.page-sports__step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-sports__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    background-color: #e6f7ff; /* Light background for numbers */
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__step-description {
    font-size: 1em;
    color: #555555;
}

.page-sports__cta-center {
    margin-top: 50px;
    text-align: center;
}

/* Features Section */
.page-sports__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-sports__feature-icon {
    width: 200px; /* Min size as per requirement */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center the icon */
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-sports__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__feature-description {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-sports__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-sports__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-sports__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1em;
    color: #555555;
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
    background-color: #1a7fb0;
    border-color: #1a7fb0;
}

.page-sports__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #e6f7ff;
    color: #26A9E0;
}

.page-sports__btn-link {
    background: none;
    color: #26A9E0;
    border: none;
    padding: 0;
    margin-top: 15px;
    text-decoration: underline;
}

.page-sports__btn-link:hover {
    color: #1a7fb0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__content-grid {
        flex-direction: column;
    }
    .page-sports__content-grid--reverse {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__hero-section {
        height: auto;
        min-height: 70vh;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-sports__hero-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* General section padding */
    .page-sports__section {
        padding: 60px 15px;
    }
    .page-sports__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-subtitle {
        font-size: 1em;
    }

    /* Image responsive */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__content-image,
    .page-sports__card-image,
    .page-sports__image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsive */
    .page-sports video,
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Button responsive */
    .page-sports__cta-button,
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-cta-buttons,
    .page-sports__cta-center .page-sports__btn-primary,
    .page-sports__faq-answer .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-sports__hero-cta-buttons,
    .page-sports__faq-answer .page-sports__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Card responsive */
    .page-sports__card {
        padding: 25px;
    }

    /* Feature icons - ensure they are not too small */
    .page-sports__feature-icon {
        width: 200px !important; /* Must be >= 200px */
        height: 200px !important;
    }

    /* FAQ responsive */
    .page-sports__faq-item summary {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px 18px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-content {
        padding: 25px 15px;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__hero-cta-buttons {
        gap: 10px;
    }
}

/* Contrast fix if needed - these classes are for emergency fixes,
   not to be applied generally unless contrast fails */
.page-sports__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-sports__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}