.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Main text color */
    background-color: #0A0A0A; /* Page background color */
}

.page-the-thao__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #F2C14E; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #111111; /* Card BG for hero section */
}

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

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-the-thao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    color: #F2C14E;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-text {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
}

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

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

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

/* Sports Categories & Promotion Section Grid */
.page-the-thao__category-grid,
.page-the-thao__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__category-card,
.page-the-thao__promo-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__category-card:hover,
.page-the-thao__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-the-thao__card-title {
    font-size: 1.5em;
    color: #FFD36B; /* Auxiliary color for card titles */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__card-description {
    font-size: 1em;
    color: #FFF6D6;
    line-height: 1.5;
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-the-thao__btn-text {
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    display: inline-block;
}

.page-the-thao__btn-text:hover {
    text-decoration: underline;
    color: #FFD36B;
}

/* Betting Guide Section */
.page-the-thao__betting-guide-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

.page-the-thao__guide-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__guide-title {
    font-size: 1.4em;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-the-thao__guide-description {
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.5;
    margin-bottom: 20px;
}

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

/* Promotion Section */
.page-the-thao__promotion-section {
    padding: 60px 0;
    background-color: #111111;
}

/* Why Choose Us Section */
.page-the-thao__why-choose-us {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

.page-the-thao__feature-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__feature-title {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 10px;
}

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

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

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

.page-the-thao__faq-item {
    background-color: #0A0A0A;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-the-thao__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2C14E;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    outline: none;
}

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

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

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #FFF6D6;
}

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

.page-the-thao__faq-answer a {
    color: #F2C14E;
    text-decoration: underline;
}

.page-the-thao__faq-answer a:hover {
    color: #FFD36B;
}

/* General image styling for content sections */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__hero-content {
        order: 2; /* Content below image on smaller screens */
    }

    .page-the-thao__hero-image {
        order: 1; /* Image above content on smaller screens */
    }
    
    .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* General page adjustments */
    .page-the-thao__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-the-thao__text-block {
        font-size: 1em;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-the-thao__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
        text-align: center;
    }

    .page-the-thao__hero-description {
        font-size: 1em;
        text-align: center;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Buttons stack vertically */
        gap: 15px;
        align-items: center;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        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;
    }

    /* Images */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-the-thao__hero-side-image {
        border-radius: 8px;
    }

    .page-the-thao__card-image,
    .page-the-thao__guide-image {
        height: 160px; /* Adjust height for mobile cards */
    }

    /* Grids */
    .page-the-thao__category-grid,
    .page-the-thao__promo-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    /* Card adjustments */
    .page-the-thao__category-card,
    .page-the-thao__promo-card,
    .page-the-thao__guide-item,
    .page-the-thao__feature-item {
        padding: 20px;
    }

    .page-the-thao__card-title,
    .page-the-thao__guide-title,
    .page-the-thao__feature-title {
        font-size: 1.3em;
    }

    .page-the-thao__card-description,
    .page-the-thao__guide-description,
    .page-the-thao__feature-description {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-the-thao__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px 15px;
    }
    
    .page-the-thao__cta-center {
        padding: 0 15px;
    }
}