:root {
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

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

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

.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body padding-top handles header offset */
    background-color: var(--color-background);
    overflow: hidden;
}

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

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

.page-ththao__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 10;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.page-ththao__main-title {
    color: var(--color-gold);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    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(--color-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

.page-ththao__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-ththao__section-title {
    color: var(--color-gold);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-ththao__text-block {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-ththao__text-link {
    color: var(--color-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-ththao__text-link:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.page-ththao__introduction-section,
.page-ththao__sports-categories,
.page-ththao__betting-types,
.page-ththao__guide-section,
.page-ththao__promotions-section,
.page-ththao__features-section,
.page-ththao__faq-section,
.page-ththao__conclusion-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-ththao__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-ththao__sport-grid,
.page-ththao__betting-grid,
.page-ththao__guide-steps,
.page-ththao__promo-list,
.page-ththao__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__sport-card,
.page-ththao__betting-item,
.page-ththao__step-card,
.page-ththao__promo-card,
.page-ththao__feature-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__sport-card:hover,
.page-ththao__betting-item:hover,
.page-ththao__step-card:hover,
.page-ththao__promo-card:hover,
.page-ththao__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-ththao__sport-card p,
.page-ththao__betting-item p,
.page-ththao__promo-card p,
.page-ththao__feature-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.page-ththao__step-number {
    background: var(--color-button-gradient);
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

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

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-ththao__faq-question:hover {
    background-color: var(--color-border);
}

.page-ththao__faq-qtext {
    flex-grow: 1;
}

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

.page-ththao__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
    max-height: 500px; /* Adjust as needed */
}

.page-ththao__faq-item.active .page-ththao__faq-answer {
    max-height: 2000px !important; /* For JS fallback, adjust as needed */
}

.page-ththao__cta-buttons--center {
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-ththao__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-ththao__hero-content {
        padding: 30px 15px;
        margin-top: -80px;
    }

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

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

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

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-ththao__introduction-section,
    .page-ththao__sports-categories,
    .page-ththao__betting-types,
    .page-ththao__guide-section,
    .page-ththao__promotions-section,
    .page-ththao__features-section,
    .page-ththao__faq-section,
    .page-ththao__conclusion-section {
        padding: 40px 0;
    }

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

    .page-ththao__sport-grid,
    .page-ththao__betting-grid,
    .page-ththao__guide-steps,
    .page-ththao__promo-list,
    .page-ththao__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        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__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-ththao__video-section {
        padding-top: 10px !important;
    }

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

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

/* Ensure all images adhere to minimum size and content display */
.page-ththao img:not(.shared-logo):not(.shared-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Color contrast specific rules for dark background */
.page-ththao p, .page-ththao li, .page-ththao__hero-description {
    color: var(--color-text-secondary);
}

.page-ththao__card-title, .page-ththao__item-title {
    color: var(--color-text-main);
}