.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 100px 20px 60px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #017439; /* Use primary brand color for hero background */
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.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: 40px;
  color: #f0f0f0;
}

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

.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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto;
}

.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__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-sports__introduction-section,
.page-sports__odds-section,
.page-sports__guide-section,
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--dark-bg); /* Dark background for sections */
  color: #ffffff; /* Light text for dark background */
}

.page-sports__promotions-section,
.page-sports__featured-sports-section,
.page-sports__features-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for sections */
  color: #333333; /* Dark text for light background */
}

.page-sports__promotions-section .page-sports__section-title,
.page-sports__featured-sports-section .page-sports__section-title,
.page-sports__features-section .page-sports__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-sports__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-sports__sports-card,
.page-sports__promo-card,
.page-sports__feature-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-sports__sports-card:hover,
.page-sports__promo-card:hover,
.page-sports__feature-item:hover {
  transform: translateY(-10px);
}

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

.page-sports__feature-icon {
  height: 150px;
  width: 150px;
  object-fit: contain;
  margin: 20px auto 15px;
}

.page-sports__card-title,
.page-sports__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
  padding: 0 15px;
}

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

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

.page-sports__card-description,
.page-sports__feature-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

.page-sports__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding: 0;
  margin: 40px 0;
}

.page-sports__guide-list li {
  counter-increment: guide-counter;
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: justify;
}

.page-sports__guide-list li::before {
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

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

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
}

.page-sports__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.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 to show all content */
  padding: 15px 20px;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 80px 15px 40px;
    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-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }

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

  .page-sports__introduction-section,
  .page-sports__odds-section,
  .page-sports__guide-section,
  .page-sports__faq-section,
  .page-sports__promotions-section,
  .page-sports__featured-sports-section,
  .page-sports__features-section {
    padding: 50px 0;
  }

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

  .page-sports__sports-grid,
  .page-sports__promo-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__sports-card,
  .page-sports__promo-card,
  .page-sports__feature-item {
    width: 100%;
    box-sizing: border-box;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__introduction-section,
  .page-sports__featured-sports-section,
  .page-sports__odds-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__features-section,
  .page-sports__faq-section,
  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons--center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__guide-list li {
    padding-left: 40px;
    font-size: 1em;
  }

  .page-sports__guide-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

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

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

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

  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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__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-wrap: wrap !important;
    gap: 10px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
  }
}