/* ── Remove default header top padding — announcement bar fills that space */
.site-header.box-header2 {
  padding-top: 0 !important;
}

/* ── Announcement Bar ─────────────────────────────────────────────── */
.announcement-bar {
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 0;
  position: relative;
  z-index: 9999;
}

.announcement-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.announcement-bar-left {
  flex: 1;
  min-width: 0;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.92);
}

.announcement-text i {
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.announcement-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ann-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
}
.ann-contact:hover { opacity: 0.8; }
.ann-contact i { font-size: 0.8rem; }

.ann-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.35);
}

.ann-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ann-socials a {
  color: #fff !important;
  font-size: 1rem;
  text-decoration: none !important;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}
.ann-socials a:hover {
  opacity: 1;
  transform: scale(1.15);
}

@media only screen and (max-width: 767px) {
  .announcement-bar {
    padding: 6px 0;
  }
  .announcement-text {
    font-size: 0.72rem;
  }
  .ann-contact {
    font-size: 0.78rem;
  }
  .announcement-bar-left {
    display: none;
  }
  .announcement-bar-inner {
    justify-content: flex-end;
  }
}

/* ── 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;
  }
}


/* ── Hero: tagline line ────────────────────────────────────────── */
.hero-content .hero-tagline {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: #fff;
  background: var(--bs-primary);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Hero blob carousel ────────────────────────────────────────── */
.hero-carousel-wrapper {
  position: relative;
  width: 520px;
  max-width: 100%;
}

/* Soft glow behind the blob */
.hero-blob-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at 50% 55%, rgba(var(--bs-primary-rgb), 0.28) 0%, transparent 68%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

/* Blob shape via border-radius — reliable, cross-browser, scales correctly */
.hero-blob-swiper {
  width: 520px;
  height: 620px;
  max-width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  animation: blobMorph 8s ease-in-out infinite;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

@keyframes blobMorph {
  0%   { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  25%  { border-radius: 42% 58% 62% 38% / 48% 60% 40% 52%; }
  50%  { border-radius: 54% 46% 38% 62% / 42% 56% 44% 58%; }
  75%  { border-radius: 38% 62% 54% 46% / 56% 40% 60% 44%; }
  100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
}

.hero-blob-swiper .swiper-slide {
  overflow: hidden;
}

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

/* Pagination dots below the blob */
.hero-blob-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 14px;
  text-align: center;
  z-index: 2;
}

.hero-blob-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  width: 7px;
  height: 7px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-blob-pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.4);
}

/* Mobile */
@media only screen and (max-width: 991px) {
  .hero-carousel-wrapper {
    width: 360px;
    margin: 36px auto 0;
  }
  .hero-blob-swiper {
    width: 360px;
    height: 430px;
  }
}

/* ── Hero section — fit viewport ──────────────────────────────── */
.hero-banner.style-1 {
  height: 100vh !important;
  min-height: 640px !important;
}

/* ── Hero title — smaller, 2-line target ──────────────────────── */
.hero-banner.style-1 .title {
  font-size: 42px !important;
  line-height: 1.2 !important;
}

@media only screen and (max-width: 1199px) {
  .hero-banner.style-1 .title {
    font-size: 34px !important;
  }
}

@media only screen and (max-width: 767px) {
  .hero-banner.style-1 .title {
    font-size: 28px !important;
  }
}

/* ── Hero mobile background image swap ───────────────────────── */
@media only screen and (max-width: 991px) {
  .hero-banner.style-1 {
    background-image: url(../images/hero-banner/hero-mob.png) !important;
    background-position: center top !important;
    background-size: cover !important;
    height: 100vh !important;
    min-height: 650px !important;
    padding-bottom: 20px !important;
  }
  
  .hero-banner.style-1 .row.align-items-center {
    align-items: flex-end !important;
  }
  
  .hero-banner.style-1 .hero-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    text-align: center;
  }

  .hero-banner.style-1 .hero-content .title {
    font-size: 22px !important;
    margin-bottom: 12px;
    line-height: 1.25 !important;
  }
  
  .hero-banner.style-1 .hero-content .d-flex {
    justify-content: center;
  }
}

/* ── Mobile nav logo — gap from announcement bar ──────────────── */
@media only screen and (max-width: 991px) {
  .header-nav .logo-header {
    padding-top: 55px !important;
  }
}

/* ── Hero static doctor image ─────────────────────────────────── */
.hero-doctor-img {
  max-height: 92vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

@media only screen and (max-width: 991px) {
  .hero-doctor-img {
    max-height: 55vh;
    margin-top: 20px;
    width: 100%;
    object-position: top center;
  }
}

/* ── Blog card ─────────────────────────────────────────────────── */
.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.blog-card .card-body {
  padding: 20px;
}
.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}
.blog-category-badge {
  display: inline-block;
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ── Blog post key-takeaways callout ───────────────────────────── */
.blog-callout {
  background: rgba(var(--bs-primary-rgb), 0.07);
  border-left: 4px solid var(--bs-primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 28px 0;
}
.blog-callout h5 {
  color: var(--bs-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.blog-callout ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}
.blog-callout ul li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ── Author bio strip ──────────────────────────────────────────── */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: #fdf6fb;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 12px;
  margin-top: 36px;
}
.author-bio img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bs-primary);
}
.author-bio .author-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--bs-secondary);
}
.author-bio .author-creds {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

/* ── Blog breadcrumb ───────────────────────────────────────────── */
.blog-breadcrumb {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 16px;
}
.blog-breadcrumb a {
  color: var(--bs-primary);
  text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }

/* ── Read time pill ────────────────────────────────────────────── */
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 12px;
}
