/* style/ththao.css */

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

/* Base styles for the page content */
.page-ththao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--f8bet-text-main); /* Light text for dark body background */
    background-color: var(--f8bet-bg-page); /* Ensure consistency if body background is not fully dark */
}

/* Sections */
.page-ththao__section-title {
    font-size: 2.5em;
    color: var(--f8bet-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-ththao__description-text {
    font-size: 1.1em;
    color: var(--f8bet-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-ththao__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-ththao__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--f8bet-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-ththao__description {
    font-size: 1.2em;
    color: var(--f8bet-text-secondary);
    margin-bottom: 40px;
}

.page-ththao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
    min-width: 180px; /* Minimum width for buttons */
}

.page-ththao__btn-primary {
    background: var(--f8bet-button-gradient);
    color: var(--f8bet-text-main);
    border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-ththao__btn-secondary:hover {
    background-color: var(--f8bet-color-primary);
    color: var(--f8bet-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.3);
}

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

/* Overview Section & Promotions Section */
.page-ththao__overview-section,
.page-ththao__promotions-section,
.page-ththao__guide-section,
.page-ththao__features-section,
.page-ththao__cta-section,
.page-ththao__faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--f8bet-divider);
}

.page-ththao__dark-section {
    background-color: var(--f8bet-bg-card); /* Darker background for sections */
    color: var(--f8bet-text-main);
}

.page-ththao__light-bg {
    background-color: var(--f8bet-bg-page); /* Lighter (but still dark) background for contrast */
    color: var(--f8bet-text-main);
}

.page-ththao__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-ththao__content-wrapper--reversed {
    flex-direction: row-reverse;
}

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

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

.page-ththao__image-block--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-ththao__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-ththao__promo-list li {
    background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent green */
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--f8bet-color-primary);
    border-radius: 5px;
    color: var(--f8bet-text-main);
}

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


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

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

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

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

.page-ththao__card p {
    color: var(--f8bet-text-secondary);
    font-size: 1em;
}

/* Guide Section Steps */
.page-ththao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__step-item {
    background-color: var(--f8bet-bg-card);
    border: 1px solid var(--f8bet-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    color: var(--f8bet-text-main);
}

.page-ththao__step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--f8bet-color-primary);
    color: var(--f8bet-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--f8bet-bg-page); /* Outline to match page BG */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-ththao__step-title {
    font-size: 1.4em;
    color: var(--f8bet-gold);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__step-item p {
    color: var(--f8bet-text-secondary);
}

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

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

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

.page-ththao__feature-item p {
    color: var(--f8bet-text-secondary);
}

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

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

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

.page-ththao__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

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

.page-ththao__faq-qtext {
    color: var(--f8bet-gold);
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--f8bet-color-primary);
    width: 24px;
    text-align: center;
}

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

/* Final CTA Section */
.page-ththao__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-ththao__cta-section .page-ththao__container--flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.page-ththao__cta-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-ththao__cta-content .page-ththao__section-title {
    text-align: left;
    margin-bottom: 15px;
}

.page-ththao__cta-content .page-ththao__description-text {
    text-align: left;
    margin: 0;
    color: var(--f8bet-text-main); /* Ensure main text color */
}

.page-ththao__cta-section .page-ththao__cta-buttons {
    flex: 0 0 auto;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__hero-image-wrapper {
        max-height: 500px;
    }
    .page-ththao__section-title {
        font-size: 2em;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-ththao__description {
        font-size: 1.1em;
    }
    .page-ththao__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-ththao__content-wrapper--reversed {
        flex-direction: column; /* Also column for reversed */
    }
    .page-ththao__image-block {
        order: -1; /* Image always on top for reversed layout on mobile */
    }
    .page-ththao__cta-content {
        text-align: center;
    }
    .page-ththao__cta-content .page-ththao__section-title {
        text-align: center;
    }
    .page-ththao__cta-content .page-ththao__description-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Mobile image and video responsive styles */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao video,
    .page-ththao__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containing elements for images/videos/buttons */
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__content-wrapper,
    .page-ththao__image-block,
    .page-ththao__text-block,
    .page-ththao__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper,
    .page-ththao__cta-buttons,
    .page-ththao__button-group,
    .page-ththao__btn-container,
    .page-ththao__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }
    /* Specific top padding for hero/video sections */
    .page-ththao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }
    .page-ththao__video-section {
        padding-top: 10px !important; /* body already handles --header-offset, this is for visual spacing */
    }

    /* Mobile button responsive styles */
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .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; /* Ensure padding inside button */
        padding-right: 15px; /* Ensure padding inside button */
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    .page-ththao__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-ththao__hero-content {
        padding: 0 15px;
    }
    .page-ththao__overview-section,
    .page-ththao__promotions-section,
    .page-ththao__guide-section,
    .page-ththao__features-section,
    .page-ththao__cta-section,
    .page-ththao__faq-section {
        padding: 40px 0;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-ththao__description-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-ththao__card,
    .page-ththao__step-item,
    .page-ththao__feature-item,
    .page-ththao__faq-item {
        padding: 20px;
    }
    .page-ththao__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-ththao__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}