.featured-item {
  /* Ensure the item has consistent spacing and border radius */
  border-radius: 10px;
  padding: 20px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.featured-icon {
  /* Center the icon and provide spacing */
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-desc {
  /* Center the text below the icon */
  text-align: center;
}

.featured-item .first-word {
  /* Style the first word to stand out */
  font-weight: bold;
  font-size: 18px;
  color: #000000;
  /* Customize color as needed */
  display: block;
}

.featured-desc p {
  /* Style the paragraph text below the heading */
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  /* Customize color as needed */
}

/* Keep desktop hero slide rendering stable on live hosting */
@media (min-width: 768px) {
  .banner-slider.banner-two {
    position: relative;
    overflow: hidden;
  }

  .banner-slider.banner-two .swiper-wrapper,
  .banner-slider.banner-two .swiper-slide,
  .banner-slider.banner-two .banner-content {
    min-height: 720px;
  }

  .banner-slider.banner-two.swiper-fade .swiper-slide {
    transition-property: opacity;
    opacity: 0 !important;
  }

  .banner-slider.banner-two.swiper-fade .swiper-slide-active {
    opacity: 1 !important;
  }
}

/* Mobile banner slides like screenshot (image on top, content below) */
@media (max-width: 767.98px) {
  .banner-slider.banner-two .swiper-slide {
    height: 300px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .banner-slider.banner-two .swiper-slide .slider-img {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    background-color: #f3f6fb;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 24px;
  }

  .banner-slider.banner-two .swiper-slide .banner-content {
    position: static !important;
    padding: 0 !important;
  }

  .banner-slider.banner-two .swiper-slide .banner-content .container,
  .banner-slider.banner-two .swiper-slide .banner-content .row,
  .banner-slider.banner-two .swiper-slide .banner-content [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .banner-slider.banner-two .swiper-slide .banner-text {
    margin-left: 0 !important;
  }

  .banner-slider.banner-two .swiper-slide h1,
  .banner-slider.banner-two .swiper-slide h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 0 !important;
  }

  /* Remove extra <br><br> spacing used for desktop banner */
  .banner-slider.banner-two .swiper-slide br {
    display: none;
  }
}

/* Mobile-only swipe slider for "Our Departments" cards */
@media (max-width: 767.98px) {
  .banner-slider.banner-two {
    padding: 0 10px;
  }

  .banner-slider.banner-two .swiper-slide {
    min-height: auto !important;
    height: auto !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .banner-slider.banner-two .swiper-slide .slider-img {
    position: relative !important;
    width: 100%;
    height: 190px;
    border-radius: 16px;
    background-color: #f3f6fb;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 18px;
  }

  .banner-slider.banner-two .swiper-slide .slider-img::before {
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.55) 100%
    );
  }

  .banner-slider.banner-two .swiper-slide .banner-content {
    position: static !important;
    min-height: auto !important;
    padding: 0 !important;
    display: block !important;
  }

  .banner-slider.banner-two .swiper-slide .banner-content .container,
  .banner-slider.banner-two .swiper-slide .banner-content .row,
  .banner-slider.banner-two .swiper-slide .banner-content [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  .banner-slider.banner-two .swiper-slide .banner-text {
    margin: 0 !important;
    text-align: center;
  }

  .banner-slider.banner-two .swiper-slide h1,
  .banner-slider.banner-two .swiper-slide h2 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px !important;
  }

  .banner-slider.banner-two .swiper-slide p,
  .banner-slider.banner-two .swiper-slide li,
  .banner-slider.banner-two .swiper-slide ul,
  .banner-slider.banner-two .swiper-slide .banner-content p {
    max-width: 100% !important;
    font-size: 15px;
    line-height: 1.6;
  }

  .banner-slider.banner-two .swiper-slide ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
  }

  .banner-slider.banner-two .swiper-slide br {
    display: none;
  }

  #banner-swiper-button-next,
  #banner-swiper-button-prev {
    display: none;
  }

  .services-mobile-slider {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .services-mobile-slider > [class*="col-"] {
    flex: 0 0 85%;
    max-width: 85%;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  .services-mobile-slider::-webkit-scrollbar {
    display: none;
  }

  /* Remove grid spacing when converted to slider */
  .services-mobile-slider .mt-6,
  .services-mobile-slider .mt-md-0,
  .services-mobile-slider .mt-lg-0 {
    margin-top: 0 !important;
  }

  /* Match the rounded-card feel */
  .services-mobile-slider .post-card.style-2 {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    background: #fff;
  }

  .services-mobile-slider .post-card.style-2 .post-image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.motherhood-title-mobile {
  display: none;
}

/* Mobile slider polish */
@media (max-width: 767.98px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
    min-height: 150px;
    background-position: center center !important;
    background-size: cover !important;
  }
  .banner-slider .slider-img::before,
  .banner-slider .slider-img::after {
    content: none !important;
    background: none !important;
    opacity: 0 !important;
  }

  .banner-slider .banner-content {
    padding: 18px 0 16px;
  }

  .banner-slider .banner-text {
    margin-left: 0 !important;
    padding: 14px;
    border-radius: 12px;
    background: rgba(229, 225, 225, 0.45);
  }

  .banner-slider .banner-text h1,
  .banner-slider .banner-text h2 {
    font-size: clamp(1.2rem, 5.6vw, 1.8rem);
    line-height: 1.35;
    margin-bottom: 10px !important;
  }

  .banner-slider .banner-text p,
  .banner-slider .banner-text li {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  #banner-swiper-button-next,
  #banner-swiper-button-prev,
  #portfolio-swiper-button-next,
  #portfolio-swiper-button-prev {
    width: 38px;
    height: 38px;
    margin-top: 0;
  }

  .services-mobile-slider > [class*="col-"] {
    margin-top: 16px !important;
  }

  .services-mobile-slider .post-card {
    margin-bottom: 0;
  }

  .services-mobile-slider .post-image img {
    width: 100%;
    border-radius: 12px 12px 0 0;
  }

  .services-mobile-slider .post-desc {
    padding: 14px;
  }

  .team-swiper .team-member {
    border-radius: 12px;
    overflow: hidden;
  }

  .team-swiper .team-images iframe,
  .portfolio-swiper3 iframe {
    width: 100% !important;
    max-width: 100%;
    height: 220px !important;
    border-radius: 12px;
  }

  #team-pagination.swiper-pagination {
    margin-top: 10px;
  }

  .video-gallery {
    padding: 22px 14px;
  }

  .video-gallery h2 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }

  .video-slider-wrapper {
    gap: 10px;
  }

  .video-slider .video-card {
    min-width: 82%;
  }

  .video-slider .video-card iframe {
    width: 100%;
    height: 210px;
    border-radius: 12px;
  }

  .video-slider-wrapper .nav-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .motherhood-title-mobile {
    display: block;
  }

  .motherhood-title-desktop,
  .motherhood-offers {
    display: none;
  }
}
