/* style/ththao.css */

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

.page-ththao {
    background-color: var(--page-ththao-bg);
    color: var(--page-ththao-text-main); /* Ensure light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-ththao__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background elements */
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-ththao-gold); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

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

/* General Section Styling */
.page-ththao__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-ththao-divider);
}

.page-ththao__section-title {
    font-size: 2.5em;
    color: var(--page-ththao-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-ththao__text-block {
    margin-bottom: 20px;
    color: var(--page-ththao-text-main);
    font-size: 1.05em;
}

.page-ththao__highlight {
    color: var(--page-ththao-gold);
    font-weight: bold;
}

/* CTA Button Styling */
.page-ththao__cta-button {
    display: inline-block;
    background: var(--page-ththao-button-gradient);
    color: #ffffff; /* White text on dark green button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-ththao__cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-ththao__cta-button--small {
    padding: 12px 25px;
    font-size: 1em;
}

.page-ththao__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    margin-top: 30px;
}

/* Card Styling */
.page-ththao__card {
    background-color: var(--page-ththao-card-bg); /* Dark card background */
    border: 1px solid var(--page-ththao-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-ththao-text-main); /* Light text on dark card */
    display: flex;
    flex-direction: column;
}

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

.page-ththao__card-description {
    font-size: 0.95em;
    color: var(--page-ththao-text-secondary);
    flex-grow: 1; /* Allow description to take available space */
}

.page-ththao__text-link {
    color: var(--page-ththao-gold);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.page-ththao__text-link:hover {
    color: var(--page-ththao-glow);
    text-decoration: underline;
}

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

.page-ththao__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Odds Section */
.page-ththao__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-ththao__text-content {
    flex: 1;
}

.page-ththao__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-ththao__list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--page-ththao-text-main);
    font-size: 1.05em;
}

.page-ththao__list-icon {
    color: var(--page-ththao-glow);
    font-size: 1.2em;
    margin-right: 10px;
    line-height: 1;
}

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

.page-ththao__step-card .page-ththao__card-title {
    color: var(--page-ththao-gold);
}

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

.page-ththao__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Support Section */
.page-ththao__dark-section {
    background-color: var(--page-ththao-deep-green); /* Use a darker green for contrast */
    color: var(--page-ththao-text-main);
}
.page-ththao__dark-section .page-ththao__section-title {
    color: var(--page-ththao-gold);
}
.page-ththao__dark-section .page-ththao__highlight {
    color: var(--page-ththao-glow);
}

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

.page-ththao__faq-item {
    margin-bottom: 15px;
    cursor: pointer;
    overflow: hidden; /* For proper transition */
    background-color: var(--page-ththao-card-bg);
    border: 1px solid var(--page-ththao-border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--page-ththao-text-main);
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-ththao-primary-color);
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker background for summary */
    border-bottom: 1px solid var(--page-ththao-divider);
    transition: background-color 0.3s ease;
}

.page-ththao__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-ththao-gold);
}

.page-ththao__faq-item[open] > .page-ththao__faq-question {
    border-bottom: 1px solid var(--page-ththao-border);
}

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

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

/* Details element specific styling for FAQ */
.page-ththao__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-ththao__section-title {
        font-size: 2em;
    }
    .page-ththao__content-wrapper {
        flex-direction: column;
    }
    .page-ththao__content-wrapper--reversed {
        flex-direction: column;
    }
    .page-ththao__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 15px;
    }
    .page-ththao__container {
        padding: 0 15px;
    }
    .page-ththao__hero-section {
        padding-bottom: 40px;
    }
    .page-ththao__hero-image-wrapper {
        margin-bottom: 30px;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8em, 6vw, 2.8em);
        margin-bottom: 15px;
    }
    .page-ththao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-ththao__section {
        padding: 40px 0;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-ththao__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-ththao__cta-button--large {
        margin-top: 20px;
        width: 100% !important;
    }
    .page-ththao__card {
        padding: 20px;
    }
    .page-ththao__card-title {
        font-size: 1.3em;
    }
    .page-ththao__sport-image,
    .page-ththao__promo-image {
        height: 180px;
    }
    .page-ththao__list-item {
        font-size: 1em;
    }
    .page-ththao__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-ththao__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Images responsiveness */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__hero-image-wrapper,
    .page-ththao__image-content,
    .page-ththao__sports-grid,
    .page-ththao__guide-steps,
    .page-ththao__promotions-grid,
    .page-ththao__faq-list,
    .page-ththao__content-wrapper,
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-ththao__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-ththao__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ththao__video-section {
        padding-top: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}