:root {
    --rw88-primary: #2F6BFF;
    --rw88-secondary: #6FA3FF;
    --rw88-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --rw88-card-bg: #FFFFFF;
    --rw88-background: #F4F7FB;
    --rw88-text-main: #1F2D3D;
    --rw88-text-dark: #000000;
    --rw88-border: #D6E2FF;
    --rw88-glow: #A5C4FF;
}

.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: var(--rw88-text-main); /* Default text color for light backgrounds */
    line-height: 1.6;
    background-color: var(--rw88-background);
}

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

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

.page-the-thao__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--rw88-text-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-the-thao__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--rw88-primary);
    border-radius: 2px;
}

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

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

.page-the-thao__text-block {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-the-thao__content-block {
    margin-bottom: 30px;
}

.page-the-thao__content-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--rw88-primary);
    margin-bottom: 15px;
}

.page-the-thao__list {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-the-thao__list-item {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
}

.page-the-thao__list-item strong {
    color: var(--rw88-text-dark);
}

/* Buttons */
.page-the-thao__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--rw88-button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: var(--rw88-primary);
    border: 2px solid var(--rw88-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: var(--rw88-primary);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

.page-the-thao__btn--small {
    font-size: 16px;
    padding: 10px 20px;
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-the-thao__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual flow */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.page-the-thao__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--rw88-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 18px;
    color: var(--rw88-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Sports Categories Section */
.page-the-thao__dark-bg {
    background-color: var(--rw88-primary);
    color: #ffffff;
}

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

.page-the-thao__sport-card {
    background-color: var(--rw88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--rw88-text-main);
}

.page-the-thao__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-the-thao__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-the-thao__sport-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--rw88-primary);
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

.page-the-thao__sport-description {
    font-size: 15px;
    padding: 0 20px 20px;
    line-height: 1.6;
    text-align: justify;
}

/* Betting Guide Section */
.page-the-thao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-the-thao__guide-step {
    background-color: var(--rw88-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__guide-step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--rw88-text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-the-thao__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--rw88-primary);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.page-the-thao__step-figure {
    margin-bottom: 20px;
    width: 100%;
}

.page-the-thao__step-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-the-thao__step-caption {
    font-size: 15px;
    color: var(--rw88-text-main);
    line-height: 1.6;
    text-align: justify;
}

/* Promotions Section */
.page-the-thao__light-bg {
    background-color: var(--rw88-background);
}

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

.page-the-thao__promo-card {
    background-color: var(--rw88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--rw88-text-main);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-the-thao__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-the-thao__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--rw88-primary);
    padding: 0 20px;
    margin-bottom: 10px;
}

.page-the-thao__promo-description {
    font-size: 15px;
    padding: 0 20px;
    line-height: 1.6;
    text-align: justify;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Tips Section */
.page-the-thao__list--tips {
    list-style: decimal inside;
    padding-left: 20px;
    margin-top: 30px;
}

.page-the-thao__list--tips .page-the-thao__list-item {
    margin-bottom: 15px;
    font-size: 17px;
}

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

.page-the-thao__cta-bottom .page-the-thao__text-block {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Conclusion Section */
.page-the-thao__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* General image styling to prevent small icons */
.page-the-thao img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__section-title {
        font-size: 32px;
    }

    .page-the-thao__hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .page-the-thao__hero-description {
        font-size: 17px;
    }

    .page-the-thao__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }

    .page-the-thao__sport-image {
        height: 200px;
    }

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

    .page-the-thao__btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

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

    .page-the-thao__hero-image-wrapper {
        max-height: 300px;
    }

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

    .page-the-thao__hero-content {
        margin-top: -60px; /* Adjust overlap for mobile */
        padding: 25px 15px;
        border-radius: 10px;
    }

    .page-the-thao__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-the-thao__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-the-thao__hero-cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }

    /* 2. Single column long text container */
    .page-the-thao__section-padding {
        padding: 40px 0;
    }

    .page-the-thao__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .page-the-thao__content-subtitle {
        font-size: 20px;
    }

    .page-the-thao__text-block,
    .page-the-thao__list-item,
    .page-the-thao__sport-description,
    .page-the-thao__step-caption,
    .page-the-thao__promo-description {
        font-size: 14px;
    }

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

    .page-the-thao__sport-image,
    .page-the-thao__step-image,
    .page-the-thao__promo-image {
        height: 180px;
        min-height: 180px !important;
    }

    .page-the-thao__sports-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 4. Buttons and button containers */
    .page-the-thao__btn,
    .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;
        font-size: 16px;
    }

    .page-the-thao__hero-cta-buttons,
    .page-the-thao__final-cta-buttons,
    .page-the-thao__cta-bottom,
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Ensure buttons wrap */
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* 5. Registration tutorial and FAQ blocks - guide steps are similar */
    .page-the-thao__guide-step {
        padding: 20px;
    }

    .page-the-thao__guide-step-title {
        font-size: 20px;
    }

    .page-the-thao__list--tips .page-the-thao__list-item {
        font-size: 15px;
    }

    .page-the-thao__cta-bottom .page-the-thao__text-block {
        font-size: 16px;
    }

    .page-the-thao__final-cta-buttons {
        margin-top: 30px;
    }
}