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

.page-ththao {
    background-color: var(--bg-main);
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    font-size: 16px;
}

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

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly dim the image to make text pop, not changing color */
}

.page-ththao__hero-content {
    position: relative; /* Position relative for z-index */
    z-index: 1;
    max-width: 900px;
    margin-top: -200px; /* Overlap slightly with image, but not on top of it */
    padding: 40px;
    background: rgba(17, 40, 27, 0.9); /* Dark background for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: var(--text-main);
}

.page-ththao__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.page-ththao__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit width for desktop */
    margin: 0 auto;
}

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-ththao__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

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

.page-ththao__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* General Sections */
.page-ththao__intro-section,
.page-ththao__betting-guide-section,
.page-ththao__promotions-section,
.page-ththao__features-section,
.page-ththao__safety-section,
.page-ththao__conclusion-section {
    padding: 80px 0;
}

.page-ththao__section-title {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.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.05em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-ththao__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    object-fit: cover;
}

/* Dark Background Section (used for featured sports and FAQ) */
.page-ththao__dark-section {
    background-color: var(--bg-card); /* Using card background for dark sections */
    color: var(--text-main);
}

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

.page-ththao__sport-card {
    background-color: var(--bg-main); /* Darker background for card content */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--color-divider);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-ththao__card-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    text-align: justify;
}

/* Betting Guide Section */
.page-ththao__betting-guide-section {
    background-color: var(--bg-main);
}

.page-ththao__guide-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

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

.page-ththao__guide-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-ththao__guide-subtitle {
    font-size: 1.8em;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}

.page-ththao__ordered-list,
.page-ththao__unordered-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-ththao__ordered-list li,
.page-ththao__unordered-list li {
    margin-bottom: 10px;
    font-size: 1.0em;
}

.page-ththao__ordered-list li strong,
.page-ththao__unordered-list li strong {
    color: var(--text-main);
}

.page-ththao__ordered-list li a,
.page-ththao__unordered-list li a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-ththao__ordered-list li a:hover,
.page-ththao__unordered-list li a:hover {
    text-decoration: underline;
}

/* Promotions Section */
.page-ththao__promotions-section {
    background-color: var(--color-deep-green); /* Darker green for contrast */
}

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

.page-ththao__promo-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--color-divider);
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-ththao__promo-card .page-ththao__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-ththao__promo-card .page-ththao__card-description {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-ththao__promo-card .page-ththao__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: calc(100% - 40px); /* Account for padding */
    max-width: 250px;
}

/* Features Section */
.page-ththao__features-section {
    background-color: var(--bg-main);
}

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

.page-ththao__feature-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--color-divider);
    text-align: center;
}

.page-ththao__feature-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

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

.page-ththao__mobile-app-image {
    max-width: 600px;
}

/* Safety Section */
.page-ththao__safety-section {
    background-color: var(--color-deep-green);
}

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

.page-ththao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-ththao__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-ththao__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Lighter hover for dark background */
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-primary);
}

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

.page-ththao__faq-answer a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-ththao__faq-answer a:hover {
    text-decoration: underline;
}

/* Conclusion Section */
.page-ththao__conclusion-section {
    padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-ththao__hero-content {
        margin-top: -150px;
        padding: 30px;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-ththao__guide-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-ththao__guide-image-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding-bottom: 40px;
    }
    .page-ththao__hero-content {
        margin-top: -100px;
        padding: 20px;
        width: calc(100% - 40px); /* Adjust width for padding */
    }
    .page-ththao__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-ththao__description {
        font-size: 1em;
    }
    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain buttons for mobile */
        width: 100%;
        padding: 0 15px; /* Add padding to prevent overflow */
        box-sizing: border-box;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-ththao__intro-section,
    .page-ththao__betting-guide-section,
    .page-ththao__promotions-section,
    .page-ththao__features-section,
    .page-ththao__safety-section,
    .page-ththao__conclusion-section,
    .page-ththao__faq-section {
        padding: 40px 0;
    }
    .page-ththao__container {
        padding: 0 15px;
    }
    .page-ththao__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-ththao__text-block {
        font-size: 0.95em;
    }
    .page-ththao__content-image,
    .page-ththao__promo-image,
    .page-ththao__mobile-app-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }
    .page-ththao__sport-grid,
    .page-ththao__promo-grid,
    .page-ththao__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ththao__guide-subtitle {
        font-size: 1.5em;
    }
    .page-ththao__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-ththao__faq-answer {
        padding: 0 20px 15px;
    }

    /* Ensure all image containers are responsive */
    .page-ththao__hero-image-wrapper,
    .page-ththao__guide-image-wrapper,
    .page-ththao__promo-card,
    .page-ththao__feature-item,
    .page-ththao__sport-card,
    .page-ththao__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-ththao__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-ththao__hero-content {
        margin-top: -80px;
    }
    .page-ththao__main-title {
        font-size: clamp(1.2em, 7vw, 2em);
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
    }
}