/* style/the-thao.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg: #FFFFFF;
    --body-bg: #F5F7FA;
    --text-main: #333333;
    --border-color: #E0E0E0;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
}

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

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

.page-the-thao__section-description {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.page-the-thao__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__section-description,
.page-the-thao__dark-bg .page-the-thao__category-title,
.page-the-thao__dark-bg .page-the-thao__category-text,
.page-the-thao__dark-bg .page-the-thao__promo-title,
.page-the-thao__dark-bg .page-the-thao__promo-text {
    color: #ffffff;
}

.page-the-thao__dark-bg a {
    color: #ffffff;
    text-decoration: underline;
}

.page-the-thao__light-bg {
    background-color: var(--body-bg);
    color: var(--text-main);
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
}

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

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-the-thao__btn-tertiary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-the-thao__btn-tertiary:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Adjusted for shared header offset */
    padding-bottom: 40px;
    background-color: var(--body-bg);
}

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

.page-the-thao__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: var(--text-main);
}

.page-the-thao__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 30px;
}

.page-the-thao__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.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: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.page-the-thao__icon-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-the-thao__icon-box:hover {
    transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-the-thao__icon-box-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-the-thao__icon-box-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
    padding: 60px 0;
}

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

.page-the-thao__category-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-the-thao__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-the-thao__category-card .page-the-thao__category-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 5px;
}

.page-the-thao__category-card .page-the-thao__category-title a {
    color: inherit;
    text-decoration: none;
}

.page-the-thao__category-card .page-the-thao__category-title a:hover {
    text-decoration: underline;
}

.page-the-thao__category-text {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 15px;
    line-height: 1.5;
}

.page-the-thao__category-card .page-the-thao__btn-tertiary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

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

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

.page-the-thao__guide-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-the-thao__guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-the-thao__guide-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 5px;
}

.page-the-thao__guide-text {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 20px;
    line-height: 1.5;
}

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

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

.page-the-thao__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-the-thao__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-title {
    font-size: 1.4em;
    color: #ffffff;
    padding: 15px 20px 5px;
}

.page-the-thao__promo-title a {
    color: inherit;
    text-decoration: none;
}

.page-the-thao__promo-title a:hover {
    text-decoration: underline;
}

.page-the-thao__promo-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 15px;
    line-height: 1.5;
}

.page-the-thao__promo-card .page-the-thao__btn-tertiary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    background-color: #ffffff;
    color: var(--primary-color);
}

.page-the-thao__promo-card .page-the-thao__btn-tertiary:hover {
    background-color: #f0f0f0;
}

/* 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: var(--card-bg);
    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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
    padding-right: 10px;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
}

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

.page-the-thao__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.page-the-thao__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-the-thao__cta-bottom-section .page-the-thao__section-title {
    color: #ffffff;
}

.page-the-thao__cta-bottom-section .page-the-thao__section-description {
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        padding: 30px 16px;
    }

    .page-the-thao__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-the-thao__section-title {
        font-size: 2em;
    }

    .page-the-thao__icon-box-media {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    /* General */
    .page-the-thao__container {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    /* Images & Containers */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-the-thao__hero-section,
    .page-the-thao__intro-section,
    .page-the-thao__sports-categories-section,
    .page-the-thao__strategy-guide-section,
    .page-the-thao__promo-section,
    .page-the-thao__faq-section,
    .page-the-thao__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 30px 0 !important;
    }

    /* Buttons */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-tertiary,
    .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 !important;
        padding-right: 15px !important;
    }

    .page-the-thao__hero-cta-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Keep minimal top padding */
    }

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

    .page-the-thao__hero-content {
        order: 2;
    }

    .page-the-thao__hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .page-the-thao__main-title {
        font-size: 2em;
        text-align: center;
    }

    .page-the-thao__hero-description {
        font-size: 1em;
        text-align: center;
    }

    /* Intro Section (Module 1) */
    .page-the-thao__icon-box-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    /* Sports Categories Section */
    .page-the-thao__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Strategy Guide Section */
    .page-the-thao__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Promo Section */
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-the-thao__faq-answer {
        font-size: 0.9em;
        padding: 0 15px 15px;
    }

    /* CTA Bottom Section */
    .page-the-thao__cta-bottom-section .page-the-thao__section-title {
        font-size: 1.8em;
    }
}