/* style/the-thao.css */
:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --background-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--page-bg, #f8f8f8); /* Assuming --page-bg is light from shared.css */
}

.page-the-thao__content-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Assuming body has padding-top from shared.css */
    padding-bottom: 40px;
    background-color: var(--background-color); /* Deep Red background */
    color: var(--text-main-color); /* Light text for dark background */
}

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

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

.page-the-thao__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size, not fixed large */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-the-thao__intro-text {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--text-main-color);
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #333333; /* Dark text for light gold button */
    border: none;
}

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

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

.page-the-thao__btn-secondary:hover {
    background-color: var(--border-color);
    color: #333333;
    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: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* General Section Title */
.page-the-thao__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color); /* Use primary color for titles */
}

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

/* About Sports Section */
.page-the-thao__about-sports-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-the-thao__about-sports-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
    padding: 60px 0;
    background-color: var(--background-color); /* Deep Red background */
    color: var(--text-main-color);
}

.page-the-thao__sports-types-section p {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

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

.page-the-thao__sports-card {
    background-color: var(--card-bg); /* Darker red card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main-color);
}

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

.page-the-thao__card-title {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: var(--text-main-color);
}

.page-the-thao__sports-card p {
    padding: 0 20px 20px;
    color: var(--text-main-color);
    text-align: left;
}

/* Betting Guide Section */
.page-the-thao__betting-guide-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-the-thao__betting-guide-section p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-the-thao__guide-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-the-thao__guide-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

/* Promotions Section */
.page-the-thao__promotions-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
}

.page-the-thao__promotions-section p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.page-the-thao__promo-list {
    list-style: disc;
    max-width: 800px;
    margin: 0 auto 40px;
    padding-left: 25px;
}

.page-the-thao__promo-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

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

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

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

.page-the-thao__feature-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
}

.page-the-thao__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--border-color);
}

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

.page-the-thao__feature-item p {
    font-size: 1em;
    color: #555;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
}

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

.page-the-thao__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-the-thao__faq-question::-webkit-details-marker {
    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: 0 25px 20px;
    font-size: 1em;
    color: #555;
}

/* Bottom CTA Section */
.page-the-thao__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--background-color); /* Deep Red background */
    color: var(--text-main-color);
    text-align: center;
}

.page-the-thao__cta-bottom-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-the-thao {
        font-size: 15px;
        line-height: 1.5;
    }

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

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

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

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

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

    .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 {
        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__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-the-thao__content-container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__sports-grid,
    .page-the-thao__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__sports-card,
    .page-the-thao__feature-item,
    .page-the-thao__faq-item {
        margin-bottom: 10px;
    }

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

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

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

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

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

    /* Ensure all image containers are responsive */
    .page-the-thao__hero-image,
    .page-the-thao__sports-card,
    .page-the-thao__feature-item,
    .page-the-thao__content-area,
    .page-the-thao__about-sports-section,
    .page-the-thao__sports-types-section,
    .page-the-thao__betting-guide-section,
    .page-the-thao__promotions-section,
    .page-the-thao__why-choose-section,
    .page-the-thao__faq-section,
    .page-the-thao__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-the-thao__promo-list, .page-the-thao__guide-list {
        padding-left: 20px;
    }
    .page-the-thao__cta-bottom-section .page-the-thao__cta-buttons {
        padding: 0 15px;
    }
}