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

.page-ththao {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for the section itself */
    overflow: hidden;
    box-sizing: border-box;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    margin-bottom: 20px;
}

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

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly for visual effect, but text is below image */
    padding: 20px;
    background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-ththao__subtitle {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__btn-primary {
    background: var(--primary-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

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

.page-ththao__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 2px 8px rgba(87, 227, 141, 0.2);
}

.page-ththao__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.page-ththao__section {
    padding: 50px 20px;
    background-color: var(--bg-color);
    color: var(--text-main);
    border-bottom: 1px solid var(--divider-color);
    box-sizing: border-box;
}

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

.page-ththao__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-ththao__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-ththao__section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-ththao__text-block {
    flex: 1;
    font-size: 1.05em;
    line-height: 1.8;
}

.page-ththao__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

.page-ththao__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

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

.page-ththao__sport-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ththao__sport-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-ththao__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ththao__card-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-ththao__card-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: var(--text-main);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    max-width: calc(100% - 30px); /* Account for padding */
    margin: 0 15px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__card-link:hover {
    opacity: 0.9;
}

.page-ththao__content-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.05em;
}

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

.page-ththao__guide-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-ththao__guide-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-ththao__guide-heading {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-ththao__guide-item p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-ththao__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ththao__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-ththao__promo-card .page-ththao__card-title {
    color: var(--glow-color);
}

.page-ththao__promo-card .page-ththao__btn-primary {
    max-width: calc(100% - 30px);
    margin: 0 15px;
}

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

.page-ththao__faq-item {
    background-color: var(--card-bg);
    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: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--gold-color);
    font-size: 1.15em;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
}

.page-ththao__faq-question:hover {
    background-color: var(--deep-green);
    opacity: 0.9;
}

.page-ththao__faq-question::-webkit-details-marker {
    display: none;
}

.page-ththao__faq-question::marker {
    display: none;
}

.page-ththao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--glow-color);
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-ththao__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-ththao__image-block {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }

    .page-ththao__hero-content {
        margin-top: -100px;
    }
}

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-ththao__hero-content {
        margin-top: -80px;
        padding: 15px;
    }

    .page-ththao__main-title {
        font-size: 2em;
    }

    .page-ththao__subtitle {
        font-size: 0.95em;
    }

    .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;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ththao__section {
        padding: 30px 15px;
    }

    .page-ththao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-ththao__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-ththao__sports-grid,
    .page-ththao__guide-steps,
    .page-ththao__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__sport-card img,
    .page-ththao__promo-card img,
    .page-ththao__image-block img,
    .page-ththao__guide-item img,
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container,
    .page-ththao__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper,
    .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;
        overflow: hidden !important;
    }

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

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

/* Contrast Fixes if needed */
.page-ththao__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-ththao__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}