.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-sports__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-sports__btn-primary:hover {
  background: #c96a06;
}

.page-sports__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  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;
  border: 2px solid #26A9E0;
  cursor: pointer;
  font-size: 1em;
}

.page-sports__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

.page-sports__section {
  padding: 60px 20px;
}

.page-sports__introduction, .page-sports__diverse-sports, .page-sports__guide, .page-sports__faq {
  background: #ffffff;
  color: #333333;
}

.page-sports__bet-types, .page-sports__live-stream, .page-sports__promotions, .page-sports__cta {
  background: #26A9E0;
  color: #ffffff;
}

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

.page-sports__introduction .page-sports__section-title,
.page-sports__diverse-sports .page-sports__section-title,
.page-sports__guide .page-sports__section-title,
.page-sports__faq .page-sports__section-title {
  color: #000000;
}

.page-sports__bet-types .page-sports__section-title,
.page-sports__live-stream .page-sports__section-title,
.page-sports__promotions .page-sports__section-title,
.page-sports__cta .page-sports__section-title {
  color: #ffffff;
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.page-sports__dark-bg .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__light-bg .page-sports__text-block {
  color: #333333;
}

.page-sports__text-link {
  color: #EA7C07;
  text-decoration: underline;
  font-weight: bold;
}

.page-sports__text-link:hover {
  color: #c96a06;
}

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

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

.page-sports__dark-bg .page-sports__list-item {
  color: #f0f0f0;
}

.page-sports__light-bg .page-sports__list-item {
  color: #333333;
}

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

.page-sports__grid-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-sports__sport-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 1em;
  color: #555555;
}

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

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

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__step-card .page-sports__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__step-card .page-sports__card-text {
  color: #555555;
  margin-bottom: 20px;
}

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

.page-sports__faq-item {
  background: #f9f9f9;
  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: 18px 25px;
  cursor: pointer;
  background: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #26A9E0;
}

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

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

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

.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 0 10px 0;
  color: #555555;
}

.page-sports__cta-content {
  text-align: center;
  padding: 40px 15px;
}

.page-sports__cta-content .page-sports__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-sports__cta-content .page-sports__text-block {
  font-size: 1.2em;
  margin-bottom: 35px;
  color: #f0f0f0;
}

/* Responsive adjustments */
@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;
  }
  .page-sports__cta-content .page-sports__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    min-height: 500px;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__btn-primary, .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px !important;
    font-size: 1em !important;
  }
  .page-sports__section {
    padding: 40px 15px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__text-block {
    font-size: 1em;
  }
  .page-sports__list-item {
    font-size: 1em;
  }
  .page-sports__image-grid, .page-sports__sports-grid, .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__card-image {
    height: 180px;
  }
  .page-sports__video-wrapper {
    margin: 20px auto;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-sports__faq-question h3 {
    font-size: 1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
  .page-sports__cta-content .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__cta-content .page-sports__text-block {
    font-size: 1em;
  }
  /* Ensure all images are responsive and do not overflow */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__cta-content .page-sports__section-title {
    font-size: 1.6em;
  }
}