/* ── Appointment form submit button – single line ─────────────────── */
button[name="submit"][value="submit"] {
  font-size: 0.85rem;
  white-space: nowrap;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ── Inner pages – top spacing after navbar (no banner) ───────────── */
main.inner-page {
  padding-top: 80px;
}

/* ── Header logo (outside the white pill) ─────────────────────────── */
/* Always keep inner-bar as flex so logo + nav sit side by side */
.site-header .main-bar .inner-bar {
  display: flex !important;
  align-items: center;
}

/* The outer logo: transparent bg, sized up, flex-aligned */
.inner-bar > .logo-header.logo-dark {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  width: auto !important;       /* override theme's fixed width so the div fits the image */
  min-width: 0 !important;
  padding-right: 24px;
}
.inner-bar > .logo-header.logo-dark img {
  width: 200px !important;
  max-width: 200px !important;
  height: auto !important;
  display: block;
}
@media only screen and (max-width: 991px) {
  .inner-bar > .logo-header.logo-dark img {
    width: 160px !important;
  }
  /* Hide the pill background on mobile — it's a desktop-only design element */
  .site-header.box-header2 .main-bar .container .header-part-left:before {
    display: none !important;
  }
}

/* ── Footer left column: prevent widget from stretching; no extra padding */
@media only screen and (min-width: 992px) {
  .site-footer.style-1 .footer-inner-wraper .col-lg-4 .widget_about {
    height: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
  }
}

/* ── Footer doctor image ───────────────────────────────────────────── */
.site-footer.style-1 .footer-media {
  mix-blend-mode: normal !important;
  margin: 8px -15px -30px -15px !important;
  height: 280px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  display: block !important;
}
.site-footer.style-1 .footer-media::after {
  display: none !important;
}
.site-footer.style-1 .footer-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
}

/* ── Footer logo ──────────────────────────────────────────────────── */
.footer-logo img {
  width: 260px !important;
  max-width: 100% !important;
  height: auto !important;
}
.footer-logo {
  margin-bottom: 12px;
}

/* Appointment form: native select styled as pill to match other inputs */
select.dz-select-pill {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
  height: 100%;
  width: 100%;
  padding-right: 2.5rem;
  color: #999;
}
select.dz-select-pill:focus { outline: none; box-shadow: none; }
select.dz-select-pill option { color: #333; }

/* Stats section: scale counter font to fit 4 columns without overflow */
.content-bx.style-1 {
  overflow: hidden;
}
.content-bx.style-1 .content-text {
  font-size: clamp(2rem, 5vw, 5rem) !important;
  line-height: 1.1 !important;
}

/* Stats section: mobile — drop absolute overlay, stack number above label */
@media only screen and (max-width: 767px) {
  .content-bx.style-1 {
    padding: 20px 8px;
  }
  .content-bx.style-1 .content-text {
    font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
    display: block;
    line-height: 1.1 !important;
  }
  .content-bx.style-1 .title {
    position: static !important;
    transform: none !important;
    background-color: transparent !important;
    font-size: 11px !important;
    padding: 4px 0 0 0;
    line-height: 1.4 !important;
  }
}

/* ==============================================
   Services dropdown — polished redesign
   ============================================== */

/* Level-1 panel: wider, top accent, better shadow, no gap from nav */
@media only screen and (min-width: 992px) {
  .header-nav.w3menu .nav > li > .sub-menu {
    width: 280px;
    padding: 10px 0 16px !important;
    margin-top: 0 !important;
    border-top: 3px solid var(--bs-primary);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14) !important;
  }

  /* Level-2 fly-out: offset matches new level-1 width */
  .header-nav.w3menu .nav > li .sub-menu li > .sub-menu {
    left: 280px !important;
    width: 250px;
    padding: 10px 0 16px !important;
    border-top: 3px solid var(--bs-primary);
    border-radius: 0 10px 10px 10px;
    box-shadow: 8px 16px 48px rgba(0, 0, 0, 0.14) !important;
  }

  /* Category header links (e.g. "Fertility & Reproductive") */
  .header-nav.w3menu .nav > li > .sub-menu > li > a {
    font-size: 15px !important;
    font-family: var(--font-family-title) !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
    padding: 10px 22px !important;
    line-height: 1.4 !important;
  }

  /* Individual service links inside fly-out */
  .header-nav.w3menu .nav > li .sub-menu li .sub-menu li a {
    font-size: 15px !important;
    font-family: var(--font-family-title) !important;
    font-weight: 400 !important;
    color: #555 !important;
    padding: 8px 22px !important;
    line-height: 1.4 !important;
  }

  /* Hover: category header */
  .header-nav.w3menu .nav > li > .sub-menu > li:hover > a {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.06);
  }

  /* Hover: individual service link */
  .header-nav.w3menu .nav > li .sub-menu li .sub-menu li:hover > a {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.06);
  }

  /* Thin dividers between category sections */
  .header-nav.w3menu .nav > li > .sub-menu > li + li {
    border-top: 1px solid #f2f2f2;
    margin-top: 2px;
    padding-top: 2px;
  }

  /* Fix double arrow: hide the inline <i> inside dropdown — ::after handles the indicator */
  .header-nav.w3menu .nav > li .sub-menu .sub-menu-down > a > i {
    display: none !important;
  }

  /* Right-chevron indicator: size and colour */
  .header-nav.w3menu .nav > li .sub-menu .sub-menu-down > a:after {
    color: var(--bs-primary) !important;
    font-size: 15px !important;
    opacity: 0.8;
  }
}


/* Nav: spread items across full nav width */
@media only screen and (min-width: 992px) {
  .site-header.box-header2 .main-bar .container .header-part-left .header-nav {
    flex: 1;
  }
  .header-nav .nav {
    float: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
  }
}

/* ── Photo Collage Section ──────────────────────────────────────── */
.photo-collage-section {
  overflow: hidden;
}

.photo-collage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 8 / 5;
  gap: 4px;
}

.photo-collage-grid .collage-item {
  overflow: hidden;
  position: relative;
}

.photo-collage-grid .collage-item:first-child {
  grid-row: 1 / span 2;
}

.photo-collage-grid .collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.photo-collage-grid .collage-item:hover img {
  transform: scale(1.06);
}

.collage-swiper {
  width: 100%;
}

.collage-swiper .swiper-slide {
  aspect-ratio: 4 / 5;
  max-height: 75vh;
}

.collage-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.collage-swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  padding: 12px 0 8px;
  text-align: center;
}

/* ── Homepage service cards – uniform image height ──────────────── */
.icon-bx-wraper.style-1 .dz-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.icon-bx-wraper.style-1 .dz-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Service detail pages: image on top, text below */
.service-single .service-card { flex-direction: column; }
.service-single .service-card .dz-media { width: 100%; min-width: 100%; height: auto; border-radius: 15px 15px 0 0; }
.service-single .service-card .dz-media img { height: auto; max-height: 420px; object-fit: cover; }
.service-single .service-card .dz-info { border-radius: 0 0 15px 15px; }

/* ── Premium Healthcare Service Cards ──────────────────────────── */
.svc-premium.icon-bx-wraper.style-1 {
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.svc-premium.icon-bx-wraper.style-1:hover {
  background-color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.11);
}
.svc-premium.icon-bx-wraper.style-1.active {
  background-color: #fff;
}
.svc-premium.icon-bx-wraper.style-1:hover .icon-content > *,
.svc-premium.icon-bx-wraper.style-1.active .icon-content > * {
  color: inherit;
}
.svc-premium.icon-bx-wraper.style-1 .dz-media {
  aspect-ratio: 3 / 2;
  border-radius: 0;
}
.svc-premium.icon-bx-wraper.style-1 .dz-media img {
  border-radius: 0;
}
.svc-premium.icon-bx-wraper.style-1 .icon-content {
  padding: 26px 28px 30px;
}
.svc-premium.icon-bx-wraper.style-1 .icon-content .dz-title {
  font-size: 17px;
  font-weight: 600;
  color: #12122a;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.svc-premium.icon-bx-wraper.style-1 .icon-content > p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Pill button */
.btn-svc-pill {
  display: inline-block;
  padding: 9px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--bs-primary);
  color: var(--bs-primary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}
.btn-svc-pill:hover {
  background: var(--bs-primary);
  color: #fff;
  text-decoration: none;
}
.btn-svc-pill--filled {
  background: var(--bs-primary);
  color: #fff;
}
.btn-svc-pill--filled:hover {
  background: transparent;
  color: var(--bs-primary);
}

/* ── Scroll-to-top: move to bottom left, match WA distance ─────── */
.scroltop {
  right: auto !important;
  left: 15px !important;
  bottom: 15px !important;
  width: 60px !important;
  height: 60px !important;
}

/* ── WhatsApp floating button ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 31px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  color: #fff !important;
}
@media only screen and (max-width: 767px) {
  .wa-float {
    width: 49px;
    height: 49px;
    font-size: 26px;
    bottom: 12px;
    right: 12px;
  }
  .scroltop {
    width: 49px !important;
    height: 49px !important;
    bottom: 12px !important;
    left: 12px !important;
  }
}
