/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: var(--background-color, #ffffff);
}

.page-sports__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Adjust for header offset */
  min-height: 70vh;
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-sports__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  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__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.page-sports__btn-primary:hover,
.page-sports__cta-button: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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 60px auto;
  color: #555555;
}

.page-sports__features-section,
.page-sports__popular-sports-section,
.page-sports__guide-section,
.page-sports__strategies-section,
.page-sports__cta-section,
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__features-grid,
.page-sports__sports-grid,
.page-sports__strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__feature-card,
.page-sports__sport-item,
.page-sports__strategy-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-card:hover,
.page-sports__sport-item:hover,
.page-sports__strategy-card:hover {
  transform: translateY(-10px);
}

.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__strategy-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-title,
.page-sports__sport-title,
.page-sports__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__card-description,
.page-sports__sport-description,
.page-sports__step-description {
  font-size: 1em;
  color: #555555;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  color: #ffffff;
}

.page-sports__guide-step {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #ffffff;
}

.page-sports__guide-step .page-sports__step-title {
  color: #ffffff;
  margin-top: 20px;
}

.page-sports__guide-step .page-sports__step-description {
  color: #f0f0f0;
}

.page-sports__guide-step a {
  color: #ffffff;
  text-decoration: underline;
}

.page-sports__guide-step a:hover {
  color: #d0d0d0;
}

.page-sports__cta-section {
  text-align: center;
  padding: 60px 20px;
}

.page-sports__cta-button {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 18px 40px;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7ff;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
}

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

.page-sports__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-sports__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__faq-answer a:hover {
  color: #1e87b7;
}

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

/* Content area images CSS dimensions lower bound */
.page-sports img:not(.page-sports__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__strategy-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 60vh;
  }
  .page-sports__main-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
  }
  .page-sports__features-section,
  .page-sports__popular-sports-section,
  .page-sports__guide-section,
  .page-sports__strategies-section,
  .page-sports__cta-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__strategy-cards,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__feature-card,
  .page-sports__sport-item,
  .page-sports__strategy-card,
  .page-sports__guide-step {
    padding: 20px;
  }
  .page-sports__feature-icon,
  .page-sports__sport-image,
  .page-sports__strategy-image {
    height: 150px;
  }

  /* Mobile specific image handling */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure content containers also respect max-width */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__popular-sports-section,
  .page-sports__guide-section,
  .page-sports__strategies-section,
  .page-sports__cta-section,
  .page-sports__faq-section,
  .page-sports__hero-buttons,
  .page-sports__guide-steps {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 2em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__hero-section {
    min-height: 50vh;
  }
  .page-sports__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: -15px;
  }
}