.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main from custom colors */
    background-color: #08160F; /* Background from custom colors */
}

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

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    background-color: #08160F;
    color: #F2FFF6;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
}

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

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image */
}

.page-the-thao__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 15px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly up over the image bottom */
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-the-thao__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary from custom colors */
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: #0A4B2C; /* Deep Green from custom colors */
    border: 2px solid #0A4B2C; /* Deep Green from custom colors */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-the-thao__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* General Section Styling */
.page-the-thao__section {
    padding: 60px 0;
    background-color: #08160F;
    color: #F2FFF6;
}

.page-the-thao__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6;
    position: relative;
}

.page-the-thao__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #57E38D; /* Glow color */
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-the-thao__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #A7D9B8;
}

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

/* Sports Highlight Section */
.page-the-thao__sports-highlight {
    background-color: #11271B; /* Card BG from custom colors */
}

.page-the-thao__grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__card {
    background-color: #08160F; /* Background from custom colors */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #2E7A4E; /* Border from custom colors */
}

.page-the-thao__card:hover {
    transform: translateY(-10px);
}

.page-the-thao__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-the-thao__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-the-thao__card-text {
    font-size: 1rem;
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-the-thao__btn-secondary--light {
    background: #0A4B2C;
    color: #F2FFF6;
    border: 2px solid #0A4B2C;
}

.page-the-thao__btn-secondary--light:hover {
    background: #11A84E;
    border-color: #11A84E;
}

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

/* Betting Types Section */
.page-the-thao__betting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__betting-item {
    background-color: #11271B;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #2E7A4E;
}

.page-the-thao__betting-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-the-thao__betting-text {
    font-size: 1rem;
    color: #A7D9B8;
}

.page-the-thao__sub-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    color: #F2FFF6;
}

.page-the-thao__ordered-list,
.page-the-thao__unordered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.page-the-thao__ordered-list li,
.page-the-thao__unordered-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #A7D9B8;
}

.page-the-thao__ordered-list li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #57E38D;
}

.page-the-thao__unordered-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #57E38D;
    font-size: 1.5rem;
    line-height: 1;
}

.page-the-thao__list-strong {
    color: #F2FFF6;
}

/* Promotions Section */
.page-the-thao__promotions {
    background-color: #08160F;
}

.page-the-thao__promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__promotion-item {
    background-color: #11271B;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid #2E7A4E;
}

.page-the-thao__promotion-image {
    width: 100%;
    height: 180px; /* Fixed height for consistent image display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-the-thao__promotion-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2FFF6;
}

.page-the-thao__promotion-text {
    font-size: 1rem;
    color: #A7D9B8;
}

/* Register CTA Section */
.page-the-thao__register-cta {
    background-color: #11271B;
    padding: 80px 0;
}

.page-the-thao__register-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-the-thao__register-content {
    flex: 1;
    text-align: left;
}

.page-the-thao__register-image-wrapper {
    flex: 1;
    text-align: right;
}

.page-the-thao__register-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    display: block;
}

/* FAQ Section */
.page-the-thao__faq {
    background-color: #08160F;
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__faq-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #11271B;
    color: #F2FFF6;
    list-style: none; /* Hide default details marker */
}

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

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

.page-the-thao__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-left: 15px;
    color: #57E38D;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg);
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: #A7D9B8;
}

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

/* Conclusion Section */
.page-the-thao__conclusion {
    padding-bottom: 80px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-the-thao__container {
        padding: 20px;
    }

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

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

    .page-the-thao__description {
        font-size: 1.1rem;
    }

    .page-the-thao__grid-3-columns,
    .page-the-thao__promotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-the-thao__betting-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .page-the-thao__register-flex {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

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

    .page-the-thao__register-image-wrapper {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-the-thao {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    .page-the-thao__container {
        padding: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section {
        padding: 40px 0 !important;
    }

    /* Hero Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Retain small top padding */
    }
    .page-the-thao__hero-image-wrapper,
    .page-the-thao__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__hero-content {
        margin-top: -50px !important; /* Adjust overlap */
        padding: 20px 10px !important;
        box-sizing: border-box !important;
        max-width: 100% !important; /* Ensure content box is full width */
        width: 100% !important;
    }
    .page-the-thao__main-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    .page-the-thao__description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Add padding to button container */
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Section Titles */
    .page-the-thao__section-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }
    .page-the-thao__section-title::after {
        margin: 10px auto 0 !important;
    }

    /* Image Responsiveness */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__card-image,
    .page-the-thao__promotion-image,
    .page-the-thao__register-image {
        height: auto !important; /* Ensure height adjusts */
    }

    /* Grid Layouts */
    .page-the-thao__grid-3-columns,
    .page-the-thao__promotion-grid {
        grid-template-columns: repeat(1, 1fr) !important; /* Single column layout */
        gap: 20px !important;
    }

    /* Card Specifics */
    .page-the-thao__card {
        padding: 20px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    .page-the-thao__card-title {
        font-size: 1.3rem !important;
    }
    .page-the-thao__card-text {
        font-size: 0.95rem !important;
    }

    /* Betting Grid */
    .page-the-thao__betting-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px !important;
    }
    .page-the-thao__betting-title {
        font-size: 1.4rem !important;
    }
    .page-the-thao__betting-text {
        font-size: 0.95rem !important;
    }

    /* Lists */
    .page-the-thao__ordered-list li,
    .page-the-thao__unordered-list li {
        font-size: 1rem !important;
        padding-left: 25px !important;
        margin-bottom: 10px !important;
    }

    /* Register CTA */
    .page-the-thao__register-flex {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 40px 15px !important;
    }
    .page-the-thao__register-content {
        text-align: center !important;
    }
    .page-the-thao__register-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}