/* style/the-thao.css */

:root {
    --vf555-primary-color: #FF8C1A;
    --vf555-secondary-color: #FFA53A;
    --vf555-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --vf555-card-bg: #17191F;
    --vf555-background: #0D0E12;
    --vf555-text-main: #FFF3E6;
    --vf555-border-color: #A84F0C;
    --vf555-glow-color: #FFB04D;
    --vf555-deep-orange: #D96800;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    color: var(--vf555-text-main); /* Main text color for the page, based on dark body background */
    background-color: var(--vf555-background);
    line-height: 1.6;
}

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--vf555-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-the-thao__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    color: var(--vf555-primary-color);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 140, 26, 0.6);
}

.page-the-thao__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--vf555-text-main);
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-the-thao__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-the-thao__btn--primary {
    background: var(--vf555-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid var(--vf555-primary-color);
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-the-thao__btn--secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    transform: translateY(-2px);
}

.page-the-thao__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-the-thao__btn--large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-the-thao__section {
    padding: 60px 0;
    background-color: var(--vf555-background);
}

.page-the-thao__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 2.5rem;
    color: var(--vf555-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 165, 58, 0.5);
}

.page-the-thao__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
    color: var(--vf555-text-main);
}

.page-the-thao__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__sports-grid,
.page-the-thao__steps-grid,
.page-the-thao__advantages-grid,
.page-the-thao__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__sport-card,
.page-the-thao__step-card,
.page-the-thao__advantage-item,
.page-the-thao__promo-card {
    background-color: var(--vf555-card-bg); /* Dark card background */
    border: 1px solid var(--vf555-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--vf555-text-main); /* Text color for cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__sport-card:hover,
.page-the-thao__step-card:hover,
.page-the-thao__advantage-item:hover,
.page-the-thao__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 176, 77, 0.2);
}

.page-the-thao__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-the-thao__card-title,
.page-the-thao__step-title,
.page-the-thao__advantage-title {
    font-size: 1.4rem;
    color: var(--vf555-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-the-thao__card-text,
.page-the-thao__step-text,
.page-the-thao__advantage-text {
    font-size: 0.95rem;
    color: var(--vf555-text-main);
    line-height: 1.6;
    text-align: justify;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-the-thao__step-card .page-the-thao__btn {
    margin-top: auto;
}

.page-the-thao__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-the-thao__tip-item {
    background-color: var(--vf555-card-bg);
    border: 1px solid var(--vf555-border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--vf555-text-main);
}

.page-the-thao__tip-title {
    font-size: 1.3rem;
    color: var(--vf555-secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__tip-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vf555-text-main);
    text-align: justify;
}

.page-the-thao__cta-center {
    text-align: center;
    margin-top: 40px;
}

.page-the-thao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__faq-item {
    background-color: var(--vf555-card-bg);
    border: 1px solid var(--vf555-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--vf555-text-main);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--vf555-primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

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

.page-the-thao__faq-question::marker {
    display: none;
}

.page-the-thao__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vf555-text-main);
    text-align: justify;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-the-thao__section-title {
        font-size: 2.2rem;
    }

    .page-the-thao__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }

    .page-the-thao__description {
        font-size: 1rem;
    }

    .page-the-thao__sports-grid,
    .page-the-thao__steps-grid,
    .page-the-thao__advantages-grid,
    .page-the-thao__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-the-thao__card-image {
        height: 180px;
    }

    .page-the-thao__card-title,
    .page-the-thao__step-title,
    .page-the-thao__advantage-title {
        font-size: 1.2rem;
    }

    .page-the-thao__tip-title {
        font-size: 1.1rem;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. Top section title + CTA */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
        gap: 20px;
    }

    .page-the-thao__hero-content {
        padding: 0 15px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-the-thao__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 2. Single column long text container */
    .page-the-thao__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section {
        padding: 40px 0;
    }

    .page-the-thao__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-the-thao__text-block {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* 3. Generic images and figures */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__card-image {
        height: 150px; /* Adjust card image height for mobile */
    }

    .page-the-thao__sport-card,
    .page-the-thao__step-card,
    .page-the-thao__advantage-item,
    .page-the-thao__promo-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-the-thao__card-title,
    .page-the-thao__step-title,
    .page-the-thao__advantage-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .page-the-thao__card-text,
    .page-the-thao__step-text,
    .page-the-thao__advantage-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    /* 4. Buttons and button containers */
    .page-the-thao__btn,
    .page-the-thao__btn--primary,
    .page-the-thao__btn--secondary,
    .page-the-thao a[class*="button"],
    .page-the-thao 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-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao__cta-buttons,
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Ensure buttons wrap in groups */
        gap: 10px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically in hero */
    }

    /* 5. FAQ Readability */
    .page-the-thao__faq-list {
        margin-top: 30px;
    }

    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    .page-the-thao__tip-item {
        padding: 20px;
    }

    .page-the-thao__tip-title {
        font-size: 1.1rem;
    }

    .page-the-thao__tip-text {
        font-size: 0.95rem;
    }
}

/* Ensure color contrast for elements */
.page-the-thao h1, .page-the-thao h2, .page-the-thao h3, .page-the-thao h4, .page-the-thao h5, .page-the-thao h6 {
    color: var(--vf555-primary-color); /* Headings use primary color */
}

.page-the-thao__text-block, .page-the-thao p, .page-the-thao li {
    color: var(--vf555-text-main); /* Ensure main text is light on dark background */
}

.page-the-thao__card-text, .page-the-thao__step-text, .page-the-thao__advantage-text, .page-the-thao__tip-text {
    color: var(--vf555-text-main); /* Ensure card/tip text is light on dark background */
}

/* No filter for images */
.page-the-thao img {
    filter: none; /* Ensure no CSS filter changes image color */
}