/* style/the-thao.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg-color: #17191F;
    --background-color-dark: #0D0E12; /* This is the body background from shared */
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --light-text: #ffffff;
    --dark-text: #333333;
    --light-bg: #f8f9fa;
}

/* Base styles for the page content, assuming a dark body background */
.page-the-thao {
    color: var(--text-main-color); /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.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;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

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

/* HERO Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles main offset */
    padding-bottom: 60px;
    background-color: var(--background-color-dark);
}

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

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-main-color);
}

.page-the-thao__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: var(--light-text);
    border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

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

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
    background-color: var(--card-bg-color); /* Dark background for this section */
    padding: 60px 0;
}

.page-the-thao__light-bg {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

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

.page-the-thao__feature-item {
    background-color: #1e2029;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
    width: 160px;
    height: 160px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

.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.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

/* Sports Types Section */
.page-the-thao__sports-types {
    padding: 60px 0;
    background-color: var(--background-color-dark); /* Dark background */
}

.page-the-thao__dark-section {
    background-color: var(--background-color-dark);
    color: var(--text-main-color);
}

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

.page-the-thao__card {
    background-color: var(--card-bg-color); /* Card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-the-thao__card:hover {
    transform: translateY(-8px);
}

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

.page-the-thao__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-the-thao__card-text {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-the-thao__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-the-thao__btn-link:hover {
    background-color: var(--secondary-color);
}

/* Guide Section */
.page-the-thao__guide-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Dark background */
}

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

.page-the-thao__step-item {
    background-color: #1e2029;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-the-thao__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: var(--light-text);
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-the-thao__step-title {
    font-size: 1.7em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-the-thao__step-text {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promo Section */
.page-the-thao__promo-section {
    padding: 60px 0;
    background-color: var(--background-color-dark);
}

.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: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-the-thao__promo-image {
    width: 100%;
    height: 250px; /* Consistent height for promo images */
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-the-thao__promo-text {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg-color); /* Dark background */
}

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

.page-the-thao__faq-item {
    background-color: #1e2029;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #1e2029;
    user-select: none;
    position: relative;
    list-style: none; /* For details/summary */
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    content: '−';
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 10px;
}

/* Responsive Styles */

/* General image and container responsiveness for mobile */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-the-thao__section,
.page-the-thao__container,
.page-the-thao__card-grid,
.page-the-thao__feature-grid,
.page-the-thao__steps-container,
.page-the-thao__promo-grid {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .page-the-thao {
        font-size: 15px;
        line-height: 1.5;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-the-thao__hero-container {
        flex-direction: column; /* Stack content vertically */
        padding: 30px 15px;
        gap: 30px;
    }

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

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Smaller on mobile */
        text-align: center;
    }

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

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-the-thao__hero-side-image {
        border-radius: 8px;
    }

    /* Section Titles and Descriptions */
    .page-the-thao__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    /* Intro Section (Module 1) */
    .page-the-thao__intro-section {
        padding: 40px 0;
    }

    .page-the-thao__feature-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-the-thao__feature-item {
        padding: 25px;
    }

    .page-the-thao__icon-box-media {
        width: 120px; /* Smaller round image */
        height: 120px;
        border-width: 2px;
        margin-bottom: 15px;
    }

    .page-the-thao__feature-title {
        font-size: 1.5em;
    }

    /* Sports Types Section */
    .page-the-thao__sports-types {
        padding: 40px 0;
    }

    .page-the-thao__card-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-the-thao__card {
        padding-bottom: 0;
    }

    .page-the-thao__card-image {
        height: 180px;
    }

    .page-the-thao__card-content {
        padding: 20px;
    }

    .page-the-thao__card-title {
        font-size: 1.4em;
    }

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

    .page-the-thao__steps-container {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-the-thao__step-item {
        padding: 25px;
    }

    .page-the-thao__step-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-the-thao__step-title {
        font-size: 1.5em;
    }

    /* Promo Section */
    .page-the-thao__promo-section {
        padding: 40px 0;
    }

    .page-the-thao__promo-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-the-thao__promo-image {
        height: 200px;
    }

    .page-the-thao__promo-content {
        padding: 20px;
    }

    .page-the-thao__promo-title {
        font-size: 1.4em;
    }

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

    .page-the-thao__faq-list {
        margin-top: 30px;
    }

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

    .page-the-thao__faq-toggle {
        font-size: 1.3em;
    }

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

    /* Ensure all images and containers are responsive */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__hero-container,
    .page-the-thao__feature-grid,
    .page-the-thao__card-grid,
    .page-the-thao__steps-container,
    .page-the-thao__promo-grid,
    .page-the-thao__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for round images to maintain aspect ratio */
    .page-the-thao__icon-box-media img {
        height: 100% !important; /* Override auto to fill container */
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Button container for stacking */
    .page-the-thao__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
}