/* style/the-thao.css */

/* General styles for the page-the-thao scope */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color on dark background */
    background-color: #0A0A0A; /* Page background color */
}

.page-the-thao__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Specific padding-top for hero section */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%); /* Slightly lighter top for contrast */
}

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

.page-the-thao__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #FFF6D6;
}

.page-the-thao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #FFD36B; /* Accent color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Brand color for secondary button text */
    border: 2px solid #F2C14E; /* Brand color for border */
}

.page-the-thao__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

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

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-the-thao__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-the-thao__icon-box {
    flex: 1 1 30%;
    min-width: 280px;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-the-thao__icon-box:hover {
    transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
    width: 200px; /* Fixed width for circular image */
    height: 200px; /* Fixed height for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F2C14E; /* Brand color border */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Glow effect */
}

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

.page-the-thao__icon-box-title {
    font-size: 1.5em;
    color: #FFD36B; /* Accent color for sub-titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__icon-box-text {
    font-size: 1em;
    color: #FFF6D6;
}

/* Sports Categories Section */
.page-the-thao__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__sport-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-the-thao__sport-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__sport-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-the-thao__sport-card-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-the-thao__sport-card-text {
    font-size: 0.95em;
    color: #FFF6D6;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-the-thao__btn-link {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: none;
    margin: 0 15px 20px;
    padding: 10px 20px;
    border-radius: 8px;
}

.page-the-thao__btn-link:hover {
    opacity: 0.9;
}

/* Guide Section */
.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-color: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__guide-icon {
    width: 60px;
    height: 60px;
    background-color: #F2C14E; /* Brand color */
    color: #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

.page-the-thao__guide-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 20px;
}

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

.page-the-thao__promo-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-the-thao__promo-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__promo-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-card-title {
    font-size: 1.3em;
    color: #FFD36B;
    margin: 20px 20px 10px;
    font-weight: bold;
}

.page-the-thao__promo-card-text {
    font-size: 0.95em;
    color: #FFF6D6;
    padding: 0 20px 20px;
    flex-grow: 1;
}

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

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

.page-the-thao__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-the-thao__faq-item[open] {
    background-color: #1A1A1A; /* Slightly darker when open */
    border-color: #F2C14E; /* Highlight border */
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #FFD36B;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    color: #F2C14E;
    line-height: 1;
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #FFF6D6;
    line-height: 1.6;
}

/* Contact CTA Section */
.page-the-thao__contact-cta-section {
    background: linear-gradient(90deg, #F2C14E 0%, #FFD36B 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.page-the-thao__contact-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.page-the-thao__contact-cta-text {
    flex: 1 1 55%;
    min-width: 300px;
    color: #111111; /* Dark text on light background */
}

.page-the-thao__contact-cta-text .page-the-thao__section-title {
    color: #111111;
    text-align: left;
    margin-bottom: 15px;
}

.page-the-thao__contact-cta-text p {
    font-size: 1.1em;
    color: #333333;
    line-height: 1.5;
}

.page-the-thao__contact-cta-buttons {
    flex: 1 1 35%;
    min-width: 250px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.page-the-thao__contact-cta-buttons .page-the-thao__btn-primary {
    background: #111111; /* Dark button on light background */
    color: #FFD36B;
    border: none;
}

.page-the-thao__contact-cta-buttons .page-the-thao__btn-primary:hover {
    background: #333333;
}

.page-the-thao__contact-cta-buttons .page-the-thao__btn-secondary {
    background: transparent;
    color: #111111;
    border: 2px solid #111111;
}

.page-the-thao__contact-cta-buttons .page-the-thao__btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 16px;
    }

    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-the-thao__main-title {
        text-align: center;
    }

    .page-the-thao__hero-description {
        text-align: center;
    }

    .page-the-thao__cta-buttons {
        justify-content: center;
    }

    .page-the-thao__icon-box {
        flex: 1 1 45%;
    }

    .page-the-thao__contact-cta-container {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__contact-cta-text .page-the-thao__section-title {
        text-align: center;
    }

    .page-the-thao__contact-cta-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 双栏 */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Specific padding-top for hero section */
        padding-bottom: 30px;
    }

    .page-the-thao__hero-container {
        padding: 20px 15px;
        gap: 30px;
    }

    .page-the-thao__main-title {
        font-size: 2.2em;
    }

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

    /* 6. 按钮与按钮容器 */
    .page-the-thao__cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-link {
        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;
    }

    /* 2. 模块1 三栏正圆图 */
    .page-the-thao__icon-boxes {
        flex-direction: column;
        gap: 20px;
    }

    .page-the-thao__icon-box {
        flex: 1 1 100%;
        min-width: unset;
        padding: 20px;
    }

    .page-the-thao__icon-box-media {
        width: 160px;
        height: 160px;
        border-width: 2px;
    }

    /* 4. 教程长文 / 促销 / 信任 / FAQ / intro 排版 */
    .page-the-thao__content-area {
        padding: 20px 15px;
    }

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

    .page-the-thao__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-the-thao__sports-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__sport-card-image,
    .page-the-thao__promo-card-image {
        height: 180px;
    }

    .page-the-thao__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-the-thao__faq-answer {
        padding: 0 15px 15px;
    }

    .page-the-thao__contact-cta-container {
        flex-direction: column;
        gap: 20px;
    }

    .page-the-thao__contact-cta-text {
        min-width: unset;
        text-align: center;
    }

    .page-the-thao__contact-cta-text .page-the-thao__section-title {
        text-align: center;
    }

    .page-the-thao__contact-cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        justify-content: center;
    }

    .page-the-thao__contact-cta-section {
        padding: 40px 0;
    }

    /* 5. 通用图片与容器 */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Exception for circular images */
    .page-the-thao__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__icon-box,
    .page-the-thao__sport-card,
    .page-the-thao__guide-step,
    .page-the-thao__promo-card,
    .page-the-thao__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}