.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--secondary-color); /* #FFFFFF */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.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, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px; /* Minimum height for desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-sports__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-sports__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 2;
}

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

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

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

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-sports__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-sports__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Popular Sports Section */
.page-sports__popular-sports {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-sports__popular-sports .page-sports__section-title,
.page-sports__popular-sports .page-sports__section-intro {
  color: #ffffff;
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__sport-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__sport-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-sports__sport-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 60px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-sports__promo-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
}

.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-sports__promo-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-sports__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 15px;
}

/* Mobile App Section */
.page-sports__mobile-app-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-sports__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-sports__mobile-app-content {
  flex: 1;
  text-align: left;
}

.page-sports__mobile-app-content .page-sports__section-title,
.page-sports__mobile-app-content .page-sports__section-intro {
  color: #ffffff;
  text-align: left;
}

.page-sports__app-download-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-sports__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-sports__security-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-sports__security-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-sports__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__security-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-sports__security-description {
  font-size: 1em;
  color: #555555;
}

/* How to Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-sports__how-to-start-section .page-sports__section-title,
.page-sports__how-to-start-section .page-sports__section-intro {
  color: #ffffff;
}

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

.page-sports__step-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-sports__step-icon {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  color: #017439;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-sports__step-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-sports__faq-question:hover {
  background-color: #f0f0f0;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Utility classes for background/text color contrast */
.page-sports__dark-bg {
  color: #ffffff;
  background-color: #017439;
}

.page-sports__light-bg {
  color: #333333;
  background-color: #ffffff;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__mobile-app-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__mobile-app-content {
    text-align: center;
  }
  .page-sports__mobile-app-content .page-sports__section-title,
  .page-sports__mobile-app-content .page-sports__section-intro {
    text-align: center;
  }
  .page-sports__app-download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .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;
    padding: 12px 20px !important;
    font-size: 0.9em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__app-download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__section-intro {
    font-size: 0.95em;
  }
  .page-sports__about-section,
  .page-sports__popular-sports,
  .page-sports__promotions-section,
  .page-sports__mobile-app-section,
  .page-sports__security-section,
  .page-sports__how-to-start-section,
  .page-sports__faq-section {
    padding: 50px 0;
  }

  /* Image responsive for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__container,
  .page-sports__section,
  .page-sports__card,
  .page-sports__feature-item,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__security-item,
  .page-sports__step-item,
  .page-sports__faq-item,
  .page-sports__video-wrapper,
  .page-sports__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-sports__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Video responsive for mobile */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-sports__feature-title,
  .page-sports__sport-title,
  .page-sports__promo-title,
  .page-sports__security-title,
  .page-sports__step-title {
    font-size: 1.5em;
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 15px;
  }
}