.page-sports {
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-sports__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker background for text readability on top of dark body */
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  margin-top: -100px; /* Overlap slightly for visual effect, but not on the image itself */
  position: relative;
  z-index: 1;
  border-radius: 8px;
}

.page-sports__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.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: #e02020;
  border-color: #e02020;
}

.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: clamp(1.8em, 3.5vw, 2.8em);
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-sports__dark-section {
  background-color: #017439; /* Primary color as background */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-sports__feature-item,
.page-sports__sport-item,
.page-sports__strategy-item,
.page-sports__security-item {
  background: rgba(255, 255, 255, 0.1); /* Light translucent background for cards */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__strategy-title,
.page-sports__promotion-title,
.page-sports__security-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-text,
.page-sports__sport-text,
.page-sports__strategy-text,
.page-sports__promotion-text,
.page-sports__security-text {
  color: #f0f0f0;
  font-size: 1em;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-sports__image-center {
  display: block;
  margin: 40px auto;
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__step-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-sports__promotions-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-sports__promotion-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00;
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question::marker {
  display: none;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Ensure summary toggle for details element */
.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__cta-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

/* Global image responsiveness */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-sports__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section Mobile */
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding */
    flex-direction: column;
  }

  .page-sports__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }

  .page-sports__hero-content {
    padding: 20px 15px;
    margin-top: -50px; /* Less overlap for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Buttons Mobile */
  .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;
    display: flex;
    flex-direction: column;
  }

  /* General Images Mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__why-choose-section,
  .page-sports__popular-sports-section,
  .page-sports__how-to-bet-section,
  .page-sports__strategies-section,
  .page-sports__promotions-section,
  .page-sports__fair-security-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Other Content Modules Mobile */
  .page-sports__section-title {
    font-size: 1.8em !important;
  }

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

  .page-sports__features-grid,
  .page-sports__sports-list,
  .page-sports__strategy-grid,
  .page-sports__security-grid,
  .page-sports__promotions-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-item,
  .page-sports__sport-item,
  .page-sports__strategy-item,
  .page-sports__security-item,
  .page-sports__promotion-item {
    padding: 20px;
  }

  .page-sports__feature-title,
  .page-sports__sport-title,
  .page-sports__strategy-title,
  .page-sports__promotion-title,
  .page-sports__security-title {
    font-size: 1.3em;
  }

  .page-sports__steps-list {
    margin: 20px auto;
  }

  .page-sports__step-item {
    padding: 15px 20px;
  }

  .page-sports__step-title {
    font-size: 1.2em;
  }

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

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

  .page-sports__image-center {
    max-width: 90%;
  }
}