/* 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; /* Default background */
}

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

/* Hero Section (Main Visual for this page) */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #26A9E0; /* Brand primary color for a dark section */
    color: #ffffff; /* White text for dark background */
}

.page-the-thao__hero-section .page-the-thao__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 40px 16px;
}

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

.page-the-thao__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-the-thao__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-the-thao__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

.page-the-thao__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

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

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

.page-the-thao__main-visual {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* General Section Styles */
.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #26A9E0; /* Primary brand color for titles */
}

.page-the-thao__dark-section .page-the-thao__section-title {
    color: #ffffff; /* White for dark sections */
}

.page-the-thao__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

/* Intro Section */
.page-the-thao__intro-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

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

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

.page-the-thao__feature-icon {
    width: 400px; /* Min size 200x200, display at 400x267 */
    height: 267px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-the-thao__feature-description {
    font-size: 1em;
    color: #666666;
}

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

.page-the-thao__guide-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-the-thao__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #EA7C07;
}

.page-the-thao__guide-item:last-child {
    margin-bottom: 0;
}

.page-the-thao__guide-step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-the-thao__guide-item p {
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-the-thao__guide-item a {
    color: #EA7C07;
    text-decoration: underline;
}

.page-the-thao__guide-item a:hover {
    color: #ffc107;
}

.page-the-thao__cta-center {
    text-align: center;
    margin-top: 30px;
}

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

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

.page-the-thao__promo-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease;
}

.page-the-thao__promo-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__promo-image {
    width: 100%;
    height: 225px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-the-thao__promo-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 15px 10px;
    color: #26A9E0;
}

.page-the-thao__promo-description {
    font-size: 1em;
    color: #666666;
    padding: 0 15px;
    margin-bottom: 20px;
}

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

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

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

.page-the-thao__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.page-the-thao__faq-item summary::-webkit-details-marker {
    display: none; /* Hide for Webkit browsers */
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-the-thao__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #eeeeee;
    margin-top: -1px; /* Overlap border */
}

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

/* Register CTA Section */
.page-the-thao__register-cta-section {
    padding: 60px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-the-thao__register-cta-section .page-the-thao__section-title {
    color: #ffffff;
}

.page-the-thao__register-cta-section .page-the-thao__text-block {
    color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Fixed header padding already handled by body in shared.css, just small top padding for this section */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-the-thao__hero-section .page-the-thao__container {
        flex-direction: column;
        padding: 30px 16px;
    }

    .page-the-thao__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }

    .page-the-thao__hero-image {
        flex: 1 1 100%;
        order: -1; /* Image above text on mobile */
        margin-bottom: 20px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-the-thao__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-the-thao__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px; /* Adjust padding for mobile buttons */
    }

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

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

    .page-the-thao__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-the-thao__feature-item,
    .page-the-thao__promo-card {
        padding: 25px;
    }

    .page-the-thao__feature-icon {
        width: 100% !important; /* Adapt to full width on mobile */
        height: auto !important;
        max-width: 400px !important; /* Max width to original desktop display size */
    }

    .page-the-thao__promo-image {
        height: 180px; /* Adjust height for mobile promo images */
    }

    .page-the-thao__guide-item {
        padding: 20px;
    }

    .page-the-thao__guide-step-title {
        font-size: 1.2em;
    }

    .page-the-thao__faq-item summary {
        padding: 18px 20px;
        font-size: 1.1em;
    }

    .page-the-thao__faq-answer {
        padding: 12px 20px 15px;
    }

    /* Universal image responsive style for content area */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Ensure content sections don't cause horizontal scroll */
    .page-the-thao__intro-section,
    .page-the-thao__guide-section,
    .page-the-thao__promo-section,
    .page-the-thao__faq-section,
    .page-the-thao__register-cta-section {
        padding: 40px 0;
    }
}