.page-sports {
  color: #ffffff; /* Text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure consistency with body background */
}

.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: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-sports__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

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

.page-sports__btn--login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-sports__btn--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-sports__link {
  color: #FFFF00; /* Highlight links */
  text-decoration: underline;
}

.page-sports__link:hover {
  color: #FFD700;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #000000; /* Fallback */
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

/* Video Section */
.page-sports__video-section {
  background-color: #000000;
  padding: 80px 0;
  text-align: center;
}

.page-sports__video-title {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* Introduction Section */
.page-sports__introduction-section {
  background-color: #017439;
  padding: 80px 0;
}

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

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

.page-sports__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-sports__image-right {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-sports__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-sports__card-description {
  font-size: 1em;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

/* Features Section */
.page-sports__features-section {
  background-color: #017439;
  padding: 80px 0;
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Guide Section */
.page-sports__guide-section {
  background-color: #017439;
  padding: 80px 0;
}

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

.page-sports__guide-step {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-sports__step-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-sports__image-left {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__security-section .page-sports__content-grid {
  flex-direction: row-reverse; /* Image on left */
}

/* Support Section */
.page-sports__support-section {
  background-color: #017439;
  padding: 80px 0;
  text-align: center;
}

.page-sports__support-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 600px;
  color: #ffffff;
  font-size: 1.1em;
}

.page-sports__support-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: left;
}

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

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question-title {
  margin: 0;
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 20px;
  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 30px;
  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 to show content */
  padding: 15px 30px 30px 30px;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  background-color: #017439;
  padding: 80px 0;
  text-align: center;
}

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

/* Global image settings for content area */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their area without distortion */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }

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

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

  .page-sports__content-grid {
    flex-direction: column;
  }

  .page-sports__image-right,
  .page-sports__image-left {
    max-width: 100%;
  }

  .page-sports__security-section .page-sports__content-grid {
    flex-direction: column;
  }
}

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

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__hero-section {
    height: auto;
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn,
  .page-sports__hero-buttons a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-sports__video-section,
  .page-sports__introduction-section,
  .page-sports__popular-sports-section,
  .page-sports__features-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__security-section,
  .page-sports__support-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 50px 0;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__video,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio */
    height: 0 !important;
  }

  .page-sports__sport-card,
  .page-sports__feature-card,
  .page-sports__promotion-card,
  .page-sports__guide-step {
    padding: 20px;
  }

  .page-sports__card-image {
    height: 200px;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-sports__faq-answer {
    padding: 0 20px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  .page-sports__support-item {
    padding: 12px 15px;
  }
  
  .page-sports__content-grid,
  .page-sports__security-section .page-sports__content-grid {
    flex-direction: column;
  }
  .page-sports__image-right, .page-sports__image-left {
    max-width: 100%;
  }
  
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}