/* style/sports.css */
/* Base styles for the page-sports scope */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

/* Headings */
.page-sports h1,
.page-sports h2,
.page-sports h3,
.page-sports h4,
.page-sports h5,
.page-sports h6 {
    color: #F2FFF6; /* Text Main */
    margin-bottom: 0.5em;
    font-weight: bold;
}

.page-sports h1.page-sports__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px; /* To prevent extremely long lines on large screens */
}

.page-sports__section-title {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 2.5em;
    color: #F2C14E; /* Gold for main titles */
}

.page-sports__tagline {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 2em;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 60px; /* Space for content below image */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 70vh; /* Limit height on larger screens */
}

.page-sports__hero-content {
    text-align: center;
    padding: 20px;
    margin-top: 20px; /* Space between image and text */
    z-index: 1; /* Ensure text is above any potential background layers */
}

.page-sports__about-section,
.page-sports__bet-types-section,
.page-sports__guide-section,
.page-sports__promotion-section,
.page-sports__tips-section,
.page-sports__features-section,
.page-sports__video-section,
.page-sports__faq-section,
.page-sports__cta-final-section {
    padding: 60px 0;
}

.page-sports__dark-bg {
    background-color: #0A4B2C; /* Deep Green for dark sections */
    color: #F2FFF6;
}

.page-sports__light-bg {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6;
}

/* Buttons */
.page-sports__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-sports__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-sports__cta-button--center {
    display: block;
    margin: 40px auto 0 auto;
}

/* Images */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-sports__image-full {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-sports__image-centered {
    margin: 30px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Grids */
.page-sports__bet-type-grid,
.page-sports__promotion-grid,
.page-sports__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-sports__card {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #2E7A4E; /* Border */
}

.page-sports__card-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #F2C14E; /* Gold */
}

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

/* Lists */
.page-sports__guide-list,
.page-sports__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-sports__guide-list li,
.page-sports__tips-list li {
    background-color: #11271B; /* Card BG */
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2E7A4E; /* Border */
}

.page-sports__guide-step-title,
.page-sports__tips-title {
    font-size: 1.2em;
    color: #F2FFF6;
    margin-bottom: 10px;
}

/* Video Section */
.page-sports__video-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
    border-radius: 12px;
    width: 100%; /* Important for desktop flex */
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.page-sports__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    list-style: none; /* For details summary */
}

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

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Gold */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    padding: 0 25px 20px 25px;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.8;
}

.page-sports__faq-item:not([open]) .page-sports__faq-answer {
    display: none; /* Hide answer when not open for details tag */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-sports h1.page-sports__main-title {
        font-size: 2em;
    }

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

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

    .page-sports__hero-section {
        padding-bottom: 40px;
    }

    .page-sports__about-section,
    .page-sports__bet-types-section,
    .page-sports__guide-section,
    .page-sports__promotion-section,
    .page-sports__tips-section,
    .page-sports__features-section,
    .page-sports__video-section,
    .page-sports__faq-section,
    .page-sports__cta-final-section {
        padding: 40px 0;
    }

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

    .page-sports__cta-button--center {
        margin: 30px auto 0 auto;
    }

    .page-sports__bet-type-grid,
    .page-sports__promotion-grid,
    .page-sports__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__card {
        padding: 20px;
    }

    .page-sports__card-image {
        height: 180px;
    }

    .page-sports__guide-list li,
    .page-sports__tips-list li {
        padding: 15px;
    }

    .page-sports__video-wrapper {
        margin-top: 20px;
    }

    .page-sports__container {
        padding: 0 15px; /* Add padding to container for mobile */
    }

    /* Mobile image and video responsiveness */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px; /* Ensure content is not glued to edges */
        padding-right: 15px; /* Ensure content is not glued to edges */
    }

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

    /* Multiple buttons in a row */
    .page-sports__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}