/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F4F7FB; /* Custom background color */
}

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

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -100px; /* Overlap slightly for visual effect, but text is below image in DOM */
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for text */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #1F2D3D;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  color: #1F2D3D;
  margin-bottom: 25px;
}

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

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

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

.page-the-thao__content-section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-the-thao__section-intro {
  background-color: #ffffff;
}

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

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

.page-the-thao__paragraph {
  font-size: 1.05rem;
  color: #1F2D3D;
  margin-bottom: 1.5em;
  line-height: 1.7;
}

.page-the-thao__highlight {
  color: #2F6BFF;
  font-weight: 700;
}

.page-the-thao__highlight-link {
  color: #2F6BFF;
  text-decoration: underline;
  font-weight: 600;
}

.page-the-thao__highlight-link:hover {
  color: #4A8BFF;
}

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

.page-the-thao__sport-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__sport-card-title {
  font-size: 1.4rem;
  color: #1F2D3D;
  font-weight: 600;
  margin: 0 15px 10px;
}

.page-the-thao__sport-card-text {
  font-size: 0.95rem;
  color: #1F2D3D;
  padding: 0 15px;
  flex-grow: 1;
}

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

.page-the-thao__step-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__step-title {
  font-size: 1.5rem;
  color: #2F6BFF;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-the-thao__step-text {
  font-size: 1rem;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-the-thao__step-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Limit image width within step card */
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content is short */
}

.page-the-thao__center-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-the-thao__promo-item {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #1F2D3D;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__promo-item strong {
  color: #000000;
}

.page-the-thao__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-the-thao__reason-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-the-thao__reason-title {
  font-size: 1.4rem;
  color: #2F6BFF;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-the-thao__reason-text {
  font-size: 0.95rem;
  color: #1F2D3D;
}

.page-the-thao__section-faq {
  background-color: #F4F7FB;
}

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

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

.page-the-thao__faq-question {
  font-size: 1.2rem;
  color: #1F2D3D;
  font-weight: 600;
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item.active .page-the-thao__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

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

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

.page-the-thao__faq-answer .page-the-thao__paragraph {
  margin-bottom: 0;
}

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

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .page-the-thao__sport-card-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__reason-list {
    gap: 20px;
  }
  .page-the-thao__sport-card-image {
    height: 180px;
  }
  .page-the-thao__sport-card-title {
    font-size: 1.3rem;
  }
  .page-the-thao__step-title {
    font-size: 1.3rem;
  }
  .page-the-thao__promo-item, .page-the-thao__reason-item {
    padding: 20px;
  }
  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming body handles --header-offset */
    margin-bottom: 30px;
  }
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-the-thao__hero-description {
    font-size: 0.95rem;
  }
  .page-the-thao__hero-cta {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__article-wrap {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__content-section {
    padding: 30px 0;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 25px;
  }
  .page-the-thao__paragraph {
    font-size: 1rem;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__sport-card-image {
    height: auto !important; /* Allow height to adjust naturally */
    min-height: 200px;
    object-fit: cover;
  }
  .page-the-thao__step-image {
    height: auto !important;
    min-height: 200px;
    object-fit: cover;
  }
  .page-the-thao__sport-card-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__reason-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-the-thao__sport-card, .page-the-thao__step-card, .page-the-thao__reason-item {
    padding: 20px 15px;
  }

  /* 4. 按钮与按钮容器 */
  .page-the-thao__btn,
  .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;
    padding-right: 15px;
  }
  .page-the-thao__hero-cta,
  .page-the-thao__center-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Ensure buttons stack */
    gap: 10px;
  }

  /* 5. FAQ 区块 */
  .page-the-thao__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px;
  }
  .page-the-thao__faq-item.active .page-the-thao__faq-answer {
    padding-bottom: 15px;
  }
}