.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
}

/* --- General Container & Section Styles --- */
.page-the-thao__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-the-thao__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 300px; /* Limit individual button width */
}

.page-the-thao__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

.page-the-thao__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* --- Hero Section --- */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for hero */
}

.page-the-thao__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 24px;
    box-sizing: border-box;
}

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333;
}

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-the-thao__description {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.page-the-thao__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-the-thao__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* --- Intro Section (Module 1) --- */
.page-the-thao__intro-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

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

.page-the-thao__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-the-thao__icon-box-media {
    width: 200px; /* Fixed width for circle */
    height: 200px; /* Fixed height for circle */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439;
    box-sizing: border-box;
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image itself is circular within the box */
}

.page-the-thao__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-the-thao__feature-text {
    font-size: 16px;
    color: #555555;
}

/* --- Sports List Section --- */
.page-the-thao__sports-list-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text for dark background */
    padding: 60px 0;
}

.page-the-thao__sports-list-section .page-the-thao__section-title {
    color: #FFFFFF; /* Override for dark background */
}

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

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

.page-the-thao__sport-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__sport-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-the-thao__sport-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00; /* Highlight title */
}

.page-the-thao__sport-text {
    font-size: 15px;
    color: #f0f0f0;
}

.page-the-thao__action-area {
    text-align: center;
    margin-top: 50px;
}

/* --- Guide Section --- */
.page-the-thao__guide-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.page-the-thao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    counter-reset: step-counter; /* Initialize counter */
}

.page-the-thao__step-item {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-the-thao__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-the-thao__step-title {
    font-size: 20px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-the-thao__step-text {
    font-size: 15px;
    color: #555555;
}

.page-the-thao__guide-image {
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Promo Section --- */
.page-the-thao__promo-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 0;
}

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

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

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

.page-the-thao__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-the-thao__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00;
}

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

/* --- FAQ Section --- */
.page-the-thao__faq-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

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

.page-the-thao__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f8f8f8;
    color: #017439;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker for details summary */
}

.page-the-thao__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-the-thao__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
    width: 24px; /* Fixed width to prevent jump */
    text-align: center;
}

.page-the-thao__faq-answer {
    padding: 15px 25px;
    background-color: #ffffff;
    color: #555555;
    font-size: 16px;
    border-top: 1px solid #e0e0e0;
}

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

/* --- CTA Bottom Section --- */
.page-the-thao__cta-bottom {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
}

.page-the-thao__cta-bottom .page-the-thao__section-title {
    color: #FFFFFF;
}

.page-the-thao__cta-bottom .page-the-thao__section-description {
    color: #f0f0f0;
}

/* --- Image responsive base styles (all images except special cases like circular icons) --- */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }

    .page-the-thao__hero-container {
        flex-direction: column !important;
        padding: 20px 15px !important;
        gap: 20px !important;
    }

    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100% !important;
        min-width: unset !important;
        width: 100% !important;
    }

    .page-the-thao__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important; /* Adjust H1 for smaller screens */
        text-align: center !important;
    }

    .page-the-thao__description {
        font-size: 1rem !important;
        text-align: center !important;
    }

    /* Buttons */
    .page-the-thao__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .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;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Section Titles & Descriptions */
    .page-the-thao__section-title {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }

    .page-the-thao__section-description {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    /* Intro Section (Module 1) */
    .page-the-thao__intro-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__features-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

    .page-the-thao__icon-box-media {
        width: 150px !important; /* Smaller circle */
        height: 150px !important;
        border-width: 3px !important;
    }
    
    .page-the-thao__feature-title {
        font-size: 20px !important;
    }

    /* Sports List Section */
    .page-the-thao__sports-list-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__sports-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

    .page-the-thao__sport-card {
        padding: 15px !important;
    }

    .page-the-thao__sport-title {
        font-size: 18px !important;
    }

    .page-the-thao__sport-text {
        font-size: 14px !important;
    }

    .page-the-thao__action-area {
        margin-top: 30px !important;
    }

    /* Guide Section */
    .page-the-thao__guide-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__guide-steps {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

    .page-the-thao__step-item {
        padding: 20px !important;
    }

    .page-the-thao__step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    .page-the-thao__step-title {
        font-size: 18px !important;
    }

    .page-the-thao__step-text {
        font-size: 14px !important;
    }

    .page-the-thao__guide-image {
        margin-top: 30px !important;
    }

    /* Promo Section */
    .page-the-thao__promo-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__promo-cards {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

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

    .page-the-thao__promo-title {
        font-size: 20px !important;
    }

    .page-the-thao__promo-text {
        font-size: 15px !important;
    }

    /* FAQ Section */
    .page-the-thao__faq-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__faq-list {
        margin-top: 20px !important;
    }

    .page-the-thao__faq-question {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }

    .page-the-thao__faq-toggle {
        font-size: 20px !important;
    }

    .page-the-thao__faq-answer {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }

    /* CTA Bottom Section */
    .page-the-thao__cta-bottom {
        padding: 40px 0 !important;
    }

    /* Generic images and containers */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}