/* keep your original style mostly unchanged - pasted to ensure context */
.service-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #FFF5F3;
  border-radius: 18px;
  position: sticky;
  top: 100px;
  gap: 30px;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.text-underline {
  display: inline-block;
  border-bottom: 3px solid #F38221;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.service-card p {
  margin-bottom: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.doctor-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* NOTE: your original .doctor-card nth-child rules referenced .doctor-card, not .service-card.
   if you need the stacking z-index effect on service cards, you can duplicate those rules for .service-card.
*/

/* Small, necessary override:
   Sticky elements inside a horizontal/drag container break dragging/swiping on many devices.
   We disable sticky for the slides so Swiper works smoothly.
   This change is minimal and safe; it only affects .service-card inside the Swiper slides.
*/
.serviceSwiper .service-card {
  position: relative !important;
  top: auto !important;
}

/* On hover - keep your effect */
.serviceSwiper .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Responsive Fixes */
@media (max-width: 992px) {
  .service-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .text-underline {
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .service-card {
    gap: 20px;
    overflow:hidden;
  }
}

/* Swiper pagination and arrows (adjust if you already have global styles) */
.serviceSwiper .swiper-pagination {
    text-align: left;
    padding-left: 15px;
    bottom: 0px !important;
  }

  .serviceSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d6d6d6;
    opacity: 1;
  }

  .serviceSwiper .swiper-pagination-bullet-active,
  .serviceSwiper .swiper-pagination-bullet-active {
    background: #F38221 !important;
  }