/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background: #F4F7FB;
  line-height: 1.6;
}

/* Container for consistent content width */
.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

/* Section spacing */
.page-the-thao__section {
  padding: 40px 0;
}

/* Titles */
.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-the-thao__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #1F2D3D;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 25px;
}

/* Text blocks */
.page-the-thao__description,
.page-the-thao__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 25px auto;
  color: #1F2D3D;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background: #f0f5ff;
  color: #2F6BFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

.page-the-thao__cta-buttons--center {
  text-align: center;
}

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

.page-the-thao__content-image {
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__content-image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Aligned with shared.css body padding-top */
  padding-bottom: 60px;
  background-color: #F4F7FB;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-the-thao__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 15px;
}

/* Why Choose Section */
.page-the-thao__why-choose {
  background: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-the-thao__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-the-thao__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  border-radius: 0;
}

.page-the-thao__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-the-thao__feature-description {
  font-size: 1rem;
  color: #1F2D3D;
}

/* Popular Sports Section */
.page-the-thao__popular-sports {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__sport-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-the-thao__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.page-the-thao__sport-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF;
  margin: 20px 15px 10px 15px;
}

.page-the-thao__sport-description {
  font-size: 1rem;
  color: #1F2D3D;
  padding: 0 15px 20px 15px;
}

.page-the-thao__betting-types-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-the-thao__betting-types-list li {
  background: #ffffff;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.05rem;
  color: #1F2D3D;
}

.page-the-thao__betting-types-list li strong {
  color: #2F6BFF;
}

/* Live Betting Section */
.page-the-thao__live-betting {
  background: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Promotions Section */
.page-the-thao__promotions {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__card {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-the-thao__card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.page-the-thao__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2F6BFF;
  margin: 20px 15px 10px 15px;
}

.page-the-thao__card-description {
  font-size: 0.95rem;
  color: #1F2D3D;
  padding: 0 15px 20px 15px;
}

/* Get Started Section */
.page-the-thao__get-started {
  background: #F4F7FB;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__step-item {
  text-align: center;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2F6BFF;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-the-thao__step-description {
  font-size: 1rem;
  color: #1F2D3D;
}

/* Responsible Gaming Section */
.page-the-thao__responsible-gaming {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #e0f0ff;
}

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

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #f5f8ff;
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #f9fbfc;
  border-radius: 0 0 8px 8px;
  font-size: 1rem;
  color: #1F2D3D;
}

/* Mobile App Section */
.page-the-thao__mobile-app {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }
  .page-the-thao__sub-title {
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  }
  .page-the-thao__description,
  .page-the-thao__text-block {
    font-size: 1rem;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__promo-cards,
  .page-the-thao__steps-grid {
    gap: 20px;
  }
  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__card,
  .page-the-thao__step-item {
    padding: 25px;
  }
  .page-the-thao__feature-title,
  .page-the-thao__step-title,
  .page-the-thao__card-title {
    font-size: 1.2rem;
  }
  .page-the-thao__sport-image,
  .page-the-thao__card-image {
    height: 160px;
  }
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 1rem; }
  .page-the-thao__faq-toggle { font-size: 20px; width: 24px; }
}

@media (max-width: 849px) {
  .page-the-thao__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    max-height: 400px;
  }
  .page-the-thao__hero-image-wrapper {
    max-height: unset;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-the-thao__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-the-thao__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
    border-radius: 0;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-the-thao__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain;
  }
  .page-the-thao__content-image {
    margin: 20px auto !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__promo-cards,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 按钮与按钮容器 */
  .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: 12px 15px;
    font-size: 0.9rem;
  }
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* 移动端垂直排列 */
    gap: 10px !important;
  }

  /* 产品展示图区域 (for sports cards, not gameshow) */
  .page-the-thao__sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow 2 columns if space, but prefer 1 */
    overflow-x: hidden;
  }
  .page-the-thao__sport-card {
    margin-left: auto;
    margin-right: auto;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-the-thao__section-title,
  .page-the-thao__sub-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  .page-the-thao__text-block {
    text-align: left;
    font-size: 0.9rem;
  }
  .page-the-thao__betting-types-list {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  .page-the-thao__betting-types-list li {
    padding: 12px 15px;
  }

  /* FAQ */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 0.95rem; }
  .page-the-thao__faq-toggle { font-size: 20px; width: 24px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }
}

/* Contrast fixes for specific elements if needed based on body background */
.page-the-thao__dark-bg {
  color: #ffffff;
  background: #2F6BFF;
}

.page-the-thao__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-the-thao__medium-bg {
  color: #000000;
  background: #6FA3FF;
}

.page-the-thao p,
.page-the-thao li {
  color: #1F2D3D; /* Default text color for body, paragraphs, lists */
}