/* style/ththao.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
}

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

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

.page-ththao__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-ththao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-ththao__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.page-ththao__card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Aligns with common padding strategy */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.page-ththao__hero-image-container {
    width: 100%;
    height: auto;
}

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

.page-ththao__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg-color);
    color: var(--text-main-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: -50px; /* Overlap slightly for visual effect */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.page-ththao__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-ththao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

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

.page-ththao__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

.page-ththao__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-ththao__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.2);
}

.page-ththao__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 30px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
}

.page-ththao__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Introduction Section */
.page-ththao__introduction-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

/* Games Section */
.page-ththao__games-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-ththao__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-ththao__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

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

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

/* Live Betting Section */
.page-ththao__live-betting-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
}

.page-ththao__live-betting-section .page-ththao__section-title {
    color: #ffffff;
}

.page-ththao__live-betting-section .page-ththao__text-block {
    color: #f0f0f0;
}

.page-ththao__features-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 700px;
    text-align: left;
}

.page-ththao__feature-item {
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.page-ththao__feature-item::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Promotions Section */
.page-ththao__promotions-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-ththao__promo-card {
    text-align: center;
}

.page-ththao__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

.page-ththao__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ththao__promo-description {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

/* Guide Section */
.page-ththao__guide-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-ththao__step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-ththao__step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Responsible Gaming Section */
.page-ththao__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

/* FAQ Section */
.page-ththao__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-ththao__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ththao__faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-ththao__faq-item summary:hover {
    background-color: #f0f0f0;
}

.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-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle from capturing click */
}

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

.page-ththao__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
    background-color: var(--card-bg-color);
    border-top: 1px dashed var(--border-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-ththao__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-ththao__cta-final-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
}

.page-ththao__cta-final-section .page-ththao__section-title {
    color: #ffffff;
}

.page-ththao__cta-final-section .page-ththao__text-block {
    color: #f0f0f0;
}

.page-ththao__cta-final-section .page-ththao__cta-buttons {
    margin-top: 30px;
}

/* Global image responsiveness */
.page-ththao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Global button container responsiveness */
.page-ththao__cta-buttons,
.page-ththao__button-group,
.page-ththao__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-ththao__container {
        padding: 15px;
    }

    .page-ththao__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-ththao__hero-description {
        font-size: 1.1em;
    }

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

    .page-ththao__games-grid,
    .page-ththao__promotions-grid,
    .page-ththao__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

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

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

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

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

    .page-ththao__hero-content {
        margin-top: -20px;
        padding: 25px 15px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-ththao__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Universal Image Responsiveness for mobile */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Product/Games Section (Gameshow) specific mobile rules */
    .page-ththao__games-grid,
    .page-ththao__promotions-grid,
    .page-ththao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__game-image {
        height: 180px;
    }

    .page-ththao__promo-image {
        height: 200px;
    }

    /* Buttons and their containers responsiveness for mobile */
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-small,
    .page-ththao a[class*="button"],
    .page-ththao 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 !important;
        padding-right: 15px !important;
    }

    .page-ththao__cta-buttons,
    .page-ththao__button-group,
    .page-ththao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        display: flex;
        flex-direction: column;
    }

    /* Other content modules mobile adjustments */
    .page-ththao__text-block,
    .page-ththao__feature-item,
    .page-ththao__game-description,
    .page-ththao__promo-description,
    .page-ththao__step-description {
        font-size: 1em;
    }

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

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

    .page-ththao__live-betting-section .page-ththao__features-list {
        margin: 20px auto;
    }

    .page-ththao__feature-item {
        padding: 12px 15px;
    }

    .page-ththao__card {
        padding: 20px;
    }
}