/* Site overrides — load after style.css / responsive.css */

/*
 * Equal, moderate section spacing site-wide.
 * Was 110px — keep breathing room (not cramped).
 */
:root {
  --section-py: 72px;
}

.section-title {
  margin-bottom: 28px;
}

/* Our Offices: keep readable weight, not heavy bold */
.footer-widget__office .footer-widget__title {
  font-weight: 500 !important;
}

.footer-widget__office-list li p,
.footer-widget__office-list li h5 {
  font-weight: 400 !important;
}

/* Header matches footer dark theme + white logo */
.main-header,
.stricky-header.main-menu {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(165deg, #156f9f 0%, #0c2340 68%, #091a2e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.main-menu__logo:before {
  background-color: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
}

.main-menu__main-menu-box-outer-top {
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

.main-menu__main-menu-box-outer-top:before {
  background-color: rgba(255, 255, 255, 0.14) !important;
}

.main-menu__contact-list li .icon i,
.main-menu__contact-list li .text p,
.main-menu__contact-list li .text p a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.main-menu__contact-list li .text p a:hover {
  color: var(--mediplace-base) !important;
}

.main-menu__social a {
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.main-menu__social a:hover {
  color: var(--mediplace-white) !important;
  border-color: var(--mediplace-base) !important;
}

.main-menu .main-menu__list > li > a,
.stricky-header .main-menu__list > li > a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.main-menu .main-menu__list > li.current > a,
.main-menu .main-menu__list > li:hover > a,
.stricky-header .main-menu__list > li.current > a,
.stricky-header .main-menu__list > li:hover > a {
  color: var(--mediplace-base) !important;
}

.main-menu .main-menu__list > li.dropdown > a:after,
.stricky-header .main-menu__list > li.dropdown > a:after {
  color: rgba(255, 255, 255, 0.85) !important;
}

.main-menu__search,
.main-menu__cart {
  color: rgba(255, 255, 255, 0.92) !important;
}

.main-menu__search:hover,
.main-menu__cart:hover {
  color: var(--mediplace-base) !important;
}

.stricky-header.main-menu {
  box-shadow: 0 10px 30px rgba(9, 26, 46, 0.28);
}

/* Keep language switcher visible in sticky header */
.stricky-header .main-menu__main-menu-box > .main-menu__gtranslate {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

/* Services packages carousel: side nav arrows hidden (drag only) */
.main-service-one__carousel-wrap {
  position: relative;
  overflow: visible;
}

.main-service-one .container {
  overflow: visible;
}

.main-service-one__carousel {
  overflow: hidden;
  cursor: grab;
}

.main-service-one__carousel .swiper-wrapper {
  align-items: stretch;
}

.main-service-one__nav {
  display: none !important;
}

/* Doctor / hospital detail: round section + contact theme */
.hospital-detail-section,
.doctor-detail-template .hospital-detail-section,
.hospital-detail-template .hospital-detail-section {
  overflow: hidden !important;
  border-radius: 28px !important;
}

.hospital-detail-contact .hospitals-cta__inner,
.doctor-detail-contact .hospitals-cta__inner {
  overflow: hidden !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #20a7c9 0%, #0c2340 100%) !important;
}

@media (max-width: 767px) {
  .hospital-detail-section,
  .doctor-detail-template .hospital-detail-section,
  .hospital-detail-template .hospital-detail-section,
  .hospital-detail-contact .hospitals-cta__inner,
  .doctor-detail-contact .hospitals-cta__inner {
    border-radius: 22px !important;
  }
}

/* Home appointment section — contact form textarea */
.appointment-three__input textarea {
  position: relative;
  display: block;
  width: 100%;
  min-height: 120px;
  border-radius: 7px;
  background-color: var(--mediplace-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--mediplace-gray);
  font-size: 16px;
  font-family: var(--mediplace-font);
  font-weight: 400;
  outline: none;
  padding: 18px 25px;
  resize: vertical;
  transition: all 500ms ease;
}

/* Homepage hero: keep theme layout; wrap subtitle to ~2 lines */
.banner-one__content {
  max-width: 540px;
}

.banner-one__text {
  display: block;
  max-width: 520px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.65;
  word-wrap: break-word;
}

.banner-one__img a,
.banner-one__review-img a {
  display: block;
}

/* Match live site: compact "find the best doctors" badge */
.banner-one__find-doctor {
  padding: 12px 28px 12px 12px !important;
  gap: 12px !important;
  border-radius: 60px !important;
  transform: rotate(-28deg) !important;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.12) !important;
}

.banner-one__find-doctor-icon {
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0;
}

.banner-one__find-doctor-icon span {
  font-size: 32px !important;
}

.banner-one__find-doctor-title {
  font-size: 16px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.banner-one__find-doctor-text {
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 2px 0 0 !important;
  color: rgba(12, 35, 64, 0.65);
}

@media (max-width: 1199px) {
  .banner-one__content,
  .banner-one__text {
    max-width: 480px;
  }
}

@media (max-width: 991px) {
  .banner-one__content,
  .banner-one__text {
    max-width: 100%;
  }
}

/* Homepage doctors: equal image size + visible name */
.team-one__img-box {
  overflow: visible !important;
}

.team-one__img {
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  aspect-ratio: 1 / 1.15 !important;
  background: #eef7fb !important;
  border-radius: 18px !important;
  -webkit-mask: none !important;
  mask: none !important;
  mix-blend-mode: normal !important;
}

.team-one__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  padding: 0 !important;
}

.team-one__content {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
}

.team-one__content-inner {
  background: transparent !important;
  padding: 16px 4px 4px !important;
  border-radius: 0 !important;
}

.team-one__carousel .owl-stage {
  display: flex;
}

.team-one__carousel .owl-stage-outer {
  margin-left: -10px;
  padding: 8px 0 18px 10px;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.team-one__carousel.owl-drag .owl-stage-outer {
  cursor: grabbing;
}

.team-one__carousel .owl-item {
  display: flex;
  flex: 0 0 auto !important;
  max-width: none !important;
}

.team-one__carousel .owl-item a,
.team-one__carousel .owl-item img {
  -webkit-user-drag: none;
  user-select: none;
}

.team-one__carousel.owl-theme .owl-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.team-one__name {
  display: block !important;
  margin: 0 0 8px !important;
  color: #0c2340 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.team-one__name a {
  color: inherit !important;
}

.team-one__designation {
  display: inline-flex !important;
  max-width: 100%;
  margin: 0 0 8px !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

.team-one__content-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  height: 100%;
}

.team-one__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mediplace-base);
  transition: color 0.25s ease, gap 0.25s ease;
}

.team-one__link:hover {
  color: var(--mediplace-black);
  gap: 12px;
}

.team-one__link .fas {
  font-size: 12px;
}

/* Homepage hospitals: consistent image crop + clickable image */
.top-hospitals-one__img {
  aspect-ratio: 16 / 10;
}

.top-hospitals-one__img a {
  display: block;
  width: 100%;
  height: 100%;
}

.top-hospitals-one__img img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Hospital cards: fixed 4-line text area with in-box scroll */
.top-hospitals-one__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.top-hospitals-one__text-wrap.clamp-read-more {
  margin: 0 0 14px;
  height: calc(1.625em * var(--clamp-lines, 4));
  max-height: calc(1.625em * var(--clamp-lines, 4));
  min-height: calc(1.625em * var(--clamp-lines, 4));
  overflow: hidden;
  pointer-events: none; /* let carousel capture drag */
}

.top-hospitals-one__text.clamp-read-more__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.625;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 4);
  padding-right: 0;
  scrollbar-width: none;
}

.top-hospitals-one__link {
  margin-top: auto;
}

/* Hospital carousel nav: keep arrows above cards (mobile tap fix) */
.top-hospitals-one__grid.top-hospitals-one__carousel {
  position: relative;
  z-index: 1;
}

.top-hospitals-one__carousel.owl-theme .owl-stage-outer {
  z-index: 1;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.top-hospitals-one__carousel.owl-theme.owl-drag .owl-stage-outer {
  cursor: grabbing;
}

.top-hospitals-one__carousel .owl-item a,
.top-hospitals-one__carousel .owl-item img {
  -webkit-user-drag: none;
  user-select: none;
}

.top-hospitals-one__carousel.owl-theme .owl-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.gallery-one__carousel.owl-theme .owl-nav,
.patient-stories__carousel.owl-theme .owl-nav,
.testimonial-one__carousel.owl-theme .owl-nav,
.blog-one__carousel.owl-theme .owl-nav,
.team-one__carousel.owl-theme .owl-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.blog-one__carousel .owl-stage-outer,
.gallery-one__carousel .owl-stage-outer,
.patient-stories__carousel .owl-stage-outer,
.testimonial-one__carousel .owl-stage-outer {
  touch-action: pan-x pan-y;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

/*
  Mobile home strips — Flipkart-style native horizontal scroll.
  Vertical page scroll stays free; left/right is momentum + snap.
*/
@media (max-width: 767px) {
  .js-hscroll-native,
  .owl-carousel.js-hscroll-native {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 16px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: auto;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
    cursor: grab;
    scrollbar-width: none;
  }

  .js-hscroll-native::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .js-hscroll-native > * {
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    min-width: 82% !important;
    scroll-snap-align: start;
    float: none !important;
    margin: 0 !important;
  }

  .js-hscroll-native.blog-one__carousel > *,
  .js-hscroll-native.team-one__carousel > *,
  .js-hscroll-native.testimonial-one__carousel > *,
  .js-hscroll-native.gallery-one__carousel > *,
  .js-hscroll-native.patient-stories__carousel > *,
  .js-hscroll-native.top-hospitals-one__carousel > * {
    box-sizing: border-box !important;
  }

  .js-hscroll-native .top-hospitals-one__card,
  .js-hscroll-native .team-one__single,
  .js-hscroll-native .blog-one__single,
  .js-hscroll-native .testimonial-one__single,
  .js-hscroll-native .gallery-one__single {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  .top-hospitals-one__filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    gap: 8px !important;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .top-hospitals-one__filters::-webkit-scrollbar {
    display: none;
  }

  .top-hospitals-one__filters .top-hospitals-one__filter-btn {
    flex: 0 0 auto !important;
    white-space: nowrap;
  }

  /* Packages Swiper in cssMode also gets smooth native feel */
  .main-service-one__carousel.swiper-css-mode {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
  }
}

.gallery-one__carousel.owl-drag .owl-stage-outer,
.patient-stories__carousel.owl-drag .owl-stage-outer,
.testimonial-one__carousel.owl-drag .owl-stage-outer,
.blog-one__carousel.owl-drag .owl-stage-outer {
  cursor: grabbing;
}

.gallery-one__carousel .owl-item a,
.gallery-one__carousel .owl-item img,
.patient-stories__carousel .owl-item a,
.patient-stories__carousel .owl-item img,
.testimonial-one__carousel .owl-item a,
.testimonial-one__carousel .owl-item img,
.blog-one__carousel .owl-item a,
.blog-one__carousel .owl-item img {
  -webkit-user-drag: none;
  user-select: none;
}

.main-service-one__nav {
  display: none !important;
}

.main-service-one__carousel {
  cursor: grab;
}

.main-service-one__carousel.swiper-container-grabbing,
.main-service-one__carousel.swiper-grabbing {
  cursor: grabbing;
}

/* Decorative team glow should never block taps/clicks above it */
.team-one__shape-2 {
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Search page */
.search-page {
  padding: 48px 0 80px;
}

.search-page__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 720px;
  margin-top: 22px;
}

.search-page__form input[type="search"] {
  flex: 1 1 260px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(12, 35, 64, 0.14);
  border-radius: 12px;
  font-size: 16px;
}

.search-page__sections {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.search-page__block h2 {
  margin: 0 0 14px;
  color: #0c2340;
  font-size: 22px;
  font-weight: 900;
}

.search-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.search-page__card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-page__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 35, 64, 0.08);
}

.search-page__card img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef7fb;
}

.search-page__card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #0c2340;
}

.search-page__card p {
  margin: 0;
  color: rgba(12, 35, 64, 0.58);
  font-size: 13px;
}

@media (max-width: 991px) {
  .search-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .search-page__grid {
    grid-template-columns: 1fr;
  }
}

/* Footer newsletter status */
.footer-widget__newsletter-form {
  position: relative;
}

.footer-widget__newsletter-result {
  width: 100%;
  margin-top: 10px;
  clear: both;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #9fe8c5;
}

/* ========== Mobile-only UI polish (desktop unchanged) ========== */
@media (max-width: 767px) {
  /* Fixed header: spacer matches header height/color so no white strip */
  .page-wrapper {
    padding-top: 56px !important;
    background-image: linear-gradient(
      165deg,
      #156f9f 0%,
      #0c2340 68%,
      #091a2e 100%
    ) !important;
    background-repeat: no-repeat !important;
    background-position: 0 0 !important;
    background-size: 100% 56px !important;
    background-color: #fff !important;
  }

  .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: none !important;
    z-index: 9999 !important;
  }

  .main-header .container {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Mobile drawer must sit above fixed header */
  .mobile-nav__wrapper {
    z-index: 10050 !important;
  }

  .mobile-nav__wrapper.expanded {
    z-index: 10050 !important;
  }

  .main-menu__wrapper-inner {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Logo slightly larger */
  .main-menu__logo img,
  .main-header .main-menu__logo img {
    width: 148px !important;
    max-width: 148px !important;
    height: auto !important;
  }

  /* Language switcher shorter */
  .main-menu__gtranslate .main-menu__lang-toggle {
    padding: 4px 8px !important;
    gap: 5px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    min-height: 0 !important;
    border-radius: 999px !important;
  }

  .main-menu__gtranslate .main-menu__lang-flag-img,
  .main-menu__gtranslate .main-menu__lang-toggle img {
    width: 18px !important;
    height: 13px !important;
  }

  .main-menu__gtranslate .main-menu__lang-caret {
    border-left-width: 4px !important;
    border-right-width: 4px !important;
    border-top-width: 5px !important;
  }

  /* Tighten overall section whitespace */
  :root {
    --section-py: 28px !important;
    --section-py-banner-t: 72px !important;
    --section-py-banner-b: 28px !important;
    --section-py-marquee: 16px !important;
  }

  .banner-one {
    padding: 24px 0 28px !important;
    overflow: hidden !important;
  }

  .banner-one__inner {
    position: relative !important;
    min-height: 320px !important;
    padding-right: 0 !important;
  }

  .banner-one__content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 62% !important;
  }

  /* Hero doctor: behind/beside text on the right (not below) */
  .banner-one .banner-one__one-img-box {
    position: absolute !important;
    top: -8px !important;
    right: -36px !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: 62% !important;
    max-width: 260px !important;
    height: 100% !important;
    min-height: 310px !important;
    display: block !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .banner-one .banner-one__img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
  }

  .banner-one .banner-one__img img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: 240px !important;
    height: 320px !important;
    min-height: 300px !important;
    max-height: 340px !important;
    margin: 0 0 0 auto !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    animation: none !important;
  }

  .banner-one__btn-and-call-box {
    position: relative !important;
    z-index: 2 !important;
    flex-wrap: wrap !important;
  }

  /* Homepage: hide About + Contact section images on mobile */
  .about-one__img-box,
  .about-one__img-one,
  .about-one__img-two,
  .about-one__left,
  .contact-one__img-one {
    display: none !important;
  }

  .banner-one__title {
    font-size: 30px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .banner-one__text {
    margin-bottom: 16px !important;
  }

  /* 35+ Years — smaller type */
  .about-one__experience-box {
    max-width: 220px !important;
  }

  .about-one__experience-box-inner {
    padding: 14px 16px 18px !important;
  }

  .about-one__experience-count h3,
  .about-one__experience-count span {
    font-size: 36px !important;
    line-height: 1 !important;
  }

  .about-one__experience-count p {
    font-size: 15px !important;
    top: 6px !important;
  }

  .about-one__experience-count-text {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .about-one__experience-icon-box {
    height: 52px !important;
    width: 52px !important;
    right: -6px !important;
    border-radius: 14px !important;
  }

  .about-one__experience-icon-box span {
    font-size: 26px !important;
  }

  .about-one__right {
    margin-top: 24px !important;
  }

  .about-one__points-and-experience-box {
    gap: 16px !important;
  }

  .about-one__btn-and-call-box {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
  }

  /* Latest blogs — stop content sticking / overlapping image */
  .blog-one {
    padding: 24px 0 28px !important;
  }

  .blog-one__top {
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    margin-bottom: 16px !important;
    gap: 10px !important;
  }

  .blog-one__top-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .blog-one__top-btn-box {
    margin-left: 0 !important;
    flex-shrink: 0 !important;
  }

  .blog-one__top-btn-box .thm-btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .blog-one__img {
    margin-left: 0 !important;
  }

  .blog-one__content {
    margin-top: -28px !important;
    padding: 36px 16px 22px !important;
  }

  .blog-one__meta {
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    flex-wrap: nowrap !important;
  }

  .blog-one__title {
    font-size: 18px !important;
    line-height: 26px !important;
  }

  .blog-one .section-title {
    margin-bottom: 16px !important;
  }

  .blog-one__top-left .section-title {
    margin-bottom: 0 !important;
  }

  /* Home carousels: 1 card + peek of next, smooth swipe */
  .blog-one .container,
  .testimonial-one .container,
  .top-hospitals-one .container,
  .gallery-one .container,
  .patient-stories .container,
  .main-service-one .container {
    overflow: visible !important;
  }

  .team-one .container {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  .blog-one__carousel.owl-carousel .owl-stage-outer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 4px 0 12px !important;
    overflow: hidden !important;
    height: auto !important;
  }

  .blog-one {
    overflow: hidden !important;
    padding-bottom: 20px !important;
  }

  .blog-one__shape-2,
  .blog-one__shape-3 {
    display: none !important;
  }

  .blog-one__carousel .owl-stage {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  .blog-one__carousel .owl-item {
    display: flex !important;
    float: none !important;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
  }

  .blog-one__slide {
    padding-right: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
  }

  .blog-one__carousel .blog-one__single {
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  .testimonial-one__carousel.owl-carousel .owl-stage-outer,
  .team-one__carousel.owl-carousel .owl-stage-outer,
  .top-hospitals-one__carousel.owl-carousel .owl-stage-outer,
  .gallery-one__carousel.owl-carousel .owl-stage-outer,
  .patient-stories__carousel.owl-carousel .owl-stage-outer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 4px 0 16px !important;
    overflow: hidden !important;
  }

  .testimonial-one,
  .team-one,
  .top-hospitals-one,
  .gallery-one,
  .patient-stories {
    overflow-x: hidden !important;
  }

  /* Doctors: decorative shape was causing page-level horizontal scroll */
  .team-one {
    overflow: hidden !important;
  }

  .team-one__shape-2 {
    display: none !important;
  }

  .team-one__carousel-wrap {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .team-one__carousel.owl-carousel {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* Native mobile strip must win over owl overflow:hidden */
  .team-one__carousel-wrap:has(.js-hscroll-native) {
    overflow: visible !important;
  }

  .team-one__carousel.owl-carousel.js-hscroll-native,
  .team-one__carousel.js-hscroll-native {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: auto !important;
    touch-action: pan-x pan-y !important;
    cursor: grab !important;
  }

  .team-one__carousel.js-hscroll-native .owl-nav,
  .team-one__carousel.js-hscroll-native .owl-dots {
    display: none !important;
  }

  .team-one__carousel.js-hscroll-native > .item,
  .team-one__carousel.js-hscroll-native > .owl-item {
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    min-width: 82% !important;
    scroll-snap-align: start;
    float: none !important;
  }

  .team-one__carousel.js-hscroll-native a,
  .team-one__carousel.js-hscroll-native img {
    -webkit-user-drag: none !important;
    user-select: none !important;
    pointer-events: auto;
  }

  .team-one__carousel .owl-stage {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .team-one__carousel .owl-item {
    float: none !important;
    box-sizing: border-box !important;
  }

  .team-one__carousel .team-one__single {
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  .testimonial-one__single {
    position: relative !important;
    margin-left: 0 !important;
    padding: 20px 16px 18px !important;
  }

  .testimonial-one__single-inner {
    padding: 0 !important;
  }

  .testimonial-one__single-inner:before,
  .testimonial-one__single-inner:after {
    display: none !important;
  }

  .testimonial-one__client-info {
    margin-left: 0 !important;
    margin-top: 16px !important;
    gap: 12px !important;
    width: calc(100% - 48px) !important;
    align-items: center !important;
  }

  .testimonial-one__client-img {
    width: 48px !important;
    flex: 0 0 48px !important;
  }

  .testimonial-one__client-name {
    font-size: 16px !important;
    line-height: 22px !important;
    margin-bottom: 2px !important;
  }

  .testimonial-one__quote {
    bottom: 16px !important;
    right: 14px !important;
  }

  .testimonial-one__quote span {
    font-size: 34px !important;
    line-height: 34px !important;
  }

  .main-service-one__carousel {
    overflow: hidden !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  .main-service-one__carousel .swiper-slide {
    width: 82% !important;
    box-sizing: border-box !important;
  }

  .main-service-one__top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .main-service-one__top-btn {
    top: 0 !important;
    margin-left: 0 !important;
  }

  /* Homepage sections: cut large white gaps between blocks */
  .section-title {
    margin-bottom: 18px !important;
  }

  .appointment-three,
  .about-one,
  .main-service-one,
  .why-choose-one,
  .process-one,
  .top-hospitals-one,
  .team-one,
  .gallery-one,
  .contact-one,
  .partners-one,
  .blog-one {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .appointment-three {
    margin-top: -40px !important;
    padding-top: 0 !important;
  }

  .appointment-three__inner {
    padding: 28px 18px !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
  }

  .main-service-one__top {
    margin-bottom: 18px !important;
  }

  .main-service-one__top-btn {
    margin-top: 12px !important;
  }

  .process-one__single {
    margin-bottom: 18px !important;
  }

  .process-one__text {
    margin: 12px 0 16px !important;
  }

  .process-one__icon {
    width: 88px !important;
    height: 88px !important;
  }

  .top-hospitals-one__intro {
    margin-bottom: 14px !important;
  }

  .top-hospitals-one__filters {
    margin-bottom: 18px !important;
  }

  .gallery-one__single {
    margin-bottom: 0 !important;
  }

  .contact-one__inner {
    padding: 28px 16px !important;
  }

  .partners-one__top {
    margin-bottom: 20px !important;
  }

  .partners-one__flags {
    gap: 12px !important;
  }

  .site-footer__top-inner {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  .why-choose-one__lead {
    margin-bottom: 18px !important;
  }

  /* Why choose: icon left of text on mobile (both columns) */
  .why-choose-one__points li {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .why-choose-one__count-box {
    order: -1 !important;
    flex-shrink: 0 !important;
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
  }

  .why-choose-one__points-content,
  .why-choose-one__points-content.two {
    text-align: left !important;
    top: 0 !important;
  }

  .why-choose-one__points:before,
  .why-choose-one__points--instyle2::before {
    left: 27px !important;
    right: auto !important;
  }

  /* WhatsApp left + back-to-top right, same bottom line */
  .whatsapp-float {
    left: 16px !important;
    right: auto !important;
    bottom: 20px !important;
  }

  .whatsapp-float a,
  .whatsapp-float__btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
  }

  .whatsapp-float a:before,
  .whatsapp-float__btn:before {
    top: -4px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -4px !important;
  }

  .scroll-to-top {
    right: 16px !important;
    left: auto !important;
    bottom: 20px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* Desktop: keep original header behavior (not fixed via .main-header) */
@media (min-width: 768px) {
  .page-wrapper {
    padding-top: 0 !important;
    background-image: none !important;
    background-color: transparent !important;
  }

  .main-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
  }
}

/* ========== Search overlay redesign ========== */
.search-popup {
  height: 100vh !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  transform: translateY(-12px) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease !important;
}

.search-active .search-popup {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.search-popup .color-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  height: 100% !important;
  width: 100% !important;
  background:
    radial-gradient(circle at 20% 15%, rgba(32, 167, 201, 0.28), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(21, 111, 159, 0.35), transparent 46%),
    rgba(9, 26, 46, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none !important;
}

.search-popup .close-search {
  top: 28px !important;
  right: 28px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  font-size: 18px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 3 !important;
}

.search-popup .close-search:hover {
  background: #fff !important;
  color: #0c2340 !important;
}

.search-active .search-popup .close-search {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  margin-top: 0 !important;
}

.search-popup__panel {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 36px 32px 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 253, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.search-popup__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #156f9f;
}

.search-popup__title {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  color: #0c2340;
}

.search-popup form {
  position: relative !important;
  max-width: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  padding: 0 !important;
  width: 100% !important;
  z-index: 1 !important;
}

.search-active .search-popup form {
  opacity: 1 !important;
}

.search-popup .form-group {
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(12, 35, 64, 0.12) !important;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
}

.search-popup .form-group input[type="search"],
.search-popup .form-group input[type="text"] {
  height: 58px !important;
  padding: 0 20px 0 24px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #0c2340 !important;
  text-transform: none !important;
  flex: 1 1 auto;
  min-width: 0;
}

.search-popup .form-group input[type="search"]:focus,
.search-popup .form-group input[type="text"]:focus {
  outline: none !important;
}

.search-popup input::placeholder {
  color: rgba(12, 35, 64, 0.45) !important;
}

.search-popup .form-group button,
.search-popup .form-group input[type="submit"] {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 120px;
  height: 58px !important;
  margin: 4px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #20a7c9 0%, #0c2340 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  flex-shrink: 0;
}

.search-popup .form-group button:hover,
.search-popup .form-group input[type="submit"]:hover {
  background: linear-gradient(135deg, #0c2340 0%, #156f9f 100%) !important;
  color: #fff !important;
}

.search-popup__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  position: relative;
  z-index: 3;
}

.search-popup__hint-chip,
.search-popup__hint span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 111, 159, 0.08);
  color: rgba(12, 35, 64, 0.85);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-popup__hint-chip:hover,
.search-popup__hint-chip:focus-visible {
  background: rgba(21, 111, 159, 0.16);
  color: #0c2340;
  border-color: rgba(21, 111, 159, 0.35);
  outline: none;
}

@media (max-width: 767px) {
  .search-popup {
    padding: 18px !important;
    align-items: flex-start !important;
    padding-top: 88px !important;
  }

  .search-popup .close-search {
    top: 18px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 16px !important;
  }

  .search-popup__panel {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .search-popup__title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .search-popup .form-group {
    border-radius: 18px !important;
    flex-direction: column !important;
  }

  .search-popup .form-group input[type="search"],
  .search-popup .form-group input[type="text"] {
    height: 52px !important;
    padding: 0 16px !important;
  }

  .search-popup .form-group button,
  .search-popup .form-group input[type="submit"] {
    width: calc(100% - 8px) !important;
    min-width: 0;
    height: 48px !important;
    margin: 0 4px 4px !important;
  }

  .search-popup__hint {
    margin-top: 14px;
  }
}

/* India phone blocked popup */
#goc-india-phone-block {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.goc-india-phone-block__card {
  width: min(360px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.goc-india-phone-block__emoji {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

.goc-india-phone-block__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #0c2340;
  line-height: 1.35;
}

.goc-india-phone-block__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 28px;
  background: linear-gradient(135deg, #20a7c9 0%, #0c2340 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.goc-india-phone-block__btn:hover {
  background: linear-gradient(135deg, #0c2340 0%, #156f9f 100%);
}

/* Home: stats bar just above testimonials carousel */
.testimonials-stats--home {
  padding: 28px 0;
  background: transparent;
}

.testimonials-stats--home .testimonials-stats__grid {
  margin: 0;
  gap: 20px !important;
  padding: 22px !important;
}

.testimonials-stats--home .testimonials-stats__grid > div {
  padding: 26px 18px !important;
  background: #f3fbfe !important;
  border-radius: 20px !important;
}

.testimonials-stats--home + .testimonial-one {
  padding-top: 28px !important;
}

/* Home: same testimonials stats cards, directly under banner */
.banner-hero-stats {
  padding: 0 0 8px;
  margin-top: -24px;
  background: transparent;
  position: relative;
  z-index: 4;
}

.banner-hero-stats__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px !important;
  padding: 22px !important;
}

.banner-hero-stats__grid > div {
  padding: 26px 18px !important;
  background: #f3fbfe !important;
  border-radius: 20px !important;
}

/* Home sections: equal top/bottom gap, moderate (not cramped) */
.about-one,
.main-service-one,
.why-choose-one,
.process-one,
.top-hospitals-one,
.team-one,
.gallery-one,
.patient-stories,
.testimonial-one,
.faq-one,
.blog-one,
.slogan-one,
.contact-one,
.partners-one {
  padding-top: 40px;
  padding-bottom: 40px;
}

.slogan-one__content-title h2 {
  font-size: 36px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}

@media (max-width: 991px) {
  .slogan-one__content-title h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 767px) {
  .slogan-one__content-title h2 {
    font-size: 26px !important;
  }
}

/* Process stagger leaves empty bottom — tighten that section only */
.process-one {
  padding-bottom: 24px;
}

.process-one ul li:nth-child(2) .process-one__single,
.process-one ul li:nth-child(4) .process-one__single {
  margin-top: 28px;
}

.process-one__single {
  margin-bottom: 12px;
}

.gallery-one {
  padding-bottom: 24px;
}

.banner-hero-stats + .about-one {
  padding-top: 32px;
}

.partners-one__top {
  margin-bottom: 24px;
}

/* Home blogs: equal image height across cards */
.blog-one__img {
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  background: #eef7fb;
}

.blog-one__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Slogan: Book Appointment + play on one line (mobile) */
@media (max-width: 767px) {
  .slogan-one__content-bottom {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 24px !important;
  }

  .slogan-one__content-btn {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .slogan-one__content-btn .thm-btn {
    padding: 12px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .slogan-one__content-video {
    flex-shrink: 0 !important;
  }

  .slogan-one__content-video .video-popup {
    width: 48px !important;
    height: 48px !important;
    font-size: 16px !important;
    margin: 0 !important;
  }
}

/* Footer: equal moderate top/bottom (was 111 / 90) */
.site-footer__top-inner {
  padding: 56px 0 56px;
}

.site-footer__bottom-inner {
  padding: 20px 0;
}

/* WhatsApp + back-to-top: same size, same bottom line */
.whatsapp-float {
  left: 24px !important;
  right: auto !important;
  bottom: 28px !important;
}

.whatsapp-float a,
.whatsapp-float__btn {
  width: 50px !important;
  height: 50px !important;
  font-size: 26px !important;
}

.whatsapp-float__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  z-index: 1;
  padding: 0;
  line-height: 1;
}

.whatsapp-float__btn:before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background-color: rgba(37, 211, 102, 0.22);
  border-radius: 50%;
  z-index: -1;
}

.whatsapp-float__btn:hover {
  color: #fff;
  background: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.42);
}

.scroll-to-top {
  right: 24px !important;
  left: auto !important;
  bottom: 28px !important;
  width: 50px !important;
  height: 50px !important;
}

/* Floating WhatsApp lead capture modal */
.whatsapp-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.whatsapp-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(9, 26, 46, 0.55);
  cursor: pointer;
}

.whatsapp-lead-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(9, 26, 46, 0.28);
}

.whatsapp-lead-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #0c2340;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.whatsapp-lead-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 28px;
}

.whatsapp-lead-modal__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 24px;
}

.whatsapp-lead-modal__head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
  color: #0c2340;
}

.whatsapp-lead-modal__head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(12, 35, 64, 0.72);
}

.whatsapp-lead-modal__form .form-group {
  margin-bottom: 14px;
}

.whatsapp-lead-modal__form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0c2340;
}

.whatsapp-lead-modal__form input[type="text"],
.whatsapp-lead-modal__form input[type="email"],
.whatsapp-lead-modal__form input[type="tel"],
.whatsapp-lead-modal__select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(12, 35, 64, 0.16);
  border-radius: 12px;
  font-size: 15px;
  color: #0c2340;
  background: #fff;
}

.whatsapp-lead-modal__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230c2340' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}

.whatsapp-lead-modal__form input:focus,
.whatsapp-lead-modal__select:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.whatsapp-lead-modal__form .healzone-phone,
.whatsapp-lead-modal__form .healzone-phone-iti {
  width: 100%;
}

/* Phone country list must sit above WhatsApp modal (modal is z-index 10050;
   intl-tel-input default detached list is only 1060) */
.iti--detached-country-selector,
.iti--fullscreen-popup.iti--detached-country-selector,
body > .iti--detached-country-selector,
body > .iti__dropdown-content,
body > .iti--container {
  z-index: 11000 !important;
}

.whatsapp-lead-modal__submit {
  width: 100%;
  margin-top: 4px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366 !important;
  border-color: #25d366 !important;
}

.whatsapp-lead-modal__submit:hover {
  background: #1ebe57 !important;
  border-color: #1ebe57 !important;
}

.whatsapp-lead-modal__status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b42318;
  text-align: center;
}

@media (max-width: 767px) {
  .whatsapp-lead-modal {
    align-items: flex-end;
    padding: 0;
  }

  .whatsapp-lead-modal__card {
    max-width: none;
    width: 100%;
    max-height: min(92vh, 640px);
    border-radius: 18px 18px 0 0;
    padding: 20px 16px 18px;
  }
}

@media (max-width: 991px) {
  .banner-hero-stats {
    margin-top: 0;
    padding: 12px 0 8px;
  }

  .banner-hero-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .banner-hero-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .testimonials-stats__grid,
  .testimonials-stats--home .testimonials-stats__grid,
  .banner-hero-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .testimonials-stats__grid > div,
  .testimonials-stats--home .testimonials-stats__grid > div,
  .banner-hero-stats__grid > div {
    padding: 16px 10px !important;
    border-radius: 14px !important;
  }

  .testimonials-stats__grid strong,
  .banner-hero-stats__grid strong {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .testimonials-stats__grid span,
  .banner-hero-stats__grid span {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}

/* Medical Visa listing: balanced spacing (not stuck together) */
body.medical-visa-page .hospitals-hero,
.medical-visa-hero.hospitals-hero {
  padding: 36px 0 10px !important;
}

body.medical-visa-page .hospitals-hero__content h1,
.medical-visa-hero .hospitals-hero__content h1 {
  margin-bottom: 10px !important;
  font-size: clamp(26px, 3.4vw, 34px) !important;
  line-height: 1.2 !important;
}

body.medical-visa-page .hospitals-hero .hospitals-page__eyebrow,
.medical-visa-hero .hospitals-page__eyebrow {
  margin-bottom: 8px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
}

body.medical-visa-page .hospitals-hero__breadcrumb,
.medical-visa-hero .hospitals-hero__breadcrumb {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  gap: 8px !important;
  font-size: 13px !important;
}

/* 10px after hero/breadcrumb, then room before next sections */
body.medical-visa-page .medical-visa-stats,
.medical-visa-hero + .medical-visa-stats {
  padding-top: 0 !important;
  padding-bottom: 28px !important;
  margin-top: 0 !important;
}

body.medical-visa-page .medical-visa-stats__grid {
  padding: 14px !important;
  gap: 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(12, 35, 64, 0.1) !important;
}

body.medical-visa-page .medical-visa-stats__grid div {
  padding: 14px 10px !important;
  border-radius: 14px !important;
}

body.medical-visa-page .medical-visa-stats__grid strong {
  font-size: 24px !important;
}

body.medical-visa-page .medical-visa-stats__grid span {
  margin-top: 6px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.04em !important;
}

body.medical-visa-page .medical-visa-route {
  padding: 0 0 48px !important;
}

body.medical-visa-page .medical-visa-route__card {
  padding: 22px 24px 20px !important;
  border-radius: 18px !important;
}

body.medical-visa-page .medical-visa-route__card h2 {
  font-size: clamp(18px, 2.4vw, 26px) !important;
  margin: 0 0 6px !important;
}

body.medical-visa-page .medical-visa-route__card > p {
  margin-bottom: 16px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.medical-visa-page .medical-visa-route__form {
  gap: 12px !important;
}

body.medical-visa-page .medical-visa-route__field label {
  margin-bottom: 6px !important;
  font-size: 12px !important;
}

body.medical-visa-page .medical-visa-route__field select,
body.medical-visa-page .medical-visa-route__form .thm-btn {
  min-height: 46px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

body.medical-visa-page .medical-visa-intro {
  padding-top: 20px !important;
  padding-bottom: 70px !important;
}

@media (max-width: 767px) {
  body.medical-visa-page .hospitals-hero,
  .medical-visa-hero.hospitals-hero {
    padding: 28px 0 10px !important;
  }

  body.medical-visa-page .medical-visa-stats,
  .medical-visa-hero + .medical-visa-stats {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 24px !important;
  }

  body.medical-visa-page .medical-visa-route {
    padding-bottom: 36px !important;
  }

  body.medical-visa-page .medical-visa-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Country snapshot: 2×2 on mobile (all 4 cards visible) */
  .medical-visa-snapshot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .medical-visa-snapshot__grid div {
    padding: 14px 10px !important;
    border-radius: 14px !important;
  }

  .medical-visa-snapshot__grid span {
    margin-bottom: 6px !important;
    font-size: 10px !important;
  }

  .medical-visa-snapshot__grid strong {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
}}


/* Hospitals listing: same compact finder as doctors so cards peek on first screen */
.hospitals-listing-hero.hospitals-hero {
  padding: 32px 0 12px !important;
}

.hospitals-listing-hero .hospitals-hero__content h1 {
  margin-bottom: 10px !important;
  font-size: clamp(28px, 3.6vw, 36px) !important;
  line-height: 1.15 !important;
}

.hospitals-listing-hero .hospitals-page__eyebrow {
  margin-bottom: 8px !important;
}

.hospitals-listing-hero .hospitals-hero__breadcrumb {
  margin-top: 8px !important;
}

.hospitals-listing-below {
  padding: 12px 0 40px;
}

.hospitals-listing-below .tcp-text,
.hospitals-listing-below p {
  max-width: 920px;
  margin-bottom: 0;
  color: #445066;
  line-height: 1.7;
}

.hospitals-finder.hospitals-directory {
  padding: 24px 0 64px !important;
}

.hospitals-finder.hospitals-directory .hospitals-directory__top {
  margin-bottom: 16px !important;
  gap: 16px !important;
}

.hospitals-finder.hospitals-directory .hospitals-directory__top h2 {
  font-size: clamp(18px, 2.8vw, 28px) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.hospitals-finder.hospitals-directory .hospitals-directory__summary {
  min-width: 140px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

.hospitals-finder.hospitals-directory .hospitals-directory__summary strong {
  font-size: 24px !important;
}

.hospitals-finder.hospitals-directory .hospitals-search {
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.hospitals-finder.hospitals-directory .hospitals-search__field label {
  margin-bottom: 4px !important;
  font-size: 10px !important;
}

.hospitals-finder.hospitals-directory .hospitals-search__field select,
.hospitals-finder.hospitals-directory .hospitals-search__input {
  min-height: 40px !important;
  border-radius: 12px !important;
}

.hospitals-finder.hospitals-directory .hospitals-search__input input {
  height: 38px !important;
}

.hospitals-finder.hospitals-directory .hospitals-directory__chips {
  margin: 12px 0 18px !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  gap: 12px !important;
}

.hospitals-finder.hospitals-directory .hospitals-directory__chips .hospitals-finder__filter {
  padding: 7px 12px !important;
  font-size: 12px !important;
}

@media (max-width: 991px) {
  .hospitals-listing-hero.hospitals-hero {
    padding: 28px 0 12px !important;
  }

  .hospitals-finder.hospitals-directory {
    padding: 20px 0 48px !important;
  }
}

/* Treatments listing: same compact finder so package cards peek on first screen */
.treatments-listing-hero.hospitals-hero {
  padding: 32px 0 12px !important;
}

.treatments-listing-hero .hospitals-hero__content h1 {
  margin-bottom: 10px !important;
  font-size: clamp(28px, 3.6vw, 36px) !important;
  line-height: 1.15 !important;
}

.treatments-listing-hero .hospitals-page__eyebrow {
  margin-bottom: 8px !important;
}

.treatments-listing-hero .hospitals-hero__breadcrumb {
  margin-top: 8px !important;
}

.treatments-listing.treatments-directory {
  padding: 24px 0 64px !important;
}

.treatments-listing.treatments-directory .treatments-listing__top {
  margin-bottom: 16px !important;
  gap: 16px !important;
}

.treatments-listing.treatments-directory .treatments-listing__top h2 {
  font-size: clamp(18px, 2.8vw, 28px) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.treatments-listing.treatments-directory .treatments-listing__summary {
  min-width: 140px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

.treatments-listing.treatments-directory .treatments-listing__summary strong {
  font-size: 24px !important;
}

.treatments-listing.treatments-directory .treatments-listing__toolbar {
  gap: 10px !important;
  margin-bottom: 18px !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

.treatments-listing.treatments-directory .treatments-listing__search {
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
}

.treatments-listing.treatments-directory .treatments-listing__search input {
  height: 38px !important;
}

.treatments-listing.treatments-directory .treatments-listing__chips {
  gap: 8px !important;
}

.treatments-listing.treatments-directory .treatments-listing__chip {
  padding: 7px 12px !important;
  font-size: 12px !important;
}

@media (max-width: 991px) {
  .treatments-listing-hero.hospitals-hero {
    padding: 28px 0 12px !important;
  }

  .treatments-listing.treatments-directory {
    padding: 20px 0 48px !important;
  }
}

/* Info sidebar: address wrap + About Us button */
.sidebar-contact-info ul li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  line-height: 1.45 !important;
  width: 100% !important;
}

.sidebar-contact-info ul li > span[class^="icon-"] {
  flex: 0 0 25px !important;
  width: 25px !important;
  max-width: 25px !important;
  min-width: 25px !important;
}

.sidebar-contact-info__text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  display: block !important;
  color: rgba(255, 255, 255, 0.92) !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.45 !important;
}

.xs-sidebar-group .content-inner .content-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.xs-sidebar-group .content-inner .content-box .inner-text,
.xs-sidebar-group .content-inner .content-box .inner-text p,
.xs-sidebar-group .content-inner .content-box .inner-text span,
.xs-sidebar-group .content-inner .content-box .inner-text div,
.xs-sidebar-group .content-inner .content-box .inner-text a,
.xs-sidebar-group .content-inner .content-box .inner-text * {
  color: rgba(255, 255, 255, 0.88) !important;
}

.xs-sidebar-group .content-inner .content-box .inner-text a:hover {
  color: #fff !important;
}

.sidebar-about-link {
  margin-top: 14px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

/* City filter: never show duplicate nice-select beside native select */
.tcp-city-filter .nice-select,
.tcp-section__head .nice-select,
.doctor-detail-similar__head .nice-select,
.hospital-detail-similar__head .nice-select {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Similar head: city filter lives only in .tcp-similar-toolbar (beside eyebrow) */
.doctor-detail-similar__head > .tcp-city-filter,
.hospital-detail-similar__head > .tcp-city-filter,
.tcp-section__head.doctor-detail-similar__head > .tcp-city-filter,
.tcp-section__head.hospital-detail-similar__head > .tcp-city-filter {
  display: none !important;
}

.tcp-city-filter select.ignore,
.tcp-city-filter select.tcp-city-filter__select {
  display: block !important;
  opacity: 1 !important;
  position: static !important;
  width: 100% !important;
}

/* Similar section: city dropdown beside eyebrow badge — same pill size */
.tcp-similar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tcp-similar-toolbar > .hospitals-page__eyebrow {
  margin: 0 !important;
  flex: 0 1 auto;
  min-width: 0;
  height: 34px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-size: 11px !important;
  line-height: 32px !important;
}

.tcp-similar-toolbar .tcp-city-filter {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: 48% !important;
  height: 34px !important;
}

.tcp-similar-toolbar .tcp-city-filter select {
  width: auto !important;
  min-width: 118px !important;
  max-width: 100%;
  height: 34px !important;
  padding: 0 30px 0 12px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(var(--mediplace-base-rgb), 0.18) !important;
  border-radius: 999px !important;
  background-color: rgba(var(--mediplace-base-rgb), 0.09) !important;
  color: var(--mediplace-base) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 32px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap;
}

.doctor-detail-similar__head.tcp-section__head,
.hospital-detail-similar__head.tcp-section__head {
  display: block !important;
  margin-bottom: 18px !important;
}

.doctor-detail-similar__head > h2,
.hospital-detail-similar__head > h2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  color: var(--mediplace-black) !important;
  font-size: clamp(26px, 2.6vw, 34px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

.doctor-detail-similar__head > h2::after,
.hospital-detail-similar__head > h2::after {
  display: none !important;
}

.doctor-detail-similar-wrap,
.hospital-detail-similar-wrap {
  margin-top: 0 !important;
}

.doctor-detail-section .doctor-detail-similar__carousel.owl-carousel .owl-stage-outer,
.hospital-detail-section .hospital-detail-similar__carousel.owl-carousel .owl-stage-outer {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .tcp-section__head,
  .doctor-detail-similar__head.tcp-section__head,
  .hospital-detail-similar__head.tcp-section__head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 4px !important;
    margin-bottom: 14px !important;
    padding-top: 2px !important;
  }

  .tcp-section__head > h2,
  .doctor-detail-similar__head > h2,
  .hospital-detail-similar__head > h2 {
    flex: none !important;
    width: 100% !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
  }

  .tcp-similar-toolbar {
    margin-bottom: 8px;
    margin-top: 0;
  }

  .tcp-similar-toolbar > .hospitals-page__eyebrow,
  .tcp-similar-toolbar .tcp-city-filter,
  .tcp-similar-toolbar .tcp-city-filter select {
    height: 32px !important;
  }

  .tcp-similar-toolbar > .hospitals-page__eyebrow {
    line-height: 30px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }

  .tcp-similar-toolbar .tcp-city-filter {
    max-width: 48% !important;
  }

  .tcp-similar-toolbar .tcp-city-filter select {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 26px 0 10px !important;
    font-size: 10px !important;
    line-height: 30px !important;
  }

  .doctor-detail-similar-wrap,
  .hospital-detail-similar-wrap {
    margin-top: 0 !important;
  }

  .doctor-detail-section .doctor-detail-similar__carousel.owl-carousel .owl-stage-outer,
  .hospital-detail-section .hospital-detail-similar__carousel.owl-carousel .owl-stage-outer {
    padding: 0 0 12px !important;
  }

  /* Similar doctors/hospitals: one card + peek of next; drag only (no arrows) */
  .doctor-detail-similar__carousel.owl-carousel .owl-stage-outer,
  .hospital-detail-similar__carousel.owl-carousel .owl-stage-outer,
  .tcp-doctors-carousel.owl-carousel .owl-stage-outer,
  .tcp-hospitals-carousel.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
    padding-right: 0 !important;
    touch-action: pan-x pan-y !important;
  }

  .hospital-detail-section .hospital-detail-similar__carousel.owl-theme .owl-nav,
  .doctor-detail-section .doctor-detail-similar__carousel.owl-theme .owl-nav,
  .hospital-detail-similar__carousel .owl-nav,
  .doctor-detail-similar__carousel .owl-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

/* Hospital detail mobile stats: 2 compact boxes only */
@media (max-width: 767px) {
  .hospital-detail-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .hospital-detail-stats__item--secondary {
    display: none !important;
  }

  .hospital-detail-stats__item--primary {
    display: flex !important;
    min-height: 0 !important;
    padding: 12px 8px 12px 42px !important;
    border-radius: 14px !important;
  }

  .hospital-detail-stats__item--primary > i {
    left: 10px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .hospital-detail-stats__item--primary span {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .hospital-detail-stats__item--primary strong {
    font-size: 17px !important;
  }

  /* Doctor/hospital detail: kill empty white gap under contact Submit */
  .doctor-detail-main,
  .hospital-detail-main {
    padding-top: 36px !important;
    padding-bottom: 20px !important;
  }

  .hospital-detail-contact.hospitals-cta,
  .doctor-detail-contact.hospitals-cta {
    margin: 0 !important;
    padding: 0 !important;
  }

  .hospital-detail-contact .hospitals-cta__inner,
  .doctor-detail-contact .hospitals-cta__inner {
    margin-bottom: 0 !important;
    padding-bottom: 18px !important;
  }

  .hospital-detail-contact__form .thm-btn,
  .doctor-detail-contact__form .thm-btn {
    margin-bottom: 0 !important;
  }

  /* Hospital detail hero — match compact mobile layout (28px title, buttons row) */
  .hospital-detail-hero {
    padding: 28px 0 24px !important;
  }

  .hospital-detail-hero__inner {
    gap: 18px !important;
  }

  .hospital-detail-hero__content h1 {
    margin: 0 0 12px !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  .hospital-detail-hero .hospitals-hero__breadcrumb {
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }

  .hospital-detail-hero .hospitals-page__eyebrow {
    margin-bottom: 10px !important;
    padding: 5px 10px !important;
    font-size: 10px !important;
  }

  .hospital-detail-hero__location {
    margin: 0 0 14px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .hospital-detail-hero__actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .hospital-detail-hero__actions .thm-btn,
  .hospital-detail-hero__actions .hospital-detail-hero__link {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .hospital-detail-hero__actions .thm-btn span {
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
    flex: 0 0 22px !important;
  }

  .hospital-detail-hero__panel {
    max-width: 100% !important;
    margin-top: 4px !important;
  }

  .hospital-detail-hero__panel img {
    max-height: 200px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
  }

  .hospital-detail-hero__quick {
    display: none !important;
  }

  /* Doctor detail hero: hide hospital image on mobile only */
  .doctor-detail-hero__image--hospital {
    display: none !important;
  }

  .doctor-detail-hero--with-hospital .doctor-detail-hero__inner,
  .doctor-detail-hero__inner {
    align-items: stretch !important;
  }

  .doctor-detail-hero__image--doctor,
  .doctor-detail-hero--with-hospital .doctor-detail-hero__image:not(.doctor-detail-hero__image--hospital) {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .doctor-detail-hero__image--doctor img {
    width: 100% !important;
    height: 300px !important;
    object-fit: contain;
    object-position: top center !important;
  }

  /* Doctor/hospital detail: sidebar → left FAB + popup */
  body.doctor-detail-template .hospital-detail-sidebar,
  body.hospital-detail-template .hospital-detail-sidebar {
    display: none !important;
  }

  .detail-toc-fab {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10040;
    width: 42px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 12px 12px 0;
    color: #fff;
    background: linear-gradient(160deg, #20a7c9 0%, #0c2340 100%);
    box-shadow: 4px 8px 24px rgba(12, 35, 64, 0.28);
    cursor: pointer;
  }

  .detail-toc-fab__icon {
    font-size: 16px;
    line-height: 1;
  }

  .detail-toc-popup[hidden] {
    display: none !important;
  }

  .detail-toc-popup:not([hidden]) {
    display: block !important;
  }
}

.detail-toc-fab {
  display: none;
}

.detail-toc-popup {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: none;
}

.detail-toc-popup.is-open {
  pointer-events: auto;
}

.detail-toc-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(9, 26, 46, 0.4);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.detail-toc-popup.is-open .detail-toc-popup__backdrop {
  opacity: 1;
}

.detail-toc-popup__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 320px);
  max-height: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  transform: translateX(-104%);
  opacity: 1;
  overflow: hidden;
  border-radius: 0 22px 22px 0;
  background: #fff;
  box-shadow: 12px 0 40px rgba(12, 35, 64, 0.22);
  transition: transform 0.24s ease;
}

.detail-toc-popup.is-open .detail-toc-popup__panel {
  transform: translateX(0);
  opacity: 1;
}

.detail-toc-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}

.detail-toc-popup__head strong {
  color: #0c2340;
  font-size: 15px;
  font-weight: 900;
}

.detail-toc-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #0c2340;
  background: rgba(12, 35, 64, 0.06);
  cursor: pointer;
}

.detail-toc-popup__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

.detail-toc-popup__nav a:last-child {
  border-bottom: 0;
}

/* Hospitals listing filters: desktop inline, mobile FAB + drawer */
.listing-filter-popup {
  position: static;
  pointer-events: auto;
  z-index: auto;
}

.listing-filter-popup__backdrop,
.listing-filter-popup__head,
.listing-filter-popup__foot {
  display: none;
}

.listing-filter-popup__panel {
  position: static;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  transform: none;
  opacity: 1;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.listing-filter-popup__body {
  display: contents;
}

.listing-filter-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #0c2340;
  background: rgba(12, 35, 64, 0.06);
  cursor: pointer;
}

@media (max-width: 767px) {
  body.hospitals-page-template .listing-filter-fab,
  body.doctors-page-template .listing-filter-fab,
  body.treatments-page-template .listing-filter-fab {
    display: flex !important;
  }

  body.hospitals-page-template .listing-filter-popup,
  body.doctors-page-template .listing-filter-popup,
  body.treatments-page-template .listing-filter-popup {
    position: fixed;
    inset: 0;
    z-index: 10040;
    pointer-events: none;
  }

  body.hospitals-page-template .listing-filter-popup.is-open,
  body.doctors-page-template .listing-filter-popup.is-open,
  body.treatments-page-template .listing-filter-popup.is-open {
    pointer-events: auto;
  }

  body.hospitals-page-template .listing-filter-popup__backdrop,
  body.doctors-page-template .listing-filter-popup__backdrop,
  body.treatments-page-template .listing-filter-popup__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(9, 26, 46, 0.4);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  body.hospitals-page-template .listing-filter-popup.is-open .listing-filter-popup__backdrop,
  body.doctors-page-template .listing-filter-popup.is-open .listing-filter-popup__backdrop,
  body.treatments-page-template .listing-filter-popup.is-open .listing-filter-popup__backdrop {
    opacity: 1;
  }

  body.hospitals-page-template .listing-filter-popup__panel,
  body.doctors-page-template .listing-filter-popup__panel,
  body.treatments-page-template .listing-filter-popup__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(92vw, 360px);
    display: flex;
    flex-direction: column;
    margin: 0;
    transform: translateX(-104%);
    overflow: hidden;
    border-radius: 0 22px 22px 0;
    background: #fff;
    box-shadow: 12px 0 40px rgba(12, 35, 64, 0.22);
    transition: transform 0.24s ease;
  }

  body.hospitals-page-template .listing-filter-popup.is-open .listing-filter-popup__panel,
  body.doctors-page-template .listing-filter-popup.is-open .listing-filter-popup__panel,
  body.treatments-page-template .listing-filter-popup.is-open .listing-filter-popup__panel {
    transform: translateX(0);
  }

  body.hospitals-page-template .listing-filter-popup__head,
  body.doctors-page-template .listing-filter-popup__head,
  body.treatments-page-template .listing-filter-popup__head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(12, 35, 64, 0.08);
    background: #fff;
  }

  body.hospitals-page-template .listing-filter-popup__head strong,
  body.doctors-page-template .listing-filter-popup__head strong,
  body.treatments-page-template .listing-filter-popup__head strong {
    color: #0c2340;
    font-size: 15px;
    font-weight: 900;
  }

  body.hospitals-page-template .listing-filter-popup__body,
  body.doctors-page-template .listing-filter-popup__body,
  body.treatments-page-template .listing-filter-popup__body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 8px;
  }

  body.hospitals-page-template .listing-filter-popup__foot,
  body.doctors-page-template .listing-filter-popup__foot,
  body.treatments-page-template .listing-filter-popup__foot {
    display: block;
    flex: 0 0 auto;
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(12, 35, 64, 0.08);
  }

  body.hospitals-page-template .listing-filter-popup__foot .thm-btn,
  body.doctors-page-template .listing-filter-popup__foot .thm-btn,
  body.treatments-page-template .listing-filter-popup__foot .thm-btn {
    width: 100%;
    justify-content: center;
  }

  body.hospitals-page-template .listing-filter-popup .hospitals-search,
  body.doctors-page-template .listing-filter-popup .hospitals-search {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 12px !important;
  }

  body.hospitals-page-template .listing-filter-popup .hospitals-directory__chips,
  body.doctors-page-template .listing-filter-popup .hospitals-directory__chips {
    margin: 0 !important;
    display: grid !important;
    gap: 12px !important;
  }

  body.hospitals-page-template .listing-filter-popup .hospitals-finder__filters,
  body.doctors-page-template .listing-filter-popup .hospitals-finder__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.treatments-page-template .listing-filter-popup .treatments-listing__toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.treatments-page-template .listing-filter-popup .treatments-listing__chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

