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

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

/* Sections */
.page-the-thao__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-the-thao__dark-bg {
    background-color: var(--page-the-thao-primary-color);
    color: #ffffff;
}

.page-the-thao__light-bg {
    background-color: var(--page-the-thao-background);
    color: var(--page-the-thao-text-main);
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-the-thao__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherits from section background */
}

.page-the-thao__text-content {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
    max-width: 900px;
    padding: 0 15px;
}

.page-the-thao__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Adaptive font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-the-thao-primary-color);
}

.page-the-thao__description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--page-the-thao-text-main);
}

/* CTA Buttons */
.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-the-thao__btn-primary {
    background: var(--page-the-thao-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-the-thao__btn-secondary:hover {
    background: var(--page-the-thao-primary-color);
    color: #ffffff;
}

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

/* Feature Grid */
.page-the-thao__grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-the-thao__feature-card {
    background-color: var(--page-the-thao-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--page-the-thao-text-main);
}

.page-the-thao__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-the-thao-primary-color);
}

.page-the-thao__feature-card p {
    font-size: 16px;
    line-height: 1.6;
}

.page-the-thao__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 40px auto 0 auto;
    object-fit: cover;
}

/* Betting Types Grid */
.page-the-thao__grid-betting-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__type-card {
    background-color: var(--page-the-thao-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--page-the-thao-text-main);
    border: 1px solid var(--page-the-thao-border);
}

.page-the-thao__card-glow {
    position: relative;
    overflow: hidden;
}

.page-the-thao__card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--page-the-thao-glow) 0%, transparent 70%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.page-the-thao__card-glow:hover::before {
    opacity: 0.2;
}

.page-the-thao__type-card .page-the-thao__card-title {
    color: var(--page-the-thao-text-main);
}

.page-the-thao__type-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Steps Guide */
.page-the-thao__steps-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-the-thao__step-item {
    background-color: var(--page-the-thao-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    color: var(--page-the-thao-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--page-the-thao-secondary-color);
    margin-bottom: 15px;
}

.page-the-thao__step-item .page-the-thao__card-title {
    color: var(--page-the-thao-primary-color);
    margin-top: 0;
}

.page-the-thao__step-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-the-thao__promo-card {
    background-color: var(--page-the-thao-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--page-the-thao-text-main);
    border: 1px solid var(--page-the-thao-border);
}

.page-the-thao__promo-card .page-the-thao__card-title {
    color: var(--page-the-thao-text-main);
}

.page-the-thao__promo-card p {
    font-size: 16px;
    line-height: 1.6;
}

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

/* Tips List */
.page-the-thao__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__list-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--page-the-thao-text-main);
}

.page-the-thao__list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--page-the-thao-primary-color);
    margin-bottom: 10px;
}

.page-the-thao__list-item p {
    font-size: 16px;
    line-height: 1.6;
}

/* FAQ Section */
.page-the-thao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__faq-item {
    background-color: var(--page-the-thao-card-bg);
    border: 1px solid var(--page-the-thao-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-the-thao-text-main);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker for details */
    color: var(--page-the-thao-text-main);
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
    color: var(--page-the-thao-text-main);
}

.page-the-thao__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    margin-left: 15px;
    color: var(--page-the-thao-primary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    content: '-';
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--page-the-thao-text-main);
}

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

/* CTA Section at bottom */
.page-the-thao__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-the-thao-primary-color);
    color: #ffffff;
}

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

.page-the-thao__cta-section .page-the-thao__text-content {
    color: #ffffff;
}

.page-the-thao__cta-section .page-the-thao__cta-buttons {
    margin-top: 40px;
}

.page-the-thao__cta-section .page-the-thao__btn-secondary {
    background: #ffffff;
    color: var(--page-the-thao-primary-color);
    border-color: #ffffff;
}

.page-the-thao__cta-section .page-the-thao__btn-secondary:hover {
    background: var(--page-the-thao-primary-color);
    color: #ffffff;
    border-color: var(--page-the-thao-secondary-color);
}

/* General image styling */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .page-the-thao__section {
        padding: 40px 0;
    }

    .page-the-thao__container {
        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;
    }

    .page-the-thao__text-content {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-the-thao__hero-section {
        padding-bottom: 40px;
    }

    .page-the-thao__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-the-thao__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-the-thao__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
    }

    .page-the-thao__grid-features,
    .page-the-thao__grid-betting-types,
    .page-the-thao__steps-guide,
    .page-the-thao__grid-promotions {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-the-thao__feature-card,
    .page-the-thao__type-card,
    .page-the-thao__step-item,
    .page-the-thao__promo-card {
        padding: 25px;
        border-radius: 10px;
    }

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

    .page-the-thao__feature-card p,
    .page-the-thao__type-card p,
    .page-the-thao__step-item p,
    .page-the-thao__promo-card p,
    .page-the-thao__list-item p,
    .page-the-thao__faq-answer p {
        font-size: 15px;
    }

    .page-the-thao__step-number {
        font-size: 40px;
    }

    .page-the-thao__image-content {
        margin-top: 30px;
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__list-item {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .page-the-thao__list-title {
        font-size: 18px;
    }

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

    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-the-thao__faq-toggle {
        font-size: 20px;
    }

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

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

    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__text-main { /* Ensure text color is applied on mobile */
        color: var(--page-the-thao-text-main);
    }
}