/* Base styles for the Thể Thao page */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D); /* Default text color for light backgrounds */
    background-color: var(--page-bg-color, #F4F7FB); /* Default background color */
}

/* Container for main content width */
.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Titles */
.page-the-thao__section-title {
    font-size: 2.5em;
    color: var(--text-main, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Text Blocks */
.page-the-thao__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main, #1F2D3D);
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: #e0e0e0;
    color: #2F6BFF;
    border-color: #2F6BFF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-the-thao__cta-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Color schemes for sections */
.page-the-thao__light-bg {
    background-color: var(--page-bg-color, #F4F7FB);
    color: var(--text-main, #1F2D3D);
}
.page-the-thao__dark-bg {
    background-color: #2F6BFF; /* Main brand color for dark sections */
    color: #ffffff;
}
.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__text-block,
.page-the-thao__dark-bg .page-the-thao__card-title,
.page-the-thao__dark-bg .page-the-thao__card-description,
.page-the-thao__dark-bg .page-the-thao__feature-title,
.page-the-thao__dark-bg .page-the-thao__feature-description,
.page-the-thao__dark-bg .page-the-thao__step-title,
.page-the-thao__dark-bg .page-the-thao__step-description,
.page-the-thao__dark-bg .page-the-thao__faq-qtext,
.page-the-thao__dark-bg .page-the-thao__faq-answer p {
    color: #ffffff;
}

/* Image base style */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* HERO Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-the-thao__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop to maintain aspect ratio */
    object-fit: cover;
}

.page-the-thao__hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 1;
}

.page-the-thao__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1F2D3D;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Intro Section */
.page-the-thao__intro-section {
    padding: 60px 20px;
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
    padding: 60px 20px;
}

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

.page-the-thao__card {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-main, #1F2D3D);
}

.page-the-thao__card-image {
    width: 100%;
    height: 225px; /* Fixed height for card images */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color, #D6E2FF);
}

.page-the-thao__card-title {
    font-size: 1.5em;
    font-weight: bold;
    padding: 20px 20px 10px;
    color: var(--custom-color-1776249996415, #000000);
}

.page-the-thao__card-description {
    font-size: 1em;
    padding: 0 20px 20px;
    color: var(--text-main, #1F2D3D);
    flex-grow: 1;
}

/* Advantages Section */
.page-the-thao__advantages-section {
    padding: 60px 20px;
}

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

.page-the-thao__feature-item {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main, #1F2D3D);
}

.page-the-thao__feature-icon {
    width: 150px; /* Larger icon size as per requirements */
    height: 112px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-the-thao__feature-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--custom-color-1776249996415, #000000);
}

.page-the-thao__feature-description {
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
}

/* Guide Section */
.page-the-thao__guide-section {
    padding: 60px 20px;
}

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

.page-the-thao__guide-step {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    background-color: var(--main-color, #2F6BFF);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--glow-color, #A5C4FF);
}

.page-the-thao__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-the-thao__step-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Tips Section */
.page-the-thao__tips-section {
    padding: 60px 20px;
}

/* Promotions Section */
.page-the-thao__promotions-section {
    padding: 60px 20px;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 20px;
}

.page-the-thao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__faq-item {
    background: var(--card-bg, #FFFFFF);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--text-main, #1F2D3D);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--custom-color-1776249996415, #000000);
    border-bottom: 1px solid var(--border-color, #D6E2FF);
    list-style: none; /* Hide default marker for details/summary */
}

.page-the-thao__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
}

.page-the-thao__faq-answer p {
    margin: 10px 0;
}


/* Register CTA Section */
.page-the-thao__register-cta {
    padding: 80px 20px;
    text-align: center;
}

.page-the-thao__register-content {
    max-width: 800px;
}

.page-the-thao__register-cta .page-the-thao__section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-the-thao__register-cta .page-the-thao__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
    font-size: 1.15em;
}

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


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 15px;
    }

    .page-the-thao__hero-title {
        font-size: 2.8em;
    }

    .page-the-thao__hero-description {
        font-size: 1.15em;
    }

    .page-the-thao__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-the-thao__grid-cards,
    .page-the-thao__grid-features,
    .page-the-thao__guide-steps {
        gap: 20px;
    }
}

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

    /* HERO 主图区域 */
    .page-the-thao__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        min-height: auto;
    }
    .page-the-thao__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-the-thao__hero-image {
        height: 400px; /* Adjust height for mobile */
    }
    .page-the-thao__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Use clamp for H1 on mobile */
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-the-thao__hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    /* General Section Padding */
    .page-the-thao__intro-section,
    .page-the-thao__bet-types-section,
    .page-the-thao__advantages-section,
    .page-the-thao__guide-section,
    .page-the-thao__tips-section,
    .page-the-thao__promotions-section,
    .page-the-thao__faq-section,
    .page-the-thao__register-cta {
        padding: 40px 15px; /* Adjust padding for mobile */
    }

    /* Section Titles */
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Text Blocks */
    .page-the-thao__text-block {
        font-size: 1em;
    }

    /* Card/Grid Layouts */
    .page-the-thao__grid-cards,
    .page-the-thao__grid-features,
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    .page-the-thao__card {
        padding: 0; /* Remove internal padding if image takes full width */
    }
}