/* style/the-thao.css */
.page-the-thao {
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-the-thao__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: bold;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-the-thao__btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    word-wrap: break-word;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-secondary {
    display: inline-block;
    background: transparent;
    color: #F2C14E;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #F2C14E;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    word-wrap: break-word;
}

.page-the-thao__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

/* HERO Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding as body padding-top is in shared.css */
    padding-bottom: 60px;
    background-color: #0A0A0A;
    color: #FFF6D6;
}

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

.page-the-thao__hero-content {
    flex: 1 1 500px;
    text-align: left;
}

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

.page-the-thao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF6D6;
}

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

.page-the-thao__hero-image {
    flex: 1 1 500px;
    text-align: center;
}

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
    background-color: #111111;
    padding: 60px 0;
}

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

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

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

.page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F2C14E;
    box-shadow: 0 0 15px #FFD36B;
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-the-thao__feature-text {
    font-size: 1em;
    color: #FFF6D6;
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

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

.page-the-thao__bet-type-card {
    background-color: #111111;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__card-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin-bottom: 10px;
}

.page-the-thao__card-text {
    font-size: 1em;
    color: #FFF6D6;
}

/* Guide Section */
.page-the-thao__guide-section {
    background-color: #111111;
    padding: 60px 0;
}

.page-the-thao__guide-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-the-thao__guide-content {
    flex: 1 1 500px;
}

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

.page-the-thao__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.page-the-thao__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #F2C14E;
    color: #111111;
    border-radius: 50%;
    font-size: 1.4em;
    font-weight: bold;
    flex-shrink: 0;
}

.page-the-thao__step-text-content {
    flex: 1;
}

.page-the-thao__step-title {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 5px;
}

.page-the-thao__step-description {
    font-size: 1em;
    color: #FFF6D6;
}

.page-the-thao__guide-image {
    flex: 1 1 500px;
    text-align: center;
}

.page-the-thao__guide-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Promo Section */
.page-the-thao__promo-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

.page-the-thao__promo-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on left, content on right */
}

.page-the-thao__promo-content {
    flex: 1 1 500px;
}

.page-the-thao__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-the-thao__promo-list li {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23F2C14E"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #FFF6D6;
    font-size: 1.1em;
}

.page-the-thao__promo-image {
    flex: 1 1 500px;
    text-align: center;
}

.page-the-thao__promo-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* News Section */
.page-the-thao__news-section {
    background-color: #111111;
    padding: 60px 0;
}

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

.page-the-thao__news-card {
    background-color: #0A0A0A;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

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

.page-the-thao__news-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-the-thao__news-title a {
    color: #FFD36B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-the-thao__news-title a:hover {
    color: #F2C14E;
}

.page-the-thao__news-date {
    font-size: 0.9em;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-the-thao__news-excerpt {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 15px;
}

.page-the-thao__read-more {
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
}

.page-the-thao__read-more:hover {
    text-decoration: underline;
}

.page-the-thao__view-all-button {
    text-align: center;
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

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

.page-the-thao__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    color: #F2C14E;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* For <details> tag */
    transition: background-color 0.3s ease;
}

.page-the-thao__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <details> */
}

.page-the-thao__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFD36B;
    margin-left: 15px;
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #FFF6D6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

/* Final CTA Section */
.page-the-thao__final-cta-section {
    background-color: #F2C14E;
    padding: 60px 0;
    text-align: center;
}

.page-the-thao__final-cta-section .page-the-thao__section-title,
.page-the-thao__final-cta-section .page-the-thao__section-description {
    color: #111111; /* Dark text on bright background */
}

.page-the-thao__final-cta-section .page-the-thao__btn-primary {
    background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
    color: #FFD36B;
    border: 2px solid #FFD36B;
}

.page-the-thao__final-cta-section .page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #0A0A0A 0%, #111111 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container,
    .page-the-thao__guide-flex,
    .page-the-thao__promo-flex {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__hero-content,
    .page-the-thao__guide-content,
    .page-the-thao__promo-content {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-the-thao__hero-image,
    .page-the-thao__guide-image,
    .page-the-thao__promo-image {
        flex: 1 1 100%;
    }

    .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-the-thao__container,
    .page-the-thao__hero-container,
    .page-the-thao__intro-section .page-the-thao__container,
    .page-the-thao__bet-types-section .page-the-thao__container,
    .page-the-thao__guide-section .page-the-thao__container,
    .page-the-thao__promo-section .page-the-thao__container,
    .page-the-thao__news-section .page-the-thao__container,
    .page-the-thao__faq-section .page-the-thao__container,
    .page-the-thao__final-cta-section .page-the-thao__container {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }
    .page-the-thao__main-title {
        font-size: 2.2em !important;
    }
    .page-the-thao__hero-description {
        font-size: 1em !important;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
    }

    /* Intro Section (Module 1) */
    .page-the-thao__intro-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__icon-box-media {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 15px !important;
    }
    .page-the-thao__feature-title {
        font-size: 1.3em !important;
    }

    /* Bet Types Section */
    .page-the-thao__bet-types-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__bet-type-card {
        padding: 20px !important;
    }
    .page-the-thao__card-title {
        font-size: 1.2em !important;
    }

    /* Guide Section */
    .page-the-thao__guide-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }
    .page-the-thao__step-number {
        margin-bottom: 10px;
    }
    .page-the-thao__step-title {
        font-size: 1.1em !important;
    }

    /* Promo Section */
    .page-the-thao__promo-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__promo-list li {
        font-size: 1em !important;
        padding-left: 25px;
        background-size: 18px;
    }

    /* News Section */
    .page-the-thao__news-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__news-grid {
        gap: 20px !important;
        margin-bottom: 30px !important;
    }
    .page-the-thao__news-image {
        height: 180px !important;
    }
    .page-the-thao__news-title a {
        font-size: 1.1em !important;
    }
    .page-the-thao__news-content {
        padding: 15px !important;
    }

    /* FAQ Section */
    .page-the-thao__faq-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__faq-question {
        font-size: 1.1em !important;
        padding: 15px !important;
    }
    .page-the-thao__faq-answer {
        padding: 0 15px 15px !important;
    }

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

    /* Universal Image & Container Rules */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-the-thao__hero-side-image,
    .page-the-thao__guide-side-image,
    .page-the-thao__promo-side-image {
        height: auto !important;
    }
    .page-the-thao__news-image {
        height: 180px !important; /* Maintain specific height for news cards, but ensure max-width */
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .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;
    }
}