/* style/the-thao.css */

/* Variables and Base Styles */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --page-bg-color: #F5F7FA;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--page-bg-color);
}

.page-the-thao__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-the-thao__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-the-thao__section-title--white {
    color: #ffffff;
}

.page-the-thao__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-the-thao__text-block--white {
    color: #ffffff;
}

.page-the-thao__text-block--small {
    font-size: 0.9em;
    opacity: 0.9;
}

.page-the-thao__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-the-thao__list--white {
    color: #ffffff;
}

.page-the-thao__ordered-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-the-thao__ordered-list li {
    margin-bottom: 10px;
}

.page-the-thao__link,
.page-the-thao a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-the-thao__link:hover,
.page-the-thao a:hover {
    text-decoration: underline;
}

.page-the-thao__link--white {
    color: #ffffff;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Rely on body padding for header offset, this is for internal spacing */
    background-color: var(--primary-color); /* Fallback for image loading */
    overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-the-thao__hero-content-wrapper {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-the-thao__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Clamp for H1 font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-the-thao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 20px;
}

/* Buttons */
.page-the-thao__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

.page-the-thao__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-promo {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    margin-top: 15px;
    width: fit-content; /* Adjust width to content */
    margin-left: auto;
    margin-right: auto;
    display: block; /* For block-level behavior in cards */
}

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

.page-the-thao__cta-bottom {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Image Figures */
.page-the-thao__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden; /* Ensure image doesn't overflow */
    box-sizing: border-box;
}

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

.page-the-thao__figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

.page-the-thao__figcaption--white {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark Background Sections */
.page-the-thao__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Card Grid for Advantages Section */
.page-the-thao__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-the-thao__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: var(--text-main-color);
}

.page-the-thao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-the-thao__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Promo Cards */
.page-the-thao__promo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-the-thao__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-the-thao__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

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

.page-the-thao__promo-text {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

/* FAQ Section */
.page-the-thao__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-main-color); /* Ensure dark text on light background */
}

.page-the-thao__faq-question {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: default; /* FAQ is static, not collapsible via JS */
}

.page-the-thao__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0;
}

/* Conclusion Section */
.page-the-thao__conclusion-section {
    text-align: center;
    padding: 60px 0;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) - General adjustments */
@media (max-width: 1024px) {
    .page-the-thao__article-wrap {
        padding: 0 15px;
    }

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

    .page-the-thao__hero-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-the-thao__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .page-the-thao__btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-the-thao__card-grid,
    .page-the-thao__promo-card-grid {
        gap: 20px;
    }

    .page-the-thao__card {
        padding: 20px;
    }

    .page-the-thao__card-title {
        font-size: 1.3em;
    }
}