/* style/ththao.css */

/* Base styles for the page */
.page-ththao {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

/* Page container for content width */
.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-ththao__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

/* Text blocks */
.page-ththao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #F2FFF6; /* Text Main */
}

.page-ththao__text-block--small {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
}

.page-ththao__text-block--small a {
    color: #2AD16F; /* Button top color for links */
    text-decoration: underline;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #0A4B2C; /* Deep Green */
    overflow: hidden;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-ththao__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    z-index: 1;
}

.page-ththao__main-title {
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-ththao__description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-ththao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin-left: auto;
    margin-right: auto;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    min-width: 180px; /* Minimum width for buttons */
}

.page-ththao__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__btn-secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F; /* Button top color */
    border: 2px solid #2E7A4E; /* Border */
}

.page-ththao__btn-secondary:hover {
    background: #2E7A4E; /* Border color on hover */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section specific styles */
.page-ththao__about-section,
.page-ththao__why-choose-section,
.page-ththao__betting-options-section,
.page-ththao__live-betting-section,
.page-ththao__promotions-section,
.page-ththao__faq-section,
.page-ththao__cta-final-section {
    padding: 60px 0;
}

.page-ththao__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-ththao__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-ththao__card-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__card-text {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-ththao__card-button {
    margin-top: auto;
}


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

.page-ththao__faq-item {
    margin-bottom: 20px;
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.page-ththao__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

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

.page-ththao__faq-item summary:hover {
    background-color: #1E3A2A; /* Divider */
}

.page-ththao__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #2AD16F; /* Button top color */
    line-height: 1;
}

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

.page-ththao__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
}

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

.page-ththao__faq-answer a {
    color: #2AD16F; /* Button top color for links */
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ththao__main-title {
        font-size: clamp(2em, 4vw, 3.5em);
    }
    .page-ththao__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-ththao__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-ththao__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ththao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for smaller screens */
    }

    .page-ththao__description {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .page-ththao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ththao__container {
        padding: 0 15px;
    }

    .page-ththao__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-ththao__text-block {
        font-size: 1em;
    }

    .page-ththao__features-grid,
    .page-ththao__options-grid,
    .page-ththao__promotions-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-ththao__card {
        padding: 20px;
    }

    .page-ththao__card-title {
        font-size: 1.3em;
    }

    .page-ththao__card-text {
        font-size: 0.95em;
    }

    .page-ththao__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    .page-ththao__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-ththao__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Ensure all image containers are also responsive */
    .page-ththao__about-section,
    .page-ththao__why-choose-section,
    .page-ththao__betting-options-section,
    .page-ththao__live-betting-section,
    .page-ththao__promotions-section,
    .page-ththao__faq-section,
    .page-ththao__cta-final-section {
        padding: 40px 0;
    }
    .page-ththao__about-section .page-ththao__container,
    .page-ththao__why-choose-section .page-ththao__container,
    .page-ththao__betting-options-section .page-ththao__container,
    .page-ththao__live-betting-section .page-ththao__container,
    .page-ththao__promotions-section .page-ththao__container,
    .page-ththao__faq-section .page-ththao__container,
    .page-ththao__cta-final-section .page-ththao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}