/* style/the-thao.css */

/* Variables based on custom colors */
:root {
    --mp66-main-color: #C91F17;
    --mp66-aux-color: #E53935;
    --mp66-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --mp66-card-bg: #D32F2F;
    --mp66-bg-color: #B71C1C; /* This is the body background */
    --mp66-text-main: #FFF5E1;
    --mp66-border-color: #F2B544;
    --mp66-glow-color: #FFCC66;
    --mp66-gold-color: #F4D34D;
    --mp66-deep-red: #7A0E0E;
}

/* General page styling */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--mp66-text-main); /* Default text color for the page, as body background is dark */
    background-color: var(--mp66-bg-color); /* Inherited from body, but explicitly set for clarity */
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--mp66-gold-color); /* Using gold for main titles for contrast */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--mp66-text-main);
}

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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    background-color: var(--mp66-deep-red); /* Using Deep Red for hero section background */
}

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

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

.page-the-thao__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--mp66-gold-color);
}

.page-the-thao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--mp66-text-main);
}

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

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

.page-the-thao__btn-primary {
    background: var(--mp66-button-gradient);
    color: var(--mp66-deep-red); /* Darker text for gold button */
    border: 2px solid var(--mp66-gold-color);
    box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
}

.page-the-thao__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 211, 77, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
    background-color: var(--mp66-gold-color);
    color: var(--mp66-deep-red);
    transform: translateY(-2px);
}

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

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves like a block element for max-width */
}

/* Intro Section (Module 1 - Three-column with round images) */
.page-the-thao__intro-section {
    background-color: var(--mp66-bg-color); /* Light background for this section */
    color: var(--mp66-text-main);
}

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

.page-the-thao__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background-color: var(--mp66-card-bg); /* Card background color */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mp66-border-color);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

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

.page-the-thao__icon-box-media {
    width: 240px; /* Fixed width for round image */
    height: 240px; /* Fixed height for round image */
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mp66-gold-color);
    box-shadow: 0 0 15px var(--mp66-glow-color);
}

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

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

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

/* Content Section (Grid items) */
.page-the-thao__content-section {
    background-color: var(--mp66-deep-red);
    color: var(--mp66-text-main);
}

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

.page-the-thao__card {
    background-color: var(--mp66-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mp66-border-color);
    transition: transform 0.3s ease;
    color: var(--mp66-text-main);
}

.page-the-thao__card:hover {
    transform: translateY(-10px);
}

.page-the-thao__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image size */
    object-fit: cover;
    display: block;
}

.page-the-thao__card-title {
    font-size: 1.5em;
    font-weight: bold;
    padding: 15px 20px 10px;
    color: var(--mp66-gold-color);
}

.page-the-thao__card-text {
    font-size: 0.95em;
    padding: 0 20px 20px;
    color: var(--mp66-text-main);
}

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

/* Guide Section (Steps) */
.page-the-thao__guide-section {
    background-color: var(--mp66-bg-color);
    color: var(--mp66-text-main);
}

.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 {
    background-color: var(--mp66-card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mp66-border-color);
    text-align: center;
    color: var(--mp66-text-main);
}

.page-the-thao__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mp66-button-gradient);
    color: var(--mp66-deep-red);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid var(--mp66-gold-color);
}

.page-the-thao__step-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--mp66-gold-color);
}

.page-the-thao__step-text {
    font-size: 1em;
    color: var(--mp66-text-main);
}

/* Advantages Section */
.page-the-thao__advantages-section {
    background-color: var(--mp66-deep-red);
    color: var(--mp66-text-main);
}

.page-the-thao__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-the-thao__advantage-list li {
    background-color: var(--mp66-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1em;
    color: var(--mp66-text-main);
    border: 1px solid var(--mp66-border-color);
}

.page-the-thao__advantage-icon {
    width: 200px; /* Enforced minimum size */
    height: 200px; /* Enforced minimum size */
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--mp66-gold-color);
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Promotion Section */
.page-the-thao__promo-section {
    background-color: var(--mp66-bg-color);
    color: var(--mp66-text-main);
}

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

.page-the-thao__promo-card .page-the-thao__card-image {
    height: 200px; /* Smaller height for promo cards */
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 10px 20px;
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--mp66-deep-red);
    color: var(--mp66-text-main);
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-the-thao__faq-item {
    background-color: var(--mp66-card-bg);
    border: 1px solid var(--mp66-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--mp66-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: var(--mp66-aux-color); /* Auxiliary color for question background */
    color: var(--mp66-text-main);
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-question .page-the-thao__faq-qtext {
    color: var(--mp66-text-main);
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--mp66-gold-color);
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or rotate */
}

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--mp66-text-main);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 15px;
}

/* Conclusion Section */
.page-the-thao__conclusion-section {
    background-color: var(--mp66-bg-color);
    color: var(--mp66-text-main);
}

/* General image responsive styles */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-the-thao__section-title {
        font-size: 2.2em;
    }
    .page-the-thao__content-area {
        padding: 40px 15px;
    }
    .page-the-thao__icon-box {
        max-width: 320px;
    }
}