/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is #0a0a0a from shared.css */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust as needed */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  overflow: hidden;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

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

.page-sports__title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__subtitle {
  font-size: 24px;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* General Section Styles */
.page-sports__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-sports__dark-section {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

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

/* Headings */
.page-sports__heading-2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for headings */
}

.page-sports__dark-section .page-sports__heading-2 {
  color: #ffffff; /* White for headings on dark sections */
}

.page-sports__heading-3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__dark-section .page-sports__heading-3 {
  color: #ffffff;
}

.page-sports__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__dark-section .page-sports__paragraph {
  color: #f0f0f0;
}

.page-sports__light-section .page-sports__paragraph {
  color: #333333;
}

/* Buttons */
.page-sports__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  font-size: 18px;
}

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

.page-sports__button--primary:hover {
  background-color: #1f8ac0;
  border-color: #1f8ac0;
}

.page-sports__button--secondary {
  background-color: #EA7C07; /* Login color for secondary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-sports__button--secondary:hover {
  background-color: #c96706;
  border-color: #c96706;
}

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

/* Images */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
  /* No filter properties allowed */
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

.page-sports__image-full {
  width: 100%;
  margin-bottom: 30px;
}

/* Videos */
.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
  background-color: #000;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* For JS click-to-redirect */
  object-fit: cover;
}

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

/* Cards */
.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
  color: #ffffff;
}

.page-sports__light-section .page-sports__card, .page-sports__light-card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 50%; /* Example style for icons */
  background-color: #26A9E0;
  padding: 10px;
  box-sizing: border-box;
}

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

.page-sports__card-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-sports__light-section .page-sports__card-title {
  color: #26A9E0;
}

.page-sports__light-section .page-sports__card-description {
  color: #555555;
}

.page-sports__sports-type-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__sports-type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__steps-list li {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #333333;
}

.page-sports__steps-list li .page-sports__heading-3 {
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-sports__steps-list li .page-sports__paragraph {
  color: #555555;
  margin-bottom: 0;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  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;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus visual */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  font-size: 16px;
  color: #f0f0f0;
  text-align: justify;
}

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

/* Final CTA Section */
.page-sports__final-cta-section {
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__title {
    font-size: 40px;
  }
  .page-sports__subtitle {
    font-size: 22px;
  }
  .page-sports__heading-2 {
    font-size: 30px;
  }
  .page-sports__heading-3 {
    font-size: 24px;
  }
  .page-sports__paragraph {
    font-size: 17px;
  }
  .page-sports__button {
    padding: 13px 25px;
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    height: 60vh;
    min-height: 400px;
  }

  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-sports__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-sports__heading-2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-sports__heading-3 {
    font-size: 22px;
  }

  .page-sports__paragraph {
    font-size: 16px;
  }

  .page-sports__button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Handled by section padding */
    padding-right: 0; /* Handled by section padding */
    overflow: hidden !important;
  }
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__card {
    padding: 20px;
  }

  .page-sports__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-sports__steps-list li {
    padding: 20px;
  }

  .page-sports__steps-list li .page-sports__heading-3 {
    font-size: 20px;
  }

  .page-sports__steps-list li .page-sports__paragraph {
    font-size: 15px;
  }
}

/* Ensure content area images are not too small (min 200x200) */
/* This is a general rule for content images, not for small icons which are prohibited */
.page-sports__content-area img,
.page-sports__feature-card img,
.page-sports__sports-type-item img,
.page-sports__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific card image sizes for better layout */
.page-sports__card .page-sports__card-image {
  width: 100%;
  height: 200px; /* Consistent height for card images */
  object-fit: cover;
  margin-bottom: 20px;
}

/* Color contrast enforcement for specific elements */
.page-sports__text-contrast-fix {
  color: #333333 !important;
  background-color: #ffffff !important;
}