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

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

.page-the-thao__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-the-thao__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-the-thao__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
    color: #017439;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 700px;
}

.page-the-thao__intro-text {
    font-size: 1.15em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 650px;
}

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

.page-the-thao__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-the-thao__hero-content {
    flex: 1;
    min-width: 300px;
}

.page-the-thao__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 400px;
}

.page-the-thao__main-visual {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.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: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

/* Custom colors for Register/Login */
.page-the-thao__hero-section .page-the-thao__btn-primary { /* Đăng Ký Rik Ngay */
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-the-thao__hero-section .page-the-thao__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-the-thao__hero-section .page-the-thao__btn-secondary { /* Đăng Nhập & Chơi */
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-the-thao__hero-section .page-the-thao__btn-secondary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

/* General primary/secondary buttons for other sections */
.page-the-thao__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-the-thao__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-the-thao__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

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

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

.page-the-thao__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-the-thao__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-the-thao__feature-description {
    color: #555555;
    font-size: 0.95em;
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-the-thao__grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    align-items: flex-start;
}

.page-the-thao__text-block {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    color: #555555;
}

.page-the-thao__list li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

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

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

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

.page-the-thao__step-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-the-thao__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-the-thao__guide-image {
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-the-thao__promo-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-the-thao__promo-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-the-thao__promo-text {
    color: #555555;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-the-thao__promo-call-to-action {
    text-align: center;
    font-size: 1.1em;
    color: #555555;
}

.page-the-thao__promo-call-to-action a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-the-thao__promo-call-to-action a:hover {
    text-decoration: underline;
}

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

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

.page-the-thao__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px 25px;
    color: #555555;
    font-size: 0.95em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

/* Call to Action Section */
.page-the-thao__call-to-action-section {
    background-color: #017439;
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}

.page-the-thao__call-to-action-section .page-the-thao__section-title {
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__call-to-action-section .page-the-thao__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-the-thao__call-to-action-section .page-the-thao__cta-buttons {
    justify-content: center;
}

/* Specific button styles for the final CTA section */
.page-the-thao__call-to-action-section .page-the-thao__btn-primary {
    background-color: #C30808; /* Use register color */
    color: #FFFF00;
    border-color: #C30808;
}

.page-the-thao__call-to-action-section .page-the-thao__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-the-thao__call-to-action-section .page-the-thao__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #FFFFFF; /* White border to stand out against green */
}

.page-the-thao__call-to-action-section .page-the-thao__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #005a2e;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        min-width: unset;
        width: 100%;
    }

    .page-the-thao__main-title {
        max-width: 100%;
    }

    .page-the-thao__intro-text {
        max-width: 100%;
    }

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

    .page-the-thao__grid-2-col {
        grid-template-columns: 1fr;
    }
}

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

    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-the-thao__hero-container {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 20px;
    }

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

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

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

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

    /* Images */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Specific image handling for content images that are not icon-box-media */
    .page-the-thao__main-visual,
    .page-the-thao__feature-image,
    .page-the-thao__content-image,
    .page-the-thao__guide-image,
    .page-the-thao__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

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

    .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;
        padding-right: 15px !important;
    }

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

    /* Bet Types Grid */
    .page-the-thao__grid-2-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-the-thao__text-block {
        padding: 20px;
    }

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

    .page-the-thao__step-item {
        padding-top: 50px;
    }

    .page-the-thao__step-number {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
        top: -15px;
    }

    /* Promotions Cards */
    .page-the-thao__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__promo-card {
        padding: 20px;
    }

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

    /* FAQ */
    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Call to action section */
    .page-the-thao__call-to-action-section .page-the-thao__cta-buttons {
        padding: 0 15px;
    }
}

/* Ensure all content containers have proper mobile padding */
.page-the-thao__features-section .page-the-thao__container,
.page-the-thao__bet-types-section .page-the-thao__container,
.page-the-thao__guide-section .page-the-thao__container,
.page-the-thao__promotions-section .page-the-thao__container,
.page-the-thao__faq-section .page-the-thao__container,
.page-the-thao__call-to-action-section .page-the-thao__container {
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 768px) {
    .page-the-thao__features-section .page-the-thao__container,
    .page-the-thao__bet-types-section .page-the-thao__container,
    .page-the-thao__guide-section .page-the-thao__container,
    .page-the-thao__promotions-section .page-the-thao__container,
    .page-the-thao__faq-section .page-the-thao__container,
    .page-the-thao__call-to-action-section .page-the-thao__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}