/* style/the-thao.css */

/* Base styles for the page */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-the-thao__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-the-thao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Ensure background consistency */
}

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

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #F2FFF6; /* Text Main */
}

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

.page-the-thao__description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-text {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt to container */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Button gradient start color */
    border: 2px solid #2AD16F; /* Button gradient start color */
}

.page-the-thao__btn-secondary:hover {
    background: #2AD16F; /* Button gradient start color */
    color: #08160F; /* Background */
    transform: translateY(-2px);
}

.page-the-thao__btn-text {
    background: none;
    color: #57E38D; /* Glow */
    border: none;
    padding: 0;
    text-align: left;
    display: block;
    margin-top: 10px;
}

.page-the-thao__btn-text:hover {
    text-decoration: underline;
}

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

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

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

/* Features Section */
.page-the-thao__features-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG */
}

.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;
    background-color: #0A4B2C; /* Deep Green */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #F2FFF6; /* Text Main */
}

.page-the-thao__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2E7A4E; /* Border */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-the-thao__feature-title {
    font-size: 1.8em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-the-thao__feature-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-the-thao__sport-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #F2FFF6; /* Text Main */
}

.page-the-thao__sport-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px; /* Example max height for consistency */
    object-fit: cover;
}

.page-the-thao__sport-item h3 {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    padding: 15px 20px 10px;
}

.page-the-thao__sport-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    padding: 0 20px 20px;
}

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

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

.page-the-thao__guide-step-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    color: #F2FFF6; /* Text Main */
    display: flex;
    flex-direction: column;
}

.page-the-thao__step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #F2C14E; /* Gold */
    color: #08160F; /* Background */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-the-thao__step-title {
    font-size: 1.6em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    padding-top: 20px; /* Space for step number */
}

.page-the-thao__step-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-the-thao__promotions-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-the-thao__center-cta {
    text-align: center;
    margin-top: 40px;
}

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

.page-the-thao__faq-list {
    margin-top: 40px;
}

.page-the-thao__faq-item {
    background-color: #0A4B2C; /* Deep Green */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.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;
    background-color: #1E3A2A; /* Divider */
    color: #F2FFF6; /* Text Main */
    border-bottom: 1px solid #2E7A4E; /* Border */
    list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-question:hover {
    background-color: #2E7A4E; /* Border */
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    border-bottom: none;
}

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #F2C14E; /* Gold */
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

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

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-the-thao__container {
        padding: 15px;
    }

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

    .page-the-thao__text-block {
        font-size: 1em;
    }

    /* 1. HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body padding for header offset */
        padding-bottom: 40px;
    }

    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
        gap: 20px;
    }

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

    .page-the-thao__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 6. Buttons and button containers */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-text,
    .page-the-thao a[class*="button"],
    .page-the-thao a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-the-thao__btn-text {
        text-align: center; /* Center text buttons on mobile */
    }

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

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

    /* 2. Module 1 three column circular images (Features Section) */
    .page-the-thao__features-section {
        padding: 40px 0;
    }
    .page-the-thao__feature-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-the-thao__icon-box-media {
        width: 200px;
        height: 200px;
        border: 3px solid #2E7A4E;
    }
    .page-the-thao__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Sports Types Section */
    .page-the-thao__sports-types-section {
        padding: 40px 0;
    }
    .page-the-thao__sport-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-the-thao__sport-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 4. Guide Section */
    .page-the-thao__guide-section {
        padding: 40px 0;
    }
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-the-thao__step-title {
        font-size: 1.4em;
    }

    /* Promotions Section */
    .page-the-thao__promotions-section {
        padding: 40px 0;
    }

    /* 4. FAQ Section */
    .page-the-thao__faq-section {
        padding: 40px 0;
    }
    .page-the-thao__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-the-thao__faq-toggle {
        font-size: 1.3em;
    }
    .page-the-thao__faq-answer {
        padding: 0 15px 15px;
    }

    /* 5. General images and containers */
    .page-the-thao img:not(.page-the-thao__icon-box-media 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}