/* style/sports.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-sports {
  color: #ffffff; /* Body background is dark #0a0a0a, so text color must be light */
  background-color: #0a0a0a;
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, as body handles header offset */
  background-color: #0a0a0a; /* Ensure a dark background for this section */
  text-align: center;
  min-height: 500px;
  overflow: hidden;
}

.page-sports__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 1;
  position: relative;
}

.page-sports__hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-sports__hero-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.page-sports__cta-button,
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-login,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-sports__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-sports__btn-login {
  background-color: #EA7C07; /* Login specific color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-sports__btn-login:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-sports__video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  padding-top: 10px; /* Small top padding */
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__video-section h2 {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-sports__video-container {
  width: 100%; /* Desktop width: 100% is required for flex/grid containers */
  max-width: 900px;
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure video doesn't overflow */
  border-radius: 10px;
  position: relative;
}

.page-sports__video-container a {
    display: block; /* Make the entire container clickable */
}

.page-sports__video-player {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-sports__section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__section h2 {
  color: #ffffff;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.page-sports__section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
  text-align: left;
  box-sizing: border-box;
}

.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for dark background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as block for max-width */
}

.page-sports__card h3 {
  color: #26A9E0; /* Brand color for headings in cards */
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-sports__card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-sports__card .page-sports__btn-secondary {
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: left;
  box-sizing: border-box;
}

.page-sports__list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #ffffff;
  border-left: 4px solid #26A9E0;
  box-sizing: border-box;
}

.page-sports__list li::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__faq-section h2 {
  color: #ffffff;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
}

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #ffffff;
  list-style: none; /* Remove default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-sports__faq-question {
  flex-grow: 1;
  color: #26A9E0; /* Brand color for FAQ questions */
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    padding: 40px 15px;
  }
  .page-sports__hero-content h1 {
    font-size: 2.8em;
  }
  .page-sports__section h2,
  .page-sports__faq-section h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 30px 15px;
  }
  .page-sports__hero-content h1 {
    font-size: 2em; /* Smaller H1 for mobile */
  }
  .page-sports__hero-content p {
    font-size: 1em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px; /* Add padding to container */
  }
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-login,
  .page-sports a[class*="button"],
  .page-sports 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-sports__video-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* Small top padding for mobile as well */
  }
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-player {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section {
    padding: 40px 15px;
  }
  .page-sports__section h2,
  .page-sports__faq-section h2 {
    font-size: 1.8em;
  }
  .page-sports__card-image {
    height: auto; /* Allow height to adjust for mobile */
    min-height: 200px; /* Minimum size */
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__list li {
    padding: 12px 15px;
  }
  .page-sports__faq-section {
    padding: 40px 15px;
  }
  .page-sports__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* General image responsiveness for all images within .page-sports */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__grid,
  .page-sports__list,
  .page-sports__content-area,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}