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

.page-ththao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Light text for dark body background */
    background-color: var(--background-color);
    line-height: 1.6;
}

.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;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px;
}

.page-ththao__hero-content {
    padding: 30px 20px;
    text-align: center;
    max-width: 800px;
    margin-top: 20px;
    z-index: 1;
}

.page-ththao__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-ththao__description {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-ththao__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

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

.page-ththao__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main-color);
    transform: translateY(-2px);
}

.page-ththao__btn-tertiary {
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
    margin-top: 15px;
    display: inline-block;
}

.page-ththao__btn-tertiary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* General Section Styling */
.page-ththao__introduction-section,
.page-ththao__features-section,
.page-ththao__sports-types-section,
.page-ththao__guide-section,
.page-ththao__promotions-section,
.page-ththao__tips-section,
.page-ththao__faq-section,
.page-ththao__cta-section {
    padding: 60px 0;
}

.page-ththao__section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-ththao__text-content {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-ththao__dark-bg {
    background-color: var(--card-bg-color);
}

.page-ththao__card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-color);
}

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

.page-ththao__feature-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px;
}

.page-ththao__feature-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

/* Sports Types Section */
.page-ththao__sports-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    color: var(--text-secondary-color);
}

.page-ththao__list-item {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
}

.page-ththao__list-item strong {
    color: var(--primary-color);
}

.page-ththao__list-item::before {
    content: '•';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.page-ththao__text-center {
    text-align: center;
    margin-top: 30px;
}

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

.page-ththao__guide-step {
    padding: 30px;
}

.page-ththao__guide-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min size for all images */
    min-height: 200px;
}

.page-ththao__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__step-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

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

.page-ththao__promotion-card {
    text-align: left;
    padding: 20px;
}

.page-ththao__promotion-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px;
}

.page-ththao__promotion-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__promotion-description {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

/* Tips Section */
.page-ththao__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ththao__tips-list .page-ththao__list-item {
    margin-bottom: 20px;
}

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

.page-ththao__faq-item {
    margin-bottom: 20px;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
}

.page-ththao__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--divider-color);
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

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

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

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

.page-ththao__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter background for answer */
    border-radius: 0 0 12px 12px;
}

/* CTA Section */
.page-ththao__cta-section {
    text-align: center;
    background-color: var(--deep-green-color);
    padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-ththao__container {
        padding: 0 15px;
    }

    .page-ththao__hero-section,
    .page-ththao__introduction-section,
    .page-ththao__features-section,
    .page-ththao__sports-types-section,
    .page-ththao__guide-section,
    .page-ththao__promotions-section,
    .page-ththao__tips-section,
    .page-ththao__faq-section,
    .page-ththao__cta-section {
        padding: 40px 0;
    }

    .page-ththao__main-title {
        font-size: 1.8rem;
    }

    .page-ththao__description {
        font-size: 1rem;
    }

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

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-ththao__section-title {
        font-size: 1.8rem;
    }

    .page-ththao__text-content,
    .page-ththao__feature-description,
    .page-ththao__step-description,
    .page-ththao__promotion-description,
    .page-ththao__list-item,
    .page-ththao__faq-answer {
        font-size: 0.9rem;
    }

    .page-ththao__feature-grid,
    .page-ththao__guide-steps,
    .page-ththao__promotion-grid {
        grid-template-columns: 1fr;
    }

    .page-ththao__feature-image,
    .page-ththao__guide-icon,
    .page-ththao__promotion-image,
    .page-ththao__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Ensure all image containers are responsive */
    .page-ththao__hero-image-wrapper,
    .page-ththao__feature-card,
    .page-ththao__guide-step,
    .page-ththao__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-ththao__faq-item summary {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-ththao__faq-answer {
        padding: 12px 15px;
    }
}

/* Ensure all images have a minimum display size */
.page-ththao img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Additional contrast/color rules based on palette */
.page-ththao__dark-section {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

/* Ensure contrast for specific elements */
.page-ththao__section-title,
.page-ththao__feature-title,
.page-ththao__step-title,
.page-ththao__promotion-title,
.page-ththao__faq-question {
    color: var(--gold-color);
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
    color: var(--text-main-color);
}
.page-ththao__btn-secondary {
    color: var(--primary-color);
}
.page-ththao__btn-secondary:hover {
    color: var(--text-main-color);
}

.page-ththao__list-item strong {
    color: var(--primary-color);
}

.page-ththao__list-item::before {
    color: var(--gold-color);
}

.page-ththao__main-title {
    color: var(--gold-color);
}