:root {
  --primary-color: #017439; /* Green */
  --secondary-color: #FFFFFF; /* White */
  --text-dark: #333333;
  --text-light: #ffffff;
  --register-bg: #C30808; /* Red */
  --register-text: #FFFF00; /* Yellow */
}

.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background if not overridden by shared */
}

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

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

.page-sports__heading {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-sports__heading--white {
  color: var(--text-light);
}

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

.page-sports__text--white {
  color: var(--text-light);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), #34a853); /* Gradient for visual appeal */
  overflow: hidden; /* Ensure no overflow from image */
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Ensure image is behind text if text is overlaid */
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-sports__hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
}

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-bg); /* Custom color for register/login */
  color: var(--register-text); /* Custom color for register/login font */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-button:hover {
  background: #a30606; /* Slightly darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Buttons */
.page-sports__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary:hover {
  background: #005a2d; /* Darker green */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__btn-tertiary {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  color: var(--text-light);
  text-decoration: underline;
  border: none;
  font-size: 1em;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-tertiary:hover {
  color: #c0c0c0;
}

.page-sports__btn-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-sports__btn-link:hover {
  color: #005a2d;
  text-decoration: underline;
}

/* Dark Section */
.page-sports__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Sports Grid */
.page-sports__sports-grid,
.page-sports__benefits-grid,
.page-sports__promotions-grid,
.page-sports__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sport-card,
.page-sports__promo-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__dark-section .page-sports__sport-card,
.page-sports__dark-section .page-sports__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__sport-card img,
.page-sports__benefit-item img,
.page-sports__promo-card img,
.page-sports__guide-step img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-sports__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-sports__dark-section .page-sports__card-title,
.page-sports__dark-section .page-sports__card-title--white {
  color: var(--text-light);
}

.page-sports__card-text {
  font-size: 1em;
  color: var(--text-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-sports__dark-section .page-sports__card-text,
.page-sports__dark-section .page-sports__card-text--white {
  color: var(--text-light);
}

/* Benefits Grid */
.page-sports__benefit-item {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__benefit-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-sports__item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__item-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Guide Grid */
.page-sports__guide-step {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__guide-step img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* FAQ Section */
.page-sports__section--faq {
  padding-bottom: 80px;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevents h3 from blocking click event */
}

.page-sports__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevents icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
  font-size: 1em;
}

.page-sports__faq-answer p {
  margin: 0;
  padding-bottom: 15px; /* Add some padding to the bottom of the paragraph */
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #C30808; /* Red for active toggle */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__heading {
    font-size: 2.5em;
  }
  .page-sports__hero-content h1 {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 0;
  }

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__heading {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-sports__text {
    font-size: 1em;
  }

  /* Hero Section Mobile */
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-content h1 {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-image img {
    border-radius: 4px;
  }
  .page-sports__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px !important; /* Adjust padding for mobile buttons */
  }

  /* General Buttons Mobile */
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary,
  .page-sports__btn-link,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness for all images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min image size */
    min-height: 200px !important; /* Enforce min image size */
  }

  /* Card/Grid items mobile */
  .page-sports__sports-grid,
  .page-sports__benefits-grid,
  .page-sports__promotions-grid,
  .page-sports__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__benefit-item,
  .page-sports__guide-step {
    padding: 15px;
  }

  .page-sports__card-title,
  .page-sports__item-title {
    font-size: 1.2em;
  }

  .page-sports__card-text,
  .page-sports__item-text {
    font-size: 0.95em;
  }

  /* FAQ Mobile */
  .page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-question h3 {
    font-size: 1em;
  }
  .page-sports__faq-toggle {
    font-size: 1.8em;
    width: 28px;
    height: 28px;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Ensure images within content sections are not too small by CSS */
.page-sports__section img {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters allowed for changing image colors */
.page-sports img {
  filter: none !important; /* Explicitly disallow any filters */
}