.page-the-thao {
    font-family: Arial, sans-serif;
    color: var(--text-main, #333333); /* Default text color, ensuring contrast */
    background-color: var(--bg-color, #F5F7FA); /* Main background color */
    line-height: 1.6;
}

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

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

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

.page-the-thao__sub-title {
    font-size: 1.8em;
    color: var(--primary-color, #E53935);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-the-thao p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-the-thao__hero-section {
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--bg-color, #F5F7FA);
}

.page-the-thao__hero-image-wrapper {
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 10px;
}

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

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Using clamp for H1 as per instructions */
    color: var(--primary-color, #E53935);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__main-description {
    font-size: 1.2em;
    color: var(--text-main, #333333);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-the-thao__cta-buttons--center {
    margin-top: 40px;
}

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

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

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

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-the-thao__btn-card, .page-the-thao__btn-promo {
    margin-top: 15px;
    width: 100%;
}

.page-the-thao__dark-bg {
    background-color: var(--primary-color, #E53935);
    color: #ffffff; /* Dark background, light text */
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__sub-title {
    color: #ffffff;
}

.page-the-thao__light-bg {
    background-color: var(--card-bg, #FFFFFF);
    color: var(--text-main, #333333); /* Light background, dark text */
}

.page-the-thao__figure {
    margin: 20px auto;
    text-align: center;
    max-width: 680px; /* Max width for content images */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-main, #333333);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
}

.page-the-thao__cockfighting-section .page-the-thao__figcaption {
    color: #333333; /* Ensure readability on dark section's figcaption */
    background-color: #ffffff;
}

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

.page-the-thao__card {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-the-thao__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-the-thao__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__card-title a {
    color: var(--primary-color, #E53935);
    text-decoration: none;
}

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

.page-the-thao__card-text {
    font-size: 1em;
    color: var(--text-main, #333333);
    flex-grow: 1;
}

.page-the-thao__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-the-thao__guide-item {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-step-title {
    font-size: 1.6em;
    color: var(--primary-color, #E53935);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-the-thao__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-the-thao__tips-item {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__tips-item-title {
    font-size: 1.6em;
    color: var(--primary-color, #E53935);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-the-thao__promo-card {
    background-color: #ffffff; /* Ensure white background for contrast on dark section */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-main, #333333); /* Ensure dark text */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-the-thao__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-the-thao__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color, #E53935); /* Ensure good contrast */
}

.page-the-thao__promo-text {
    font-size: 1em;
    flex-grow: 1;
}

.page-the-thao__faq-list {
    margin-top: 30px;
}

.page-the-thao__faq-item {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For details tag animation */
}

.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: var(--text-main, #333333);
    cursor: pointer;
    background-color: #f9f9f9;
    list-style: none; /* For details summary */
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color, #E53935);
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color, #E53935);
    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 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main, #333333);
    line-height: 1.6;
}

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

.page-the-thao__faq-answer a {
    color: var(--secondary-color, #FF5A4F);
    text-decoration: none;
}

.page-the-thao__faq-answer a:hover {
    text-decoration: underline;
}

/* General image and container responsiveness */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-the-thao__article-wrap {
        padding: 0 15px;
    }

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

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

    .page-the-thao__main-description {
        font-size: 1.1em;
    }

    .page-the-thao__card-image,
    .page-the-thao__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-the-thao__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 10px;
    }

    .page-the-thao__main-description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

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

    .page-the-thao__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;
        padding-right: 15px;
    }

    /* 2. Single-column long text containers */
    .page-the-thao__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section {
        padding: 30px 0;
    }

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

    .page-the-thao__sub-title {
        font-size: 1.4em;
    }

    .page-the-thao p {
        font-size: 1em;
    }

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

    .page-the-thao__figure {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-the-thao__card-image,
    .page-the-thao__promo-image {
        height: 150px;
    }

    .page-the-thao__grid-cards,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__card,
    .page-the-thao__promo-card,
    .page-the-thao__guide-item,
    .page-the-thao__tips-item,
    .page-the-thao__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__card-title,
    .page-the-thao__promo-title,
    .page-the-thao__guide-step-title,
    .page-the-thao__tips-item-title {
        font-size: 1.3em;
    }

    /* 4. Buttons and button containers (already covered by .page-the-thao__btn and .page-the-thao__cta-buttons) */
    .page-the-thao__cta-buttons.page-the-thao__cta-buttons--center {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__btn-card, .page-the-thao__btn-promo {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. Registration tutorial and FAQ blocks */
    .page-the-thao__guide-list,
    .page-the-thao__tips-list,
    .page-the-thao__faq-list {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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