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

/* Base styles for the page, ensuring light text on dark body background */
.page-ththao {
    background-color: var(--background-color); /* Assuming shared.css sets body background */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

.page-ththao__hero-section,
.page-ththao__introduction-section,
.page-ththao__bet-types-section,
.page-ththao__advantages-section,
.page-ththao__how-to-join-section,
.page-ththao__promotions-section,
.page-ththao__faq-section,
.page-ththao__conclusion-section {
    padding: 60px 0;
    position: relative;
}

/* Ensure padding-top for the first section is minimal as body handles header offset */
.page-ththao__hero-section {
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-ththao__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-ththao__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-ththao__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-ththao__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Section titles */
.page-ththao__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-ththao__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-ththao__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-ththao__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-ththao__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Card styles */
.page-ththao__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-ththao__card-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* List styles */
.page-ththao__advantages-list,
.page-ththao__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ththao__list-item {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-size: 1.1em;
}

.page-ththao__list-item strong {
    color: var(--gold-color);
}

.page-ththao__cta-block {
    text-align: center;
    margin-top: 50px;
}

/* Dark background sections */
.page-ththao__dark-bg {
    background-color: var(--deep-green);
    color: var(--text-main);
}

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

.page-ththao__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
    background-color: var(--primary-color);
    color: var(--text-main);
}

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

.page-ththao__faq-qtext {
    flex-grow: 1;
    color: var(--text-main); /* Ensure text color is light */
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--text-main); /* Ensure toggle color is light */
}

.page-ththao__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
}

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

/* Remove default details marker */
.page-ththao__faq-item summary {
    list-style: none;
}
.page-ththao__faq-item summary::-webkit-details-marker {
    display: none;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-ththao__main-title {
        font-size: clamp(1.6em, 4vw, 2.4em);
    }
    .page-ththao__section-title {
        font-size: 1.8em;
    }
    .page-ththao__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 15px;
    }

    .page-ththao__hero-section {
        padding: 40px 0 20px 0;
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-ththao__hero-content {
        padding: 0 15px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.4em, 6vw, 2em);
        margin-bottom: 15px;
    }

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

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

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-ththao__hero-cta .page-ththao__btn-primary,
    .page-ththao__hero-cta .page-ththao__btn-secondary {
        width: 100% !important;
    }

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

    .page-ththao__container {
        padding: 0 15px;
    }

    .page-ththao__introduction-section,
    .page-ththao__bet-types-section,
    .page-ththao__advantages-section,
    .page-ththao__how-to-join-section,
    .page-ththao__promotions-section,
    .page-ththao__faq-section,
    .page-ththao__conclusion-section {
        padding: 40px 0;
    }

    .page-ththao__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__card {
        padding: 20px;
    }

    .page-ththao__card-title {
        font-size: 1.3em;
    }

    .page-ththao__list-item {
        padding: 15px;
        font-size: 1em;
    }

    .page-ththao__image-content {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-ththao__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-ththao__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-ththao__main-title {
        font-size: clamp(1.2em, 7vw, 1.8em);
    }
    .page-ththao__section-title {
        font-size: 1.4em;
    }
    .page-ththao__hero-description {
        font-size: 0.95em;
    }
}