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

.page-the-thao__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
    text-align: center;
}

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

/* Color Contrast Classes */
.page-the-thao__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-the-thao__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-the-thao__light-text {
    color: #FFFFFF;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login text color */
}

.page-the-thao__btn-primary:hover,
.page-the-thao__btn-secondary:hover {
    background-color: #a30606;
    color: #fff;
}

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

.page-the-thao__btn-brand-color:hover {
    background-color: #005a2e;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    background-color: #f8f8f8;
}

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

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

.page-the-thao__hero-title {
    font-size: 3.2em;
    font-weight: 900;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 30px;
}

.page-the-thao__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

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

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

.page-the-thao__feature-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
    transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #017439;
    box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

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

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

.page-the-thao__feature-text {
    font-size: 1em;
    color: #555;
}

/* Main Content Section - Sport Categories */
.page-the-thao__content-section {
    padding: 60px 0;
}

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

.page-the-thao__sport-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__sport-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00; /* Specific for titles on dark background */
}

.page-the-thao__sport-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-the-thao__guide-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-the-thao__guide-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-the-thao__guide-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 20px;
    font-size: 1.1em;
    color: #555;
}

.page-the-thao__guide-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.page-the-thao__guide-list strong {
    color: #017439;
}

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

.page-the-thao__guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-the-thao__guide-cta {
    margin-top: 30px;
    text-align: left;
}

/* Tips Section */
.page-the-thao__tips-section {
    padding: 60px 0;
}

.page-the-thao__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__tips-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #FFFF00;
}

.page-the-thao__tips-list strong {
    color: #FFFF00;
}

/* Promotion Section */
.page-the-thao__promo-section {
    padding: 60px 0;
}

.page-the-thao__promo-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-the-thao__promo-content {
    flex: 1 1 50%;
    min-width: 300px;
}

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

.page-the-thao__promo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

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

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

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    list-style: none;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-the-thao__faq-question::-webkit-details-marker {
    display: none;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    content: '−';
}

.page-the-thao__faq-answer {
    padding: 15px 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #FFFFFF;
}

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

/* Bottom CTA Section */
.page-the-thao__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

.page-the-thao__cta-bottom-container {
    max-width: 800px;
}

.page-the-thao__cta-bottom-section .page-the-thao__btn-primary {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-title {
        font-size: 2.8em;
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
    .page-the-thao__feature-item {
        padding: 20px;
    }
    .page-the-thao__icon-box-media {
        width: 200px;
        height: 200px;
        border: 4px solid #017439;
        box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.2);
    }
}

@media (max-width: 768px) {
    /* General */
    .page-the-thao__content-area {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-the-thao__section-description {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }
    .page-the-thao__hero-container {
        flex-direction: column !important;
        padding: 20px 15px !important;
        gap: 30px !important;
    }
    .page-the-thao__hero-content {
        text-align: center !important;
    }
    .page-the-thao__hero-title {
        font-size: 2.2em !important;
        margin-bottom: 15px !important;
    }
    .page-the-thao__hero-description {
        font-size: 1.1em !important;
        margin-bottom: 25px !important;
    }
    .page-the-thao__hero-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
    }
    .page-the-thao__hero-image {
        width: 100% !important;
    }
    .page-the-thao__hero-side-image {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Module 1 - Intro Section */
    .page-the-thao__intro-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__feature-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    .page-the-thao__feature-item {
        padding: 20px !important;
    }
    .page-the-thao__icon-box-media {
        width: 160px !important; /* Retain square aspect ratio */
        height: 160px !important;
        margin-bottom: 15px !important;
        border: 3px solid #017439 !important;
        box-shadow: 0 0 0 5px rgba(1, 116, 57, 0.2) !important;
    }
    .page-the-thao__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-the-thao__feature-title {
        font-size: 1.5em !important;
    }
    .page-the-thao__feature-text {
        font-size: 0.95em !important;
    }

    /* Main Content Section - Sport Categories */
    .page-the-thao__content-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__sport-categories {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    .page-the-thao__sport-item {
        padding: 20px !important;
    }
    .page-the-thao__sport-title {
        font-size: 1.4em !important;
    }
    .page-the-thao__sport-text {
        font-size: 0.95em !important;
    }

    /* Guide Section */
    .page-the-thao__guide-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__guide-container {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .page-the-thao__guide-content {
        order: 2; /* Content after image on mobile */
    }
    .page-the-thao__guide-image {
        order: 1; /* Image before content on mobile */
        width: 100% !important;
    }
    .page-the-thao__guide-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__guide-list {
        font-size: 1em !important;
        padding-left: 15px !important;
    }
    .page-the-thao__guide-list li {
        margin-bottom: 10px !important;
    }
    .page-the-thao__guide-cta {
        text-align: center !important;
    }
    .page-the-thao__guide-cta .page-the-thao__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Tips Section */
    .page-the-thao__tips-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__tips-list {
        margin-top: 20px !important;
    }
    .page-the-thao__tips-list li {
        padding: 15px !important;
        font-size: 1em !important;
    }

    /* Promotion Section */
    .page-the-thao__promo-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__promo-container {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .page-the-thao__promo-content {
        order: 2;
    }
    .page-the-thao__promo-image {
        order: 1;
        width: 100% !important;
    }
    .page-the-thao__promo-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__promo-content .page-the-thao__btn-brand-color {
        max-width: 100% !important;
        width: 100% !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 !important;
        font-size: 1.1em !important;
    }
    .page-the-thao__faq-toggle {
        font-size: 1.2em !important;
    }
    .page-the-thao__faq-answer {
        padding: 10px 15px 15px !important;
        font-size: 0.95em !important;
    }

    /* Bottom CTA Section */
    .page-the-thao__cta-bottom-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__cta-bottom-section .page-the-thao__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Generic image rules for content area */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* All containers with images/buttons */
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__feature-item,
    .page-the-thao__sport-item,
    .page-the-thao__promo-container,
    .page-the-thao__guide-container,
    .page-the-thao__cta-bottom-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure button groups wrap on mobile */
    .page-the-thao__hero-cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
}