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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 60px;
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #FFFFFF; /* White text on primary background */
    text-align: center;
}

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

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

.page-the-thao__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-the-thao__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #F0F0F0;
}

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

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

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

/* General Section Styles */
.page-the-thao__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand primary color */
}

.page-the-thao__section-title--white {
    color: #FFFFFF;
}

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

.page-the-thao__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

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

/* Features Section (Popular Sports) */
.page-the-thao__features-section {
    background-color: #F8F9FA; /* Light grey background */
    padding: 60px 0;
}

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

.page-the-thao__feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
    transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
    width: 200px; /* Fixed width for circular image */
    height: 200px; /* Fixed height for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #26A9E0; /* Border with primary color */
}

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

.page-the-thao__feature-heading {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

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

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

.page-the-thao__bet-type-item {
    background-color: #F8F9FA;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__bet-type-heading {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-the-thao__bet-type-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

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

/* Promo Section */
.page-the-thao__promo-section {
    background-color: #26A9E0;
    padding: 60px 0;
    color: #FFFFFF;
}

.page-the-thao__promo-content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-the-thao__promo-text {
    flex: 1 1 50%;
    min-width: 300px;
}

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

.page-the-thao__promo-banner {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
}

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

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

.page-the-thao__guide-item {
    background-color: #F8F9FA;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-the-thao__guide-step-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
}

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

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

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

.page-the-thao__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0;
    padding: 5px 0;
}

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

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

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

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-the-thao__faq-answer {
    padding-top: 15px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

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

/* Final CTA Section */
.page-the-thao__cta-section {
    background-color: #26A9E0;
    padding: 60px 0;
    text-align: center;
    color: #FFFFFF;
}

.page-the-thao__cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-the-thao__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

.page-the-thao__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

/* Card styles for general use */
.page-the-thao__card {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-title {
        font-size: 2.5em;
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
    .page-the-thao__feature-grid,
    .page-the-thao__bet-type-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-the-thao__hero-container,
    .page-the-thao__promo-content-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-the-thao__hero-content,
    .page-the-thao__promo-text {
        text-align: center;
    }
    .page-the-thao__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
        padding-bottom: 40px;
    }
    .page-the-thao__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-the-thao__hero-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-the-thao__hero-cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-the-thao__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Sections and Text */
    .page-the-thao__content-area {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-the-thao__text-block {
        font-size: 0.95em;
    }

    /* Module 1: Features Section (Three-column circular images) */
    .page-the-thao__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__icon-box-media {
        width: 180px;
        height: 180px;
        margin-bottom: 15px;
    }
    .page-the-thao__icon-box-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .page-the-thao__feature-item {
        padding: 25px;
    }
    .page-the-thao__feature-heading {
        font-size: 1.4em;
    }

    /* Bet Types Section */
    .page-the-thao__bet-type-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__bet-type-item {
        padding: 20px;
    }
    .page-the-thao__bet-type-heading {
        font-size: 1.2em;
    }
    .page-the-thao__cta-center {
        margin-top: 30px;
    }

    /* Promo Section */
    .page-the-thao__promo-content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-the-thao__promo-text,
    .page-the-thao__promo-image {
        min-width: unset;
        width: 100%;
    }
    .page-the-thao__promo-banner {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Guide Section */
    .page-the-thao__guide-item {
        padding: 25px;
        margin-bottom: 20px;
    }
    .page-the-thao__guide-step-title {
        font-size: 1.3em;
    }

    /* FAQ Section */
    .page-the-thao__faq-item {
        padding: 18px 20px;
        margin-bottom: 10px;
    }
    .page-the-thao__faq-item summary {
        font-size: 1em;
    }
    .page-the-thao__faq-toggle {
        font-size: 1.3em;
    }
    .page-the-thao__faq-answer {
        font-size: 0.9em;
    }

    /* Final CTA Section */
    .page-the-thao__cta-flex {
        gap: 20px;
    }

    /* Buttons */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1em;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-the-thao__hero-cta-buttons,
    .page-the-thao__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column !important; /* Force vertical stack for mobile buttons */
    }

    /* Universal Image Adaptation */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}