/* style/sports.css */
/* Body background is #000000 (dark), so default text color is #ffffff */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Rely on body background from shared.css */
}

/* Container for content sections */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-sports__section-title {
    font-size: 2.5em; /* Using em for relative sizing, will avoid fixed large rem/px */
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Text blocks */
.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Highlighted text */
.page-sports__highlight {
    color: #26A9E0;
    font-weight: 600;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand color */
    border: 2px solid #26A9E0;
}

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

/* CTA Buttons group */
.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-sports__cta-buttons--center {
    margin-top: 40px;
}

.page-sports__btn-video-cta {
    margin-top: 30px;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    box-sizing: border-box;
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-sports__hero-content {
    text-align: center;
    max-width: 900px;
}

.page-sports__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Introduction Section (dark background with light text) */
.page-sports__introduction-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Darker background for contrast */
    color: #ffffff;
}

/* Video Section */
.page-sports__video-section {
    padding: 60px 20px;
    padding-top: 10px; /* body handles --header-offset, this is decorative */
    background-color: #0d0d0d;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto 30px auto;
    max-width: 100%; /* Ensure wrapper respects container width */
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer;
}

.page-sports__video-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Betting Types Section */
.page-sports__betting-types-section {
    padding: 80px 20px;
    background-color: #000000; /* Body background for this section */
    color: #ffffff;
}

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

.page-sports__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text on dark card background */
}

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

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

.page-sports__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Guide Section (dark background with light text) */
.page-sports__guide-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__guide-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
}

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

.page-sports__guide-item p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__guide-item a {
    color: #EA7C07; /* Login color for links */
    text-decoration: underline;
}
.page-sports__guide-item a:hover {
    color: #ff9933;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #ffffff;
}

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

/* Why Choose Section (dark background with light text) */
.page-sports__why-choose-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-sports__advantages-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__advantages-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #ffffff;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-item[open] .page-sports__faq-question {
    border-bottom: 1px solid #26A9E0;
    background-color: rgba(38, 169, 224, 0.2); /* Slightly darker brand color for open state */
}

.page-sports__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
}

.page-sports__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    text-align: left;
}

.page-sports__faq-answer a {
    color: #EA7C07; /* Login color for links */
    text-decoration: underline;
}
.page-sports__faq-answer a:hover {
    color: #ff9933;
}

/* Final CTA Section (dark background with light text) */
.page-sports__cta-final-section {
    padding: 80px 20px;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    text-align: center;
}

.page-sports__cta-final-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-sports__description {
        font-size: 1.1em;
    }
    .page-sports__hero-section {
        padding: 40px 15px;
    }
    .page-sports__introduction-section,
    .page-sports__video-section,
    .page-sports__betting-types-section,
    .page-sports__guide-section,
    .page-sports__promotions-section,
    .page-sports__why-choose-section,
    .page-sports__faq-section,
    .page-sports__cta-final-section {
        padding: 60px 15px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-sports__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
    }
    .page-sports__description {
        font-size: 1em;
    }

    /* Images */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    /* Videos */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-sports__video-section {
        padding-top: 10px !important;
    }
    .page-sports__video-wrapper {
        padding-bottom: 65%; /* Adjust aspect ratio for better mobile fit, e.g., 4:3 */
    }

    /* Buttons */
    .page-sports__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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;
    }

    /* Cards */
    .page-sports__card {
        padding: 20px;
    }

    /* FAQ */
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure no filter properties are used on images */
.page-sports img {
    filter: none !important;
}

/* Desktop __video-container width: 100% check */
.page-sports__video-container {
    width: 100%; /* Explicitly set for desktop as well */
}