.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for content area if needed, though body handles it */
}

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

/* Hero Section */
.page-sports__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #017439; /* Brand color for hero background */
  overflow: hidden; /* Ensure no overflow from images */
}

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

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

.page-sports__hero-content {
  padding: 40px 20px;
  text-align: center;
  background-color: #FFFFFF; /* Light background for text block */
  color: #333333;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__tagline {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
}

.page-sports__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #015c2d;
  border-color: #015c2d;
}

/* Highlights Section */
.page-sports__highlights-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-sports__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-sports__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
}

.page-sports__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure image responsiveness */
  display: block;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__card-text {
  font-size: 1em;
  color: #555555;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color dark background */
  color: #FFFFFF; /* White text */
}

.page-sports__section-title--white {
  color: #FFFFFF;
}

.page-sports__section-description--white {
  color: #e0e0e0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1em;
}

.page-sports__category-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.page-sports__category-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-sports__category-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-sports__category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 1.3em;
  font-weight: 600;
  height: 100%;
}

.page-sports__category-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

/* Promo Banner Section */
.page-sports__promo-banner {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-sports__promo-content {
  background-color: #f0f8f0; /* Light green tint */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__promo-title {
  font-size: 2.5em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-sports__promo-text {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-sports__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-sports__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-sports__faq-answer p {
  margin: 0;
}

/* General image responsiveness */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 2.2em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__promo-title {
    font-size: 2em;
  }
  .page-sports__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-sports__category-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* General mobile settings */
  .page-sports {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-sports__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding, override if needed */
  }
  .page-sports__hero-content {
    padding: 30px 15px;
  }
  .page-sports__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-sports__tagline {
    font-size: 1em;
    margin: 0 auto 25px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px !important; /* Add padding to container */
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Highlights Section */
  .page-sports__highlights-section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-sports__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__feature-card {
    padding: 20px;
  }
  .page-sports__feature-image {
    height: 180px;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }

  /* Categories Section */
  .page-sports__categories-section {
    padding: 40px 0;
  }
  .page-sports__section-description--white {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-sports__category-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-sports__category-link {
    padding: 20px;
    font-size: 1.2em;
  }
  .page-sports__category-icon {
    font-size: 2.5em;
  }

  /* Promo Banner Section */
  .page-sports__promo-banner {
    padding: 40px 0;
  }
  .page-sports__promo-content {
    padding: 30px 15px;
  }
  .page-sports__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-sports__promo-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* FAQ Section */
  .page-sports__faq-section {
    padding: 40px 0;
  }
  details.page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px;
  }
  .page-sports__faq-qtext {
    font-size: 15px;
  }
  .page-sports__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 15px 15px;
  }
  .page-sports__faq-answer p {
    font-size: 0.95em;
  }

  /* Universal image/container mobile adaptation */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__highlights-section,
  .page-sports__categories-section,
  .page-sports__promo-banner,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}