.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D;
    background-color: #F4F7FB;
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #F4F7FB;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    position: relative;
}

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

.page-the-thao__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content slightly over the image for visual flow */
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-the-thao__main-title {
    font-size: 42px;
    font-weight: 700;
    color: #1F2D3D;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-the-thao__description {
    font-size: 18px;
    line-height: 1.6;
    color: #1F2D3D;
    margin-bottom: 30px;
}

.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-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    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: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 8px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-the-thao__btn-secondary:hover {
    background: #F4F7FB;
    color: #2F6BFF;
    border-color: #6FA3FF;
    box-shadow: 0 8px 15px rgba(111, 163, 255, 0.2);
}

.page-the-thao__center-button {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 300px;
}

.page-the-thao__content-section {
    padding: 60px 0;
}

.page-the-thao__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-the-thao__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
    border-radius: 2px;
}

.page-the-thao__article-body {
    font-size: 17px;
    line-height: 1.7;
    color: #1F2D3D;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.page-the-thao__article-body p {
    margin-bottom: 20px;
}

.page-the-thao__sub-title {
    font-size: 28px;
    font-weight: 600;
    color: #2F6BFF;
    margin-top: 35px;
    margin-bottom: 20px;
    text-align: left;
}

.page-the-thao__image-text-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-the-thao__content-image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-the-thao__text-content {
    flex: 1;
    min-width: 300px;
}

.page-the-thao__betting-types-section {
    background-color: #2F6BFF;
    color: #ffffff;
}

.page-the-thao__betting-types-section .page-the-thao__section-title,
.page-the-thao__betting-types-section .page-the-thao__description {
    color: #ffffff;
}

.page-the-thao__betting-types-section .page-the-thao__section-title::after {
    background: linear-gradient(90deg, #6FA3FF, #A5C4FF);
}

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

.page-the-thao__card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #1F2D3D;
}

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

.page-the-thao__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-the-thao__card-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-the-thao__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: background 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-the-thao__card-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-the-thao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-the-thao__step-item {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-the-thao__step-title {
    font-size: 24px;
    font-weight: 600;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-the-thao__step-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #1F2D3D;
}

.page-the-thao__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-the-thao__feature-item {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-the-thao__feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-the-thao__feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #1F2D3D;
}

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

.page-the-thao__news-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.page-the-thao__news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__news-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-the-thao__news-title a {
    color: #1F2D3D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-the-thao__news-title a:hover {
    color: #2F6BFF;
}

.page-the-thao__news-meta {
    font-size: 14px;
    color: #6FA3FF;
    margin-bottom: 15px;
}

.page-the-thao__news-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1F2D3D;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-the-thao__news-readmore {
    display: inline-block;
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-the-thao__news-readmore:hover {
    color: #6FA3FF;
}

/* FAQ Styles */
details.page-the-thao__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #D6E2FF;
    overflow: hidden;
    background: #FFFFFF;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #1F2D3D;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
    display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
    background: #F4F7FB;
}
.page-the-thao__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #1F2D3D;
}
.page-the-thao__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2F6BFF;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 20px 20px;
    background: #F4F7FB;
    border-radius: 0 0 5px 5px;
    color: #1F2D3D;
}
.page-the-thao__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-the-thao__main-title {
        font-size: 38px;
    }
    .page-the-thao__description {
        font-size: 17px;
    }
    .page-the-thao__section-title {
        font-size: 32px;
    }
    .page-the-thao__sub-title {
        font-size: 26px;
    }
    .page-the-thao__article-body {
        font-size: 16px;
    }
    .page-the-thao__card-title {
        font-size: 20px;
    }
    .page-the-thao__card-content p {
        font-size: 15px;
    }
    .page-the-thao__news-title {
        font-size: 20px;
    }
    .page-the-thao__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-the-thao__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__hero-section {
        padding-top: 10px;
    }
    .page-the-thao__hero-image-wrapper {
        max-height: 400px;
    }
    .page-the-thao__hero-image {
        object-fit: contain !important; /* HERO 主图区域: 移动 object-fit:contain !important */
        aspect-ratio: unset !important;
    }
    .page-the-the-thao__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }
    .page-the-thao__main-title {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 15px;
    }
    .page-the-thao__description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__center-button {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .page-the-thao__content-section {
        padding: 40px 0;
    }
    .page-the-thao__section-title {
        font-size: clamp(24px, 6vw, 30px);
        margin-bottom: 30px;
    }
    .page-the-thao__article-body {
        font-size: 15px;
        text-align: left;
    }
    .page-the-thao__article-body img,
    .page-the-thao__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__image-text-block {
        flex-direction: column;
        gap: 20px;
    }
    .page-the-thao__content-image {
        width: 100%;
    }
    .page-the-thao__sub-title {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .page-the-thao__grid,
    .page-the-thao__betting-cards,
    .page-the-thao__steps-grid,
    .page-the-thao__features-grid,
    .page-the-thao__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__news-image {
        height: 200px;
    }
    .page-the-thao__news-content {
        padding: 20px;
    }
    .page-the-thao__news-title {
        font-size: 18px;
    }
    .page-the-thao__faq-qtext {
        font-size: 16px;
    }
    details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
    .page-the-thao__faq-toggle { font-size: 20px; width: 24px; }
    details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }

    /* General image and container rules for mobile */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__hero-image-wrapper,
    .page-the-thao__cta-buttons,
    .page-the-thao__betting-cards,
    .page-the-thao__steps-grid,
    .page-the-thao__features-grid,
    .page-the-thao__news-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}