/* Base styles for the Thể Thao page */
.page-the-thao {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text on light body background */
    line-height: 1.6;
}

.page-the-thao__section {
    padding: 60px 0;
    background: #ffffff;
}

.page-the-thao__dark-section {
    background: #017439;
    color: #ffffff;
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__text-block {
    color: #ffffff;
}

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

.page-the-thao__main-title,
.page-the-thao__section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #017439;
}

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    line-height: 1.2;
}

.page-the-thao__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    line-height: 1.3;
}

.page-the-thao__intro-text,
.page-the-thao__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(to right, #e0ffe0, #ffffff);
}

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

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

.page-the-thao__hero-content .page-the-thao__main-title,
.page-the-thao__hero-content .page-the-thao__intro-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

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

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

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-the-thao__hero-content .page-the-thao__cta-buttons {
    justify-content: flex-start;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-the-thao__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Features Grid */
.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: #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: 100%; /* Ensure image fills its container, will be constrained by its parent */
    height: auto;
    max-width: 280px; /* Example for content image */
    margin: 0 auto 20px;
    border-radius: 8px;
    display: block;
}

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

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

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

.page-the-thao__guide-item {
    background: #f9f9f9;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-step-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-the-thao__faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.page-the-thao__faq-item {
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #017439;
    font-size: 1.1em;
}

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

.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;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg);
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    color: #555555;
    font-size: 1em;
}

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

/* General image styling for content sections */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100%;
    }

    .page-the-thao__hero-content .page-the-thao__main-title,
    .page-the-thao__hero-content .page-the-thao__intro-text {
        text-align: center;
    }

    .page-the-thao__hero-content .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-the-thao__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }

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

    .page-the-thao__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-the-thao__intro-text,
    .page-the-thao__text-block {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons */
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* General Sections and Containers */
    .page-the-thao__section {
        padding: 40px 0;
    }

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

    /* Features Grid */
    .page-the-thao__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-the-thao__feature-icon {
        max-width: 200px; /* Example for content image */
        margin-bottom: 15px;
    }

    /* Guide List */
    .page-the-thao__guide-list {
        margin-top: 30px;
    }

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

    /* FAQ Section */
    .page-the-thao__faq-list {
        margin-top: 30px;
    }

    .page-the-thao__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }

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

    /* All Images */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}