.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: var(--secondary-color, #ffffff); /* Assuming shared.css defines --secondary-color as light */
}

.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  position: relative; /* Changed from absolute to relative to ensure '上图下文' */
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Using clamp for responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #555555;
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-the-thao__btn--primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-the-thao__btn--secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

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

.page-the-thao__btn--promo {
  background-color: #EA7C07; /* Login color for promo buttons */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-the-thao__btn--promo:hover {
  background-color: #c96a06;
  transform: translateY(-2px);
}

.page-the-thao__btn--text {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 5px 0;
  text-decoration: underline;
}

.page-the-thao__btn--text:hover {
  color: #1e87c0;
}

.page-the-thao__section {
  padding: 40px 0;
  margin-bottom: 30px;
  background-color: #ffffff;
}

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

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__why-choose .page-the-thao__article-wrap > p,
.page-the-thao__bet-types .page-the-thao__article-wrap > p,
.page-the-thao__how-to-bet .page-the-thao__article-wrap > p,
.page-the-thao__promotions .page-the-thao__article-wrap > p,
.page-the-thao__mobile-app .page-the-thao__article-wrap > p,
.page-the-thao__faq .page-the-thao__article-wrap > p,
.page-the-thao__conclusion .page-the-thao__article-wrap > p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #555555;
}

.page-the-thao__feature-grid,
.page-the-thao__bet-type-cards,
.page-the-thao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__feature-card,
.page-the-thao__bet-type-card,
.page-the-thao__promo-card {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__feature-card:hover,
.page-the-thao__bet-type-card:hover,
.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__feature-card p,
.page-the-thao__bet-type-card p,
.page-the-thao__promo-card p {
  font-size: 1em;
  color: #666666;
  flex-grow: 1;
}

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

.page-the-thao__step-card {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__figure {
  margin: 0 0 20px 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
}

.page-the-thao__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-the-thao__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

.page-the-thao__card-subtitle {
  font-size: 1.2em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__step-card p {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-the-thao__mobile-app .page-the-thao__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-the-thao__mobile-app .page-the-thao__app-text {
  flex: 1;
  text-align: left;
}

.page-the-thao__mobile-app .page-the-thao__app-text .page-the-thao__card-subtitle {
  text-align: left;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.page-the-thao__mobile-app .page-the-thao__app-text p {
  text-align: left;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-the-thao__app-image-wrap {
  flex: 1;
  max-width: 50%;
  text-align: center;
}

.page-the-thao__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-the-thao__faq-question {
  font-size: 1.2em;
  color: #333333;
  padding: 18px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  font-weight: bold;
}

.page-the-thao__faq-question:hover {
  background-color: #e5e5e5;
}

.page-the-thao__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-the-thao__faq-answer p {
  padding: 15px 0;
  color: #555555;
  font-size: 1em;
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-bottom: 25px;
}

.page-the-thao__faq-item.active .page-the-thao__faq-question {
  background-color: #e5e5e5;
}

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

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    max-width: 700px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__bet-type-cards,
  .page-the-thao__promo-grid,
  .page-the-thao__step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-the-thao__mobile-app .page-the-thao__app-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__mobile-app .page-the-thao__app-text,
  .page-the-thao__app-image-wrap {
    max-width: 100%;
    text-align: center;
  }

  .page-the-thao__mobile-app .page-the-thao__app-text .page-the-thao__card-subtitle,
  .page-the-thao__mobile-app .page-the-thao__app-text p {
    text-align: center;
  }
}

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

  /* 1. Top section (padding/spacing, CTA stacking) */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-content {
    padding: 15px;
    margin: 10px auto 0 auto;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 10px;
  }

  .page-the-thao__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column article container (padding, font-size, max-width) */
  .page-the-thao__section {
    padding: 20px 0;
    margin-bottom: 20px;
  }

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

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

  .page-the-thao__why-choose .page-the-thao__article-wrap > p,
  .page-the-thao__bet-types .page-the-thao__article-wrap > p,
  .page-the-thao__how-to-bet .page-the-thao__article-wrap > p,
  .page-the-thao__promotions .page-the-thao__article-wrap > p,
  .page-the-thao__mobile-app .page-the-thao__article-wrap > p,
  .page-the-thao__faq .page-the-thao__article-wrap > p,
  .page-the-thao__conclusion .page-the-thao__article-wrap > p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__bet-type-cards,
  .page-the-thao__promo-grid,
  .page-the-thao__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__bet-type-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .page-the-thao__card-subtitle {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  /* 3. General images and figures (max-width, height: auto) */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__figure {
    margin-bottom: 15px;
  }

  .page-the-thao__figcaption {
    font-size: 0.85em;
  }

  .page-the-thao__app-image-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__hero-cta-buttons,
  .page-the-thao__final-cta,
  .page-the-thao__app-content .page-the-thao__app-text {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__promo-card .page-the-thao__btn,
  .page-the-thao__step-card .page-the-thao__btn {
    width: auto !important; /* Allow small buttons to shrink if not full width */
    max-width: 100% !important;
  }

  /* 5. FAQ sections (readability, padding) */
  .page-the-thao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-the-thao__faq-answer p {
    padding: 10px 0;
  }

  .page-the-thao__faq-item.active .page-the-thao__faq-answer {
    padding-bottom: 20px;
  }
}

/* Ensure content area images maintain minimum size if not explicitly defined by HTML width/height */
.page-the-thao__figure img,
.page-the-thao__app-image {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast fixes for specific elements */
.page-the-thao__feature-card,
.page-the-thao__bet-type-card,
.page-the-thao__promo-card,
.page-the-thao__step-card,
.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.page-the-thao__faq-question {
  background-color: #f5f5f5;
}

.page-the-thao__main-title,
.page-the-thao__section-title,
.page-the-thao__card-title,
.page-the-thao__card-subtitle {
  color: #26A9E0;
}

.page-the-thao p,
.page-the-thao li {
  color: #333333;
}