/* style/ththao.css */

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

/* Section spacing and general container */
.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-ththao__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #A7D9B8; /* Text Secondary */
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    border: 2px solid transparent; /* Base border for consistent height */
}

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

.page-ththao__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow */
}

.page-ththao__btn-secondary {
    background: transparent;
    color: #2AD16F; /* From Button gradient start, for contrast */
    border-color: #2E7A4E; /* Border */
}

.page-ththao__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    color: #57E38D; /* Glow */
    border-color: #57E38D; /* Glow */
}

.page-ththao__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 250px;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above, content below */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-ththao__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

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

/* About Section */
.page-ththao__about-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green - contrasting background */
}

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

.page-ththao__feature-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__feature-icon {
    width: 100%; /* Ensure images are responsive */
    max-width: 400px; /* Max width for feature images */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure no extra space below */
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__feature-title {
    font-size: 1.6em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__feature-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1em;
}

/* Sports Offerings Section */
.page-ththao__sports-offerings {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-ththao__sport-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
}

.page-ththao__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    display: block;
}

.page-ththao__sport-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin: 20px 0 10px;
    padding: 0 15px;
    font-weight: bold;
}

.page-ththao__sport-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    padding: 0 15px 20px;
    flex-grow: 1; /* Push content to bottom */
}

/* Live Betting Section */
.page-ththao__live-betting-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-ththao__live-betting-content > div {
    flex: 1;
    min-width: 300px;
}

.page-ththao__live-betting-content .page-ththao__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-ththao__live-betting-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.page-ththao__live-betting-list li {
    color: #F2FFF6; /* Text Main */
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-ththao__list-icon {
    color: #57E38D; /* Glow */
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: bold;
}

.page-ththao__live-betting-image-wrapper {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__live-betting-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-ththao__promotions-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-ththao__promo-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
}

.page-ththao__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-ththao__promo-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    padding: 0 15px;
    font-weight: bold;
}

.page-ththao__promo-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    padding: 0 15px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-ththao__promo-card .page-ththao__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

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

/* FAQ Section */
.page-ththao__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-ththao__faq-question:hover {
    background-color: #1E3A2A; /* Divider - slightly darker */
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-ththao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0; /* For JS based collapse */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

/* For <details> tag, default styling */
.page-ththao__faq-item[open] .page-ththao__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

.page-ththao__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

/* CTA Section */
.page-ththao__cta-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
    text-align: center;
}

.page-ththao__cta-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__section-title {
        font-size: 2em;
    }
    .page-ththao__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-ththao__description {
        font-size: 1.1em;
    }
    .page-ththao__live-betting-content {
        flex-direction: column;
    }
    .page-ththao__live-betting-content > div {
        min-width: unset;
        width: 100%;
    }
    .page-ththao__live-betting-content .page-ththao__text-block {
        text-align: center;
    }
    .page-ththao__live-betting-list {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding-top: 10px !important; /* body handles header offset, this is small visual padding */
        padding-bottom: 40px;
    }
    .page-ththao__hero-image-wrapper {
        margin-bottom: 30px;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-ththao__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-right: 15px;
    }
    .page-ththao__cta-buttons,
    .page-ththao__button-group,
    .page-ththao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-ththao__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-ththao__about-section,
    .page-ththao__sports-offerings,
    .page-ththao__live-betting-section,
    .page-ththao__promotions-section,
    .page-ththao__faq-section,
    .page-ththao__cta-section {
        padding: 60px 0;
    }

    /* Images and Video responsiveness */
    .page-ththao img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__hero-image-wrapper,
    .page-ththao__live-betting-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* No video element in HTML, but keeping general video responsive rules as per prompt */
    .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;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-ththao__video-section {
        padding-top: 10px !important; /* body already handled --header-offset */
    }
}

/* Specific details for FAQ (for JS-driven accordion if not using <details>) */
.page-ththao__faq-item.active .page-ththao__faq-answer {
    max-height: 500px !important; /* Adjust as needed for content */
    padding-top: 15px;
}