/* style/the-thao.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg: #FFFFFF;
    --body-bg: #F5F7FA;
    --text-main: #333333;
    --border-color: #E0E0E0;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.6;
}

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

.page-the-thao__container--center {
    text-align: center;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-the-thao__description-sub {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__description--white {
    color: #f0f0f0;
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: var(--primary-color);
}

.page-the-thao__hero-image-container {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

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

.page-the-thao__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-align: center;
    padding: 0 20px 40px 20px;
    max-width: 900px;
}

.page-the-thao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

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

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

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

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

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

.page-the-thao__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-the-thao__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Advantages Section */
.page-the-thao__advantages-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.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-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-main);
}

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

.page-the-thao__feature-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.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);
}

/* Sport Types Section */
.page-the-thao__sport-types-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.page-the-thao__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.page-the-thao__sport-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    color: var(--text-main);
}

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

.page-the-thao__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-the-thao__sport-title {
    font-size: 1.6em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-the-thao__sport-text {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 20px;
}

/* How to Bet Section */
.page-the-thao__how-to-bet-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.page-the-thao__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-the-thao__step-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 30px;
    position: relative;
    padding-left: 70px;
}

.page-the-thao__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
}

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

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

.page-the-thao__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

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

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

.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: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    color: var(--text-main);
    text-align: center;
}

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

.page-the-thao__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-the-thao__promo-text {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 20px;
}

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

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

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: 20px;
    font-size: 1em;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
}

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

/* Final CTA Section */
.page-the-thao__final-cta-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

/* --- Responsive Styles --- */

/* Desktop/Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 20px 30px;
    }

    .page-the-thao__section-title {
        font-size: 2em;
    }

    .page-the-thao__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-the-thao__features-grid,
    .page-the-thao__sport-grid,
    .page-the-thao__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-the-thao__feature-icon {
        width: 150px;
        height: 150px;
    }

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

/* Mobile (max-width: 768px) - Must include all required rules */
@media (max-width: 768px) {
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-the-thao__description,
    .page-the-thao__description-sub {
        font-size: 1em;
        margin-bottom: 20px;
        text-align: left;
    }

    /* Hero Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Rely on body padding for header offset */
        min-height: auto;
        padding-bottom: 20px;
    }

    .page-the-thao__hero-image-container {
        margin-bottom: 15px;
    }

    .page-the-thao__hero-image {
        object-fit: contain !important; /* Mobile main image must contain, not cover */
        height: auto !important;
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    .page-the-thao__hero-content {
        padding: 0 15px 20px 15px;
        text-align: left;
    }

    /* Buttons and Button Containers */
    .page-the-thao__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !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 !important;
        padding-right: 15px !important;
        text-align: center;
    }

    .page-the-thao__btn-small {
        padding: 12px 20px !important;
    }

    /* Generic Images and Containers */
    .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;
    }

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

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

    .page-the-thao__feature-icon {
        width: 100px;
        height: 100px;
    }

    /* Sport Types Section */
    .page-the-thao__sport-types-section {
        padding: 40px 0;
    }

    .page-the-thao__sport-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* How to Bet Section */
    .page-the-thao__how-to-bet-section {
        padding: 40px 0;
    }

    .page-the-thao__step-item {
        padding: 20px;
        padding-left: 55px;
    }

    .page-the-thao__step-item::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
        left: 15px;
        top: 20px;
    }

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

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

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

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

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

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

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

    /* Final CTA Section */
    .page-the-thao__final-cta-section {
        padding: 40px 0;
    }
}