/* style/sports.css */

/* Base styles for the page content */
.page-sports {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body, which is #0a0a0a */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Assuming shared.css does NOT set padding-top on body, this page must set it */
  padding-top: var(--header-offset, 120px); 
  padding-bottom: 60px;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Darken image for better text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

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

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #ffffff;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-sports__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

.page-sports__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

.page-sports__btn-tertiary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}


/* About Section */
.page-sports__about-section {
  padding: 80px 0;
}

/* Dark Section (for better contrast with white text) */
.page-sports__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

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

.page-sports__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card styles */
.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  border-radius: 10px;
  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;
  align-items: center;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure image responsiveness */
  display: block;
}

.page-sports__card-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
}

.page-sports__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Feature cards (Why Choose section) */
.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-sports__feature-icon {
  /* HTML width/height attributes will be 400x300 for generation, CSS can scale it visually */
  width: 80px; /* Visual size for the icon within the card */
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure image responsiveness */
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* Content area image CSS size lower bound: must not be less than 200px */
  min-width: 200px; /* Ensure generated image is large, even if displayed smaller */
  min-height: 200px; /* Ensure generated image is large, even if displayed smaller */
  width: auto; /* Allow natural scaling */
  height: auto;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background for promotions */
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-sports__promo-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
}

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

/* How to Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__step-title {
  font-size: 1.7em;
  color: #017439;
  margin-bottom: 15px;
}

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

/* Video Section */
.page-sports__video-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  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: 0;
  display: block; /* Ensures it behaves as a block element */
  cursor: pointer; /* Indicate clickable */
}

.page-sports__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 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.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.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 25px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
}

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

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

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

  .page-sports__hero-description {
    font-size: 1.2em;
  }

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

@media (max-width: 768px) {
  /* Ensure content padding for mobile */
  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__cta-buttons,
  .page-sports__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-sports__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

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

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

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 0.95em;
  }

  .page-sports__card-image,
  .page-sports__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-sports__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  /* Video responsiveness */
  .page-sports__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Padding handled by container, no need here */
  }

  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-sports__faq-title {
    font-size: 1.1em;
  }

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

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

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

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

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

/* General image rules for content area to ensure min size */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensuring no filter is used on images */
.page-sports img {
  filter: none !important; /* Explicitly ensure no filter */
}