/* style/the-thao.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --body-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-dark: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

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

.page-the-thao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
}

.page-the-thao__hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
}

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

.page-the-thao__main-title {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-the-thao__intro-text {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link,
.page-the-thao__step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--border-color);
}

.page-the-thao__btn-link {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-link:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

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

.page-the-thao__section:nth-of-type(odd) {
    background-color: #fcfdfe;
}

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

.page-the-thao__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-the-thao__section-description {
    font-size: 1.05rem;
    color: var(--text-main);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-the-thao__info-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-the-thao__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-the-thao__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px 25px 10px;
}

.page-the-thao__card-text {
    font-size: 0.95rem;
    padding: 0 25px 20px;
    flex-grow: 1;
}

.page-the-thao__info-card .page-the-thao__btn-link {
    margin: 0 25px 25px;
    align-self: flex-start;
}

.page-the-thao__benefit-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-the-thao__benefit-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-the-thao__benefit-heading {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__step-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding-bottom: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__step-figure {
    margin: 0;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.page-the-thao__step-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(47, 107, 255, 0.8);
    color: #ffffff;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
}

.page-the-thao__step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 25px 20px 15px;
    font-weight: 700;
}

.page-the-thao__step-text {
    font-size: 1rem;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-the-thao__promo-box {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__promo-image {
    width: 40%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.page-the-thao__promo-content {
    flex-grow: 1;
}

.page-the-thao__promo-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-the-thao__promo-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 25px;
}

.page-the-thao__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.page-the-thao__commitment-item {
    background: var(--card-bg);
    padding: 20px 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    color: var(--text-main);
}

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

.page-the-thao__faq-question {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease;
}

.page-the-thao__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item.active .page-the-thao__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-the-thao__faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: var(--text-main);
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
    max-height: 500px; /* Arbitrary large value for expansion */
    padding: 0 25px 20px;
}

.page-the-thao__faq-answer p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-the-thao__faq-answer .page-the-thao__btn-link {
    margin-top: 10px;
}

.page-the-thao__call-to-action {
    background: var(--primary-color);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-the-thao__call-to-action .page-the-thao__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-the-thao__call-to-action .page-the-thao__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-the-thao__call-to-action .page-the-thao__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.page-the-thao__call-to-action .page-the-thao__btn-secondary:hover {
    background: var(--border-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}

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

@media (max-width: 1024px) {
    .page-the-thao__hero-image {
        height: 500px;
    }

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

    .page-the-thao__intro-text {
        font-size: 1.1rem;
    }

    .page-the-thao__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }

    .page-the-thao__promo-box {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__promo-image {
        width: 80%;
        height: auto;
        margin-bottom: 20px;
    }

    .page-the-thao__promo-content {
        padding: 0 20px;
    }
}

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

    /* 1. Top section (padding, CTA layout, button width) */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-the-thao__hero-image {
        height: 300px;
        margin-bottom: 20px;
    }

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

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

    .page-the-thao__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* 2. Single column long article container */
    .page-the-thao__article-wrap {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        margin-bottom: 20px;
    }

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

    .page-the-thao__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__info-card {
        padding-bottom: 20px;
    }

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

    .page-the-thao__card-title {
        font-size: 1.2rem;
        padding: 15px 20px 8px;
    }

    .page-the-thao__card-text {
        font-size: 0.9rem;
        padding: 0 20px 15px;
    }

    .page-the-thao__info-card .page-the-thao__btn-link {
        margin: 0 20px 20px;
        width: calc(100% - 40px);
    }

    .page-the-thao__benefit-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .page-the-thao__benefit-heading {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    /* 3. Generic images */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-the-thao__step-by-step {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__step-figure {
        height: 180px;
    }

    .page-the-thao__step-title {
        font-size: 1.3rem;
        margin: 20px 15px 10px;
    }

    .page-the-thao__step-text {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 15px;
    }

    .page-the-thao__promo-box {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .page-the-thao__promo-image {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .page-the-thao__promo-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

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

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

    /* 5. FAQ blocks */
    .page-the-thao__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }

    .page-the-thao__faq-question::after {
        right: 20px;
        font-size: 1.3rem;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px;
    }

    .page-the-thao__faq-item.active .page-the-thao__faq-answer {
        padding: 0 20px 15px;
    }

    .page-the-thao__faq-answer p {
        font-size: 0.95rem;
    }

    .page-the-thao__call-to-action {
        padding: 60px 0;
    }

    .page-the-thao__call-to-action .page-the-thao__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-the-thao__call-to-action .page-the-thao__section-description {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    /* 4. Buttons and button containers */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-link,
    .page-the-thao__step-btn,
    .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;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking on mobile */
    }
}

@media (max-width: 480px) {
    .page-the-thao__hero-image {
        height: 250px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-the-thao__section-title {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    }
}