/* Our Services — mobile-first */
.services-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (max-width: 767px) {
  .services-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

.services-section .title-wrap {
  margin-bottom: 24px;
}

/* Nav: native horizontal scroll on mobile (slick disabled) */
.services-nav-wrap {
  margin: 0 -4px 20px;
}

@media (max-width: 767px) {
  .services-nav-wrap {
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 15px 4px;
    overflow: hidden;
  }

  .services-section .js-nav-pills-carousel.services-nav-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    opacity: 1 !important;
    margin: 0;
    padding-bottom: 8px;
  }

  .services-section .services-nav-scroll .nav-link {
    flex: 0 0 auto;
    width: 132px !important;
    min-width: 132px;
    max-width: none !important;
    margin: 0 !important;
    scroll-snap-align: start;
    padding: 14px 10px 12px !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: #fff;
  }

  .services-section .services-nav-scroll .nav-link span {
    height: auto !important;
    overflow: visible !important;
    margin-top: 10px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }

  .services-section .services-nav-scroll .nav-link.active {
    box-shadow: 0 6px 18px rgba(229, 66, 130, 0.35);
  }
}

.services-section .nav-link img {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .services-section .nav-link img {
    width: 44px;
    height: 44px;
  }
}

/* Default pill card — must not override theme hover background */
.services-section .nav-pills-icons .nav-link {
  background: #fff;
  color: #444;
}

.services-section .nav-pills-icons .nav-link:hover,
.services-section .nav-pills-icons .nav-link.active {
  background: #e54282;
  color: #fff;
}

.services-section .nav-pills-icons .nav-link:hover span,
.services-section .nav-pills-icons .nav-link.active span {
  color: #fff;
}

/* Keep tab icons visible — do not invert/filter webp icons */
.services-section .nav-pills-icons .nav-link img {
  filter: none;
  opacity: 1;
}

/* Desktop / tablet slick tweaks */
@media (min-width: 768px) {
  .services-section .nav-pills-icons .nav-link {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

  .services-section .nav-pills-icons .nav-link span {
    height: auto;
    min-height: 40px;
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .services-section .services-nav-scroll .nav-link:hover,
  .services-section .services-nav-scroll .nav-link.active {
    background: #e54282;
    color: #fff;
  }
}

/* Tab panels */
.services-tab-content {
  position: relative;
}

.services-section .tab-content > .tab-pane.fade.show {
  opacity: 1;
}

.services-section .tab-pane {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .services-section .tab-pane {
    padding: 28px 24px 32px;
  }
}

.services-section .tab-bg {
  display: none;
}

.services-section .service-pane-row {
  align-items: center;
}

.services-section .service-pane-row .col-md-6.h-100 {
  height: auto !important;
}

.services-section .service-pane-row img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .services-section .service-pane-row {
    flex-direction: column;
    margin: 0;
  }

  .services-section .service-pane-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .services-section .service-pane-row .col-md-6:first-child {
    margin-bottom: 16px;
  }

  .services-section .service-pane-text h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .services-section .service-pane-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .services-section .marker-list-md {
    font-size: 0.9rem;
    padding-left: 1.1rem;
  }

  .services-section .service-pane-text .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 16px !important;
  }
}

@media (min-width: 768px) {
  .services-section .service-pane-text h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
}
