:root {
    --color-primary: #017439;
    --color-secondary: #FFFFFF;
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-register: #C30808;
    --color-login: #C30808;
    --color-background: #FFFFFF;
    --color-register-login-font: #FFFF00;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background);
}

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

.page-the-thao__section-title {
    font-size: 2.5em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-the-thao__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--color-text-dark);
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #02944b 100%);
    color: var(--color-text-light);
}

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

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--color-text-light);
}

.page-the-thao__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.page-the-thao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary,
.page-the-thao__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background-color: var(--color-register);
    color: var(--color-register-login-font);
    border: 2px solid var(--color-register);
}

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

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.page-the-thao__btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.page-the-thao__btn-tertiary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.page-the-thao__btn-tertiary:hover {
    background-color: #02944b;
    border-color: #02944b;
}

.page-the-thao__btn-link {
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: underline;
    padding: 5px 0;
    font-size: 0.9em;
    border: none;
}

.page-the-thao__btn-link:hover {
    color: #02944b;
}

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

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

/* Intro Section */
.page-the-thao__intro-section {
    background-color: var(--color-light-bg, #f8f8f8);
    color: var(--color-text-dark);
    padding: 60px 0;
}

.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 {
    text-align: center;
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.page-the-thao__icon-box-media {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(1, 116, 57, 0.1);
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-the-thao__feature-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-the-thao__feature-text {
    font-size: 1em;
    color: var(--color-text-dark);
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 60px 0;
}

.page-the-thao__bet-types-section .page-the-thao__section-title,
.page-the-thao__bet-types-section .page-the-thao__section-description {
    color: var(--color-text-light);
}

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

.page-the-thao__card {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-the-thao__card-title {
    font-size: 1.4em;
    color: var(--color-primary);
    padding: 15px 20px 10px;
    font-weight: bold;
}

.page-the-thao__card-text {
    font-size: 0.95em;
    color: var(--color-text-dark);
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Advantages Section */
.page-the-thao__advantages-section {
    background-color: var(--color-light-bg, #f8f8f8);
    color: var(--color-text-dark);
    padding: 60px 0;
}

.page-the-thao__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.page-the-thao__list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--color-secondary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.page-the-thao__list-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-the-thao__list-content {
    flex-grow: 1;
}

.page-the-thao__list-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.page-the-thao__list-content p {
    font-size: 0.95em;
    color: var(--color-text-dark);
}

/* Guide Section */
.page-the-thao__guide-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 60px 0;
}

.page-the-thao__guide-section .page-the-thao__section-title,
.page-the-thao__guide-section .page-the-thao__section-description {
    color: var(--color-text-light);
}

.page-the-thao__guide-list {
    list-style: none;
    counter-reset: guide-step;
    padding: 0;
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.page-the-thao__guide-item {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 70px;
}

.page-the-thao__guide-item::before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    position: absolute;
    left: 20px;
    top: 25px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
}

.page-the-thao__guide-step-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-the-thao__guide-item p {
    font-size: 1em;
    margin-bottom: 15px;
}

.page-the-thao__guide-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.page-the-thao__guide-cta p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--color-text-light);
}

/* Promo Section */
.page-the-thao__promo-section {
    background-color: var(--color-light-bg, #f8f8f8);
    color: var(--color-text-dark);
    padding: 60px 0;
}

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

.page-the-thao__promo-grid .page-the-thao__card-title {
    color: var(--color-primary);
}

.page-the-thao__promo-grid .page-the-thao__card-text {
    color: var(--color-text-dark);
}

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

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 60px 0;
}

.page-the-thao__faq-section .page-the-thao__section-title {
    color: var(--color-text-light);
}

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

.page-the-thao__faq-item {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    background-color: var(--color-secondary);
    border-bottom: 1px solid #eee;
    list-style: none;
    position: relative;
}

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

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    border-bottom: 1px solid var(--color-primary);
}

.page-the-thao__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: var(--color-text-dark);
    background-color: #f9f9f9;
}

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

/* Call to Action Section */
.page-the-thao__call-to-action {
    background-color: var(--color-light-bg, #f8f8f8);
    color: var(--color-text-dark);
    padding: 60px 0;
}

.page-the-thao__cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-the-thao__cta-flex .page-the-thao__cta-buttons {
    margin-top: 30px;
    justify-content: center;
}

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

/* General container styles for responsiveness */
.page-the-thao__section,
.page-the-thao__container,
.page-the-thao__card,
.page-the-thao__cta-buttons,
.page-the-thao__button-group,
.page-the-thao__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100%;
    }

    .page-the-thao__cta-buttons {
        justify-content: center;
    }

    .page-the-thao__section-title {
        font-size: 2em;
    }

    .page-the-thao__hero-description {
        font-size: 1.1em;
    }

    .page-the-thao__list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-the-thao__list-icon {
        margin-bottom: 15px;
    }

    .page-the-thao__guide-item {
        padding-left: 30px;
    }

    .page-the-thao__guide-item::before {
        left: 50%;
        transform: translateX(-50%);
        top: -20px;
    }
}

@media (max-width: 768px) {
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-the-thao__content-area {
        padding: 20px 15px;
    }

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

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

    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        text-align: center;
    }

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

    /* Buttons responsiveness */
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-tertiary,
    .page-the-thao__btn-link,
    .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;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Intro Section - Module 1 three columns */
    .page-the-thao__features-grid {
        grid-template-columns: 1fr;
    }

    .page-the-thao__icon-box-media {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    /* Bet Types Section */
    .page-the-thao__bet-types-grid {
        grid-template-columns: 1fr;
    }

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

    /* Advantages Section */
    .page-the-thao__advantages-list {
        gap: 20px;
    }

    .page-the-thao__list-item {
        padding: 20px;
    }

    /* Guide Section */
    .page-the-thao__guide-list {
        gap: 20px;
    }

    .page-the-thao__guide-item {
        padding: 20px 15px 20px 20px;
        padding-left: 50px;
    }

    .page-the-thao__guide-item::before {
        width: 30px;
        height: 30px;
        font-size: 0.7em;
        left: 10px;
        top: 20px;
        transform: none;
    }

    .page-the-thao__guide-step-title {
        font-size: 1.2em;
    }

    .page-the-thao__guide-cta p {
        font-size: 1em;
    }

    /* Promo Section */
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
    }

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

    .page-the-thao__faq-toggle {
        font-size: 1.2em;
    }

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

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

    .page-the-thao__icon-box-media img {
        height: 100% !important; /* Maintain circular shape */
        width: 100% !important;
        object-fit: cover !important;
    }

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}