: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;
}

.page-ththao {
    background-color: var(--background-color);
    color: var(--text-main); /* Main text color for dark background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.page-ththao__section-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-ththao__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    overflow: hidden;
    background-color: var(--deep-green); /* Fallback background */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 300px; /* Ensure minimum size */
}

.page-ththao__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.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 {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

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

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

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

.page-ththao__btn-link {
    background: none;
    border: none;
    color: var(--gold-color);
    padding: 5px 0;
    font-size: 1rem;
    text-decoration: underline;
    display: inline;
}

.page-ththao__btn-link:hover {
    color: var(--glow-color);
}

.page-ththao__large-btn {
    padding: 18px 35px;
    font-size: 1.2rem;
    min-width: 250px;
}

/* Video Section */
.page-ththao__video-section {
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--deep-green);
}

.page-ththao__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    width: 100%; /* Desktop width must be 100% with max-width */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.page-ththao__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.page-ththao__video-cta {
    margin-top: 30px;
}

/* Content Wrapper for sections with text and image */
.page-ththao__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.page-ththao__text-block {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-ththao__image-block {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-ththao__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

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

/* Cards */
.page-ththao__card,
.page-ththao__benefit-card,
.page-ththao__tip-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ththao__card-title,
.page-ththao__benefit-title,
.page-ththao__tip-title {
    font-size: 1.5rem;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__card-text,
.page-ththao__benefit-text,
.page-ththao__tip-text {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Promotion Cards */
.page-ththao__promo-card {
    text-align: center;
}

.page-ththao__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

.page-ththao__promo-btn {
    margin-top: 20px;
}

.page-ththao__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--divider-color);
}

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

/* How-To-Bet Section */
.page-ththao__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

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

.page-ththao__step-icon {
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-ththao__step-title {
    font-size: 1.4rem;
    color: var(--glow-color);
    margin-bottom: 10px;
}

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

.page-ththao__how-to-image {
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-ththao__faq-item summary {
    list-style: none; /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

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

/* Final CTA Section */
.page-ththao__cta-final-section {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--deep-green);
}

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

/* Global image styles */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important; /* Ensure no filter is used on images */
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-ththao__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-ththao__section-title {
        font-size: 2rem;
    }
    .page-ththao__hero-image-wrapper {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-ththao__section {
        padding: 40px 15px !important;
    }
    .page-ththao__section-title {
        font-size: 1.8rem !important;
    }
    .page-ththao__section-description {
        font-size: 1rem !important;
    }
    .page-ththao__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    }
    .page-ththao__hero-description {
        font-size: 1rem !important;
    }
    .page-ththao__hero-cta {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__large-btn,
    .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 !important;
        padding-right: 15px !important;
    }
    .page-ththao__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Video responsiveness */
    .page-ththao video,
    .page-ththao__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-ththao__video-section {
        padding-top: 10px !important;
    }
    .page-ththao__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image responsiveness */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__content-wrapper,
    .page-ththao__grid-container,
    .page-ththao__steps-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-ththao__hero-image-wrapper {
        max-height: 300px !important;
    }
    .page-ththao__promo-image {
        height: 200px !important;
    }
    .page-ththao__image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    /* Any img within .page-ththao must not be smaller than 200px */
    .page-ththao img:not(.page-ththao__faq-toggle) {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}