.page-sports {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Inherited from shared, ensuring consistency */
}

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

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

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
  text-align: center;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
}

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

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  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, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

.page-sports__btn-center {
  margin: 30px auto 0 auto;
  display: block;
  width: fit-content;
}

/* Intro Section */
.page-sports__intro-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__intro-section .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sports Types Section */
.page-sports__sports-types-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__sports-types-section .page-sports__text-block {
  color: #f0f0f0;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #017439; /* Brand green for card titles on light background */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__card-description {
  font-size: 1em;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Live Betting Section */
.page-sports__live-betting-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__live-betting-section .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Promotions Section */
.page-sports__promotions-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__promotions-section .page-sports__text-block {
  color: #f0f0f0;
}

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

/* Why Choose Us Section */
.page-sports__why-choose-us-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__why-choose-us-section .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
  filter: none; /* Ensure no filter changes image color */
}

.page-sports__feature-title {
  font-size: 1.4em;
  color: #017439; /* Brand green for feature titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-item p {
  font-size: 1em;
  color: #e0e0e0;
}

/* Guide Section */
.page-sports__guide-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__guide-section .page-sports__text-block {
  color: #f0f0f0;
}

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

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  border: 4px solid #FFFFFF;
}

.page-sports__step-title {
  font-size: 1.4em;
  color: #017439; /* Brand green for step titles */
  margin-bottom: 10px;
  font-weight: bold;
}

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

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title {
  color: #FFFFFF;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  color: #FFFFFF;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand green for question background */
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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); /* Plus to X */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for answer background */
  color: #e0e0e0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
}

/* CTA Footer Section */
.page-sports__cta-footer-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-sports__cta-footer-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__cta-footer-section .page-sports__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Theme Colors - Dark Background */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast between sections */
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .page-sports__container {
    padding: 20px 15px;
  }

  .page-sports__hero-section {
    min-height: 400px;
  }

  .page-sports__hero-content {
    padding: 15px;
  }

  .page-sports__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

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

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

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

  .page-sports__text-block {
    font-size: 0.95em;
  }

  .page-sports__grid-layout,
  .page-sports__promo-grid,
  .page-sports__feature-list,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card-image,
  .page-sports__image-content,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin: 20px auto;
  }

  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct offset */
  }

  .page-sports__feature-icon {
    width: 50px;
    height: 50px;
  }

  .page-sports__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    top: -25px;
  }

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

  /* Ensure all content containers have proper padding and max-width */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__sports-types-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__why-choose-us-section,
  .page-sports__guide-section,
  .page-sports__faq-section,
  .page-sports__cta-footer-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-sports__hero-content {
    width: calc(100% - 30px); /* Adjust for padding on the container */
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }
  .page-sports__feature-title {
    font-size: 1.2em;
  }
  .page-sports__step-title {
    font-size: 1.2em;
  }
}

/* Color Contrast Fixes (if needed, though design aims for good contrast) */
.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__text-block {
  color: #ffffff;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__text-block {
  color: #ffffff;
}

.page-sports__card.page-sports__light-bg .page-sports__card-title,
.page-sports__feature-item.page-sports__light-bg .page-sports__feature-title,
.page-sports__step-card.page-sports__light-bg .page-sports__step-title {
  color: #017439; /* Ensure brand color is readable on light card background */
}

.page-sports__card.page-sports__light-bg .page-sports__card-description,
.page-sports__feature-item.page-sports__light-bg p,
.page-sports__step-card.page-sports__light-bg .page-sports__step-description {
  color: #e0e0e0;
}

/* Specific overrides for button font color per instructions */
.page-sports__btn-primary {
  color: #FFFF00; /* Register/Login font color */
}