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

.page-ththao {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary); /* Ensure content text is light on dark background */
}

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

.page-ththao__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-ththao__dark-section {
    background-color: var(--bg-card);
}

.page-ththao__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-ththao__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    padding: 10px 0 60px 0; /* body handles padding-top, use small decorative padding here */
    background-color: var(--bg-primary);
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    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;
    min-height: 400px; /* Ensure minimum height for visual impact */
}

.page-ththao__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-ththao__hero-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size for H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.page-ththao__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-ththao__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-ththao__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.page-ththao__btn-tertiary {
    background-color: var(--deep-green);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-ththao__btn-tertiary:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

/* Features Grid */
.page-ththao__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ththao__feature-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-ththao__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-ththao__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-ththao__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-ththao__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sports Grid */
.page-ththao__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ththao__sport-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-ththao__sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--gold-color);
}

.page-ththao__sport-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-ththao__sport-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--gold-color);
    padding: 20px 20px 10px;
}

.page-ththao__sport-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* How to Start Steps */
.page-ththao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ththao__step-card {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-ththao__step-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 15px;
    background: rgba(242, 193, 78, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ththao__step-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-ththao__step-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Live Betting Section */
.page-ththao__live-betting-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 50px;
}

.page-ththao__live-betting-content .page-ththao__text-block {
    flex: 1;
}

.page-ththao__live-betting-content .page-ththao__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-ththao__subtitle {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--gold-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-ththao__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 300px;
}

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

.page-ththao__promo-card {
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-ththao__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-ththao__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-ththao__promo-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-main);
    padding: 20px 20px 10px;
}

.page-ththao__promo-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Security Grid */
.page-ththao__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ththao__security-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-ththao__security-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-ththao__security-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-ththao__security-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile App Section */
.page-ththao__mobile-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 50px;
}

.page-ththao__mobile-content .page-ththao__text-block {
    flex: 1;
}

.page-ththao__mobile-content .page-ththao__image-wrapper {
    flex: 1;
    text-align: center;
}

/* Support Grid */
.page-ththao__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ththao__support-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-ththao__support-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-ththao__support-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-ththao__support-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--deep-green);
    color: var(--text-main);
    border-bottom: 1px solid transparent; /* No border initially */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
    border-bottom-color: var(--border-color); /* Border when open */
}

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

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

.page-ththao__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
    transform: rotate(45deg);
}

.page-ththao__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-card);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__section-title {
        font-size: 2.2em;
    }
    .page-ththao__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-ththao__live-betting-content,
    .page-ththao__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-ththao__live-betting-content .page-ththao__text-block,
    .page-ththao__mobile-content .page-ththao__text-block {
        order: 2; /* Text after image on mobile for consistency */
    }
    .page-ththao__live-betting-content .page-ththao__image-wrapper,
    .page-ththao__mobile-content .page-ththao__image-wrapper {
        order: 1;
    }
    .page-ththao__subtitle {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ththao__container {
        padding: 0 15px;
    }
    .page-ththao__section {
        padding: 40px 0;
    }
    .page-ththao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
    }
    .page-ththao__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-ththao__hero-description {
        font-size: 1em;
    }
    .page-ththao__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary,
    .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;
        padding-right: 15px;
    }
    .page-ththao__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images and Video responsiveness */
    .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__hero-image-wrapper,
    .page-ththao__image-wrapper,
    .page-ththao__promo-image,
    .page-ththao__sport-image,
    .page-ththao__video-container,
    .page-ththao__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-ththao__feature-card,
    .page-ththao__sport-card,
    .page-ththao__step-card,
    .page-ththao__promo-card,
    .page-ththao__security-item,
    .page-ththao__support-item {
        padding: 20px;
    }
    .page-ththao__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-ththao__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-ththao__section-title {
        font-size: 1.5em;
    }
    .page-ththao__hero-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-ththao__subtitle {
        font-size: 1.5em;
    }
    .page-ththao__feature-title,
    .page-ththao__sport-title,
    .page-ththao__step-title,
    .page-ththao__promo-title,
    .page-ththao__security-title,
    .page-ththao__support-title {
        font-size: 1.3em;
    }
    .page-ththao__hero-image {
        min-height: 250px; /* Adjust for smaller screens */
    }
}