/* style/sports.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-sports {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* 背景 */
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: #7A0E0E; /* Deep Red for hero section background */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
}

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

.page-sports__hero-content {
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #FFCC66; /* Glow for title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-sports__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on mobile */
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* 按钮 */
  color: #333333; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-sports__btn-secondary {
  background-color: #FFF5E1; /* Text Main as background */
  color: #C91F17; /* Main color as text */
  border: 2px solid #C91F17;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary:hover {
  background-color: #C91F17;
  color: #FFF5E1;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-sports__overview-section,
.page-sports__features-section,
.page-sports__cta-banner,
.page-sports__faq-section {
  padding: 60px 20px;
}

.page-sports__overview-section {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}

.page-sports__dark-section {
  background-color: #C91F17; /* Main color */
  color: #FFF5E1; /* Forced white text (Text Main) */
}

.page-sports__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #FFCC66; /* Glow */
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 25px;
  text-align: justify;
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-sports__image-item {
  width: calc(50% - 10px);
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Min size requirement */
}

.page-sports__features-section {
  background-color: #B71C1C; /* 背景 */
  color: #FFF5E1; /* Text Main */
}

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

.page-sports__feature-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
}

.page-sports__cta-banner {
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1; /* Text Main */
  text-align: center;
  padding: 80px 20px;
}

.page-sports__banner-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFD86A; /* Bright gold for contrast */
  margin-bottom: 20px;
}

.page-sports__banner-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

.page-sports__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* 边框 */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD86A; /* Bright gold for question */
  cursor: pointer;
  user-select: none;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #F4D34D; /* Gold */
  transition: transform 0.2s ease-in-out;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
  padding: 0 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
  max-height: 200px; /* Adjust as needed, ensure enough space */
  padding-bottom: 20px;
}

.page-sports__faq-cta {
  margin-top: 40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-sports__hero-content {
    margin-top: 20px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-sports__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-sports__overview-section,
  .page-sports__features-section,
  .page-sports__cta-banner,
  .page-sports__faq-section {
    padding: 40px 15px;
  }

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-sports__image-grid {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__image-item {
    width: 100%;
    min-width: unset; /* Allow it to shrink */
  }

  .page-sports__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-item {
    padding: 25px;
  }

  .page-sports__feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-sports__feature-description {
    font-size: 0.95em;
  }

  .page-sports__cta-banner {
    padding: 60px 15px;
  }

  .page-sports__banner-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-sports__banner-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-sports__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }
  
  /* Ensure all images are responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/buttons/videos must be responsive */
  .page-sports__hero-section,
  .page-sports__overview-section,
  .page-sports__features-section,
  .page-sports__cta-banner,
  .page-sports__faq-section,
  .page-sports__container,
  .page-sports__image-grid,
  .page-sports__feature-list,
  .page-sports__cta-buttons,
  .page-sports__faq-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-sports__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}