/* style/the-thao.css */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main color, ensuring contrast with body background #140C0C */
    background-color: #140C0C; /* Body background from shared.css */
}

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

.page-the-thao__section-title {
    font-size: 2.5em;
    color: #FFF1E8; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-the-thao__section-description {
    font-size: 1.1em;
    color: #FFF1E8; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__sub-title {
    font-size: 1.8em;
    color: #F3C54D; /* Gold color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF1E8; /* Text Main */
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #ffffff;
    border: none;
}

.page-the-thao__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background: #C61F1F; /* Main color */
    color: #ffffff;
    border: 2px solid #C61F1F;
}

.page-the-thao__btn-secondary:hover {
    background: #E53030; /* Auxiliary color */
    border-color: #E53030;
    transform: translateY(-2px);
}

.page-the-thao__btn-text {
    color: #F3C54D; /* Gold color */
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
    color: #FFB04A; /* Brighter gold */
}

.page-the-thao__arrow {
    font-size: 1.2em;
    line-height: 1;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    background-color: #140C0C; /* Ensure background is dark */
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2.5em, 4vw, 3.2em); /* Adjusted for desktop, balancing size and flexibility */
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-the-thao__hero-description {
    font-size: 1.15em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
}

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

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

.page-the-thao__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
}

.page-the-thao__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-the-thao__feature-item {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E; /* Border */
}

.page-the-thao__icon-box-media {
    width: 200px; /* Fixed size for square */
    height: 200px; /* Fixed size for square */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #F3C54D; /* Gold border */
}

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

.page-the-thao__feature-title {
    font-size: 1.6em;
    color: #F3C54D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__feature-text {
    color: #FFF1E8; /* Text Main */
    font-size: 1em;
}

/* Content Area */
.page-the-thao__content-area {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
}

.page-the-thao__content-area p {
    margin-bottom: 15px;
    color: #FFF1E8; /* Text Main */
}

.page-the-thao__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__guide-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF1E8; /* Text Main */
}

.page-the-thao__guide-list li {
    margin-bottom: 10px;
    font-weight: bold;
    color: #F3C54D; /* Gold for steps */
}

.page-the-thao__guide-list li p {
    font-weight: normal;
    color: #FFF1E8; /* Text Main for paragraph */
}

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

.page-the-thao__cta-buttons--center .page-the-thao__btn-primary {
    margin: 0;
}

/* Promotions Section */
.page-the-thao__promotions-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
}

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

.page-the-thao__promo-card {
    background-color: #2A1212; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid #6A1E1E; /* Border */
    display: flex;
    flex-direction: column;
}

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

.page-the-thao__promo-title {
    font-size: 1.5em;
    color: #F3C54D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__promo-text {
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
}

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

.page-the-thao__faq-item {
    background-color: #2A1212; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #6A1E1E; /* Border */
    overflow: hidden;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F3C54D; /* Gold color */
    cursor: pointer;
    background-color: #2A1212; /* Card BG */
    user-select: none;
    list-style: none; /* Remove default marker */
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 0 25px 20px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

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


/* Blog Section */
.page-the-thao__blog-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
}

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

.page-the-thao__blog-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E; /* Border */
    display: flex;
    flex-direction: column;
}

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

.page-the-thao__blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__blog-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    flex-grow: 1;
}

.page-the-thao__blog-title a {
    color: #F3C54D; /* Gold color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-the-thao__blog-title a:hover {
    color: #FFB04A; /* Brighter gold */
}

.page-the-thao__blog-date {
    font-size: 0.9em;
    color: #6A1E1E; /* Border color for subtle date */
    margin-bottom: 10px;
}

.page-the-thao__blog-excerpt {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 15px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: clamp(2.5em, 4vw, 3.2em);
    }
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-the-thao__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }
    .page-the-thao__hero-cta-buttons {
        justify-content: center;
    }
    .page-the-thao__hero-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }

    /* General container/section padding for mobile */
    .page-the-thao__container,
    .page-the-thao__hero-section,
    .page-the-thao__intro-section,
    .page-the-thao__content-area,
    .page-the-thao__promotions-section,
    .page-the-thao__faq-section,
    .page-the-thao__blog-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }
    .page-the-thao__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Using clamp for H1 */
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-the-thao__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure button container takes full width */
    }

    /* Buttons */
    .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 !important; /* Add padding to buttons */
        padding-right: 15px !important;
    }

    /* Images */
    .page-the-thao img:not(.page-the-thao__icon-box-media img) { /* Exclude icon-box images */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Icon Box Media (Module 1 square images) */
    .page-the-thao__icon-box-media {
        width: 150px !important; /* Keep square on mobile */
        height: 150px !important; /* Keep square on mobile */
        margin-bottom: 15px !important;
    }
    .page-the-thao__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

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

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

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

    /* Section titles and descriptions */
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-the-thao__section-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-the-thao__sub-title {
        font-size: 1.5em;
    }

    /* FAQ */
    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-the-thao__faq-answer {
        padding: 0 20px 15px;
    }
    .page-the-thao__faq-item[open] .page-the-thao__faq-answer {
        padding: 0 20px 15px;
    }

    /* Blog Cards */
    .page-the-thao__blog-title {
        font-size: 1.2em;
    }
    .page-the-thao__blog-excerpt {
        font-size: 0.95em;
    }
}