/* style/the-thao.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --gradient-button: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

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

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

.page-the-thao__section-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

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

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__section-intro {
    color: #ffffff;
}

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

.page-the-thao__card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-the-thao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-the-thao__btn-primary {
    background: var(--gradient-button);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

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

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

.page-the-thao__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.6);
}

.page-the-thao__btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 0.9em;
    padding: 8px 18px;
    margin-top: 15px;
}

.page-the-thao__btn-tertiary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-the-thao__main-title {
    font-size: 3.8em;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-the-thao__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* About Section */
.page-the-thao__about-section {
    padding: 80px 0;
}

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

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

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

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

/* Sports List Section */
.page-the-thao__sports-list-section {
    padding: 80px 0;
}

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

.page-the-thao__sport-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__sport-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-the-thao__sport-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-the-thao__view-all-button-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* Betting Types Section */
.page-the-thao__betting-types-section {
    padding: 80px 0;
}

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

.page-the-thao__type-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    color: var(--text-main-color);
}

.page-the-thao__type-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

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

.page-the-thao__step-card {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main-color);
}

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

.page-the-thao__step-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

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

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

.page-the-thao__promo-card {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

/* Tips Section */
.page-the-thao__tips-section {
    padding: 80px 0;
}

.page-the-thao__tips-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.page-the-thao__tip-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    border-left: 5px solid #ffffff;
    color: #ffffff;
}

.page-the-thao__tip-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

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

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

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

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

.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;
    list-style: none;
    position: relative;
}

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

.page-the-thao__faq-question::before {
    content: '';
    display: none;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    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: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
}

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

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-the-thao__cta-bottom-content {
    max-width: 800px;
}

/* Responsive Styles */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-the-thao__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-the-thao__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-the-thao__hero-image {
        object-fit: contain; /* Ensure image is not cropped on mobile */
        aspect-ratio: unset; /* Remove aspect ratio if set */
        max-height: none; /* Remove max-height if set */
    }

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

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons general mobile adaptation */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-tertiary,
    .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;
    }

    /* General images and containers mobile adaptation */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* About Section */
    .page-the-thao__about-section {
        padding: 50px 0;
    }

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

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

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

    /* Sports List Section */
    .page-the-thao__sports-list-section {
        padding: 50px 0;
    }

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

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

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

    /* Betting Types Section */
    .page-the-thao__betting-types-section {
        padding: 50px 0;
    }

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

    .page-the-thao__type-item {
        padding: 20px;
    }

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

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

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

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

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

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

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

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

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

    /* Tips Section */
    .page-the-thao__tips-section {
        padding: 50px 0;
    }

    .page-the-thao__tip-item {
        padding: 20px;
    }

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

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

    .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 20px;
    }

    /* CTA Bottom Section */
    .page-the-thao__cta-bottom-section {
        padding: 50px 0;
    }
}