.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;
}

/* Sections */
.page-sports__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

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

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

.page-sports__about-section, .page-sports__registration-section, .page-sports__tips-section, .page-sports__support-section {
  padding: 80px 0;
}

.page-sports__sports-types-section, .page-sports__promotions-section, .page-sports__mobile-app-section, .page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-sports__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-sports__text-block {
  flex: 1;
  color: #333333;
}

.page-sports__text-block p {
  margin-bottom: 15px;
}

.page-sports__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__cards-grid, .page-sports__promotions-grid, .page-sports__steps-grid, .page-sports__tips-grid, .page-sports__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__card, .page-sports__promo-card, .page-sports__step-card, .page-sports__tip-item, .page-sports__support-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-sports__card-image, .page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__card-title, .page-sports__promo-title, .page-sports__step-title, .page-sports__tip-title, .page-sports__support-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
  padding: 0 15px;
}

.page-sports__card-title a, .page-sports__promo-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-sports__card-title a:hover, .page-sports__promo-title a:hover {
  text-decoration: underline;
}

.page-sports__card-text, .page-sports__promo-text, .page-sports__step-text, .page-sports__tip-text, .page-sports__support-text {
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
}

.page-sports__step-card, .page-sports__tip-item, .page-sports__support-item {
  background: #ffffff;
  color: #333333;
  padding: 25px;
  text-align: left;
}

.page-sports__step-title, .page-sports__tip-title, .page-sports__support-title {
  color: #017439;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-sports__step-text, .page-sports__tip-text, .page-sports__support-text {
  color: #333333;
  padding: 0;
}

/* Buttons */
.page-sports__btn-primary, .page-sports__btn-secondary, .page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-sports__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
}

.page-sports__btn-link {
  background: none;
  border: none;
  color: #017439;
  text-decoration: underline;
  padding: 0;
  margin-top: 15px;
}

.page-sports__btn-link:hover {
  color: #005f2e;
}

.page-sports__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-sports__cta-buttons--center {
  justify-content: center;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

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

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

/* Background colors */
.page-sports__dark-bg {
  background: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background: #ffffff; /* White background for light sections */
  color: #333333;
}

.page-sports__light-bg .page-sports__section-title, .page-sports__light-bg .page-sports__section-description {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__content-grid {
    flex-direction: column;
  }
}

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

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: 2em;
  }

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

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-sports__section-description {
    font-size: 0.9em;
    margin-bottom: 40px;
  }

  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__about-section .page-sports__container,
  .page-sports__sports-types-section .page-sports__container,
  .page-sports__registration-section .page-sports__container,
  .page-sports__promotions-section .page-sports__container,
  .page-sports__tips-section .page-sports__container,
  .page-sports__mobile-app-section .page-sports__container,
  .page-sports__support-section .page-sports__container,
  .page-sports__faq-section .page-sports__container,
  .page-sports__hero-buttons,
  .page-sports__cards-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid,
  .page-sports__tips-grid,
  .page-sports__support-grid,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__card, .page-sports__promo-card, .page-sports__step-card, .page-sports__tip-item, .page-sports__support-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .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;
  }

  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

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

@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.5em;
  }
}