/* style/sports.css */

/* Base styles for the sports page content */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Add padding below content */
  background-color: #0a0a0a; /* Fallback for image loading */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit hero image height for better mobile experience */
  filter: brightness(0.7); /* Slightly darken image for text readability if text were overlaid, but not for changing color */
}

.page-sports__hero-content {
  position: relative; /* Not absolute, ensuring it's below the image */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text block */
  margin-top: -80px; /* Pull content up slightly over the image for visual connection */
  border-radius: 8px;
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-sports__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
  box-sizing: border-box;
}

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

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

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

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

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
  white-space: normal; /* Allow link text to wrap */
}

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

.page-sports__btn-center {
  margin: 20px auto;
  display: block;
  width: fit-content;
}

/* Section titles */
.page-sports__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__text-block {
  font-size: 1.05em;
  color: #f0f0f0; /* Light text for dark background */
  margin-bottom: 20px;
  text-align: justify;
}

/* Section specific styling */
.page-sports__intro-section,
.page-sports__guide-section,
.page-sports__tips-section,
.page-sports__cta-final {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
  padding: 60px 0;
}

.page-sports__sports-types-section,
.page-sports__advantages-section,
.page-sports__faq-section {
  background-color: #0a0a0a; /* Darker background */
  color: #ffffff;
  padding: 60px 0;
}

/* Grid for sports types */
.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  display: block; /* Ensure no extra space below image */
}

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

.page-sports__card-description {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-sports__card-link {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 8px 20px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-sports__card-link:hover {
  background-color: #1a7fb8;
}

.page-sports__cta-buttons--centered {
  text-align: center;
}

/* Step Guide Section */
.page-sports__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

/* Advantages Section */
.page-sports__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-sports__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__advantage-icon {
  width: 80px; /* Adjusted from 200px to avoid large icons */
  height: 80px; /* Adjusted for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Make icons stand out slightly */
}

.page-sports__advantage-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__advantage-description {
  font-size: 1em;
  color: #ccc;
}

/* Tips Section */
.page-sports__tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__tip-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__tip-description {
  font-size: 1em;
  color: #ccc;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  color: #26A9E0;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #ccc;
}

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

.page-sports__faq-answer .page-sports__btn-link {
  margin-top: 10px;
}

/* Final CTA Section */
.page-sports__cta-final {
  text-align: center;
  padding: 80px 0;
  background-color: #1a1a1a;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 30px 15px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-sports__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__hero-section {
    padding-bottom: 40px;
  }

  .page-sports__hero-image {
    max-height: 60vh;
  }

  .page-sports__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-sports__description {
    font-size: 1em;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__intro-section,
  .page-sports__sports-types-section,
  .page-sports__guide-section,
  .page-sports__advantages-section,
  .page-sports__tips-section,
  .page-sports__faq-section,
  .page-sports__cta-final {
    padding: 40px 0;
  }

  .page-sports__grid,
  .page-sports__step-grid,
  .page-sports__advantage-grid,
  .page-sports__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card-image,
  .page-sports__advantage-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all images are responsive on mobile */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images should also be responsive */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__step-card,
  .page-sports__advantage-item,
  .page-sports__tip-item,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll from padding */
  }

  .page-sports__advantage-icon {
    width: 60px !important; /* Smaller icons for mobile */
    height: 60px !important;
  }

  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  
  .page-sports__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Video specific mobile responsive rules (not used on this page, but included for completeness if video were present) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__video-section,
  .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;
  }
}

/* Color Contrast Enforcement */
/* body background is #0a0a0a (dark), so text should be light */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a; /* Using a slightly lighter dark for contrast */
  color: #f0f0f0;
}

/* Specific elements that need light text on dark backgrounds */
.page-sports__card,
.page-sports__step-card,
.page-sports__advantage-item,
.page-sports__tip-item,
.page-sports__faq-item {
  color: #ccc; /* Slightly off-white for softer look */
}

/* Headings will use primary color or white */
.page-sports h1, .page-sports h2, .page-sports h3 {
  color: #26A9E0; /* Primary color for headings */
}

/* Buttons already defined with good contrast */
/* .page-sports__btn-primary has #26A9E0 background with #FFFFFF text */
/* .page-sports__btn-secondary has transparent background with #FFFFFF text and #FFFFFF border */

/* FAQ question text is #26A9E0 on rgba(255,255,255,0.05) which is readable */
/* FAQ toggle is #FFFFFF */

/* No CSS filters for images */
.page-sports img {
  filter: none;
}