/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body or explicit for contrast */
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #1a1a1a; /* Darker background for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-sports__hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.page-sports__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.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-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.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;
  filter: brightness(0.4); /* Darken image for better text contrast */
}

/* General Section Styles */
.page-sports__about-section,
.page-sports__types-section,
.page-sports__guide-section,
.page-sports__features-section,
.page-sports__promotions-section,
.page-sports__security-section,
.page-sports__faq-section,
.page-sports__conclusion-section {
  padding: 60px 0;
}

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

.page-sports__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__light-bg .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.page-sports__light-bg .page-sports__section-description {
  color: #555555;
}

.page-sports__dark-bg .page-sports__section-description {
  color: #f0f0f0;
}

/* Grid Layouts */
.page-sports__grid-layout,
.page-sports__feature-grid,
.page-sports__promotion-grid,
.page-sports__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark bg */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
}

.page-sports__light-bg .page-sports__card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__card-image,
.page-sports__feature-image,
.page-sports__promotion-image,
.page-sports__security-icon,
.page-sports__step-icon {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title,
.page-sports__feature-title,
.page-sports__promotion-title,
.page-sports__security-title,
.page-sports__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  flex-grow: 1; /* Make text content fill available space */
}

.page-sports__light-bg .page-sports__card-text {
  color: #555555;
}

/* Guide Steps */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-sports__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-sports__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__step-text {
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* CTA Buttons Centered */
.page-sports__cta-buttons {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #ffffff;
  color: #333333;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #f0f0f0;
}

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f8f8f8;
  color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 20px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Footer CTA */
.page-sports__conclusion-section .page-sports__section-description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

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

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

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

  .page-sports__grid-layout,
  .page-sports__feature-grid,
  .page-sports__promotion-grid,
  .page-sports__security-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__card,
  .page-sports__step-item,
  .page-sports__feature-card,
  .page-sports__promotion-card,
  .page-sports__security-item {
    padding: 20px;
  }

  .page-sports__card-image,
  .page-sports__feature-image,
  .page-sports__promotion-image,
  .page-sports__security-icon,
  .page-sports__step-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__faq-question {
    padding: 18px 20px;
  }

  .page-sports__faq-question h3 {
    font-size: 1em;
  }

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

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
}

/* Ensure content images in .page-sports are not too small on desktop */
.page-sports img:not(.page-sports__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific icon size override if needed, but still adhering to min-size for general images */
.page-sports__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  min-width: unset; /* Allow smaller display for these specific icons, but ensure they are >= 200px in source if possible */
  min-height: unset;
}

/* Image color filter restriction check - no filter property used on images other than hero */
/* The hero image has a brightness filter for text contrast, which is allowed for background images. */
/* No filter: invert(), sepia(), hue-rotate(), saturate() used. */