/* ── Font ── */
/* body/heading font-family is set globally in custom.css (Instrument Sans
   / Inter), loaded before this file — Inter has no narrow/condensed
   readability issue at heading length, so no section-specific exemption
   is needed here (unlike the earlier Bebas Neue pass). Bootstrap 5.3 has
   no fw-extrabold/fw-black utilities, so those classes were previously
   silent no-ops — defining them here makes the HTML that already uses
   them actually work. */
.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }

/* Bootstrap has no .rounded-xl utility (only rounded-1..5/circle/pill),
   so this was a silent no-op on the Hero contact-bar icon boxes —
   source: Hero.tsx xl:rounded-xl / rounded-xl = 12px. */
.rounded-xl { border-radius: 12px !important; }

/* ── Header ── */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-logo {
  height: 48px;
  width: auto;
}

.header-link {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-base);
  transition: color 0.3s ease;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header-link:hover,
.header-link.active {
  color: #103FD3;
  font-weight: 600;
}

.header-link.active {
  border-bottom: 2px solid #103FD3;
}

/* ── Mobile menu (landing-header.php #mobileNav) ──
   Full-width rows of equal height; the current page is a light blue row
   rather than the desktop underline, which spans the whole width here. */
.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-base);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #eff6ff;
  color: #103FD3;
  font-weight: 600;
}

.mobile-nav-label {
  margin-top: 8px;
  padding: 10px 12px 4px;
  border-top: 1px solid #e5e7eb;
  color: #94a3b8;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Hero Section ── */
.hero-section {
  background: url('/mobile_bg.png') no-repeat center/cover;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-section {
    background-image: url('/desktop_bg.png');
  }
}

/* Hero text and doctor photo (home.php). Desktop: side by side, the text
   kept 130px above the contact bar. Phones and tablets: the photo sits
   under the buttons and the contact bar covers its lower part, as on
   desktop; the photo's height grows with the screen width. */
.hero-copy {
  padding-bottom: 1.5rem;
}

.hero-doctor {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(380px, 112vw, 560px);
  margin: 0 auto;
  object-fit: contain;
  object-position: bottom;
}

/* "Get Started" and "Patient Login": one row on phones too, two equal
   buttons with an even gap. Less side padding below 576px so both fit
   on a 360px screen; from 576px they keep their full 32px padding. */
.hero-actions {
  flex-wrap: nowrap;
}

@media (max-width: 575.98px) {
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap;
  }
}

@media (min-width: 992px) {
  .hero-copy {
    padding-bottom: 3rem;
    margin-bottom: 130px;
  }

  .hero-doctor {
    height: auto;
    max-height: 600px;
    margin: 0 0 0 auto;
  }
}

/* Hero brand blue — the original renders this as Tailwind's blue-700
   (#1d4ed8), a deeper/more saturated blue than Bootstrap's default
   primary (#0d6efd). Scoped to the hero only — this is the one section
   directly compared against an original screenshot; other sections'
   .text-primary/.btn-primary usage is left at the app default since it
   wasn't part of that comparison. */
.hero-section .text-primary {
  color: #1d4ed8 !important;
}

.hero-section .btn-primary {
  --bs-btn-bg: #1d4ed8;
  --bs-btn-border-color: #1d4ed8;
  --bs-btn-hover-bg: #1e40af;
  --bs-btn-hover-border-color: #1e40af;
  --bs-btn-active-bg: #1e3a8a;
  --bs-btn-active-border-color: #1e3a8a;
  --bs-btn-disabled-bg: #1d4ed8;
  --bs-btn-disabled-border-color: #1d4ed8;
}

.hero-section .btn-outline-primary {
  --bs-btn-color: #1d4ed8;
  --bs-btn-border-color: #1d4ed8;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1d4ed8;
  --bs-btn-active-border-color: #1d4ed8;
}

/* Exact size from the original Hero.tsx "Get Started"/"Patient Login"
   buttons (Tailwind px-8 py-3 text-base = 32px/12px padding, 16px font).
   Scoped here instead of left as px-4/px-lg-5/py-3 Bootstrap utilities
   in the markup, since Bootstrap's spacing scale doesn't line up with
   Tailwind's (Bootstrap py-3 = 16px, not 12px; px-5 = 48px, not 32px). */
.hero-section .btn-primary,
.hero-section .btn-outline-primary {
  padding: 12px 32px;
  font-size: var(--fs-base);
}

/* ── Contact Bar ── */
.contact-bar {
  background: linear-gradient(90deg, #0047AB 0%, #0077B6 100%);
}

/* ── About Us Section (home.php #about) ── */
/* Source: components/home/AboutUs.tsx. Background pattern image was
   missing entirely (same gap found on the Services component) — desktop
   only (lg:flex), 20% opacity, no explicit color scoping needed since it
   sits under the text/image content via z-index. */
.about-section {
  position: relative;
  background: #103FD3;
}

.about-section .about-pattern-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 992px) {
  .about-section .about-pattern-bg {
    display: block;
  }
  /* md:bg-[#0194FE] md:bg-linear-to-r md:to-blue-800 — mobile is solid
     #103FD3 above, desktop swaps to this gradient. */
  .about-section {
    background: linear-gradient(to right, #0194FE 0%, #1e40af 100%);
  }
}

.about-section .container {
  position: relative;
  z-index: 1;
}

/* h-[460px] sm:h-[400px] lg:h-[560px] max-w-[550px] lg:max-w-none */
.about-image-grid {
  max-width: 550px;
  height: 460px;
}

@media (min-width: 576px) {
  .about-image-grid {
    height: 400px;
  }
}

@media (min-width: 992px) {
  .about-image-grid {
    max-width: none;
    height: 560px;
  }
}

/* rounded-3xl shadow-2xl */
.about-image-grid img {
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.about-image-tall {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-short {
  width: 100%;
  object-fit: cover;
}

/* About Us text (home.php). Desktop: as before, large bold heading, left
   aligned. Below 992px: the phone design, a blue gradient from top to
   bottom, a lighter heading, the body text and the button (at its
   desktop size) all centered, and a shorter image grid. */
.about-pill {
  background: #22c55e;
  color: #fff;
  padding: 4px 20px;
  font-size: var(--fs-base);
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-title {
  font-size: var(--fs-5xl);
  font-weight: 700;
  line-height: 1.375;
}

.about-text {
  font-size: var(--fs-md);
  line-height: 1.625;
  opacity: 0.9;
}

.about-btn {
  background: #fff;
  color: #0047AB;
  font-weight: 600;
  padding: 12px 32px;
}

.about-btn:hover {
  background: #eff6ff;
  color: #0047AB;
}

@media (max-width: 991.98px) {
  .about-section {
    background: linear-gradient(180deg, #103FD3 0%, #1E88E5 100%);
  }

  .about-pill {
    padding: 3px 16px;
    font-size: var(--fs-sm);
  }

  .about-pill > span {
    width: 9px !important;
    height: 9px !important;
  }

  .about-title {
    font-size: var(--fs-2xl);
    font-weight: 400;
    line-height: 1.4;
  }

  /* Same width as the heading's longest line ("in Health & Maternity
     Care", 348px at this size), centered like the heading and button. */
  .about-text {
    max-width: 21.75rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: var(--fs-base);
    line-height: 1.65;
    opacity: 1;
  }

  .about-image-grid {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
    height: clamp(240px, 66vw, 420px);
  }

  .about-image-grid .gap-3 {
    gap: 10px !important;
  }

  .about-image-grid img {
    border-radius: 14px;
  }
}

/* ── Feature Card ── */
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.icon-primary { background: rgba(25, 60, 184, 0.1); color: #193CB8; }
.feature-icon.icon-success { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.feature-icon.icon-info    { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.feature-icon.icon-danger  { background: rgba(219, 39, 119, 0.1); color: #db2777; }

/* Larger circular variant (Mission/Vision cards) — the small feature-icon
   badges elsewhere on this page are rounded squares; these are full
   circles, per the reference screenshot. */
.feature-icon.icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

/* ── Section Vertical Padding (shared: about-us, about-doctor, contact,
   services — 7 usages across the 4 pages, all previously unstyled, which
   is why "Who We Are" started almost immediately under the hero banner
   with no breathing room). */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ── Section Title/Subtitle (shared: about-us, about-doctor, contact,
   services — generic content-section headings, not the hero banner) ── */
.section-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
}

/* Confirmed brand blue (matches the footer/hero, not Bootstrap's default
   .text-primary #0d6efd) — used for headings that should render in the
   real brand color. */
.text-brand {
  color: #193CB8;
}

.section-subtitle {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: #374151;
}

/* ── About Us image collage — one tall portrait left, two stacked short
   images right, one wide image spanning the bottom. Different structure
   from the homepage's collage (tall left + 2 stacked right, no bottom
   row there) since about-us has a 4th image. ── */
.image-grid-tall {
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.image-grid-short {
  height: 190px;
  object-fit: cover;
}

.image-grid-wide {
  height: 220px;
  object-fit: cover;
}

/* ── Services Component Grid (shared: home.php AND services.php — both
   render components/home/Services.tsx via #services). Full-bleed image
   with a bottom-left overlapping content card, not a separate card body.
   gap-15/gap-y-37/pb-29 = 60px/148px/116px; h-64/lg:h-72 = 256px/288px
   (lg breakpoint matched to Tailwind's 1024px, not Bootstrap's 992px,
   since this is a standalone class, not part of the Bootstrap grid). */
#services {
  position: relative;
}

/* Background pattern image — source has no opacity utility on this one
   (unlike the hero's pattern); Medical_Services.jpg is already a very
   faint, low-contrast pattern on its own. home.php was missing this
   layer entirely until now, same gap as services.php. */
#services .services-pattern-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

#services .container {
  position: relative;
  z-index: 1;
}

.service-grid {
  --bs-gutter-x: 60px;
  row-gap: 40px;
  padding-bottom: 8px;
}

.service-img {
  display: block;
  height: 256px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.service-grid .position-relative:hover .service-img {
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .service-img {
    height: 288px;
  }
}

/* "What We Offer" white cards (home.php and services.php). Every card has
   the same padding, title and paragraph style. The card overlaps the
   bottom 60px of its photo and grows with its text, so there is always
   exactly 32px under the paragraph, whether the title takes one line or two,
   and the same 40px gap (.service-grid) before the next photo. */
.service-overlay {
  margin: -60px auto 0;
  width: 85%;
  padding: 32px;
  border-radius: 12px;
  z-index: 20;
}

.service-title {
  margin-bottom: 8px;
  color: #16a34a;
  font-size: var(--fs-lg);
  font-weight: 700;
}

.service-desc {
  margin: 0;
  color: #374151;
  font-size: var(--fs-base);
}

/* ── Service Card (services.php) ── */
.service-card {
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-label {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.service-label.label-green { background: #22c55e; }
.service-label.label-blue { background: #103FD3; }

/* ── Buttons ── */
/* Base size matches the header "Get Started" button (landing-header.php),
   the only unmodified .btn-brand instance — Header.tsx:106 Tailwind
   px-5 py-3 text-sm = 20px/12px padding, 14px font. Instances that need
   a different size (about-us.php's Contact Us CTA, contact.php's Send
   Message) override padding/font-size inline, same as those buttons'
   real Tailwind counterparts differ from Header's. */
.btn-brand {
  background: #103FD3;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: var(--fs-body);
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-brand:hover {
  background: #0c32a8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 63, 211, 0.3);
}

/* Footer emergency-hotline button only. Source: Footer.tsx:137/263
   Tailwind px-5 py-2.5 text-sm = 20px/10px padding, 14px font. */
.btn-accent {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9375rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: #16a34a;
  color: #fff;
}

/* ── CTA Section Buttons (about-us, about-doctor, services) ── */
/* about-us.php's "Contact Us" is the one instance with a real Next.js
   source — about-us/page.tsx:238, Tailwind px-8 py-3 text-base =
   32px/12px padding, 16px font. about-doctor.php and services.php reuse
   this identical .cta-section markup pattern with no independent
   Next.js source of their own, so the same size is applied to them for
   visual consistency across the shared pattern. */
.cta-section .btn {
  padding: 12px 32px;
  font-size: var(--fs-base);
}

.btn-white {
  background: #fff;
  color: inherit;
}

.btn-white:hover {
  background: #f1f5f9;
}

.testimonial-nav-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* ── Patient voices (home.php): the rating reads like a vital sign on a patient
   monitor, beside one patient's words at a time. ── */
.voices {
  padding: 72px 0;
  background: #f9fafb;
}

.voices-title {
  margin-bottom: 40px;
  color: #101828;
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.voices-title span {
  display: block;
  color: #2563eb;
}

.voices-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
}

/* The monitor */
.vital-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(160deg, #0b1b4d 0%, #193cb8 100%);
  color: #fff;
}

.vital-label {
  margin: 0;
  color: #bfdbfe;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vital-reading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.vital-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-6xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.vital-unit {
  color: #dbeafe;
  font-size: var(--fs-md);
}

.vital-trace {
  display: block;
  width: 100%;
  height: 70px;
  margin: 20px 0;
  overflow: visible;
}

.vital-trace path {
  fill: none;
  stroke: #4ade80;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  animation: vital-trace 4s linear infinite;
}

@keyframes vital-trace {
  from { stroke-dashoffset: 1; }
  70%, to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vital-trace path { animation: none; }
}

.vital-meter {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.vital-meter span {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4ade80 var(--fill), rgba(255, 255, 255, 0.2) var(--fill));
}

.vital-foot {
  margin: 16px 0 0;
  color: #dbeafe;
}

/* One voice at a time */
.voice-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
}

.voice-mark {
  width: 40px;
  height: 30px;
  margin-bottom: 20px;
  fill: #22c55e;
}

.voice-stage {
  display: grid;
  flex: 1;
}

.voice {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.voice.is-active {
  opacity: 1;
  visibility: visible;
}

.voice blockquote {
  margin: 0 0 20px;
  color: #1f2937;
  font-size: var(--fs-base);
  line-height: 1.5;
}

.voice figcaption strong {
  display: block;
  color: #101828;
}

.voice figcaption span {
  color: #374151;
  font-size: var(--fs-sm);
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.voice-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-person {
  width: 48px;
  height: 48px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  transition: border-color 0.2s ease;
}

.voice-person img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.voice-person:hover img,
.voice-person.is-active img {
  opacity: 1;
}

.voice-person.is-active {
  border-color: #2563eb;
}

.voice-arrows {
  display: flex;
  gap: 8px;
}

.voice-arrows button {
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.voice-arrows button:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.voice-person:focus-visible,
.voice-arrows button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .voices {
    padding: 56px 0;
  }

  .voices-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .voices-title {
    margin-bottom: 28px;
  }

  .vital-card,
  .voice-panel {
    padding: 24px;
  }

  /* All the photos share one row at any phone width, arrows under them. */
  .voice-people {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  .voice-person {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .voice-arrows {
    margin-left: auto;
  }
}

/* ── Footer ── */
.landing-footer {
  background: #193CB8;
  color: #fff;
}

/* Scoped to .landing-footer's own two containers (main content + the
   copyright bar) so this never touches the many other plain .container
   elements elsewhere in the app. Replaces the py-5/py-4 utility classes
   previously on these elements in the HTML — single source of truth. */
.landing-footer > .container {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.landing-footer .copyright-bar > .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.landing-footer .footer-logo {
  height: auto;
  max-height: 60px;
  max-width: 100%;
  margin-bottom: 16px;
}

.landing-footer .footer-heading {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.landing-footer .footer-tagline {
  font-size: var(--fs-md);
  line-height: 1.75;
}

/* Secondary/muted footer text (tagline, address, copyright) — a fixed
   rgba alpha, not Bootstrap's .opacity-* utility. .opacity-* sets the
   real CSS `opacity` property, which dims an element's entire subtree
   as a single compositing pass — so an opacity-75 wrapper around a link
   that already had its own reduced-alpha color would compound (0.75 x
   0.6 = ~0.45 effective), which is what made the footer read as
   borderline-illegible once the background moved from near-black
   (#0f172a) to the brighter #193CB8. Plain color:rgba(...) doesn't have
   that compounding problem and keeps a child's own explicit color
   (e.g. the green "Syo Technol Ltd" link) at its own real contrast. */
.landing-footer .footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-md);
}

.landing-footer .footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--fs-base);
  line-height: 1.6rem;
  transition: color 0.3s ease;
}

.landing-footer .footer-link:hover {
  color: #fff;
}

.landing-footer ul.list-unstyled li {
  margin-bottom: 0.5rem;
}

.landing-footer ul.list-unstyled li:last-child {
  margin-bottom: 0;
}

.landing-footer .social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.landing-footer .social-icon:hover {
  background: rgba(255,255,255,0.2);
}

.landing-footer .footer-contact-icon {
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.landing-footer .copyright-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Inner-page Hero Banner ── */
/* Shared by about-us.php and contact.php — the subpage header banner
   (blue gradient, centered heading + subtext), screenshot-verified
   correct for about-us.php. about-doctor.php doesn't use this at all
   (no hero banner exists on that page in the Next.js source) and
   services.php has its own distinct hero (.services-hero below) — its
   real source uses a different solid blue + gradient-overlay treatment,
   not this gradient. */
.landing-hero {
  position: relative;
  background: linear-gradient(180deg, #193CB8 0%, #17389E 100%);
  color: #fff;
  text-align: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.landing-hero .container {
  position: relative;
  z-index: 2;
}

.landing-hero h1 {
  font-size: var(--fs-5xl);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.landing-hero p {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto;
}

/* ── CTA Section (about-us.php only — about-doctor.php and services.php
   both had this section too, but in both cases it was fabricated (not
   in their Next.js source) and was removed rather than kept) ── */
.cta-section {
  padding: 5rem 0;
  background: #fff;
}

/* ── About Doctor Page (about-doctor.php only) ── */
/* Source: app/(landing-pages)/about-doctor/page.tsx. gap-10/lg:gap-16 =
   40px/64px between the photo card and bio text columns. */
.doctor-grid {
  --bs-gutter-x: 40px;
  row-gap: 40px;
  /* A gutter wider than the container's padding would scroll the page sideways. */
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 992px) {
  .doctor-grid {
    --bs-gutter-x: 64px;
  }
}

/* max-w-md = 448px, rounded-2xl = 16px, shadow-xl */
.doctor-card {
  max-width: 448px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* h-[420px] object-cover */
.doctor-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* bg-[#103FD3] p-6 */
.doctor-info {
  background: #103FD3;
  color: #fff;
  padding: 24px;
}

.doctor-info h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
}

.doctor-info p {
  font-size: var(--fs-base);
  color: #dbeafe;
  margin: 0;
}

.doctor-info p:first-of-type {
  margin-top: 8px;
}

/* text-[17px] leading-relaxed text-gray-700, space-y-6 = 24px between paragraphs */
.doctor-bio {
  color: #374151;
  font-size: var(--fs-md);
  line-height: 1.625;
}

.doctor-bio p + p {
  margin-top: 24px;
}

/* ── Services Page Hero (services.php only) ── */
/* Source: bg-[#103FD3] bg-linear-to-r md:to-blue-900, py-12 lg:py-24, plus
   a desktop-only (lg:flex) 20%-opacity background pattern image. Distinct
   from .landing-hero — different color, different gradient direction. */
.services-hero {
  position: relative;
  background: linear-gradient(to right, #103FD3 0%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .services-hero {
    padding: 6rem 0;
  }
}

.services-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

@media (min-width: 992px) {
  .services-hero-pattern {
    display: block;
  }
}

.services-hero .container {
  position: relative;
  z-index: 1;
}

.services-hero h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.375;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .services-hero h2 {
    font-size: var(--fs-5xl);
    margin-bottom: 24px;
  }
}

.services-hero p {
  color: #fff;
  font-size: var(--fs-base);
  line-height: 1.5;
  max-width: 768px;
  margin: 0 auto 24px;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .services-hero p {
    font-size: var(--fs-md);
    line-height: 1.625;
  }
}

/* ── Services Page Feature Cards (services.php only) ── */
/* Source: bg-blue-50, py-9 lg:py-24 = 36px/96px. Distinct from
   .feature-card/.feature-icon (about-us.php's pattern: Bootstrap .card,
   fixed 56px tinted-square icon) — this page's real source uses a
   different card shape (rounded-2xl, border, no Bootstrap .card) and a
   solid-color circular icon, so it gets its own classes rather than
   forcing a mismatched reuse. */
.services-features {
  background: #eff6ff;
  padding: 36px 0;
}

@media (min-width: 992px) {
  .services-features {
    padding: 96px 0;
  }
}

/* rounded-2xl py-8 px-5 border border-gray-100 shadow-sm hover:shadow-xl
   hover:-translate-y-1 */
.services-feature-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 32px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services-feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* w-max p-4 rounded-full bg-[#103FD3], group-hover:scale-110 */
.services-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #103FD3;
  color: #fff;
  font-size: var(--fs-xl);
  border-radius: 9999px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.services-feature-card:hover .services-feature-icon {
  transform: scale(1.1);
}

.services-feature-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.services-feature-card p {
  font-size: var(--fs-base);
  color: #374151;
  line-height: 1.625;
  margin: 0;
}

/* ── Hospital Management Section (home.php only) ── */
/* From the Figma (a 1440px frame, measured). A flat background with two soft
   rings, blue top-left and green bottom-right. --hm-unit is one Figma pixel,
   so the rings keep their place on every screen. */
.hospital-mgmt-section {
  --hm-unit: clamp(0.6px, calc(100vw / 1440), 1.2px);
  padding: 48px 0;
  background: #eff7fd;
}

.hospital-mgmt-section .container {
  position: relative;
  z-index: 1;
}

.hm-head {
  margin-bottom: 48px;
}

.hospital-mgmt-circles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hmc {
  position: absolute;
  display: block;
  border-style: solid;
  border-radius: 50%;
  background: transparent;
  filter: blur(21px);
}

.hmc-blue {
  top: calc(var(--hm-unit) * -213);
  left: calc(var(--hm-unit) * -212);
  width: calc(var(--hm-unit) * 714);
  height: calc(var(--hm-unit) * 714);
  border-width: calc(var(--hm-unit) * 138);
  border-color: #cce2ff;
}

.hmc-green {
  right: calc(var(--hm-unit) * -177);
  bottom: calc(var(--hm-unit) * -131);
  width: calc(var(--hm-unit) * 666);
  height: calc(var(--hm-unit) * 666);
  border-width: calc(var(--hm-unit) * 121);
  border-color: #d6f6c8;
}

@media (min-width: 992px) {
  .hospital-mgmt-section {
    padding: 59px 0 85px;
  }

  .hmc-green {
    top: calc(var(--hm-unit) * 262);
    bottom: auto;
  }

  .hm-head {
    margin-bottom: 69px;
  }

  .hm-grid {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 30px;
  }
}

@media (min-width: 1400px) {
  .hospital-mgmt-section .container {
    max-width: 1304px;
  }
}

/* w-max p-4 rounded-lg (8px) — replaces the old fixed 56x56 rounded-3
   (6px) tinted-square treatment; source's icon box auto-sizes to a 24px
   icon + 16px padding, which naturally lands at 56px anyway. */
.hospital-mgmt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 8px;
  font-size: var(--fs-xl);
  width: 56px;
  height: 56px;
}

.hospital-mgmt-icon svg {
  width: 24px;
  height: 24px;
}

/* "We Provide Holistic Hospital Management" (home.php). Desktop: large
   black heading, cards with the icon, title and text on the left. Below
   992px: smaller blue heading and compact two-column cards. */
.hm-title {
  font-size: var(--fs-5xl);
  font-weight: 700;
  color: #111827;
}

.hm-subtitle {
  max-width: 672px;
  color: #374151;
}

.hm-card {
  padding: 25px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: left;
}

.hm-card .hospital-mgmt-icon {
  width: 55px;
  height: 55px;
  padding: 0;
  margin: 0 0 14px;
}

.hm-card .hospital-mgmt-icon svg {
  width: 32px;
  height: 32px;
}

.hm-card-title {
  margin-bottom: 8px;
  color: #101828;
  font-weight: 500;
}

.hm-card-desc {
  color: #4a5565;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .hm-title {
    font-size: var(--fs-2xl);
    font-weight: 500;
    line-height: 1.3;
    color: #1d4ed8;
  }

  .hm-subtitle {
    max-width: 300px;
    font-size: var(--fs-sm);
    line-height: 1.7;
  }

  .hm-card {
    padding: 14px;
    text-align: left;
    border-radius: 10px;
  }

  .hm-card .hospital-mgmt-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0 0 12px;
    border-radius: 7px;
  }

  .hm-card .hospital-mgmt-icon svg {
    width: 17px;
    height: 17px;
  }

  .hm-card-title {
    margin-bottom: 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #111827;
  }

  .hm-card-desc {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }
}

/* ── Contact Page Feature Cards (contact.php only) ── */
/* Source: app/(landing-pages)/contact/page.tsx's 2nd section.
   py-12 lg:py-24 = 48px/96px (different mobile padding from services.php's
   equivalent section, which uses py-9=36px — kept separate rather than
   reusing .services-features since the source values genuinely differ). */
.contact-features-section {
  background: #eff6ff;
  padding: 48px 0;
}

@media (min-width: 992px) {
  .contact-features-section {
    padding: 96px 0;
  }
}

/* rounded-2xl py-6 px-5 text-start border-gray-100 shadow-sm
   hover:shadow-xl hover:-translate-y-1 — same family as
   .services-feature-card but py-6 (24px) not py-8 (32px). */
.contact-feature-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: left;
}

.contact-feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* w-max p-4 rounded-lg, solid per-card bg + white icon (not tinted) */
.contact-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  font-size: var(--fs-xl);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.contact-feature-card:hover .contact-feature-icon {
  transform: scale(1.1);
}

.contact-feature-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.contact-feature-card a,
.contact-feature-card span {
  font-size: var(--fs-base);
  color: #374151;
  line-height: 1.5;
  text-decoration: none;
}

.contact-feature-card a:hover {
  text-decoration: underline;
}

/* ── Contact Form Section (contact.php only) ── */
/* Source: components/home/ContactForm.tsx. py-16 lg:py-24 = 64px/96px,
   px-4 md:px-7 lg:px-15 = 16px/28px/60px on the section itself. Missing
   background pattern (Medical_Services.jpg) — same recurring gap. */
.contact-form-section {
  position: relative;
  background: #fff;
  padding: 64px 16px;
}

@media (min-width: 768px) {
  .contact-form-section {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 992px) {
  .contact-form-section {
    padding: 96px 60px;
  }
}

.contact-form-pattern-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.contact-form-section .container {
  position: relative;
  z-index: 1;
}

/* p-8 rounded-xl shadow-lg shadow-blue-200, py-10, px-5 sm:px-6 lg:px-16 */
.contact-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 10px 15px -3px rgba(191, 219, 254, 0.4), 0 4px 6px -4px rgba(191, 219, 254, 0.4);
}

@media (min-width: 576px) {
  .contact-form-card {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 992px) {
  .contact-form-card {
    padding-left: 64px;
    padding-right: 64px;
  }
  .contact-form-card .row {
    --bs-gutter-x: 180px;
  }
}

/* bg-blue-600 p-4 rounded-lg, white 16px icon (h-4 w-4) */
.contact-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #2563eb;
  color: #fff;
  font-size: var(--fs-base);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-mini-link {
  color: #111827;
  text-decoration: none;
}

.contact-mini-link:hover {
  text-decoration: underline;
}

/* px-4 py-3 border-gray-300 rounded-lg */
.contact-form-input {
  padding: 12px 16px;
  border-color: #d1d5db;
  border-radius: 8px;
}

/* w-full px-4 py-3 bg-blue-700 rounded-lg, hover:scale-110 (no color
   change on hover in source, just the scale) */
.contact-submit-btn {
  width: 100%;
  padding: 12px 16px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

/* ── Header "About" Dropdown (landing-header.php) ── */
/* Source: Header.tsx's ABOUT DROPDOWN — w-56 bg-white shadow-xl
   rounded-xl border p-2 (panel); block px-4 py-3 rounded-lg
   hover:bg-blue-50 text-sm (items). Previously pure Bootstrap defaults —
   no rules existed for either class anywhere. */
.dropdown-menu {
  width: 224px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: var(--fs-body);
  color: #111827;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #eff6ff;
  color: #111827;
}

/* ── Phone-width gutters ──
   A row's side margins are half its gutter. Below 576px the container's
   own padding is 12px, so any gutter wider than 24px pushes the row past
   the screen edge and the whole page scrolls sideways. Keep the wide
   gutters from 576px up. Placed last so it wins over the rules above. */
@media (max-width: 575.98px) {
  .row.g-5,
  .service-grid,
  .doctor-grid {
    --bs-gutter-x: 1.5rem;
  }
}

/* The long email address wraps instead of scrolling the page sideways. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
