/* style/the-thao.css */
.page-the-thao {
    color: #F3F8FF; /* Text Main */
    background-color: #08162B; /* Deep Navy from body background */
}

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #08162B;
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F3F8FF;
}

.page-the-thao__hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary */
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    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;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-the-thao__btn-secondary {
    background: transparent;
    color: #F3F8FF; /* Text Main */
    border: 2px solid #244D84; /* Border color */
}

.page-the-thao__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.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;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F3F8FF; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-the-thao__section-description {
    font-size: 1.1rem;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.page-the-thao__intro-section,
.page-the-thao__betting-types-section,
.page-the-thao__guide-section,
.page-the-thao__promo-section,
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: #08162B;
}

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

.page-the-thao__feature-item {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
    width: 240px;
    height: 240px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1D5FD1;
    box-shadow: 0 0 0 5px rgba(29, 95, 209, 0.3);
}

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

.page-the-thao__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
}

.page-the-thao__feature-text {
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.5;
}

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

.page-the-thao__content-card {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

.page-the-thao__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    padding: 20px 25px 10px;
}

.page-the-thao__card-text {
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.5;
    padding: 0 25px 25px;
}

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

.page-the-thao__guide-item {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-the-thao__guide-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 5px rgba(43, 115, 246, 0.3);
}

.page-the-thao__guide-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
}

.page-the-thao__guide-text {
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.5;
}

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

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

.page-the-thao__promo-card {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-the-thao__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-content {
    padding: 25px;
}

.page-the-thao__promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 10px;
}

.page-the-thao__promo-text {
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.5;
    margin-bottom: 20px;
}

.page-the-thao__btn-text-link {
    color: #1D5FD1; /* Auxiliary color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-the-thao__btn-text-link:hover {
    color: #4FA8FF; /* Glow color */
    text-decoration: underline;
}

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

.page-the-thao__faq-item {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border color */
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    background-color: #113B7A; /* Main color */
    border-radius: 12px;
    position: relative;
    list-style: none; /* For details/summary */
}

.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: 2rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    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: 20px 25px;
    font-size: 1rem;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.6;
    border-top: 1px solid #1B3357; /* Divider color */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        gap: 30px;
    }
    .page-the-thao__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-the-thao__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-the-thao__icon-box-media {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }
    /* HERO section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px !important;
    }
    .page-the-thao__hero-container {
        flex-direction: column;
        padding: 15px;
        gap: 25px;
    }
    .page-the-thao__hero-content,
    .page-the-thao__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }
    .page-the-thao__main-title {
        text-align: center;
        font-size: 2.2rem !important;
    }
    .page-the-thao__hero-description {
        text-align: center;
        font-size: 1rem !important;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Module 1 (Intro Section) */
    .page-the-thao__intro-section,
    .page-the-thao__betting-types-section,
    .page-the-thao__guide-section,
    .page-the-thao__promo-section,
    .page-the-thao__faq-section {
        padding: 40px 0 !important;
    }
    .page-the-thao__container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }
    .page-the-thao__section-description {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }
    .page-the-thao__feature-grid,
    .page-the-thao__content-grid,
    .page-the-thao__guide-steps,
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    /* Module 1 three-column circles */
    .page-the-thao__icon-box-media {
        width: 200px !important;
        height: 200px !important;
        border-width: 2px !important;
        box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3) !important;
    }
    .page-the-thao__feature-title {
        font-size: 1.3rem !important;
    }
    .page-the-thao__feature-text {
        font-size: 0.9rem !important;
    }

    /* Content cards (betting types, promotions) */
    .page-the-thao__card-image,
    .page-the-thao__promo-image {
        height: 180px !important;
    }
    .page-the-thao__card-title,
    .page-the-thao__promo-title {
        font-size: 1.25rem !important;
        padding: 18px 20px 8px !important;
    }
    .page-the-thao__card-text,
    .page-the-thao__promo-text {
        font-size: 0.9rem !important;
        padding: 0 20px 20px !important;
    }
    .page-the-thao__guide-title {
        font-size: 1.25rem !important;
    }
    .page-the-thao__guide-text {
        font-size: 0.9rem !important;
    }

    /* FAQ section */
    .page-the-thao__faq-item {
        margin-bottom: 15px !important;
    }
    .page-the-thao__faq-question {
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
    }
    .page-the-thao__faq-toggle {
        font-size: 1.8rem !important;
        width: 25px !important;
    }
    .page-the-thao__faq-answer {
        padding: 15px 20px !important;
        font-size: 0.95rem !important;
    }

    /* Universal image handling */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__feature-item,
    .page-the-thao__content-card,
    .page-the-thao__guide-item,
    .page-the-thao__promo-card,
    .page-the-thao__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-the-thao__cta-center {
        margin-top: 30px !important;
    }
}