/* style/the-thao.css */

/* Base styles for the page content */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default page background */
}

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

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

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

.page-the-thao__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-the-thao__text-block--white {
    color: #ffffff;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-text-link,
.page-the-thao a[class*="button"],
.page-the-thao a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
}

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

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

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

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

.page-the-thao__btn-text-link {
    background: none;
    border: none;
    color: #017439;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
    margin-top: 10px;
    display: inline-block;
}

.page-the-thao__btn-text-link:hover {
    color: #005a2e;
}

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

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

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

.page-the-thao__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 font size */
    font-weight: 700;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.page-the-thao__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: left;
}

.page-the-thao__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

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

/* Intro Section */
.page-the-thao__intro-section {
    padding: 60px 0;
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text for contrast */
}

.page-the-thao__sports-types-section .page-the-thao__section-title {
    color: #ffffff;
}

.page-the-thao__sports-types-section .page-the-thao__text-block {
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__grid-layout {
    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 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    color: #333333; /* Dark text for light card background */
}

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

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

.page-the-thao__card-description {
    font-size: 1em;
    padding: 0 15px;
    text-align: justify;
}

/* How To Bet Section */
.page-the-thao__how-to-bet-section {
    padding: 60px 0;
}

.page-the-thao__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-the-thao__guide-list li {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-the-thao__guide-step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

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

/* Why f168 Section */
.page-the-thao__why-f168-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-the-thao__why-f168-section .page-the-thao__section-title {
    color: #ffffff;
}

.page-the-thao__why-f168-section .page-the-thao__grid-layout {
    margin-top: 40px;
}

.page-the-thao__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-the-thao__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

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

/* Betting Tips Section */
.page-the-thao__betting-tips-section {
    padding: 60px 0;
}

.page-the-thao__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-the-thao__tips-list li {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-the-thao__tips-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
}

.page-the-thao__faq-list {
    margin-top: 40px;
}

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

.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: #017439;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    border-bottom: 1px solid #d0d0d0;
    background-color: #eaf7ed;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' */
}

.page-the-thao__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    background-color: #ffffff;
}

/* CTA Section */
.page-the-thao__cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-the-thao__cta-section .page-the-thao__section-title {
    margin-bottom: 25px;
    color: #ffffff;
}

.page-the-thao__cta-section .page-the-thao__text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ffffff;
}

.page-the-thao__cta-section .page-the-thao__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-the-thao__container {
        padding: 30px 15px;
    }

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

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

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

    .page-the-thao__hero-container {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }

    .page-the-thao__hero-content {
        order: 2; /* Content below image on mobile */
        text-align: center;
    }

    .page-the-thao__hero-title,
    .page-the-thao__hero-description {
        text-align: center;
    }

    .page-the-thao__hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .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;
        margin-right: 0 !important; /* Remove margin-right from primary btn */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao__hero-image {
        order: 1; /* Image above content on mobile */
        max-width: 100%;
        width: 100%;
    }
    
    .page-the-thao__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Intro Section */
    .page-the-thao__intro-section {
        padding: 40px 0;
    }

    /* Sports Types Section */
    .page-the-thao__sports-types-section {
        padding: 40px 0;
    }

    .page-the-thao__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* How To Bet Section */
    .page-the-thao__how-to-bet-section {
        padding: 40px 0;
    }

    .page-the-thao__guide-list li {
        padding: 20px;
    }

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

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

    /* Why f168 Section */
    .page-the-thao__why-f168-section {
        padding: 40px 0;
    }

    .page-the-thao__feature-icon {
        width: 80px;
        height: 80px;
    }

    /* Betting Tips Section */
    .page-the-thao__betting-tips-section {
        padding: 40px 0;
    }

    .page-the-thao__tips-list li {
        padding: 20px;
    }

    .page-the-thao__tips-title {
        font-size: 1.4em;
    }

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

    /* FAQ Section */
    .page-the-thao__faq-section {
        padding: 40px 0;
    }

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

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

    /* CTA Section */
    .page-the-thao__cta-section {
        padding: 60px 0;
    }

    .page-the-thao__cta-section .page-the-thao__cta-group {
        flex-direction: column;
        gap: 10px;
    }

    /* General image and container responsiveness for mobile */
    .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__grid-layout,
    .page-the-thao__hero-cta-group,
    .page-the-thao__cta-section .page-the-thao__cta-group {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}