/* style/ththao.css */

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

.page-ththao {
    background-color: var(--ththao-bg-color); /* Apply the custom background color */
    color: var(--ththao-text-main); /* Default text color for the page */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure some space before footer */
}

/* Fixed header spacing - body already handles padding-top from shared.css */
/* First section in main should have minimal top padding */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image block above text block */
    align-items: center;
    padding: 0 20px 60px 20px; /* Adjusted padding-bottom */
    /* No padding-top: var(--header-offset) here */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 10px; /* Small top padding for the hero image */
    margin-bottom: 20px; /* Space between image and content */
}

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

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

.page-ththao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    color: var(--ththao-gold-color); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

.page-ththao__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-ththao__btn-primary {
    background: var(--ththao-btn-gradient);
    color: var(--ththao-text-main); /* White-ish text for dark button */
}

.page-ththao__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-ththao__btn-secondary {
    background: var(--ththao-deep-green);
    color: var(--ththao-text-main); /* White-ish text for dark button */
    border: 2px solid var(--ththao-border-color);
}

.page-ththao__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--ththao-border-color);
}

.page-ththao__btn-text-link {
    color: var(--ththao-gold-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

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

.page-ththao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--ththao-gold-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-ththao__about-section,
.page-ththao__sports-types-section,
.page-ththao__promotions-section,
.page-ththao__how-to-start-section,
.page-ththao__faq-section,
.page-ththao__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--ththao-bg-color); /* Ensure consistent background */
}

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

.page-ththao__feature-card,
.page-ththao__sport-card,
.page-ththao__promo-card,
.page-ththao__step-card {
    background-color: var(--ththao-card-bg);
    border: 1px solid var(--ththao-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push link to bottom */
}

.page-ththao__feature-card:hover,
.page-ththao__sport-card:hover,
.page-ththao__promo-card:hover,
.page-ththao__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-ththao__feature-icon,
.page-ththao__sport-image,
.page-ththao__promo-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    min-width: 200px;
    min-height: 200px;
}

.page-ththao__feature-title,
.page-ththao__sport-title,
.page-ththao__promo-title,
.page-ththao__step-title {
    font-size: 1.5em;
    color: var(--ththao-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-ththao__feature-text,
.page-ththao__sport-text,
.page-ththao__promo-text,
.page-ththao__step-text {
    color: var(--ththao-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and push button down */
}

.page-ththao__step-number {
    font-size: 2.5em;
    color: var(--ththao-gold-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__faq-item {
    background-color: var(--ththao-card-bg);
    border: 1px solid var(--ththao-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-ththao__faq-answer {
    padding: 20px 25px;
    color: var(--ththao-text-secondary);
    font-size: 1em;
    line-height: 1.7;
    background-color: var(--ththao-card-bg);
}

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

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

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding-bottom: 40px;
    }
    .page-ththao__hero-image-wrapper {
        padding-top: 10px !important; /* Fixed header spacing */
    }
    .page-ththao__hero-content {
        padding: 15px 0;
    }
    .page-ththao__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-ththao__hero-description,
    .page-ththao__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-ththao__about-section,
    .page-ththao__sports-types-section,
    .page-ththao__promotions-section,
    .page-ththao__how-to-start-section,
    .page-ththao__faq-section,
    .page-ththao__cta-bottom-section {
        padding: 40px 0;
    }
    .page-ththao__features-grid,
    .page-ththao__sports-grid,
    .page-ththao__promo-grid,
    .page-ththao__steps-grid {
        gap: 20px;
        margin-top: 30px;
    }
    .page-ththao__feature-card,
    .page-ththao__sport-card,
    .page-ththao__promo-card,
    .page-ththao__step-card {
        padding: 20px;
    }
    .page-ththao__feature-title,
    .page-ththao__sport-title,
    .page-ththao__promo-title,
    .page-ththao__step-title {
        font-size: 1.3em;
    }
    .page-ththao__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-ththao__faq-answer {
        padding: 15px 20px;
    }
    /* Mobile image adaptation */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }
    /* Mobile container adaptation */
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__hero-section,
    .page-ththao__about-section,
    .page-ththao__sports-types-section,
    .page-ththao__promotions-section,
    .page-ththao__how-to-start-section,
    .page-ththao__faq-section,
    .page-ththao__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific adjustment for hero image wrapper padding */
    .page-ththao__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-ththao__video-section {
        padding-top: 10px !important; /* body already handles --header-offset, here only small decorative padding */
    }
}