/* style/ththao.css */

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

/* Base styles for the page */
.page-ththao {
    font-family: Arial, sans-serif;
    color: var(--page-ththao-text-main); /* Default text color for dark background */
    background-color: var(--page-ththao-background);
}

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

.page-ththao__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--page-ththao-text-main);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-ththao__sub-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    color: var(--page-ththao-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-ththao__text-block {
    font-size: 17px;
    line-height: 1.6;
    color: var(--page-ththao-text-secondary);
    margin-bottom: 20px;
}

.page-ththao__dark-section {
    background-color: var(--page-ththao-background);
    color: var(--page-ththao-text-main);
    padding: 60px 0;
}

.page-ththao__light-bg {
    background-color: #f5f5f5; /* Using a light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-ththao__light-bg .page-ththao__section-title,
.page-ththao__light-bg .page-ththao__sub-title {
    color: #000000;
}

.page-ththao__light-bg .page-ththao__text-block {
    color: #555555;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
}

.page-ththao__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-ththao__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-ththao__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Using clamp for responsive H1 */
    font-weight: 800;
    color: var(--page-ththao-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-ththao__subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--page-ththao-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

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

.page-ththao__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
}

.page-ththao__btn-primary {
    background: var(--page-ththao-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-ththao__btn-secondary {
    background: #ffffff;
    color: var(--page-ththao-primary-color);
    border: 2px solid var(--page-ththao-primary-color);
}

.page-ththao__btn-secondary:hover {
    background: var(--page-ththao-primary-color);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.page-ththao__margin-top {
    margin-top: 30px;
}

.page-ththao__small-margin-top {
    margin-top: 15px;
}

/* Content Image styles */
.page-ththao__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

.page-ththao__card {
    background-color: var(--page-ththao-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--page-ththao-border-color);
    color: var(--page-ththao-text-main);
}

.page-ththao__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--page-ththao-text-main);
    margin-bottom: 15px;
}

.page-ththao__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--page-ththao-text-secondary);
    flex-grow: 1;
}

.page-ththao__card-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-ththao-text-main);
    cursor: pointer;
    user-select: none;
    background-color: var(--page-ththao-deep-green);
    border-bottom: 1px solid var(--page-ththao-divider-color);
}

.page-ththao__faq-question:hover {
    background-color: var(--page-ththao-primary-color);
}

.page-ththao__faq-qtext {
    flex-grow: 1;
}

.page-ththao__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

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

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

.page-ththao__faq-item summary {
    list-style: none;
}

/* CTA Bottom Section */
.page-ththao__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
}

.page-ththao__cta-bottom-content .page-ththao__section-title {
    margin-bottom: 20px;
}

.page-ththao__cta-bottom-content .page-ththao__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ththao__hero-content {
        padding: 15px;
    }

    .page-ththao__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-ththao__subtitle {
        font-size: clamp(16px, 2.2vw, 20px);
    }

    .page-ththao__feature-grid,
    .page-ththao__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-ththao__card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-ththao__container,
    .page-ththao__hero-section,
    .page-ththao__introduction-section,
    .page-ththao__features-section,
    .page-ththao__sports-categories,
    .page-ththao__live-betting-section,
    .page-ththao__guide-section,
    .page-ththao__faq-section,
    .page-ththao__cta-bottom-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-ththao__hero-section {
        min-height: 450px;
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }

    .page-ththao__main-title {
        font-size: clamp(24px, 6vw, 38px);
    }

    .page-ththao__subtitle {
        font-size: clamp(15px, 3.5vw, 18px);
    }

    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-ththao__cta-button,
    .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: 12px 20px !important;
        font-size: 16px !important;
    }

    .page-ththao img,
    .page-ththao video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-ththao__feature-grid,
    .page-ththao__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__card {
        padding: 25px;
    }

    .page-ththao__card-image {
        height: 200px;
    }

    .page-ththao__section-title {
        font-size: clamp(24px, 5vw, 32px);
    }

    .page-ththao__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    .page-ththao__cta-bottom-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .page-ththao__hero-section {
        min-height: 400px;
    }

    .page-ththao__main-title {
        font-size: clamp(22px, 7vw, 30px);
    }

    .page-ththao__subtitle {
        font-size: clamp(14px, 4vw, 16px);
    }

    .page-ththao__section-title {
        font-size: clamp(20px, 6vw, 28px);
    }
    
    .page-ththao__text-block {
        font-size: 16px;
    }

    .page-ththao__faq-question {
        font-size: 15px;
    }

    .page-ththao__faq-answer {
        font-size: 14px;
    }
}