/* style/the-thao.css */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient for hero background */
    color: #ffffff; /* White text for dark/gradient background */
    text-align: center;
}

.page-the-thao__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    gap: 24px;
}

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-the-thao__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-the-thao__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-the-thao__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-the-thao__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
}

.page-the-thao__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Buttons */
.page-the-thao__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-the-thao__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-link {
    color: #E53935;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-the-thao__btn-link:hover {
    color: #FF5A4F;
    text-decoration: underline;
}

/* General Content Area */
.page-the-thao__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    background-color: #F5F7FA; /* Ensure consistent background for light sections */
}

.page-the-thao__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
}

.page-the-thao__section-description {
    font-size: 1.1em;
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-the-thao__center-cta {
    text-align: center;
    margin-top: 40px;
}

/* Intro Section - Module 1 */
.page-the-thao__intro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.page-the-thao__feature-item {
    flex: 1 1 30%;
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-the-thao__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-the-thao__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E53935;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image is also round */
    display: block;
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-the-thao__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Betting Types Section - Dark Background */
.page-the-thao__dark-section {
    background: #E53935; /* Main brand color for dark section */
    color: #ffffff;
    padding: 60px 0;
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__section-description {
    color: #ffffff;
}

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

.page-the-thao__betting-type-card {
    background: #ffffff; /* White background for cards on dark section */
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-the-thao__betting-type-card .page-the-thao__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-the-thao__betting-type-card .page-the-thao__card-text {
    font-size: 1em;
    color: #555555;
}

/* Promo Section */
.page-the-thao__promo-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-the-thao__promo-card {
    flex: 1 1 45%;
    min-width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-the-thao__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-the-thao__promo-card .page-the-thao__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-the-thao__promo-card .page-the-thao__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
}

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

.page-the-thao__guide-step-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
}

.page-the-thao__guide-step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #E53935;
    margin-bottom: 15px;
}

.page-the-thao__guide-step-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-the-thao__guide-step-text {
    font-size: 1em;
    color: #555555;
}

.page-the-thao__guide-image-container {
    margin-top: 40px;
    text-align: center;
}

.page-the-thao__guide-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* FAQ Section */
.page-the-thao__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-the-thao__faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-the-thao__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #E53935;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
    transition: background-color 0.3s ease;
}

.page-the-thao__faq-item summary:hover {
    background-color: #f9f9f9;
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: #E53935;
    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: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #eee;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-title {
        font-size: 2.5em;
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
    .page-the-thao__hero-container {
        padding: 30px 16px;
    }
    .page-the-thao__content-area {
        padding: 30px 16px;
    }
    .page-the-thao__feature-item,
    .page-the-thao__promo-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 双栏 */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-the-thao__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-the-thao__hero-content {
        text-align: center;
        flex: 1 1 100%;
        min-width: unset;
    }
    .page-the-thao__hero-title {
        font-size: 2em; /* Smaller font size for mobile H1 */
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-the-thao__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }
    .page-the-thao__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__hero-cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to CTA group for small screens */
    }

    /* 2. 模块1 三栏正圆图 */
    .page-the-thao__intro-features {
        flex-direction: column;
        gap: 20px;
    }
    .page-the-thao__feature-item {
        flex: 1 1 100%;
        min-width: unset;
        padding: 25px;
    }
    .page-the-thao__icon-box-media {
        width: 180px; /* Maintain square aspect ratio */
        height: 180px; /* Maintain square aspect ratio */
        border-width: 3px;
    }

    /* 4. 教程长文 / 促销 / 信任 / FAQ / intro 排版 */
    .page-the-thao__content-area {
        padding: 25px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-the-thao__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-the-thao__betting-types-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-the-thao__promo-cards {
        flex-direction: column;
        gap: 20px;
    }
    .page-the-thao__promo-card {
        flex: 1 1 100%;
        min-width: unset;
    }
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__faq-list {
        margin-top: 30px;
    }
    .page-the-thao__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-the-thao__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

    /* 5. 通通用图片与容器 */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    /* Exception for __icon-box-media img, which needs object-fit cover to maintain square */
    .page-the-thao__icon-box-media img {
        height: 100% !important; /* Fill parent height */
        object-fit: cover !important; /* Maintain aspect ratio and cover */
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 6. 按钮与按钮容器 */
    .page-the-thao__cta-button,
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao a[class*="button"],
    .page-the-thao 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;
    }
    .page-the-thao__hero-cta-group, /* Specific button container for hero */
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; 
        padding-right: 0; 
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; 
        flex-direction: column; /* Stack buttons vertically */
    }
}