.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-sports__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_sports:1920x1080:football,stadium,excitement,lulu88,betting]') center center / cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Ensure hero section is tall enough */
  position: relative;
  overflow: hidden; /* Prevent video overflow */
}

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

.page-sports__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding in width */
  text-align: center;
}

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

.page-sports__btn-primary:hover {
  background-color: #1e87b8;
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-sports__btn-login {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-sports__btn-login:hover {
  background-color: #c76706;
  transform: translateY(-2px);
}

.page-sports__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-sports__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__section--dark {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter on dark background */
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-sports__section--light {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__section--center-text {
  text-align: center;
}

.page-sports__title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__subtitle {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-sports__section--light .page-sports__subtitle,
.page-sports__section--light .page-sports__card-title {
  color: #333333;
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-sports__section--light .page-sports__paragraph {
  color: #555555;
}

.page-sports__paragraph--center {
  text-align: center;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light card on dark section */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text on dark card */
}

.page-sports__card:hover {
  transform: translateY(-5px);
}

.page-sports__section--light .page-sports__card {
  background-color: #f8f8f8; /* Light card on light section */
  color: #333333; /* Dark text on light card */
}

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

.page-sports__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-sports__section--light .page-sports__card-text {
  color: #555555;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure images behave as blocks for max-width/height auto */
  margin-left: auto;
  margin-right: auto;
}

.page-sports__image-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-sports__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__text-link:hover {
  text-decoration: underline;
}

/* FAQ styles */
.page-sports__faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-sports__faq-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

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

/* For <details> tag, hide default marker */
.page-sports__faq-item summary {
  list-style: none;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__title {
    font-size: 2em;
  }
  .page-sports__hero-section {
    min-height: 500px;
  }
}

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

  .page-sports__hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-login,
  .page-sports__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__title {
    font-size: 1.8em;
  }
  .page-sports__subtitle {
    font-size: 1.5em;
  }
  .page-sports__paragraph {
    font-size: 1em;
  }
  .page-sports__grid {
    grid-template-columns: 1fr;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }

  /* Images, Videos, and Containers for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video,
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure hero section has correct offset */
  }
  .page-sports__faq-section {
    padding: 40px 15px;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px;
  }
}