.page-sports {
  /* Main content area styles */
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  background-color: #000000; /* Fallback for body background */
}

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

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

.page-sports__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.5) 50%, transparent);
  width: 100%;
  max-width: 800px;
  margin-top: -150px; /* Overlap slightly for visual effect, but text is below image */
  color: #ffffff;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-sports__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
}

.page-sports__dark-section {
  background-color: #0d0d0d; /* Assuming var(--black-color) is dark */
  color: #ffffff;
  padding: 80px 0;
}

.page-sports__dark-section .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__dark-section .page-sports__text-block {
  color: #f0f0f0;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.page-sports__about-section .page-sports__text-block {
  text-align: justify;
}

.page-sports__sports-categories {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-sports__sports-categories .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__sports-categories .page-sports__section-description {
  color: #f0f0f0;
}

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

.page-sports__card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-sports__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 1rem;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  margin: 0 10px 10px 10px;
  box-sizing: border-box;
}

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

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

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

.page-sports__secondary-button-wrapper {
  padding: 0 20px 20px 20px; /* Ensure button aligns with card padding */
  margin-top: auto; /* Push button to bottom of card */
}

.page-sports__card .page-sports__btn-secondary {
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
}

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

.page-sports__live-betting {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-sports__live-betting .page-sports__btn-primary {
  margin-top: 30px;
}

.page-sports__betting-guides {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-sports__betting-guides .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__betting-guides .page-sports__section-description {
  color: #f0f0f0;
}

.page-sports__promotions {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-sports__promotions .page-sports__btn-primary {
  margin-top: 30px;
}

.page-sports__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-sports__faq-section .page-sports__section-title {
  color: #26A9E0;
}

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

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

.page-sports__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #3a3a3a;
  color: #26A9E0;
  border-bottom: 1px solid #4a4a4a;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

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

.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d;
}

.page-sports__cta-section .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__cta-section .page-sports__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-sports__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  min-width: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-sports__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-bottom: 40px;
  }

  .page-sports__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-sports__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

  .page-sports__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .page-sports__dark-section, .page-sports__sports-categories, .page-sports__live-betting, .page-sports__betting-guides, .page-sports__promotions, .page-sports__faq-section, .page-sports__cta-section {
    padding: 50px 0;
  }

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

  .page-sports__card {
    margin-bottom: 20px;
  }

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

  /* All image containers */
  .page-sports__hero-image-wrapper,
  .page-sports__card,
  .page-sports__grid-layout,
  .page-sports__faq-item,
  .page-sports__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Important for preventing overflow */
  }

  /* Mobile button responsiveness */
  .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;
    margin: 10px 0 !important; /* Adjust margins for stacked buttons */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Button containers */
  .page-sports__cta-content {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-sports__card .page-sports__btn-secondary {
    width: calc(100% - 40px) !important;
    margin: 0 20px 20px 20px !important;
  }

  .page-sports__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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