/* Base styles */
.page-the-thao {
  color: #333333; /* Text Main */
  background: #F5F7FA; /* Background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935; /* Main color */
}

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

.page-the-thao__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-the-thao__section-description--white {
  color: #f0f0f0;
}

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

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrap on desktop */
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

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

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

.page-the-thao__btn-link {
    background: transparent;
    color: #E53935;
    border: none;
    padding: 0;
    font-weight: 600;
    text-decoration: underline;
    white-space: normal;
}

.page-the-thao__btn-link:hover {
    color: #FF5A4F;
    text-decoration: none;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #F5F7FA; /* Light background for the hero section */
}

.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(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
}

.page-the-thao__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: #ffffff; /* Card BG */
}

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

.page-the-thao__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: #F5F7FA; /* Background */
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 280px; /* Display size for feature image */
  height: 280px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E53935;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-the-thao__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E53935;
}

.page-the-thao__feature-text {
  font-size: 16px;
  color: #333333;
}

/* Popular Sports Section */
.page-the-thao__popular-sports {
  padding: 60px 0;
  background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%); /* Brand color gradient */
  color: #ffffff;
}

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

.page-the-thao__sport-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  color: #333333;
  padding-bottom: 20px;
}

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

.page-the-thao__sport-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-the-thao__sport-text {
  font-size: 16px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-the-thao__btn-small {
    padding: 8px 18px;
    font-size: 14px;
}

/* How To Bet Section */
.page-the-thao__how-to-bet {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-the-thao__step-item {
    background-color: #ffffff; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__step-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-the-thao__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #E53935;
}

.page-the-thao__step-text {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-the-thao__faq-item {
    background-color: #F5F7FA; /* Background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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: 18px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #E0E0E0; /* Border color for summary */
    border-bottom: 1px solid #E0E0E0;
    list-style: none; /* Hide default marker */
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
    background-color: #E53935;
    color: #ffffff;
    border-bottom-color: #E53935;
}

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

.page-the-thao__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

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

.page-the-thao__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

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

.page-the-thao__faq-link {
    color: #E53935;
    text-decoration: underline;
    font-weight: 600;
}
.page-the-thao__faq-link:hover {
    color: #FF5A4F;
}

/* Call to Action Section */
.page-the-thao__call-to-action {
  padding: 80px 0;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  text-align: center;
  color: #ffffff;
}

.page-the-thao__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__btn-large {
    padding: 15px 35px;
    font-size: 20px;
}

/* --- Responsive Styles (Mobile First approach, but explicit media queries for clarity) --- */

@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 16px;
    }
    .page-the-thao__hero-content {
        order: 2;
        flex: 1 1 100%;
    }
    .page-the-thao__hero-image {
        order: 1;
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
    .page-the-thao__hero-title,
    .page-the-thao__hero-description {
        text-align: center;
    }
    .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Global for mobile */
    .page-the-thao {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-the-thao__content-area {
        padding: 20px 15px !important; /* Important for mobile padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .page-the-thao__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Specific override for fixed header */
        padding-bottom: 40px;
    }

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

    .page-the-thao__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-the-thao__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%; /* Ensure container takes full width */
    }

    /* Buttons - Mobile Specific */
    .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;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center; /* Center text in stacked buttons */
    }

    /* Images - General Mobile Rule */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Image containers - General Mobile Rule */
    .page-the-thao__hero-image,
    .page-the-thao__sport-card,
    .page-the-thao__step-item {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Intro Section */
    .page-the-thao__intro-section {
        padding: 40px 0;
    }
    .page-the-thao__features-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    /* Module 1 circular images - specific mobile rule */
    .page-the-thao__icon-box-media {
        width: 120px !important; /* Adjusted smaller for mobile */
        height: 120px !important;
        border-width: 3px;
    }
    .page-the-thao__feature-title {
        font-size: 20px;
    }
    .page-the-thao__feature-text {
        font-size: 15px;
    }

    /* Popular Sports Section */
    .page-the-thao__popular-sports {
        padding: 40px 0;
    }
    .page-the-thao__sports-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-the-thao__sport-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-the-thao__sport-title {
        font-size: 20px;
    }
    .page-the-thao__sport-text {
        font-size: 15px;
    }

    /* How To Bet Section */
    .page-the-thao__how-to-bet {
        padding: 40px 0;
    }
    .page-the-thao__steps-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-the-thao__step-image {
        height: 160px; /* Adjust height for mobile */
    }
    .page-the-thao__step-title {
        font-size: 20px;
    }
    .page-the-thao__step-text {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-the-thao__faq-section {
        padding: 40px 0;
    }
    .page-the-thao__faq-list {
        margin-top: 20px;
    }
    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-the-thao__faq-answer {
        padding: 15px 20px;
        font-size: 15px;
    }

    /* Call to Action Section */
    .page-the-thao__call-to-action {
        padding: 50px 0;
    }
    .page-the-thao__btn-large {
        padding: 12px 25px;
        font-size: 18px;
    }
}