/* style/ththao.css */

/* Custom Colors */
:root {
    --fcb8-green-main: #11A84E;
    --fcb8-green-accent: #22C768;
    --fcb8-btn-gradient-start: #2AD16F;
    --fcb8-btn-gradient-end: #13994A;
    --fcb8-card-bg: #11271B;
    --fcb8-bg-dark: #08160F;
    --fcb8-text-main: #F2FFF6;
    --fcb8-text-secondary: #A7D9B8;
    --fcb8-border: #2E7A4E;
    --fcb8-glow: #57E38D;
    --fcb8-gold: #F2C14E;
    --fcb8-divider: #1E3A2A;
    --fcb8-deep-green: #0A4B2C;
}

/* General Page Styles */
.page-ththao {
    font-family: Arial, sans-serif;
    color: var(--fcb8-text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--fcb8-bg-dark); /* Page background */
    line-height: 1.6;
}

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

.page-ththao__section {
    padding: 60px 0;
    text-align: center;
}

.page-ththao__section-title {
    font-size: 2.8em;
    color: var(--fcb8-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-ththao__sub-title {
    font-size: 1.8em;
    color: var(--fcb8-text-main);
    margin-bottom: 15px;
}

.page-ththao__text-block {
    font-size: 1.1em;
    color: var(--fcb8-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--fcb8-glow);
}

.page-ththao__card-title {
    font-size: 1.5em;
    color: var(--fcb8-gold);
    margin: 15px 0;
}

.page-ththao__card-description {
    font-size: 1em;
    color: var(--fcb8-text-secondary);
    line-height: 1.5;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary,
.page-ththao__btn-link,
.page-ththao a[class*="button"],
.page-ththao a[class*="btn"] {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-ththao__btn-primary {
    background: linear-gradient(180deg, var(--fcb8-btn-gradient-start) 0%, var(--fcb8-btn-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-ththao__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-ththao__btn-secondary {
    background-color: transparent;
    color: var(--fcb8-btn-gradient-start);
    border: 2px solid var(--fcb8-btn-gradient-start);
}

.page-ththao__btn-secondary:hover {
    background-color: var(--fcb8-btn-gradient-start);
    color: #ffffff;
    transform: translateY(-2px);
}

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

.page-ththao__btn-tertiary:hover {
    background-color: var(--fcb8-green-main);
    color: #ffffff;
}

.page-ththao__btn-link {
    color: var(--fcb8-gold);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
    font-weight: normal;
    margin-top: 15px;
    display: block;
}

.page-ththao__btn-link:hover {
    color: var(--fcb8-green-accent);
}

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

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles padding-top, this is for decorative top space */
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px;
}

.page-ththao__hero-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.page-ththao__main-title {
    color: var(--fcb8-gold);
    font-size: clamp(2.5em, 5vw, 3.8em); /* Use clamp for H1 font size */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-ththao__hero-description {
    font-size: 1.3em;
    color: var(--fcb8-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Introduction Section */
.page-ththao__introduction-section {
    background-color: var(--fcb8-bg-dark);
}

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

.page-ththao__feature-icon {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too small */
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Sports Categories Section */
.page-ththao__sports-categories {
    background-color: var(--fcb8-deep-green);
    padding-bottom: 80px;
}

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

.page-ththao__category-card {
    padding: 0;
    background-color: var(--fcb8-card-bg);
    text-align: left;
    overflow: hidden;
}

.page-ththao__category-card .page-ththao__card-title {
    padding: 15px 20px 0;
    font-size: 1.4em;
}

.page-ththao__category-card .page-ththao__card-description {
    padding: 0 20px 20px;
    text-align: left;
    font-size: 0.95em;
    margin-bottom: 0;
}

.page-ththao__category-card .page-ththao__btn-tertiary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-ththao__category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    min-width: 200px;
    min-height: 200px;
}

/* How to Bet Section */
.page-ththao__how-to-bet-section {
    background-color: var(--fcb8-bg-dark);
}

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

.page-ththao__step-card {
    position: relative;
    padding-top: 50px; /* Space for number */
}

.page-ththao__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--fcb8-btn-gradient-start) 0%, var(--fcb8-btn-gradient-end) 100%);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
    border: 3px solid var(--fcb8-border);
}

.page-ththao__step-card .page-ththao__card-title {
    margin-top: 20px;
}

/* Live Betting Section */
.page-ththao__live-betting-section {
    background-color: var(--fcb8-deep-green);
}

.page-ththao__live-betting-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
    flex-wrap: wrap;
}

.page-ththao__live-betting-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.page-ththao__live-betting-text {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-ththao__live-betting-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.page-ththao__live-betting-text ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--fcb8-text-secondary);
    font-size: 1.05em;
}

.page-ththao__live-betting-text ul li strong {
    color: var(--fcb8-text-main);
}

/* Promotions Section */
.page-ththao__promotions-section {
    background-color: var(--fcb8-bg-dark);
}

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

.page-ththao__promo-card {
    background-color: var(--fcb8-card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--fcb8-glow);
}

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

.page-ththao__promo-card .page-ththao__card-title {
    padding: 20px 20px 0;
    font-size: 1.3em;
}

.page-ththao__promo-card .page-ththao__card-description {
    padding: 0 20px 20px;
    text-align: left;
    font-size: 0.95em;
}

.page-ththao__promo-card .page-ththao__btn-link {
    margin: 0 20px 20px;
    text-align: left;
}

/* App Section */
.page-ththao__app-section {
    background-color: var(--fcb8-deep-green);
}

.page-ththao__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
    flex-wrap: wrap;
}

.page-ththao__app-image {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.page-ththao__app-features {
    flex: 2;
    min-width: 300px;
}

.page-ththao__app-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.page-ththao__app-features ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--fcb8-text-secondary);
    font-size: 1.05em;
}

/* FAQ Section */
.page-ththao__faq-section {
    background-color: var(--fcb8-bg-dark);
}

.page-ththao__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

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

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--fcb8-text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--fcb8-gold);
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
    transform: rotate(45deg);
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ththao__section-title {
        font-size: 2.2em;
    }
    .page-ththao__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-ththao__hero-description {
        font-size: 1.1em;
    }
    .page-ththao__live-betting-content,
    .page-ththao__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-ththao__live-betting-image,
    .page-ththao__live-betting-text,
    .page-ththao__app-image,
    .page-ththao__app-features {
        max-width: 100%;
    }
    .page-ththao__live-betting-image {
        order: -1; /* Image above text on smaller screens */
    }
    .page-ththao__live-betting-text ul,
    .page-ththao__app-features ul {
        text-align: left;
        padding-left: 20px;
        max-width: 600px;
        margin: 20px auto;
    }
    .page-ththao__app-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-ththao__section {
        padding: 40px 0;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-ththao__hero-description {
        font-size: 1em;
    }
    .page-ththao__hero-cta-buttons,
    .page-ththao__cta-final-section .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary,
    .page-ththao__btn-link,
    .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;
        padding-right: 15px;
    }
    .page-ththao__hero-cta-buttons > *, .page-ththao__cta-final-section .page-ththao__cta-buttons > * {
        max-width: 100%;
        width: 100%;
    }

    /* Images responsive */
    .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__hero-section,
    .page-ththao__introduction-section,
    .page-ththao__sports-categories,
    .page-ththao__how-to-bet-section,
    .page-ththao__live-betting-section,
    .page-ththao__promotions-section,
    .page-ththao__app-section,
    .page-ththao__faq-section,
    .page-ththao__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-ththao__hero-section {
      padding-top: 10px !important;
    }
    .page-ththao__live-betting-image,
    .page-ththao__app-image {
        margin-bottom: 20px;
    }
    .page-ththao__live-betting-text ul, .page-ththao__app-features ul {
        padding-left: 15px;
    }
    .page-ththao__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-ththao__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-ththao__section-title {
        font-size: 1.5em;
    }
    .page-ththao__card-title {
        font-size: 1.3em;
    }
    .page-ththao__sub-title {
        font-size: 1.5em;
    }
    .page-ththao__hero-cta-buttons,
    .page-ththao__cta-final-section .page-ththao__cta-buttons {
        gap: 10px;
    }
}