/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Background color from palette */
    color: #F2FFF6; /* Main text color from palette for dark background */
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Video above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width * 100%) */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    box-sizing: border-box;
    border-radius: 10px;
}

.page-sports__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.page-sports__hero-content {
    position: relative; 
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__main-title {
    font-size: clamp(2rem, 4vw, 3rem); /* H1 font-size clamp */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-sports__hero-description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main for button */\    border: none;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Text Main for button */
    border: 2px solid #2AD16F;
}

.page-sports__btn-secondary:hover {
    background: #2AD16F;
    color: #08160F;
    transform: translateY(-2px);
}

.page-sports__btn-link {
    display: inline-block;
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-sports__btn-link:hover {
    color: #F2C14E; /* Gold color on hover */
}

.page-sports__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
}

/* General Section Styling */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
    color: #F2FFF6; /* Text Main */
}

.page-sports__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
    text-align: justify;
}

.page-sports__dark-section {
    background-color: #11271B; /* Card BG */
    padding: 60px 0;
    color: #F2FFF6; /* Text Main */
}

.page-sports__light-bg {
    background-color: #08160F; /* Background color, still dark, but distinct */
    padding: 60px 0;
    color: #F2FFF6; /* Text Main */
}

.page-sports__text-main {
    color: #F2FFF6;
}

.page-sports__text-secondary {
    color: #A7D9B8;
}

/* Image Styling */
.page-sports__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

.page-sports__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

/* Card Styling */
.page-sports__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #F2FFF6; /* Text Main */
}

.page-sports__card-title {
    font-size: 1.3rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Specific Section Layouts */
.page-sports__sport-grid,
.page-sports__steps-grid,
.page-sports__feature-grid,
.page-sports__promo-cards,
.page-sports__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* List Styling */
.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.page-sports__feature-list li {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #F2FFF6; /* Text Main */
    display: flex;
    align-items: center;
}

.page-sports__feature-list li:last-child {
    margin-bottom: 0;
}

.page-sports__list-highlight {
    color: #F2C14E; /* Gold */
    margin-right: 10px;
}

/* Steps Card Specifics */
.page-sports__step-card {
    text-align: center;
}

.page-sports__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.4); /* Glow */
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 30px;
}

.page-sports__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-sports__faq-item summary {
    list-style: none; /* Hide default marker for details */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.3); /* Border color with opacity */
}

.page-sports__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-sports__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #57E38D; /* Glow */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    color: #F2C14E; /* Gold when open */
}

.page-sports__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

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

.page-sports__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Bottom CTA Section */
.page-sports__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, #0A4B2C 0%, #13994A 100%); /* Deep Green to a lighter green */
}

.page-sports__cta-bottom .page-sports__section-title {
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-sports__cta-bottom .page-sports__text-block {
    color: #A7D9B8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__sport-grid,
    .page-sports__steps-grid,
    .page-sports__feature-grid,
    .page-sports__promo-cards,
    .page-sports__support-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-sports__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-sports__hero-description {
        font-size: 1rem;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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__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__container,
    .page-sports__section,
    .page-sports__card,
    .page-sports__box,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-sports img,
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__promo-image {
        height: auto; /* Allow height to adjust */
    }

    .page-sports__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-sports__card {
        padding: 20px;
    }

    .page-sports__feature-list li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .page-sports__list-highlight {
        margin-bottom: 5px;
    }
    
    .page-sports__video-section {
        padding-top: 10px !important;
    }
}

/* Ensure minimum image size in content areas */
.page-sports__intro-section img,
.page-sports__promotions-section img,
.page-sports__support-security img {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure they take full width of their container */
    height: auto;
}

/* No CSS filter on images */
.page-sports img {
    filter: none;
}