:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --dark-text: #333333; /* For light backgrounds */
    --light-text: #ffffff; /* For dark backgrounds */
    --light-gray-bg: #f5f5f5;
}

/* Base styles for the page-the-thao content */
.page-the-thao {
    background-color: var(--background-color);
    color: var(--light-text); /* Default text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Container for centralizing content */
.page-the-thao__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-the-thao__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

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

/* --- HERO Section --- */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 60px;
    background-color: var(--card-bg); /* Darker background for hero */
    position: relative;
    overflow: hidden;
}

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

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

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

.page-the-thao__subtitle {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 600px;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: var(--light-text); /* White text for contrast on gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.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(--dark-text); /* Dark text for contrast on primary color */
    transform: translateY(-2px);
}

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

.page-the-thao__hero-img {
    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 (Why Choose AX88) --- */
.page-the-thao__intro-section {
    padding: 80px 0;
    background-color: var(--background-color); /* Inherit from body or specific dark */
    color: var(--light-text);
}

.page-the-thao__intro-section .page-the-thao__section-title {
    color: var(--primary-color);
}

.page-the-thao__intro-section .page-the-thao__section-description {
    color: var(--text-main-color);
}

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

.page-the-thao__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
    width: 160px; /* Smaller for this section */
    height: 160px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    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 inside is also circular */
    display: block;
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- Sports Categories Section --- */
.page-the-thao__sports-categories {
    padding: 80px 0;
    background-color: var(--background-color);
    color: var(--light-text);
}

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

.page-the-thao__category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-the-thao__category-card h3,
.page-the-thao__category-card p {
    padding: 0 20px;
}

.page-the-thao__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-the-thao__card-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    background: var(--button-gradient);
    color: var(--light-text);
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsive */
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__card-button:hover {
    opacity: 0.9;
}

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

.page-the-thao__guide-section .page-the-thao__section-title {
    color: var(--primary-color);
}

.page-the-thao__guide-section .page-the-thao__section-description {
    color: var(--text-main-color);
}

.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: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

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

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

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

/* --- Promotions Section --- */
.page-the-thao__promotions-section {
    padding: 80px 0;
    background-color: var(--background-color);
    color: var(--light-text);
}

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

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

/* Re-using card image/title/text styles from categories, just adjusting some padding */
.page-the-thao__promo-card .page-the-thao__card-image {
    height: 220px; /* Slightly taller for promo cards */
}
.page-the-thao__promo-card .page-the-thao__card-title {
    margin-top: 25px;
}
.page-the-thao__promo-card .page-the-thao__card-button {
    margin-top: auto; /* Push button to bottom */
}


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

.page-the-thao__faq-section .page-the-thao__section-title {
    color: var(--primary-color);
}

.page-the-thao__faq-section .page-the-thao__section-description {
    color: var(--text-main-color);
}

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

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--card-bg);
    list-style: none; /* Remove default marker for details summary */
}

/* Hide default details marker */
.page-the-thao__faq-item summary::-webkit-details-marker,
.page-the-thao__faq-item summary::marker {
    display: none;
    content: "";
}

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

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

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

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

    .page-the-thao__container {
        padding: 0 15px !important; /* Force padding for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-the-thao__hero-container {
        flex-direction: column;
        padding: 40px 15px;
        gap: 30px;
    }

    .page-the-thao__hero-content {
        order: 2; /* Content below image */
        flex: 1 1 100%;
        text-align: center;
    }

    .page-the-thao__hero-image {
        order: 1; /* Image above content */
        flex: 1 1 100%;
    }

    .page-the-thao__main-title {
        font-size: 2em;
        line-height: 1.2;
    }

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center; /* Center buttons */
    }

    /* 6. Buttons and Button Containers */
    .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;
        min-width: unset; /* Remove min-width for mobile */
    }

    .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: 0px; /* Buttons handle their own padding */
        padding-right: 0px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

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

    /* 2. Module 1 (Intro Section) - Three-column to single column */
    .page-the-thao__intro-section {
        padding: 60px 0;
    }

    .page-the-thao__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-the-thao__icon-box-media {
        width: 120px !important; /* Maintain square for mobile */
        height: 120px !important;
        border-width: 2px;
        margin-bottom: 15px;
    }

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

    .page-the-thao__feature-text {
        font-size: 0.95em;
    }

    /* Sports Categories Section */
    .page-the-thao__sports-categories {
        padding: 60px 0;
    }

    .page-the-thao__category-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-the-thao__card-image {
        height: 180px !important; /* Adjust height for mobile */
    }

    .page-the-thao__category-card h3,
    .page-the-thao__category-card p {
        padding: 0 15px;
    }

    .page-the-thao__card-button {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }

    /* 4. Guide Section (Tutorial long text) */
    .page-the-thao__guide-section {
        padding: 60px 0;
    }

    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .page-the-thao__step-text {
        font-size: 0.95em;
    }

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

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

    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-the-thao__promo-card .page-the-thao__card-image {
        height: 180px !important;
    }
    .page-the-thao__promo-card h3,
    .page-the-thao__promo-card p {
        padding: 0 15px;
    }
    .page-the-thao__promo-card .page-the-thao__card-button {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }


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

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

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

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

    .page-the-thao__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    /* 5. Generic Images and Containers */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-the-thao__hero-img,
    .page-the-thao__card-image {
        max-width: 100% !important;
        height: auto !important; /* Override fixed height for responsiveness */
    }

    /* Exception for circular images, height:auto cannot be used */
    .page-the-thao__icon-box-media {
        width: 120px !important;
        height: 120px !important;
        border-width: 2px !important;
    }
}