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

.page-ththao {
    background-color: var(--page-bg); /* Ensure page content background is dark */
    color: var(--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__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px; /* Sufficient space below content */
}

.page-ththao__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-ththao__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
    margin-top: 150px; /* Push content down to avoid overlapping the video */
}

.page-ththao__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

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

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
    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(--button-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-ththao__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--page-bg);
}

.page-ththao__btn-tertiary {
    background: var(--deep-green);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 1rem;
}

.page-ththao__btn-tertiary:hover {
    background: var(--primary-color);
}

.page-ththao__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-ththao__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-ththao__dark-section {
    background-color: var(--deep-green);
    padding: 60px 20px;
}

.page-ththao__light-bg {
    background-color: var(--page-bg);
    padding: 60px 20px;
}

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

.page-ththao__sport-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-ththao__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ththao__card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

/* Betting Types Section */
.page-ththao__betting-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-ththao__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05rem;
}

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

/* Live Betting Section */
.page-ththao__two-column-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

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

.page-ththao__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/* Security Section */
.page-ththao__security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

/* Promotions Section */
.page-ththao__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-ththao__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__center-button {
    text-align: center;
    margin-top: 40px;
}

/* Get Started Section */
.page-ththao__steps-list {
    list-style: decimal;
    padding-left: 25px;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.page-ththao__steps-list li {
    margin-bottom: 15px;
}

.page-ththao__steps-list li strong {
    color: var(--gold-color);
}

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

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

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

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

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

.page-ththao__faq-answer {
    padding: 0 25px 18px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
    background-color: var(--deep-green);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__hero-content {
        margin-top: 100px;
    }
    .page-ththao__two-column-layout {
        flex-direction: column;
    }
    .page-ththao__text-content, .page-ththao__image-content {
        flex: none;
        width: 100%;
    }
}

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

    .page-ththao__hero-section {
        padding-bottom: 40px;
    }
    .page-ththao__hero-content {
        margin-top: 80px;
        padding: 15px;
    }
    .page-ththao__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-ththao__hero-description {
        font-size: 1rem;
    }
    .page-ththao__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ththao__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    .page-ththao__section-description,
    .page-ththao__text-block,
    .page-ththao__list-item,
    .page-ththao__card-text {
        font-size: 0.95rem;
    }

    .page-ththao__sports-grid, .page-ththao__promotions-grid {
        grid-template-columns: 1fr;
    }

    /* Images responsive */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-ththao__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Video containers responsive */
    .page-ththao__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-ththao__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, keep small */
    }
}