/* style/sports.css */
.page-sports {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 30px;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  max-width: 100%;
  white-space: normal;
  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: #a00606;
  border-color: #a00606;
}

.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__intro-section,
.page-sports__benefits-section,
.page-sports__promotions-section,
.page-sports__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 30px;
}

.page-sports__intro-section .page-sports__section-title,
.page-sports__benefits-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__cta-final-section .page-sports__section-title {
  color: #017439; /* Darker title for light background */
}

.page-sports__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__image-content--right {
  float: right;
  margin-left: 30px;
}

.page-sports__types-section,
.page-sports__guide-section,
.page-sports__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__types-section .page-sports__section-title,
.page-sports__guide-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
  color: #ffffff; /* Light title for dark background */
}

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

.page-sports__grid-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-sports__grid-item-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #FFFF00;
}

.page-sports__grid-item-description {
  font-size: 1rem;
  padding: 0 20px 20px;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-sports__benefit-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-sports__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__benefit-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-sports__benefit-description {
  font-size: 1rem;
  color: #555555;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__guide-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__guide-step-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-sports__guide-step-description {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-sports__promo-card {
  background-color: #017439;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__promo-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #FFFF00;
}

.page-sports__promo-description {
  font-size: 1rem;
  padding: 0 20px 20px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-sports__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFF00;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #FFFF00;
  margin-left: 10px;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

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

.page-sports__cta-final-section {
  padding: 80px 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    max-height: 50vh;
  }
  .page-sports__image-content--right {
    float: none;
    margin: 30px auto;
  }
}

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

  .page-sports__container {
    padding: 0 15px !important;
  }

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

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

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

  .page-sports__hero-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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .page-sports__paragraph {
    font-size: 1rem;
  }

  .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__grid-item,
  .page-sports__benefit-card,
  .page-sports__promo-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-sports__hero-image-wrapper {
    max-height: 40vh;
  }

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

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

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

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