/* style/ththao.css */

/* Root variables for custom colors */
:root {
    --mcw88-primary-color: #11A84E;
    --mcw88-secondary-color: #22C768;
    --mcw88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --mcw88-card-bg: #11271B;
    --mcw88-background: #08160F;
    --mcw88-text-main: #F2FFF6;
    --mcw88-text-secondary: #A7D9B8;
    --mcw88-border: #2E7A4E;
    --mcw88-glow: #57E38D;
    --mcw88-gold: #F2C14E;
    --mcw88-divider: #1E3A2A;
    --mcw88-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-ththao {
    background-color: var(--mcw88-background); /* Ensure consistent background */
    color: var(--mcw88-text-main); /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-ththao__section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--mcw88-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    line-height: 1.2;
}

.page-ththao__paragraph {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--mcw88-text-secondary);
}

.page-ththao__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--mcw88-text-main);
    margin-bottom: 15px;
}

.page-ththao__card-text {
    font-size: 0.95rem;
    color: var(--mcw88-text-secondary);
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--mcw88-background);
    overflow: hidden;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
}

.page-ththao__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__main-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem); /* Use clamp for H1 */
    font-weight: 800;
    color: var(--mcw88-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-ththao__lead-text {
    font-size: 1.15rem;
    color: var(--mcw88-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-ththao__btn-primary {
    background: var(--mcw88-button-gradient);
    color: var(--mcw88-text-main);
    border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
    box-shadow: 0 0 15px var(--mcw88-glow);
    transform: translateY(-2px);
}

.page-ththao__btn-secondary {
    background-color: transparent;
    color: var(--mcw88-gold);
    border: 2px solid var(--mcw88-gold);
}

.page-ththao__btn-secondary:hover {
    background-color: var(--mcw88-gold);
    color: var(--mcw88-background);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-ththao__intro-section,
.page-ththao__bet-types-section,
.page-ththao__live-betting-section,
.page-ththao__guide-section,
.page-ththao__cta-bottom-section {
    background-color: var(--mcw88-background);
    padding: 60px 0;
    color: var(--mcw88-text-secondary);
}

.page-ththao__features-section,
.page-ththao__popular-sports-section,
.page-ththao__promotions-section,
.page-ththao__faq-section {
    background-color: var(--mcw88-card-bg);
    padding: 60px 0;
    color: var(--mcw88-text-secondary);
}

.page-ththao__light-bg {
    background-color: var(--mcw88-background);
    color: var(--mcw88-text-secondary);
}

.page-ththao__dark-bg {
    background-color: var(--mcw88-card-bg);
    color: var(--mcw88-text-secondary);
}

/* Feature Grid */
.page-ththao__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__feature-card {
    background-color: var(--mcw88-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--mcw88-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-ththao__feature-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Bet Type Grid */
.page-ththao__bet-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__bet-type-card {
    background-color: var(--mcw88-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--mcw88-border);
}

.page-ththao__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    object-fit: cover;
}

/* Sports List */
.page-ththao__sports-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-ththao__sports-item {
    background-color: var(--mcw88-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--mcw88-border);
    color: var(--mcw88-text-secondary);
}

.page-ththao__sports-item .page-ththao__card-title {
    color: var(--mcw88-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Promotion Grid */
.page-ththao__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__promo-card {
    background-color: var(--mcw88-card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--mcw88-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ththao__promo-card .page-ththao__card-title {
    color: var(--mcw88-gold);
    margin-top: 0;
}

.page-ththao__promo-card .page-ththao__card-text {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Guide List */
.page-ththao__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-ththao__guide-item {
    background-color: var(--mcw88-card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--mcw88-border);
    text-align: center;
}

.page-ththao__guide-item .page-ththao__card-title {
    color: var(--mcw88-gold);
    margin-top: 0;
}

.page-ththao__guide-item .page-ththao__btn-primary,
.page-ththao__guide-item .page-ththao__btn-secondary {
    margin-top: 20px;
}

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 40px;
}

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

.page-ththao__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--mcw88-text-main);
    background-color: var(--mcw88-card-bg);
}

.page-ththao__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-ththao__faq-qtext {
    color: var(--mcw88-gold);
    flex-grow: 1;
    text-align: left;
}

.page-ththao__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--mcw88-gold);
}

.page-ththao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--mcw88-text-secondary);
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
    content: '−';
}

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

.page-ththao__cta-bottom-section .page-ththao__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-ththao__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-ththao__container,
    .page-ththao__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ththao__hero-section {
        padding-bottom: 40px;
    }

    .page-ththao__hero-image-wrapper {
        max-height: 400px;
    }

    .page-ththao__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-ththao__lead-text {
        font-size: 1rem;
    }

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

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-ththao__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-ththao__paragraph {
        font-size: 0.95rem;
    }

    .page-ththao__card-title {
        font-size: 1.2rem;
    }

    .page-ththao__card-text {
        font-size: 0.9rem;
    }

    /* Mobile image, video, button, and container adaptations */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full container width */
        height: auto !important;
        display: block !important;
    }

    .page-ththao video,
    .page-ththao__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-ththao__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }

    .page-ththao__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-ththao__hero-image-wrapper {
        max-height: 250px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .page-ththao__feature-grid,
    .page-ththao__bet-type-grid,
    .page-ththao__sports-list,
    .page-ththao__promo-grid,
    .page-ththao__guide-list {
        grid-template-columns: 1fr;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .page-ththao__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

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