/* style/sports.css */

/* Global styles for the page, ensuring text contrast with the dark body background */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-sports__section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-sports__section:last-of-type {
    border-bottom: none;
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__text-block a {
    color: #2AD16F; /* A lighter green for links */
    text-decoration: none;
}

.page-sports__text-block a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: #08160F; /* Ensure background color for hero section */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-sports__hero-content {
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-sports__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-sports__description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for small screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    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 gradient */
    color: #ffffff;
    border: none;
}

.page-sports__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

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

.page-sports__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

.page-sports__btn-text {
    background: none;
    border: none;
    color: #2AD16F; /* A lighter green for text buttons */
    padding: 5px 0;
    font-size: 1em;
    text-align: left;
    margin-top: 10px;
    display: block; /* Ensure it takes full width for text alignment */
}

.page-sports__btn-text:hover {
    text-decoration: underline;
    color: #57E38D; /* Glow */
}

/* Overview Section */
.page-sports__overview-section {
    background-color: #08160F; /* Background */
}

/* Sports Diversity Section */
.page-sports__sports-diversity-section {
    background-color: #08160F; /* Background */
}

.page-sports__image {
    width: 100%;
    max-width: 800px; /* Example max-width for content images */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-sports__card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-sports__card-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1; /* Make text take available space */
}

/* Odds Section (Dark Section) */
.page-sports__odds-section.page-sports__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #ffffff; /* White text for dark background */
}

.page-sports__odds-section .page-sports__section-title,
.page-sports__odds-section .page-sports__text-block {
    color: #ffffff;
}

/* Guide Section */
.page-sports__guide-section {
    background-color: #08160F; /* Background */
}

.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-item {
    text-align: center;
}

/* Promotions Section (Dark Section) */
.page-sports__promotions-section.page-sports__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #ffffff; /* White text for dark background */
}

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__text-block {
    color: #ffffff;
}

.page-sports__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__promo-card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
}

/* Platform Features Section */
.page-sports__platform-features {
    background-color: #08160F; /* Background */
}

.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-sports__feature-item {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-title {
    font-size: 1.4em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__feature-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1em;
}

/* FAQ Section (Dark Section) */
.page-sports__faq-section.page-sports__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #ffffff; /* White text for dark background */
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-sports__faq-item[open] .page-sports__faq-question {
    border-bottom: 1px solid #2E7A4E;
}

.page-sports__faq-question::-webkit-details-marker,
.page-sports__faq-question::marker {
    display: none;
}

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

.page-sports__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    background-color: #0A4B2C; /* Deep Green, slightly darker for answer */
}

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

.page-sports__faq-answer a {
    color: #2AD16F;
    text-decoration: none;
}

.page-sports__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-sports__call-to-action {
    background-color: #08160F; /* Background */
    padding-bottom: 80px;
}

.page-sports__call-to-action .page-sports__card {
    background-color: #11271B; /* Card BG */
    padding: 50px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #2E7A4E; /* Border */
}

.page-sports__call-to-action .page-sports__section-title {
    color: #F2FFF6; /* Text Main */
}

.page-sports__call-to-action .page-sports__text-block {
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
}

@media (max-width: 768px) {
    .page-sports__section {
        padding: 40px 0;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }

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

    .page-sports__description {
        font-size: 1em;
    }

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__image {
        margin: 20px auto;
    }

    .page-sports__grid,
    .page-sports__steps-grid,
    .page-sports__promo-cards,
    .page-sports__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__card,
    .page-sports__feature-item {
        padding: 20px;
    }

    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-sports__faq-answer {
        padding: 15px;
    }

    .page-sports__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px;
    }

    /* Mobile image adaptation */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-image-wrapper,
    .page-sports__cta-buttons,
    .page-sports__faq-list,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-sports__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-sports__call-to-action .page-sports__card {
        padding: 30px 15px;
    }
}