/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.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;
  box-sizing: border-box;
  text-align: center;
}

.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: #9c0606;
  border-color: #9c0606;
}

.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__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section--intro,
.page-sports__section--guide,
.page-sports__section--conclusion {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-sports__section--popular-sports,
.page-sports__section--features,
.page-sports__section--faq {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__section--security {
  background-color: #017439;
  color: #ffffff;
}

.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-sports__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #f0f0f0;
}

.page-sports__highlight {
  color: #FFFF00; /* Custom font color for Register/Login, good contrast */
  font-weight: bold;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
}

.page-sports__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistent card icon display */
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Use brand accent color for titles for good contrast */
}

.page-sports__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-sports__content-row {
  display: flex;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-sports__content-column {
  flex: 1;
}

.page-sports__sub-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFF00;
  text-align: left;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.page-sports__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-sports__list-item::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__image-promo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__image-faq {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-sports__link:hover {
  color: #017439;
}

.page-sports__steps-list {
  list-style: decimal;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-sports__steps-list .page-sports__list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  padding-left: 0;
}

.page-sports__steps-list .page-sports__list-item::before {
  content: counter(section-counter) ". ";
  counter-increment: section-counter;
  color: #017439;
  font-weight: bold;
  position: static;
}

.page-sports__cta-buttons--centered {
  margin-top: 40px;
  justify-content: center;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed */
}

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

.page-sports__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-item details[open] .page-sports__faq-answer {
  max-height: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__content-row {
    flex-direction: column;
  }
  .page-sports__card-image, .page-sports__card-icon {
    height: 200px; /* Adjust for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-sports__hero-section {
    height: 500px;
  }
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-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 {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sports__text-block {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-sports__sports-grid, .page-sports__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card-image, .page-sports__card-icon {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-sports__image-full-width, .page-sports__image-promo, .page-sports__image-faq {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }
  .page-sports__content-column {
    padding: 0 15px;
  }
  .page-sports__sub-title {
    font-size: 1.5em;
  }
  .page-sports__list-item {
    font-size: 1em;
  }
  .page-sports__steps-list {
    padding-left: 35px;
  }
  .page-sports__faq-list {
    padding: 0 15px;
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px 15px 15px;
  }
  /* Ensure all content containers are responsive */
  .page-sports__container,
  .page-sports__section,
  .page-sports__card,
  .page-sports__content-row,
  .page-sports__content-column,
  .page-sports__hero-section,
  .page-sports__hero-overlay,
  .page-sports__hero-buttons,
  .page-sports__sports-grid,
  .page-sports__feature-grid,
  .page-sports__faq-list,
  .page-sports__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__sub-title {
    font-size: 1.3em;
  }
}