/* 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;
    color: var(--text-main-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

.page-the-thao__center-text {
    text-align: center;
}

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

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

.page-the-thao__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-the-thao__list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 20px auto;
}

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

.page-the-thao__list-strong {
    color: var(--primary-color);
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary,
.page-the-thao__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    margin: 10px;
}

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

.page-the-thao__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin: 10px;
}

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

.page-the-thao__btn-tertiary {
    background: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 20px;
}

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

.page-the-thao__btn-link {
    background: none;
    color: var(--primary-color);
    border: none;
    text-decoration: underline;
    padding: 5px 0;
    margin: 10px 0;
}

.page-the-thao__btn-link:hover {
    color: var(--secondary-color);
}

.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--background-color);
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* About Sports Section */
.page-the-thao__about-sports {
    background-color: var(--card-bg-color);
}

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

.page-the-thao__feature-item {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.page-the-thao__feature-icon {
    width: 100%;
    height: auto;
    max-width: 100px;
    margin-bottom: 20px;
}

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

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

/* Popular Sports Section */
.page-the-thao__popular-sports {
    background: var(--primary-color);
    color: #ffffff;
}

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

.page-the-thao__popular-sports .page-the-thao__text-block {
    color: #f0f0f0;
}

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

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

.page-the-thao__sport-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-the-thao__sport-name {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-the-thao__sport-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Live Betting Section */
.page-the-thao__live-betting {
    background-color: var(--card-bg-color);
}

.page-the-thao__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-the-thao__text-content,
.page-the-thao__image-content {
    flex: 1;
    min-width: 300px;
}

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

.page-the-thao__live-betting .page-the-thao__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-the-thao__live-betting .page-the-thao__list {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Promotions Section */
.page-the-thao__promotions {
    background-color: var(--background-color);
}

.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: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 20px;
}

.page-the-thao__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-the-thao__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-the-thao__promo-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Getting Started Section */
.page-the-thao__getting-started {
    background-color: var(--card-bg-color);
}

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

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

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

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

.page-the-thao__step-description {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

/* Betting Tips Section */
.page-the-thao__betting-tips {
    background: var(--primary-color);
    color: #ffffff;
}

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

.page-the-thao__betting-tips .page-the-thao__text-block {
    color: #f0f0f0;
}

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

.page-the-thao__tip-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-the-thao__tip-icon {
    width: 100%;
    height: auto;
    max-width: 80px;
    margin-bottom: 20px;
}

.page-the-thao__tip-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-the-thao__tip-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Security and Fair Play Section */
.page-the-thao__security-fairplay {
    background-color: var(--card-bg-color);
}

.page-the-thao__security-fairplay .page-the-thao__text-block,
.page-the-thao__security-fairplay .page-the-thao__list {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--background-color);
}

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

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

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

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

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

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    content: '−';
}

.page-the-thao__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
}

.page-the-thao__faq-item:last-child .page-the-thao__faq-question {
    border-bottom: none;
}

/* Bottom CTA Section */
.page-the-thao__cta-bottom {
    background: var(--primary-color);
    color: #ffffff;
}

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

.page-the-thao__cta-bottom .page-the-thao__text-block {
    color: #f0f0f0;
}

.page-the-thao__cta-bottom .page-the-thao__btn-primary {
    margin-top: 30px;
}

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

.page-the-thao__hero-image-wrapper,
.page-the-thao__content-wrapper,
.page-the-thao__features-grid,
.page-the-thao__sport-categories,
.page-the-thao__promo-grid,
.page-the-thao__steps-grid,
.page-the-thao__tips-grid,
.page-the-thao__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-the-thao__container {
        padding: 15px;
    }

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

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

    .page-the-thao__text-block {
        font-size: 1em;
        margin-bottom: 20px;
        text-align: left; /* Adjust text alignment for mobile readability */
    }

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

    .page-the-thao__hero-image {
        object-fit: contain !important; /* Mobile hero image should contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

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

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

    .page-the-thao__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-tertiary,
    .page-the-thao__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 5px 0 !important;
    }

    .page-the-thao__features-grid,
    .page-the-thao__sport-categories,
    .page-the-thao__promo-grid,
    .page-the-thao__steps-grid,
    .page-the-thao__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__feature-item,
    .page-the-thao__sport-card,
    .page-the-thao__promo-card,
    .page-the-thao__step-item,
    .page-the-thao__tip-item {
        padding: 20px;
    }

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

    .page-the-thao__promo-image {
        height: 160px;
    }

    .page-the-thao__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-the-thao__text-content,
    .page-the-thao__image-content {
        min-width: unset;
        width: 100%;
    }

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

    /* Ensure all images are responsive */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

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