/* style/the-thao.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main-color: #1F2D3D;
    --text-dark-color: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

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

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

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--page-bg);
    color: var(--text-main-color);
}

.page-the-thao__hero-section .page-the-thao__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    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: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.5);
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background: var(--card-bg);
    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: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
    transform: translateY(-2px);
}

.page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-the-thao__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-the-thao__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-the-thao__introduction-section,
.page-the-thao__bet-types-section,
.page-the-thao__guide-section,
.page-the-thao__why-choose-section,
.page-the-thao__faq-section,
.page-the-thao__conclusion-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

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

.page-the-thao__bet-type-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__bet-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-the-thao__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-the-thao__card-description {
    font-size: 0.95rem;
    color: var(--text-main-color);
    line-height: 1.6;
    text-align: justify;
}

.page-the-thao__image-container {
    margin-top: 40px;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-the-thao__guide-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.page-the-thao__guide-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-the-thao__guide-step-description {
    font-size: 1rem;
    color: var(--text-main-color);
    line-height: 1.6;
}

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

.page-the-thao__promotions-section {
    background: var(--primary-color);
    color: #ffffff;
    padding: 80px 0;
}

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

.page-the-thao__section-title--light::after {
    background-color: var(--secondary-color);
}

.page-the-thao__text-block--light {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-the-thao__promo-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-the-thao__promo-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.page-the-thao__why-choose-section {
    padding: 60px 0;
}

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

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

.page-the-thao__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-the-thao__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    display: inline-block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

.page-the-thao__faq-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    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: 1rem;
    color: var(--text-main-color);
    line-height: 1.7;
    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; /* Adjust as needed */
    padding-top: 10px;
}

.page-the-thao__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 15px;
    }

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

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

    .page-the-thao__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

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

    .page-the-thao__hero-image {
        object-fit: contain; /* Ensure image is fully visible */
        aspect-ratio: unset; /* Remove fixed aspect ratio */
        max-height: none; /* Remove max height */
    }

    .page-the-thao__feature-icon {
        min-width: 150px; /* Adjust for tablet */
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .page-the-thao__hero-section .page-the-thao__container {
        flex-direction: column;
        padding-top: 10px !important;
    }

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

    .page-the-thao__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

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

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons */
    }

    .page-the-thao__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-the-thao__text-block {
        font-size: 0.95rem;
    }

    .page-the-thao__bet-types-grid,
    .page-the-thao__promo-list,
    .page-the-thao__features-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-the-thao__bet-type-card,
    .page-the-thao__promo-item,
    .page-the-thao__feature-card,
    .page-the-thao__guide-item,
    .page-the-thao__faq-item {
        padding: 20px;
    }

    /* Generic images and containers mobile adaptation */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .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;
    }

    .page-the-thao__feature-icon {
        min-width: 200px; /* Revert to minimum size, not smaller */
        min-height: 200px;
        width: 100%; /* Ensure it scales */
        height: auto;
    }

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

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

    .page-the-thao__introduction-section,
    .page-the-thao__bet-types-section,
    .page-the-thao__guide-section,
    .page-the-thao__why-choose-section,
    .page-the-thao__faq-section,
    .page-the-thao__conclusion-section,
    .page-the-thao__promotions-section {
        padding: 40px 0;
    }
}