:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-color-light: #f8f9fa; /* A slightly off-white for contrast */
    --link-login-color: #EA7C07;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Default white background */
}

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--bg-color-light); /* Light background for hero section */
}

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

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-color-dark); /* Text color for light hero background */
}

.page-the-thao__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color); /* Brand color for H1 */
    max-width: 600px; /* Limit width for better readability */
}

.page-the-thao__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color-dark);
    max-width: 600px; /* Limit width for better readability */
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-the-thao__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-the-thao__btn-primary:hover {
    background-color: #1e87b7; /* Example darkened color */
    border-color: #1e87b7;
}

.page-the-thao__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

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

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

.page-the-thao__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-the-thao__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-color-dark);
}

.page-the-thao__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-the-thao__text-block a:hover {
    text-decoration: none;
}

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

.page-the-thao__dark-section {
    background-color: var(--primary-color); /* Brand color as background */
    color: var(--text-color-light); /* Light text for dark background */
    padding: 60px 20px;
}

.page-the-thao__dark-bg-title {
    color: var(--text-color-light); /* White title for dark background */
}

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

.page-the-thao__betting-card {
    background-color: var(--secondary-color); /* White card background */
    color: var(--text-color-dark);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-the-thao__betting-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-the-thao__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-the-thao__card-description {
    font-size: 0.95rem;
    color: var(--text-color-dark);
}

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

.page-the-thao__advantage-item {
    background-color: var(--bg-color-light);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__advantage-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-the-thao__advantage-description {
    font-size: 1rem;
    color: var(--text-color-dark);
}

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

.page-the-thao__guide-step {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-top: 60px;
}

.page-the-thao__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-the-thao__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-the-thao__step-description {
    font-size: 1rem;
    color: var(--text-color-dark);
}

.page-the-thao__step-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-the-thao__step-description a:hover {
    text-decoration: none;
}

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

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

.page-the-thao__news-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: var(--text-color-dark);
    transition: transform 0.3s ease;
}

.page-the-thao__news-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__news-card .page-the-thao__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card image */
    object-fit: cover;
    border-radius: 0; /* No border-radius on top */
}

.page-the-thao__news-card .page-the-thao__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 20px 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.page-the-thao__news-card .page-the-thao__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-the-thao__card-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0 20px 10px;
}

.page-the-thao__news-card .page-the-thao__card-description {
    font-size: 0.95rem;
    margin: 0 20px 15px;
    color: var(--text-color-dark);
}

.page-the-thao__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px 20px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.page-the-thao__read-more:hover {
    border-color: transparent;
}

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

.page-the-thao__faq-item {
    background-color: var(--bg-color-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--secondary-color);
    border-bottom: 1px solid #e0e0e0;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    border-bottom: none; /* Remove border when open */
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-the-thao__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }
    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100%;
        min-width: unset;
        max-width: 700px;
        margin: 0 auto;
    }
    .page-the-thao__hero-title,
    .page-the-thao__hero-description {
        max-width: 100%;
    }
    .page-the-thao__cta-buttons {
        justify-content: center;
    }
    .page-the-thao__content-area {
        padding: 40px 15px;
    }
    .page-the-thao__section-title {
        margin-bottom: 30px;
    }
    .page-the-thao__news-card .page-the-thao__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px !important;
    }
    .page-the-thao__hero-container {
        padding: 20px 15px !important;
        gap: 20px !important;
    }
    .page-the-thao__hero-title {
        font-size: 2.2rem !important;
    }
    .page-the-thao__hero-description {
        font-size: 1rem !important;
    }

    /* Buttons & Button Containers */
    .page-the-thao__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Add padding to container */
    }
    .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;
    }
    .page-the-thao__cta-center {
        padding: 0 15px !important; /* Add padding to container */
    }

    /* General Images & Containers */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-the-thao__content-area,
    .page-the-thao__hero-section,
    .page-the-thao__intro-section,
    .page-the-thao__betting-types-section,
    .page-the-thao__advantages-section,
    .page-the-thao__guide-section,
    .page-the-thao__news-section,
    .page-the-thao__faq-section,
    .page-the-thao__betting-card,
    .page-the-thao__advantage-item,
    .page-the-thao__guide-step,
    .page-the-thao__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-the-thao__betting-grid,
    .page-the-thao__advantages-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__news-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
    }

    /* Section Titles */
    .page-the-thao__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    /* Card Specifics */
    .page-the-thao__news-card .page-the-thao__card-image {
        height: 180px !important; /* Adjust height for mobile */
    }
    .page-the-thao__news-card .page-the-thao__card-title,
    .page-the-thao__news-card .page-the-thao__card-description,
    .page-the-thao__news-card .page-the-thao__read-more,
    .page-the-thao__card-meta {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    /* FAQ Section */
    .page-the-thao__faq-question {
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }
    .page-the-thao__faq-answer {
        padding: 10px 20px 15px !important;
    }
    .page-the-thao__faq-toggle {
        font-size: 1.5rem !important;
    }
}