/* General 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(--bg-color, #F4F7FB); /* Section background, body bg comes from shared */
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-the-thao__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color, #2F6BFF);
    border-radius: 2px;
}

.page-the-thao__section-title--white {
    color: #ffffff;
}
.page-the-thao__section-title--white::after {
    background-color: #ffffff;
}

.page-the-thao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__text-block--white {
    color: #ffffff;
}

.page-the-thao .highlight {
    color: var(--primary-color, #2F6BFF);
    font-weight: bold;
}
.page-the-thao__dark-section .highlight {
    color: var(--secondary-color, #6FA3FF);
}

/* 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;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Important for responsiveness */
    box-sizing: border-box; /* Important for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-the-thao__btn-secondary:hover {
    background-color: var(--primary-color, #2F6BFF);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #1a1a1a; /* Dark background for hero image */
    color: #ffffff;
    overflow: hidden;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
}

.page-the-thao__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-the-thao__hero-content {
    text-align: center;
    padding: 40px 15px;
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-the-thao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Intro Section */
.page-the-thao__intro-section {
    padding: 60px 0;
    background-color: var(--bg-color, #F4F7FB);
    color: var(--text-main, #1F2D3D);
}

/* Sports Categories Section */
.page-the-thao__sports-categories {
    padding: 60px 0;
    background-color: var(--primary-color, #2F6BFF); /* Dark background for sports categories */
    color: #ffffff;
}
.page-the-thao__dark-section {
    background-color: var(--primary-color, #2F6BFF);
    color: #ffffff;
}

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

.page-the-thao__category-card {
    background-color: var(--card-bg, #FFFFFF);
    color: var(--text-main, #1F2D3D);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-the-thao__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-the-thao__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-the-thao__card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: var(--primary-color, #2F6BFF);
}

.page-the-thao__card-description {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-the-thao__card-button {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}


/* Features Section */
.page-the-thao__features-section {
    padding: 60px 0;
    background-color: var(--bg-color, #F4F7FB);
    color: var(--text-main, #1F2D3D);
}

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

.page-the-thao__feature-item {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
    transform: translateY(-5px);
}

.page-the-thao__feature-icon {
    width: 200px; /* Enforcing min size for display */
    height: 150px; /* Enforcing min size for display */
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-the-thao__feature-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color, #2F6BFF);
    margin-bottom: 10px;
}

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

/* Guide Section */
.page-the-thao__guide-section {
    padding: 60px 0;
    background-color: var(--primary-color, #2F6BFF);
    color: #ffffff;
}

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

.page-the-thao__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

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

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

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color, #F4F7FB);
    color: var(--text-main, #1F2D3D);
}

.page-the-thao__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

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

.page-the-thao__faq-item details {
    border: none;
    outline: none;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main, #1F2D3D);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color, #D6E2FF);
    list-style: none; /* Hide default marker for summary */
}

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color, #2F6BFF);
    transition: transform 0.3s ease;
}

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

.page-the-thao__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
    line-height: 1.6;
    background-color: #ffffff;
}

/* CTA Section Bottom */
.page-the-thao__cta-section {
    padding: 60px 0;
    background-color: var(--primary-color, #2F6BFF);
    text-align: center;
    color: #ffffff;
}

.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
    .page-the-thao__container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
    .page-the-thao__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__hero-content {
        padding: 30px 15px;
    }
    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller H1 on mobile */
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-the-thao__hero-cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    .page-the-thao__hero-cta-buttons .page-the-thao__btn-primary,
    .page-the-thao__hero-cta-buttons .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }


    /* 长文区 */
    .page-the-thao__intro-section,
    .page-the-thao__features-section,
    .page-the-thao__guide-section,
    .page-the-thao__faq-section,
    .page-the-thao__cta-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-the-thao__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px !important;
    }
    .page-the-thao__text-block {
        font-size: 1em !important;
        text-align: left !important;
    }

    /* 通用图片与容器 */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
    .page-the-thao__card-image {
        height: auto !important; /* Allow height to adjust */
        max-height: 200px !important; /* Ensure it's not too tall */
    }
    .page-the-thao__feature-icon {
        min-width: 200px !important; /* Enforcing min size for display */
        min-height: 150px !important;
        width: 100% !important;
        height: auto !important;
    }


    /* 博客区 (Sports Categories uses a grid, so it's similar) */
    .page-the-thao__grid-3-col,
    .page-the-thao__features-grid,
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
    }
    .page-the-thao__category-card,
    .page-the-thao__feature-item,
    .page-the-thao__step-item {
        margin-bottom: 15px;
        padding: 20px;
    }
    .page-the-thao__card-button {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 按钮与按钮容器 */
    .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__cta-buttons,
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column !important; /* Mobile buttons stack */
    }

    .page-the-thao__faq-question {
        font-size: 1em !important;
        padding: 15px 20px !important;
    }
    .page-the-thao__faq-answer {
        padding: 10px 20px 15px !important;
    }
}