.page-the-thao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Assuming shared.css sets this, default to white */
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-the-thao__hero-image {
    width: 100%;
    max-height: 675px; /* Limit height for large hero image */
    overflow: hidden;
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #017439; /* Brand color */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-the-thao__tagline {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-the-thao__section {
    padding: 60px 0;
    position: relative;
}

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

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

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

.page-the-thao__paragraph {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

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

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-the-thao__btn-primary {
    background-color: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border: 2px solid #C30808;
}

.page-the-thao__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-the-thao__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color for text */
    border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-the-thao__card-button {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: 15px;
}

.page-the-thao__card-button:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-the-thao__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

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

.page-the-thao__card-title {
    font-size: 1.5rem;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__card-text {
    font-size: 0.95rem;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1; /* Ensure text takes available space */
}

/* Lists */
.page-the-thao__ordered-list,
.page-the-thao__unordered-list {
    margin-top: 20px;
    padding-left: 25px;
}

.page-the-thao__list-item {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333333;
}

.page-the-thao__list-title {
    font-size: 1.3rem;
    color: #017439;
    margin-bottom: 5px;
    font-weight: 600;
}

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

.page-the-thao__unordered-list .page-the-thao__list-item {
    list-style-type: disc;
}

.page-the-thao__link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-the-thao__link:hover {
    color: #005a2e;
}

.page-the-thao__link--light {
    color: #FFFF00; /* Light text for dark background */
}

.page-the-thao__link--light:hover {
    color: #FFD700;
}

/* Dark section for benefits */
.page-the-thao__benefits {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
}

/* CTA Section specific styles */
.page-the-thao__cta-container {
    text-align: center;
}

.page-the-thao__download-text {
    margin-top: 40px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsible Gambling */
.page-the-thao__responsible-gambling .page-the-thao__unordered-list {
    list-style-type: decimal;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-the-thao__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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: #017439;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* For mobile */
}

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

.page-the-thao__faq-question .page-the-thao__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #017439;
    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: 1rem;
    color: #555555;
    line-height: 1.5;
}

/* Conclusion Section */
.page-the-thao__conclusion {
    text-align: center;
    background-color: #e6f7ed; /* Lighter shade of brand color */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-the-thao__hero-content {
        margin-top: 15px;
        padding: 0 10px;
    }

    .page-the-thao__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-the-thao__tagline {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

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

    .page-the-thao__paragraph {
        padding: 0 10px;
    }

    .page-the-thao__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

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

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__card-button {
        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: 1rem;
    }

    .page-the-thao__card-button {
        padding: 10px 15px;
    }

    /* Card Grid */
    .page-the-thao__cards-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-the-thao__card {
        padding-bottom: 15px;
    }

    .page-the-thao__card-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-the-thao__card-title {
        font-size: 1.3rem;
    }

    .page-the-thao__card-text {
        font-size: 0.9rem;
    }

    /* Lists */
    .page-the-thao__ordered-list,
    .page-the-thao__unordered-list {
        padding-left: 20px;
        padding-right: 10px;
    }

    .page-the-thao__list-title {
        font-size: 1.2rem;
    }

    /* FAQ */
    .page-the-thao__faq-item {
        margin-left: 10px;
        margin-right: 10px;
    }

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

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

    /* General image and container rules */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__cta-buttons,
    .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;
    }
}