/* style/the-thao.css */
.page-the-thao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF;
}

.page-the-thao__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-the-thao__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-the-thao__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-the-thao__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-the-thao__hero-description {
    font-size: clamp(1em, 1.5vw, 1.25em);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-the-thao__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-bottom: 20px;
}

.page-the-thao__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    margin-top: 20px;
}

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

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

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

.page-the-thao__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

.page-the-thao__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-the-thao__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    margin-bottom: 25px;
}

.page-the-thao__dark-section .page-the-thao__section-title {
    color: #FFFFFF;
}

.page-the-thao__section-description {
    font-size: clamp(1em, 1.2vw, 1.15em);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__dark-section .page-the-thao__section-description {
    color: #f0f0f0;
}

.page-the-thao__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-the-thao__grid-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__item-title {
    font-size: clamp(1.2em, 2vw, 1.8em);
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-the-thao__item-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.page-the-thao__item-text {
    font-size: 1em;
    color: #555555;
}

.page-the-thao__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-the-thao__content-wrapper--reverse {
    flex-direction: row-reverse;
}

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

.page-the-thao__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-the-thao__content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-the-thao__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-the-thao__dark-section .page-the-thao__paragraph {
    color: #f0f0f0;
}

.page-the-thao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-the-thao__guide-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__item-subtitle {
    font-size: clamp(1.1em, 1.8vw, 1.5em);
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

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

.page-the-thao__promo-title {
    font-size: clamp(1.2em, 2vw, 1.8em);
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-the-thao__promo-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-the-thao__reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-the-thao__reason-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__reason-title {
    font-size: clamp(1.2em, 2vw, 1.8em);
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-the-thao__reason-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

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

.page-the-thao__faq-question {
    font-size: clamp(1.1em, 1.8vw, 1.4em);
    font-weight: 600;
    padding: 18px 25px;
    color: #26A9E0;
    cursor: pointer;
    position: relative;
    margin: 0;
}

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

.page-the-thao__faq-item.is-active .page-the-thao__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation, just change content */
}

.page-the-thao__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-the-thao__faq-item.is-active .page-the-the-thao__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}

/* General image responsive styles */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-the-thao__hero-image-wrapper {
        max-height: 500px;
    }
    .page-the-thao__content-wrapper {
        flex-direction: column;
    }
    .page-the-thao__content-wrapper--reverse {
        flex-direction: column-reverse;
    }
    .page-the-thao__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
    }

    .page-the-thao__main-title {
        font-size: 2.2em;
    }

    .page-the-thao__hero-description {
        font-size: 1em;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-the-thao__section {
        padding: 30px 15px;
    }

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

    .page-the-thao__section-description {
        font-size: 0.95em;
    }

    .page-the-thao__grid-container,
    .page-the-thao__guide-steps,
    .page-the-thao__promotions-grid,
    .page-the-thao__reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__grid-item,
    .page-the-thao__guide-item,
    .page-the-thao__promo-card,
    .page-the-thao__reason-card {
        padding: 20px;
    }

    .page-the-thao__item-title,
    .page-the-thao__item-subtitle,
    .page-the-thao__promo-title,
    .page-the-thao__reason-title {
        font-size: 1.3em;
    }

    .page-the-thao__content-wrapper,
    .page-the-thao__content-wrapper--reverse {
        flex-direction: column;
        gap: 20px;
    }

    .page-the-thao__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-the-thao__faq-list {
        padding: 0 15px;
    }
    .page-the-thao__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-the-thao__faq-question::after {
        right: 20px;
    }
    .page-the-thao__faq-answer {
        padding: 0 20px 15px;
    }
}