/* style/the-thao.css */

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

.page-the-thao__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-the-thao__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #017439;
}

.page-the-thao__section-title--light {
    color: #ffffff;
}

.page-the-thao__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__paragraph--light {
    color: #f0f0f0;
}

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

/* Buttons */
.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__card-button,
.page-the-thao__btn-text-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-the-thao__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-the-thao__card-button {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    text-align: center;
    width: 100%; /* Make card buttons full width */
    padding: 12px 25px;
}

.page-the-thao__card-button:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-the-thao__btn-text-link {
    background-color: transparent;
    color: #017439;
    border: none;
    text-decoration: underline;
    padding: 0;
}

.page-the-thao__btn-text-link:hover {
    color: #005a2e;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for fixed header */
    padding-bottom: 60px;
    text-align: center;
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff; /* Text color for dark background */
}

.page-the-thao__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly lighter text for dark background */
    text-align: left;
    max-width: none; /* Override paragraph max-width */
}

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

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

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

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

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

.page-the-thao__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #017439;
}

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

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

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

/* Sports Categories Section */
.page-the-thao__sports-categories {
    padding: 60px 0;
}

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

.page-the-thao__category-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-the-thao__card-title {
    font-size: 1.8em;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-the-thao__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 15px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How to Bet Section */
.page-the-thao__how-to-bet {
    padding: 60px 0;
}

.page-the-thao__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    counter-reset: step-counter;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.page-the-thao__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-the-thao__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-top: 20px; /* Space for the counter */
    margin-bottom: 10px;
}

.page-the-thao__step-description {
    font-size: 1em;
    color: #555555;
}

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

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

.page-the-thao__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Reusing .page-the-thao__card-image, .page-the-thao__card-title, .page-the-thao__card-description, .page-the-thao__card-button */

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

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

.page-the-thao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary native marker */
}

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

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

.page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #555555;
    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; /* Adjust as needed for content length */
    transition: max-height 0.5s ease-in;
}

.page-the-thao__faq-answer p {
    margin-bottom: 0;
    text-align: left; /* Override global paragraph center alignment */
}

/* Final CTA Section */
.page-the-thao__cta-final {
    padding: 60px 0;
    text-align: center;
}

.page-the-thao__cta-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

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

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

    .page-the-thao__intro-text {
        text-align: center;
    }

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

@media (max-width: 768px) {
    /* General Mobile */
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden;
    }

    .page-the-thao__content-area {
        padding: 30px 15px;
    }

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

    /* Hero Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-the-thao__hero-container {
        padding: 20px 15px;
        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: 20px;
    }

    .page-the-thao__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons & Button Containers (Mobile Specific) */
    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__card-button,
    .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;
        padding-right: 15px;
        text-align: center; /* Center button text */
    }

    /* Intro Section - Features Grid */
    .page-the-thao__features-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

    .page-the-thao__feature-item {
        padding: 15px;
    }

    .page-the-thao__icon-box-media {
        width: 180px;
        height: 180px;
        margin-bottom: 15px;
        border-width: 3px;
    }
    
    .page-the-thao__icon-box-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-the-thao__feature-title {
        font-size: 1.3em;
    }

    /* Sports Categories Section - Card Grid */
    .page-the-thao__category-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

    .page-the-thao__card-image {
        height: auto !important; /* Override fixed height for responsiveness */
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-the-thao__card-title {
        font-size: 1.5em;
        margin: 15px 10px 8px;
    }

    .page-the-thao__card-description {
        padding: 0 10px 15px;
    }

    /* How to Bet Section - Steps List */
    .page-the-thao__steps-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

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

    .page-the-thao__step-item::before {
        width: 35px;
        height: 35px;
        font-size: 1em;
        top: -12px;
    }

    .page-the-thao__step-title {
        font-size: 1.2em;
        margin-top: 15px;
    }

    /* Promotions Section - Promo Cards */
    .page-the-thao__promo-cards {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-the-thao__faq-list {
        margin-top: 30px;
    }

    .page-the-thao__faq-item {
        margin-bottom: 10px;
    }

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

    .page-the-thao__faq-toggle {
        font-size: 1.3em;
        margin-left: 10px;
    }

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

    /* Final CTA Section */
    .page-the-thao__cta-final {
        padding: 30px 0;
    }

    .page-the-thao__cta-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Generic Image Responsive */
    .page-the-thao img:not(.page-the-thao__icon-box-media img) { /* Exclude icon-box-media 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__promo-card,
    .page-the-thao__category-card,
    .page-the-thao__feature-item,
    .page-the-thao__step-item,
    .page-the-thao__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}