/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #0a0a0a (dark), so use light text */
  background-color: transparent; /* Main content background will be transparent to show body background */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
}

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

.page-sports__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  background-color: rgba(38, 169, 224, 0.9); /* Use brand color with some opacity */
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal, but text is below image */
  position: relative;
  z-index: 1; /* Ensure content is above other elements if any */
}

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

.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;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* General Section Styling */
.page-sports__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-sports__container {
  width: 100%; /* Ensure container takes full width on desktop */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-sports__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for general descriptions on dark body background */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sub-title {
  font-size: 1.8em;
  color: #26A9E0; /* Brand color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-sports__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-sports__image-wrapper {
  flex: 1;
  min-width: 300px; /* Minimum width for image wrapper */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__image {
  width: 100%;
  height: auto;
  display: block;
}

.page-sports__text-block {
  flex: 2;
  min-width: 300px; /* Minimum width for text block */
  color: #f0f0f0; /* Light text on dark body background */
}

.page-sports__text-block p {
  margin-bottom: 15px;
}

.page-sports__text-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-sports__text-block li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

/* Dark Background Sections */
.page-sports__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: #ffffff;
}
.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__sub-title {
  color: #26A9E0; /* Keep brand color for titles */
}
.page-sports__dark-bg .page-sports__section-description,
.page-sports__dark-bg p,
.page-sports__dark-bg li {
  color: #f0f0f0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-text-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;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  text-align: center;
}

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

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

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

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

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

.page-sports__btn-text-link:hover {
  color: #1e87c0;
}

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

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: #1a1a1a; /* Darker background for each FAQ item */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-sports__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0; /* Hidden by default for JS fallback */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Styling for <details> native behavior */
.page-sports__faq-item[open] .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed for content height */
  padding-top: 10px;
}

/* Fallback for JS active class if not using <details> */
.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}


/* Conclusion Section */
.page-sports__conclusion {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-sports__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-sports__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-sports__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-sports__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-sports__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-sports__content-wrapper {
    flex-direction: column; /* Stack content vertically */
    gap: 30px;
  }

  .page-sports__image-wrapper {
    min-width: unset;
    width: 100%; /* Ensure images take full width */
  }

  .page-sports__text-block {
    min-width: unset;
    width: 100%; /* Ensure text blocks take full width */
  }

  /* Mobile image and video responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  
  .page-sports__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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