/* style/sports.css */

/* Body background is dark (#1a1a2e), so text should be light */
.page-sports {
  color: #ffffff; /* Default text color for the page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

.page-sports__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-sports__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.page-sports__content-area--center {
  text-align: center;
}

.page-sports__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

.page-sports h3 {
  font-size: clamp(1.5em, 4vw, 2em);
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: inherit;
}

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

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

.page-sports li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Adjust based on image aspect ratio */
  margin-bottom: 30px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-sports__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: #ffffff;
}

.page-sports__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em); /* H1 font size with clamp */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Specific color for main title */
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%;
}

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

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

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

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

.page-sports__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
}

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

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

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-sports__card--promo {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__card--promo .page-sports__card-title {
  color: #017439;
}

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

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: inherit;
}

.page-sports__feature-item {
  text-align: left;
}

.page-sports__feature-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlight feature titles */
}

/* Video Section */
.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: 8px;
  margin: 40px auto;
  width: 100%; /* Desktop width */
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Toggle icon color */
}

.page-sports__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-sports__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__button-group--center {
  justify-content: center;
}

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

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

  .page-sports__content-area,
  .page-sports__hero-content {
    padding: 0 15px;
  }

  .page-sports__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-sports__grid-3-cols,
  .page-sports__grid-2-cols,
  .page-sports__grid-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card {
    padding: 20px;
  }

  .page-sports__video-wrapper {
    margin: 20px auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-sports__hero-image-wrapper,
  .page-sports__content-area,
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-sports__button-group {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}