/* style/the-thao.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --section-bg-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

.page-the-thao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text for light backgrounds */
}

.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: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: #f8f8f8;
    color: #333333;
}

.page-the-thao__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    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(2em, 4vw, 3.2em);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.15em;
    color: #555555;
    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 {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 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: var(--button-gradient);
    color: #333333;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(244, 211, 77, 0.2);
}

.page-the-thao__btn-secondary:hover {
    background: var(--gold-color);
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 211, 77, 0.4);
}

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

.page-the-thao__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Intro Section (Module 1 equivalent) */
.page-the-thao__intro-section {
    background: #ffffff;
    color: #333333;
    padding: 80px 0;
}

.page-the-thao__intro-section .page-the-thao__section-title {
    color: var(--deep-red-color);
}

.page-the-thao__intro-section .page-the-thao__section-description {
    color: #666666;
}

.page-the-thao__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-the-thao__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.page-the-thao__icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-the-thao__icon-box-media {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--gold-color);
    box-shadow: 0 0 0 7px rgba(244, 211, 77, 0.3);
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-the-thao__icon-box-text {
    font-size: 1em;
    color: #666666;
}

/* Dark Section Styling */
.page-the-thao__dark-section {
    background: var(--section-bg-color);
    color: var(--text-main-color);
    padding: 80px 0;
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__grid-item-title,
.page-the-thao__dark-section .page-the-thao__promo-title,
.page-the-thao__dark-section .page-the-thao__faq-question {
    color: var(--text-main-color);
}

.page-the-thao__dark-section .page-the-thao__section-description,
.page-the-thao__dark-section .page-the-thao__grid-item-text,
.page-the-thao__dark-section .page-the-thao__promo-text,
.page-the-thao__dark-section .page-the-thao__promo-note,
.page-the-thao__dark-section .page-the-thao__faq-answer p {
    color: rgba(255, 245, 225, 0.85);
}

/* Light Section Styling */
.page-the-thao__light-bg {
    background: #ffffff;
    color: #333333;
    padding: 80px 0;
}

.page-the-thao__light-bg .page-the-thao__section-title,
.page-the-thao__light-bg .page-the-thao__feature-title,
.page-the-thao__light-bg .page-the-thao__guide-step-title {
    color: var(--deep-red-color);
}

.page-the-thao__light-bg .page-the-thao__section-description,
.page-the-thao__light-bg .page-the-thao__feature-text,
.page-the-thao__light-bg .page-the-thao__guide-step-text {
    color: #666666;
}

/* Content Section (Grid Layout) */
.page-the-thao__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-the-thao__grid-item {
    background: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--gold-color);
}

.page-the-thao__grid-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-the-thao__grid-item-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-the-thao__grid-item-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1;
}

/* Features Section (List) */
.page-the-thao__feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-the-thao__feature-item {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.page-the-thao__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-the-thao__feature-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Promo Section (Cards) */
.page-the-thao__promo-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-the-thao__promo-card {
    flex: 1 1 400px;
    max-width: 500px;
    background: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 30px;
    text-align: center;
    border: 1px solid var(--gold-color);
}

.page-the-thao__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 25px;
}

.page-the-thao__promo-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-the-thao__promo-text {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 25px;
    color: rgba(255, 245, 225, 0.85);
}

.page-the-thao__promo-note {
    text-align: center;
    font-size: 0.9em;
    margin-top: 40px;
    color: rgba(255, 245, 225, 0.7);
}

/* Guide Section (Numbered List) */
.page-the-thao__guide-section {
    background: #f8f8f8;
    color: #333333;
    padding: 80px 0;
}

.page-the-thao__guide-section .page-the-thao__section-title {
    color: var(--deep-red-color);
}

.page-the-thao__guide-section .page-the-thao__section-description {
    color: #666666;
}

.page-the-thao__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    margin-top: 50px;
    padding: 0;
}

.page-the-thao__guide-list li {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
    min-height: 50px;
}

.page-the-thao__guide-list li::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(201, 31, 23, 0.3);
}

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

.page-the-thao__guide-step-text {
    font-size: 1em;
    color: #666666;
}

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

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

.page-the-thao__faq-item {
    background: var(--card-bg-color);
    border: 1px solid var(--gold-color);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
}

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

.page-the-thao__faq-item summary:hover {
    background-color: var(--deep-red-color);
}

.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: 15px 25px 20px;
    font-size: 1em;
    color: rgba(255, 245, 225, 0.85);
    border-top: 1px solid rgba(242, 181, 68, 0.3);
}

/* 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-reverse;
        text-align: center;
    }

    .page-the-thao__hero-content {
        text-align: center;
    }

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

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

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

    .page-the-thao__grid-item img,
    .page-the-thao__promo-card img {
        
    }
}

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

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

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

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-the-thao__hero-side-image {
        max-width: 90%;
    }

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

    .page-the-thao__icon-boxes {
        flex-direction: column;
        align-items: center;
    }

    .page-the-thao__icon-box {
        max-width: 100%;
        padding: 25px;
    }

    .page-the-thao__icon-box-media {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    /* Content Section (Grid Layout) */
    .page-the-thao__content-section {
        padding: 60px 0;
    }

    .page-the-thao__grid-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-the-thao__grid-item img,
    .page-the-thao__promo-card img {
        
    }

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

    .page-the-thao__feature-list {
        flex-direction: column;
        align-items: center;
    }

    .page-the-thao__feature-item {
        max-width: 100%;
        padding: 25px;
    }

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

    .page-the-thao__promo-cards {
        flex-direction: column;
        align-items: center;
    }

    .page-the-thao__promo-card {
        max-width: 100%;
        padding-bottom: 25px;
    }

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

    .page-the-thao__guide-list li {
        padding-left: 60px;
        min-height: 40px;
    }

    .page-the-thao__guide-list li::before {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }

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

    .page-the-thao__guide-step-text {
        font-size: 0.95em;
    }

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

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

    .page-the-thao__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

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

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__grid-item,
    .page-the-thao__feature-item,
    .page-the-thao__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for round images to maintain aspect ratio */
    .page-the-thao__icon-box-media {
        width: 150px !important;
        height: 150px !important;
        aspect-ratio: 1 / 1;
    }

    .page-the-thao__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}