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

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__section-title--light {
  color: #ffffff;
}

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

.page-sports__section-description--light {
  color: #ffffff;
}

/* Buttons */
.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;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

.page-sports__btn-primary--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px; /* Limit width for centered buttons */
}

.page-sports__btn-text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-sports__btn-text-link:hover {
  color: #1a8cc4;
  text-decoration: underline;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
}

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

.page-sports__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

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

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

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

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

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
  background-color: #1c1c1c;
}

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

.page-sports__feature-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__feature-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__feature-heading {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

/* Popular Sports Section */
.page-sports__popular-sports-section {
  padding: 80px 0;
  background-color: #26A9E0;
}

.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  align-items: center;
}

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
}

.page-sports__sport-heading {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-sports__sport-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-sports__sports-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  grid-column: span 2; /* Spans across two columns on larger screens */
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-sports__guide-item {
  background-color: #1c1c1c;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__guide-heading {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__guide-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-sports__guide-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #2a2a2a;
}

.page-sports__promotions-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-sports__promotion-image {
  flex: 1 1 400px;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.page-sports__promotion-list {
  flex: 1 1 400px;
  list-style: none;
  padding: 0;
  color: #ffffff;
}

.page-sports__promotion-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-sports__promotion-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-sports__live-betting-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-sports__live-betting-image {
  flex: 1 1 400px;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.page-sports__live-betting-benefits {
  flex: 1 1 400px;
  list-style: none;
  padding: 0;
  color: #ffffff;
}

.page-sports__live-betting-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-sports__live-betting-item::before {
  content: '•';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.5em;
  top: -5px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #2a2a2a;
}

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

.page-sports__faq-item {
  background-color: #1c1c1c;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

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

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* For details summary */
}

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

.page-sports__faq-answer {
  padding: 20px;
  background-color: #1c1c1c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  font-size: 1em;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
}

.page-sports__cta-content {
  max-width: 800px;
}

/* Image and Video responsive styles */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sports video,
.page-sports__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-sports__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

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

  .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;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section-title {
    font-size: 2em;
  }

  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__sports-image {
    grid-column: span 1; /* Reset span for mobile */
  }

  .page-sports__promotions-content,
  .page-sports__live-betting-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__feature-image,
  .page-sports__promotion-image,
  .page-sports__live-betting-image,
  .page-sports__guide-image,
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !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;
    overflow: hidden !important;
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Specific padding for sections in mobile to prevent overflow */
  .page-sports__features-section,
  .page-sports__popular-sports-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__live-betting-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 40px 0 !important;
  }

  .page-sports__feature-item,
  .page-sports__sport-card,
  .page-sports__guide-item,
  .page-sports__faq-item {
    padding: 20px !important;
  }
}