/* style/sports.css */

/* Variables and Base Styles (scoped to .page-sports) */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive H2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
}

.page-sports__section-title--white {
  color: #FFFFFF;
}

.page-sports__text-block {
  font-size: 17px;
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block--white {
  color: #F0F0F0;
}

.page-sports .highlight {
  color: #26A9E0;
  font-weight: bold;
}
.page-sports__text-block--white .highlight {
  color: #FFFFFF;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary,
.page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-sports__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #FFFFFF;
  border-color: #26A9E0;
}
.page-sports__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-sports__btn-secondary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border-color: #EA7C07;
  margin-left: 15px;
}
.page-sports__btn-secondary:hover {
  background-color: #c96806;
  border-color: #c96806;
}

.page-sports__btn-tertiary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.page-sports__btn-tertiary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  font-weight: 600;
  padding: 0;
  border: none;
  text-decoration: underline;
}
.page-sports__btn-link:hover {
  color: #1e87c0;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  margin-top: 30px;
}
.page-sports__cta-buttons--center {
  margin-top: 40px;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  overflow: hidden; /* Ensure no overflow */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content {
  position: relative; /* Ensure content is above image wrapper if needed, but not overlaying */
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9); /* Slight background for readability */
  padding: 30px;
  border-radius: 10px;
  margin-top: -80px; /* Pull up slightly over the image if desired, but still below */
  max-width: 900px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-sports__hero-title {
  font-size: clamp(32px, 5vw, 55px); /* Responsive H1 */
  font-weight: 800;
  margin-bottom: 15px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 18px;
  margin-bottom: 25px;
  color: #555555;
}

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #F8F8F8;
  color: #333333;
}

.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-sports__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-icon {
  width: 100%; /* Ensure images are responsive within card */
  height: auto;
  max-width: 250px; /* Max width for icons */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__feature-description {
  font-size: 16px;
  color: #555555;
}

/* Sports Categories Section */
.page-sports__categories-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Main brand color for dark section */
  color: #FFFFFF;
}

.page-sports__sport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on brand color */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__sport-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-sports__sport-description {
  font-size: 16px;
  color: #F0F0F0;
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-sports__promo-card {
  background-color: #F8F8F8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-sports__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__promo-description {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How to Get Started Section */
.page-sports__get-started-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 15px;
  display: block;
}

.page-sports__step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-sports__step-description {
  font-size: 16px;
  color: #F0F0F0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #F8F8F8;
  color: #333333;
}

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

.page-sports__faq-item {
  background-color: #FFFFFF;
  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: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E0E0E0; /* Separator for active state */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid #E0E0E0;
  background-color: #F0F0F0;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

/* Contact CTA Section */
.page-sports__contact-cta {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-sports__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-sports__hero-content {
    margin-top: -60px;
    padding: 25px;
  }
  .page-sports__hero-title {
    font-size: clamp(28px, 4.5vw, 45px);
  }
  .page-sports__hero-description {
    font-size: 17px;
  }

  .page-sports__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 25px;
  }
  .page-sports__text-block {
    font-size: 16px;
  }

  /* Hero Section */
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-sports__hero-content {
    margin-top: -40px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-sports__hero-title {
    font-size: clamp(26px, 7vw, 38px);
    margin-bottom: 10px;
  }
  .page-sports__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    padding: 0 15px; /* Add padding to buttons container */
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary,
  .page-sports__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for stacked buttons */
  }

  /* Images responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__hero-image-wrapper,
  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__step-card,
  .page-sports__faq-item,
  .page-sports__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Sections padding */
  .page-sports__about-section,
  .page-sports__categories-section,
  .page-sports__promotions-section,
  .page-sports__get-started-section,
  .page-sports__faq-section,
  .page-sports__contact-cta {
    padding: 50px 0;
  }

  /* Feature/Sport/Promo/Step cards */
  .page-sports__features-grid,
  .page-sports__sport-cards-grid,
  .page-sports__promo-cards-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-sports__feature-icon,
  .page-sports__sport-image,
  .page-sports__promo-image {
    max-width: 100%;
  }

  /* FAQ */
  .page-sports__faq-list {
    margin-top: 30px;
  }
  .page-sports__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 15px;
  }
  .page-sports__faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: clamp(24px, 8vw, 32px);
  }
  .page-sports__hero-description {
    font-size: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 10px 20px;
  }
}