.page-sports {
  background-color: #F4F7FB;
  color: #1F2D3D;
  padding-bottom: 40px; /* Ensure some space at the bottom */
}

.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  position: relative;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 15px 15px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px 50px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
  background-color: rgba(47, 107, 255, 0.85); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-sports__hero-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  /* No fixed font-size, rely on clamp for responsiveness if needed, but not fixed large */
}

.page-sports__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #E0EFFF;
}

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

.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1F2D3D;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.page-sports__section-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #1F2D3D;
}

/* General Section Styling */
.page-sports__intro-section,
.page-sports__betting-types-section,
.page-sports__promotions-section,
.page-sports__how-to-section,
.page-sports__faq-section {
  padding: 40px 20px;
  margin-bottom: 40px;
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Feature Items */
.page-sports__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-item {
  text-align: center;
  background-color: #F4F7FB;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-sports__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-sports__feature-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #1F2D3D;
}

/* Betting Types Grid */
.page-sports__type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-sports__type-card {
  background-color: #F4F7FB;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__type-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-sports__type-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1F2D3D;
  margin-bottom: 20px;
}

/* Promotions */
.page-sports__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__promo-card {
  background-color: #F4F7FB;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-sports__promo-image {
  width: 100%;
  height: 280px; /* Consistent height for promo images */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__promo-card h3,
.page-sports__promo-card p,
.page-sports__promo-card a {
  padding: 0 25px;
}

.page-sports__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-sports__promo-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1F2D3D;
  margin-bottom: 20px;
}

/* How-to Steps */
.page-sports__how-to-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__step-item {
  background-color: #F4F7FB;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  border-top: 5px solid #2F6BFF;
}

.page-sports__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

.page-sports__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-sports__step-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1F2D3D;
  margin-bottom: 20px;
}

/* FAQ */
.page-sports__faq-list {
  margin-top: 40px;
}

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

.page-sports__faq-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-sports__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item.is-active .page-sports__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-sports__faq-answer p {
  margin: 0;
}

/* Buttons */
.page-sports__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px; /* Ensure touch target size */
  box-sizing: border-box;
  font-size: 1rem;
}

.page-sports__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-sports__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
  transform: translateY(-2px);
}

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

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

.page-sports__btn--small {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.page-sports__btn--center {
  margin: 30px auto 0 auto;
  display: block;
  max-width: 250px;
}

/* Responsive Design */
@media (max-width: 849px) {
  .page-sports__hero-image-wrapper {
    margin-bottom: 20px; /* Add space between image and content */
  }

  .page-sports__hero-content {
    margin-top: 0; /* Remove negative margin for mobile */
    padding: 25px 15px 40px;
    border-radius: 0;
    background-color: #2F6BFF; /* Solid color for mobile hero content */
  }

  .page-sports__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Responsive H1 font size */
  }

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

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

  .page-sports__btn--primary, .page-sports__btn--secondary {
    width: 100%;
    max-width: 300px; /* Constrain button width */
    margin: 0 auto;
  }

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

  .page-sports__intro-features,
  .page-sports__type-grid,
  .page-sports__promo-cards,
  .page-sports__how-to-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__feature-image,
  .page-sports__promo-image {
    height: 200px; /* Adjust height for smaller screens */
    min-width: 200px;
    min-height: 200px;
  }

  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

@media (max-width: 549px) {
  .page-sports__section-title {
    font-size: 1.8rem;
  }

  .page-sports__section-description {
    font-size: 0.95rem;
  }

  .page-sports__btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-sports__feature-item, .page-sports__type-card, .page-sports__promo-card, .page-sports__step-item {
    padding: 20px;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-sports img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure content area images are at least 200px wide */
.page-sports__intro-features img,
.page-sports__promo-cards img,
.page-sports__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no image filter is applied */
.page-sports img {
  filter: none;
}