/* style/sports.css */

/* Base styles for the page content, ensuring light text on dark background */
.page-sports {
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6; /* Text Main custom color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Ensure all links within the main content are readable */
.page-sports a {
  color: #A7D9B8; /* Text Secondary custom color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports a:hover {
  color: #57E38D; /* Glow custom color for hover */
}

/* Section styling */
.page-sports__section {
  padding: 60px 20px;
  border-bottom: 1px solid #1E3A2A; /* Divider custom color */
}

.page-sports__section:last-of-type {
  border-bottom: none;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green custom color for hero background */
}

.page-sports__hero-image {
  width: 100%;
  max-width: 1920px; /* Ensure image scales */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-sports__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-sports__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  color: #F2FFF6; /* Text Main custom color */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary custom color */
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-sports__cta-buttons--center {
  margin-top: 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button custom gradient */
  color: #F2FFF6; /* Text Main custom color */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow custom color */
  border: 2px solid #57E38D; /* Glow custom color for border */
}

.page-sports__btn-secondary:hover {
  background-color: #57E38D; /* Glow custom color */
  color: #08160F; /* Background custom color for hover text */
  transform: translateY(-2px);
}

/* Titles */
.page-sports__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Responsive font size */
  color: #F2FFF6; /* Text Main custom color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-sports__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #F2C14E; /* Gold custom color */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Text Blocks */
.page-sports__text-block {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary custom color */
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Image styling within content */
.page-sports__image-full-width {
  width: 100%;
  max-width: 1000px; /* Limit max width for content images */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* List styles */
.page-sports__feature-list,
.page-sports__numbered-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-sports__feature-list .page-sports__list-item,
.page-sports__numbered-list .page-sports__list-item {
  background-color: #11271B; /* Card BG custom color */
  color: #F2FFF6; /* Text Main custom color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  border-left: 5px solid #2E7A4E; /* Border custom color */
}

.page-sports__numbered-list .page-sports__list-item {
  counter-increment: list-counter;
}

.page-sports__numbered-list .page-sports__list-item::before {
  content: counter(list-counter) ". ";
  font-weight: bold;
  color: #F2C14E; /* Gold custom color */
  font-size: 1.2rem;
  margin-right: 15px;
  min-width: 30px;
  text-align: center;
}

/* Dark section for contrast */
.page-sports__dark-section {
  background-color: #0A4B2C; /* Deep Green custom color */
  color: #F2FFF6; /* Text Main custom color */
}

.page-sports__dark-section .page-sports__text-block {
  color: #A7D9B8; /* Text Secondary custom color */
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 30px;
}

.page-sports__faq-item {
  background-color: #11271B; /* Card BG custom color */
  border: 1px solid #2E7A4E; /* Border custom color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main custom color */
  background-color: #11271B; /* Card BG custom color */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-item summary {
  list-style: none;
}

.page-sports__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green custom color on hover */
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold custom color */
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary custom color */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  transition: max-height 0.5s ease-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 15px;
  }

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

  .page-sports__hero-image {
    margin-bottom: 20px;
  }

  .page-sports__main-title {
    font-size: 2rem;
  }

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Ensure padding for buttons on mobile */
  }

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

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

  .page-sports__sub-title {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 15px;
  }

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

  .page-sports__feature-list .page-sports__list-item,
  .page-sports__numbered-list .page-sports__list-item {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

  /* Mobile image and video responsive adaptation */
  .page-sports img {
    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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-sports__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-sports__cta-buttons {
    flex-direction: column;
  }
}