/* style/sports.css */

/* Base Styles for .page-sports to ensure light text on dark body background */
.page-sports {
  color: #ffffff; /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from shared.css var(--dark-bg-1) */
}

.page-sports h1,
.page-sports h2,
.page-sports h3,
.page-sports h4,
.page-sports h5,
.page-sports h6 {
  color: #ffffff; /* Headings default to white on dark background */
  margin-bottom: 1rem;
}

.page-sports a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
}

.page-sports a:hover {
  text-decoration: underline;
}

/* Container for consistent content width */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Styling */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-sports__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}

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

.page-sports__hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.page-sports__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  opacity: 0.8;
}

.page-sports__introduction-section,
.page-sports__features-section,
.page-sports__promotions-section,
.page-sports__security-section,
.page-sports__cta-section {
  padding: 80px 0;
}

.page-sports__sports-types-section,
.page-sports__get-started-section,
.page-sports__faq-section,
.page-sports__video-section {
  padding: 80px 0;
}

/* Background Color Handling (Intelligent Contrast) */
.page-sports__dark-bg {
  background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared --dark-bg-1 is dark */
  color: #ffffff; /* Light text on dark background */
}

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

.page-sports__dark-bg h1,
.page-sports__dark-bg h2,
.page-sports__dark-bg h3 {
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

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

.page-sports__light-bg h1,
.page-sports__light-bg h2,
.page-sports__light-bg h3 {
  color: #333333;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Break long words */
}

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

.page-sports__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text on dark background for hero */
  border: 2px solid #ffffff;
}

.page-sports__light-bg .page-sports__btn-secondary { /* Adjust for light background sections */
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
  transform: translateY(-2px);
}

.page-sports__light-bg .page-sports__btn-secondary:hover { /* Adjust for light background sections */
  background-color: #26A9E0;
  color: #ffffff;
}

/* Content Grid */
.page-sports__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-sports__content-grid > div {
  flex: 1;
}

.page-sports__text-block p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.page-sports__image-wrapper {
  text-align: center;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Cards Grid */
.page-sports__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark sections */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a row have same height */
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Default text color for cards on dark background */
}

.page-sports__light-bg .page-sports__card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-sports__card:hover {
  transform: translateY(-5px);
}

.page-sports__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-sports__card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  flex-grow: 1; /* Make title take available space */
}

.page-sports__card-title .page-sports__card-link {
  color: inherit; /* Inherit color from card */
  text-decoration: none;
}

.page-sports__card-title .page-sports__card-link:hover {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

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

.page-sports__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
}

.page-sports__feature-icon {
  width: 100px; /* Example fixed size for icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-sports__feature-text {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Video Section */
.page-sports__video-section {
  text-align: center;
}

.page-sports__video-wrapper {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block; /* Ensure it's a block element */
}

.page-sports__video-cta {
    margin-top: 30px;
}

/* Get Started Steps */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

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

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__step-text {
  font-size: 0.95rem;
  opacity: 0.9;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  font-size: 1.2rem;
  margin: 0;
  flex-grow: 1;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.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-out, padding 0.3s ease-out;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-sports__faq-answer p {
  margin: 0;
}

/* Call to Action Section */
.page-sports__cta-section {
  text-align: center;
  padding: 60px 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3rem;
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
  .page-sports__content-grid {
    flex-direction: column;
  }
  .page-sports__content-grid .page-sports__image-wrapper:first-child {
    order: 2; /* Image after text on smaller screens */
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-sports__container {
    padding: 0 15px;
  }

  /* Fixed header offset for main content on mobile if shared doesn't provide it on body */
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Images responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller images */
    min-height: unset !important; /* Allow smaller images */
  }
  
  /* Image containers for mobile */
  .page-sports__image-wrapper,
  .page-sports__card,
  .page-sports__feature-item,
  .page-sports__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
  }

  /* Video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers for mobile */
  .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;
  }

  /* Buttons responsiveness */
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .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; /* Add padding to prevent content touching edges */
    padding-right: 15px;
  }
  
  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-title {
    font-size: 2.2rem;
  }
  .page-sports__hero-description {
    font-size: 1rem;
  }
  .page-sports__section-title {
    font-size: 1.8rem;
  }
  .page-sports__section-description {
    font-size: 0.95rem;
  }
  .page-sports__faq-title {
    font-size: 1rem;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-sports__introduction-section,
  .page-sports__features-section,
  .page-sports__promotions-section,
  .page-sports__security-section,
.page-sports__cta-section,
  .page-sports__sports-types-section,
  .page-sports__get-started-section,
  .page-sports__faq-section,
  .page-sports__video-section {
    padding: 40px 0;
  }
  .page-sports__content-grid,
  .page-sports__cards-grid,
  .page-sports__features-grid,
  .page-sports__steps-grid {
    gap: 20px;
  }

  /* Ensure content area images don't go below 200px (this is for the actual display size, not the placeholder request) */
  /* The global rule for min-width/height 200px is for the *generated* image itself, not its display size on mobile */
  /* For mobile, max-width: 100% and height: auto are key. The previous min-width/height should be unset */
  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
  }
}

/* Ensure no filter on images */
.page-sports img {
  filter: none !important;
}