:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-login-color: #EA7C07;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-the-thao__intro-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

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

.page-the-thao__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-the-thao__btn--primary {
    background-color: var(--button-login-color);
    color: var(--text-color-light);
    border: 2px solid var(--button-login-color);
}

.page-the-thao__btn--primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

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

.page-the-thao__btn--secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

.page-the-thao__btn--small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* General Section Styles */
.page-the-thao__section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-the-thao__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.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.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-the-thao__paragraph {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

.page-the-thao__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-the-thao__text-block {
    flex: 1;
}

.page-the-thao__image-figure {
    flex: 0 0 680px;
    max-width: 100%;
    text-align: center;
}

.page-the-thao__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-the-thao__image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Lists */
.page-the-thao__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-the-thao__step-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-the-thao__list-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: inherit;
}

.page-the-thao__list-item strong {
    color: var(--primary-color);
}
.page-the-thao__dark-section .page-the-thao__list-item strong {
    color: var(--text-color-light);
}

/* Advantages Grid */
.page-the-thao__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-the-thao__advantage-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-the-thao__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-the-thao__advantage-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-the-thao__advantage-description {
    font-size: 1rem;
    color: var(--text-color-light);
    flex-grow: 1;
}

/* Promotions Grid */
.page-the-thao__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-the-thao__promo-card {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-dark);
}

.page-the-thao__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-the-thao__promo-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

.page-the-thao__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #f8f8f8;
    color: var(--primary-color);
    list-style: none;
}

.page-the-thao__faq-item > summary {
    list-style: none;
}
.page-the-thao__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-the-thao__faq-qtext {
    flex-grow: 1;
}

.page-the-thao__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    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;
    color: var(--text-color-dark);
}

.page-the-thao__faq-answer p {
    margin-bottom: 0;
}

/* Center CTA Buttons */
.page-the-thao__cta-buttons--center {
    margin-top: 40px;
    text-align: center;
}

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

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

    .page-the-thao__hero-image-wrapper {
        max-height: 400px;
    }

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

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

    .page-the-thao__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-the-thao__image-figure {
        flex: none;
        width: 100%;
    }

    .page-the-thao__advantages-grid,
    .page-the-thao__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-the-thao__advantage-card {
        padding: 25px;
    }

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

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

@media (max-width: 768px) {
    /* 1. Top section (title + CTA) padding/spacing/stacking, 10px top padding. */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

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

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

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

    .page-the-thao__btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. Single column long text container padding/font-size/max-width */
    .page-the-thao__section {
        padding: 40px 0;
    }

    .page-the-thao__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-the-thao__paragraph,
    .page-the-thao__list-item {
        font-size: 0.95rem;
    }

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

    .page-the-thao__image-figure {
        margin: 0 auto;
    }

    /* 4. Buttons and button containers */
    .page-the-thao__cta-buttons--center {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 5. Registration tutorial and FAQ blocks (readability) */
    .page-the-thao__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    .page-the-thao__advantages-grid,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__promo-image {
        height: 150px;
    }
}