/* style/sports.css */

/* Base styles for the sports page, adhering to BEM and color scheme */
.page-sports {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08160F;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-image {
    width: 100%;
    max-width: 1200px; /* Adjust based on actual layout */
    height: auto;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
    object-fit: cover;
}

.page-sports__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-sports__main-title {
    color: #F2C14E; /* Gold for main title */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-sports__intro-text {
    font-size: 1.15rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-sports__section {
    padding: 60px 20px;
    background-color: #08160F; /* Consistent background */
}

.page-sports__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #F2C14E; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Feature Grid */
.page-sports__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__feature-item {
    background-color: #11271B; /* Card background color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #F2FFF6; /* Text Main */
}

.page-sports__feature-title {
    font-size: 1.8rem;
    color: #57E38D; /* Glow color for feature titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports__feature-description {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 20px;
}

.page-sports__feature-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
    border-radius: 8px;
    margin-top: auto; /* Push image to bottom if content is shorter */
    margin-top: 20px; /* Add space above image */
}

/* Step-by-step Guide */
.page-sports__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__step-item {
    background-color: #11271B; /* Card background color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #F2FFF6;
}

.page-sports__step-title {
    font-size: 1.8rem;
    color: #57E38D; /* Glow color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports__step-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #A7D9B8;
}

.page-sports__step-list li {
    margin-bottom: 10px;
}

.page-sports__step-description {
    font-size: 1rem;
    color: #A7D9B8;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions {
    background-color: #0A4B2C; /* Deep Green for promotions section */
    padding-bottom: 80px;
}

.page-sports__promotion-card {
    background-color: #11271B; /* Card background color */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Stack on mobile, row on desktop */
}

.page-sports__promotion-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
    display: block;
}

.page-sports__promotion-content {
    padding: 30px;
    color: #F2FFF6;
}

.page-sports__promotion-title {
    font-size: 1.8rem;
    color: #F2C14E; /* Gold for promotion titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports__promotion-description {
    font-size: 1rem;
    color: #A7D9B8;
    margin-bottom: 20px;
}

/* Support Section */
.page-sports__support {
    text-align: center;
    background-color: #08160F;
}

.page-sports__support-text {
    font-size: 1.1rem;
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-sports__faq {
    background-color: #11271B; /* Card background color for FAQ section */
    padding-bottom: 80px;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__faq-item {
    background-color: #08160F; /* Darker background for individual FAQ items */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter on hover */
}

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

/* For details tag, hide default marker */
.page-sports__faq-item summary {
    list-style: none;
}
.page-sports__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-sports__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    /* details tag handles display */
}

/* Buttons */
.page-sports__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    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%); /* Custom button color */
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-sports__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-sports__btn-secondary:hover {
    background-color: #2AD16F;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-sports__promotion-card {
        flex-direction: row;
    }

    .page-sports__promotion-image {
        width: 50%;
        height: auto;
    }

    .page-sports__promotion-content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .page-sports__promotion-card:nth-child(even) {
        flex-direction: row-reverse; /* Alternate image position */
    }
}


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

    .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-sports__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-sports__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-sports__section {
        padding: 40px 15px;
    }

    .page-sports__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-sports__feature-item,
    .page-sports__step-item,
    .page-sports__promotion-card {
        padding: 20px;
    }

    .page-sports__feature-title,
    .page-sports__step-title,
    .page-sports__promotion-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .page-sports__feature-description,
    .page-sports__step-description,
    .page-sports__promotion-description {
        font-size: 0.95rem;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Enforce min-size for mobile too */
    }

    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__feature-item,
    .page-sports__step-item,
    .page-sports__promotion-card,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons responsiveness */
    .page-sports__btn,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Full width buttons on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-sports__hero-content .page-sports__btn {
        margin-left: auto;
        margin-right: auto;
    }

    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    
    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Specific desktop adjustments for promotion card to maintain row layout */
@media (min-width: 769px) {
    .page-sports__promotion-card {
        flex-direction: row;
    }
    .page-sports__promotion-card:nth-of-type(odd) .page-sports__promotion-image {
        order: 0; /* Image first */
    }
    .page-sports__promotion-card:nth-of-type(odd) .page-sports__promotion-content {
        order: 1; /* Content second */
    }
    .page-sports__promotion-card:nth-of-type(even) .page-sports__promotion-image {
        order: 1; /* Image second */
    }
    .page-sports__promotion-card:nth-of-type(even) .page-sports__promotion-content {
        order: 0; /* Content first */
    }
}