:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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 {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Default background color */
}

.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for visual separation */
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--color-card-bg);
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.3;
}

.page-ththao__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-ththao__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-ththao__subtitle {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.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.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-ththao__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(34, 199, 104, 0.3);
}

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

.page-ththao__overview-section,
.page-ththao__betting-system-section,
.page-ththao__promotions-section,
.page-ththao__tips-section,
.page-ththao__conclusion-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-ththao__sports-highlight-section,
.page-ththao__guide-section,
.page-ththao__features-section,
.page-ththao__faq-section {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width on desktop */
}

.page-ththao__section-title {
    font-size: 2.5em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-ththao__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

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

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

.page-ththao__card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

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

.page-ththao__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

.page-ththao__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--color-text-main);
}

.page-ththao__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-ththao__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.page-ththao__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
    margin-top: 30px;
}

.page-ththao__guide-list li {
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--color-text-main);
}

.page-ththao__guide-list li::before {
    counter-increment: guide-step;
    content: 'Bước ' counter(guide-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--color-primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

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

.page-ththao__feature-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-ththao__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-ththao__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-ththao__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    outline: none;
    transition: background-color 0.3s ease;
}

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

.page-ththao__faq-item summary:hover {
    background-color: rgba(34, 199, 104, 0.1);
}

.page-ththao__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-ththao__main-title {
        font-size: clamp(2em, 6vw, 3em);
    }
    .page-ththao__subtitle {
        font-size: clamp(1em, 2.5vw, 1.2em);
    }
    .page-ththao__section-title {
        font-size: 2em;
    }
    .page-ththao__sport-cards,
    .page-ththao__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-ththao__hero-content {
        padding: 15px;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-ththao__subtitle {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
    }
    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        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__overview-section,
    .page-ththao__sports-highlight-section,
    .page-ththao__betting-system-section,
    .page-ththao__guide-section,
    .page-ththao__promotions-section,
    .page-ththao__features-section,
    .page-ththao__tips-section,
    .page-ththao__faq-section,
    .page-ththao__conclusion-section {
        padding: 40px 15px;
    }
    .page-ththao__container {
        padding-left: 0px;
        padding-right: 0px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-ththao__text-block,
    .page-ththao__list,
    .page-ththao__guide-list li,
    .page-ththao__card-text,
    .page-ththao__feature-text,
    .page-ththao__faq-answer {
        font-size: 1em;
    }
    .page-ththao__sport-cards,
    .page-ththao__features-grid {
        grid-template-columns: 1fr;
    }
    .page-ththao__card-image,
    .page-ththao__feature-icon,
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__card,
    .page-ththao__feature-item {
        padding: 20px;
    }
    .page-ththao__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-ththao__faq-answer {
        padding: 0 20px 15px;
    }
    .page-ththao__guide-list li {
        padding-left: 50px;
    }
    .page-ththao__guide-list li::before {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-ththao__main-title {
        font-size: clamp(1.5em, 9vw, 2em);
    }
    .page-ththao__subtitle {
        font-size: clamp(0.85em, 4vw, 1em);
    }
    .page-ththao__section-title {
        font-size: 1.5em;
    }
    .page-ththao__text-block,
    .page-ththao__list,
    .page-ththao__guide-list li,
    .page-ththao__card-text,
    .page-ththao__feature-text,
    .page-ththao__faq-answer {
        font-size: 0.95em;
    }
}

/* Color contrast safety for specific elements */
.page-ththao p,
.page-ththao li,
.page-ththao__text-block,
.page-ththao__card-text,
.page-ththao__feature-text,
.page-ththao__faq-answer p {
  color: var(--color-text-main);
}

.page-ththao__light-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

/* Ensure images in content area don't go below 200px on desktop */
.page-ththao__sport-cards .page-ththao__card-image,
.page-ththao__features-grid .page-ththao__feature-icon {
  min-width: 200px;
  min-height: 200px;
}

.page-ththao__feature-icon {
  width: 200px; /* Specific width for feature icons */
  height: 200px;
  object-fit: contain;
}