/* style/the-thao.css */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

.page-the-thao__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Rely on body padding for header offset, use small top padding here */
    background-color: var(--primary-color);
    overflow: hidden;
}

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

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

.page-the-thao__hero-content {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
}

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

.page-the-thao__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    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: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

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

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

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

.page-the-thao__content-area {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-the-thao__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-the-thao__article-wrap p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-the-thao__article-wrap a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-the-thao__article-wrap a:hover {
    color: var(--secondary-color);
}

.page-the-thao__sport-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-the-thao__sport-item {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-the-thao__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-the-thao__sport-name {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-the-thao__sport-item p {
    font-size: 1em;
    color: var(--text-main-color);
    padding: 0 15px;
    margin-bottom: 0;
}

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

.page-the-thao__step-item {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
}

.page-the-thao__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    border: 3px solid var(--background-color);
}

.page-the-thao__step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-the-thao__step-item p {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 0;
}

.page-the-thao__sub-section-title {
    font-size: 2em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: 600;
}

.page-the-thao__tips-list {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 50px;
}

.page-the-thao__tips-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-main-color);
}

.page-the-thao__tips-list li strong {
    color: var(--primary-color);
}

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

.page-the-thao__bet-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.page-the-thao__bet-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__bet-card p {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 0;
}

.page-the-thao__promo-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-the-thao__promo-list li {
    background: var(--card-bg-color);
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: var(--text-main-color);
}

.page-the-thao__promo-list li strong {
    color: var(--primary-color);
}

.page-the-thao__promo-call-to-action {
    text-align: center;
    font-size: 1.15em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-the-thao__reason-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-the-thao__reason-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-the-thao__reason-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__reason-card p {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 0;
}

.page-the-thao__faq-section {
    margin-bottom: 50px;
}

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    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: 15px 25px 20px;
    font-size: 1.05em;
    color: var(--text-main-color);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-the-thao__description {
        font-size: 1em;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-the-thao__section-title {
        font-size: 2em;
    }
    .page-the-thao__sub-section-title {
        font-size: 1.8em;
    }
    .page-the-thao__sport-image {
        height: 220px;
    }
    .page-the-thao__step-item,
    .page-the-thao__bet-card,
    .page-the-thao__reason-card {
        padding: 25px;
    }
    .page-the-thao__faq-question {
        font-size: 1.15em;
        padding: 15px 20px;
    }
    .page-the-thao__faq-answer {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-the-thao__hero-content {
        padding: 30px 15px;
    }
    .page-the-thao__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-the-thao__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }
    .page-the-thao__content-area {
        padding: 40px 0;
    }
    .page-the-thao__article-wrap {
        padding: 0 15px;
    }
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-the-thao__article-wrap p,
    .page-the-thao__tips-list li,
    .page-the-thao__promo-list li {
        font-size: 1em;
    }
    .page-the-thao__sport-list,
    .page-the-thao__guide-steps,
    .page-the-thao__bet-types,
    .page-the-thao__reason-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__sport-image {
        height: 200px;
    }
    .page-the-thao__sub-section-title {
        font-size: 1.6em;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    .page-the-thao__tips-list {
        padding-left: 25px;
        margin-bottom: 40px;
    }
    .page-the-thao__promo-list {
        margin-bottom: 20px;
    }
    .page-the-thao__promo-call-to-action {
        font-size: 1em;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    .page-the-thao__faq-question {
        font-size: 1.05em;
        padding: 15px 18px;
    }
    .page-the-thao__faq-answer {
        padding: 10px 18px 15px;
        font-size: 0.95em;
    }
    .page-the-thao__final-cta {
        margin-top: 40px;
        padding: 0 15px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    /* Mobile image adaptation */
    .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__sport-item,
    .page-the-thao__step-item,
    .page-the-thao__bet-card,
    .page-the-thao__reason-card,
    .page-the-thao__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-the-thao__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}