.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Explicitly set body background for clarity */
}

.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, not var(--header-offset) */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #017439, #005f2e); /* Brand color gradient */
  color: #ffffff;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-sports__hero-section .page-sports__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hero-content {
  margin-bottom: 30px;
  max-width: 800px;
}

.page-sports__main-title {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for H1 */
  max-width: 100%; /* Constraint for H1 */
}

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

.page-sports__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to screen width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

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

.page-sports__btn-primary:hover {
  background: #e01b1b;
  border-color: #e01b1b;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: #ffffff;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #ffffff;
}

.page-sports__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2e;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-sports__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 1200px; /* Limit hero image width */
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Section Titles & Descriptions */
.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439; /* Brand primary color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
}

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

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

/* Features Section */
.page-sports__features-section {
  padding: 60px 0;
  background: #f9f9f9; /* Light background */
}

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

.page-sports__feature-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards have a minimum height */
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-icon {
  width: 100%; /* Ensure images fill card width */
  max-width: 400px; /* Max width for images in card */
  height: auto;
  aspect-ratio: 4/3; /* Maintain aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-sports__feature-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow text to grow and push title/icon up */
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 60px 0;
  background: #017439; /* Brand primary color dark background */
  color: #ffffff; /* White text for contrast */
}

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

.page-sports__advantage-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__advantage-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #FFFF00; /* Yellow for highlights */
  margin-bottom: 15px;
}

.page-sports__advantage-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 60px 0;
  text-align: center;
  background: #ffffff;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-sports__faq-list {
  margin-top: 40px;
}

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;
  color: #333333; /* Ensure text is dark on light background */
}
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;
}
.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;
}


/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-sports {
    font-size: 15px;
    line-height: 1.55;
  }

  .page-sports__container {
    padding: 0 15px !important; /* Ensure padding for mobile */
  }

  /* Hero Section */
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 30px;
  }
  
  .page-sports__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-sports__hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button group */
  }

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

  .page-sports__hero-image-wrapper {
    margin-top: 30px;
  }
  
  .page-sports__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Section Titles & Descriptions */
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Features Section */
  .page-sports__features-section {
    padding: 40px 0;
  }

  .page-sports__features-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-top: 30px;
  }

  .page-sports__feature-card {
    padding: 20px;
    min-height: auto; /* Allow height to adjust */
  }

  .page-sports__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  /* Advantages Section */
  .page-sports__advantages-section {
    padding: 40px 0;
  }

  .page-sports__advantages-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-top: 30px;
  }

  .page-sports__advantage-item {
    padding: 20px;
  }

  .page-sports__advantage-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  /* CTA Section */
  .page-sports__cta-section {
    padding: 40px 0;
  }

  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px; /* Add padding to button group */
  }

  /* FAQ Section */
  .page-sports__faq-section {
    padding: 40px 0;
  }

  .page-sports__faq-list {
    margin-top: 30px;
  }
  
  details.page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px !important;
  }
  .page-sports__faq-qtext {
    font-size: 15px;
  }
  details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 15px 15px !important;
  }

  /* General image and container responsiveness */
  .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-buttons,
  .page-sports__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure images maintain aspect ratio and don't get squashed */
.page-sports img {
  object-fit: cover;
}

/* General button responsiveness (already included in specific button styles, but good to have a general one) */
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-sports__cta-buttons,
.page-sports__button-group,
.page-sports__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}