/* ============================================================
   Dr. Abhijeet R Nalkar — Premium Orthopaedic Website
   Complete Design System — Clean Version
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  --purple: #674EA0;
  --purple-dark: #563d8c;
  --purple-deep: #4F1E78;
  --blue: #0986B7;
  --blue-dark: #077aa6;
  --navy: #1E293B;
  --gray: #818386;
  --dark: #231F20;
  --white: #FFFFFF;
  --lilac: #F5F2FA;
  --ice: #F1F8FB;
  --soft: #F5F6F7;
  --border: #E4E6E8;

  --fs-display: clamp(2.25rem, 1.2rem + 4.5vw, 5.25rem);
  --fs-h1: clamp(2rem, 1.1rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.65rem, 1rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.35rem, 0.95rem + 1.5vw, 2rem);
  --fs-h4: clamp(1.15rem, 0.9rem + 0.9vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-body: clamp(0.975rem, 0.94rem + 0.15vw, 1.0625rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container-pad: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);

  --container: 1280px;
  --container-wide: 1440px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;

  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(103, 78, 160, 0.35);
  --shadow-lg: 0 20px 50px -30px rgba(103, 78, 160, 0.45);

  --header-h: 64px;
}
@media (min-width: 768px) { :root { --header-h: 76px; } }
@media (min-width: 1024px) { :root { --header-h: 84px; } }

/* ---------- 3. BASE ---------- */
body {
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; touch-action: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }
a { color: inherit; }
::selection { background: var(--purple); color: white; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- 4. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 800px; }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * 0.7); }

.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.text-blue { color: var(--blue); }
.text-gray { color: var(--gray); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  padding: 0.75rem 1.25rem; background: var(--purple);
  color: white; font-weight: 700; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--purple);
  margin-bottom: var(--sp-3);
}
.lead { font-size: var(--fs-lead); color: var(--gray); line-height: 1.65; }

.bg-soft { background: linear-gradient(135deg, #F5F6F7 0%, #FAFBFD 100%); }
.bg-lilac { background: linear-gradient(135deg, #F5F2FA 0%, #FAF7FF 100%); }
.bg-ice { background: linear-gradient(135deg, #F1F8FB 0%, #F7FCFE 100%); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 44px;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #674EA0, #563d8c);
  color: white;
  box-shadow: 0 10px 24px -12px rgba(103, 78, 160, 0.6);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #563d8c, #4a2f77);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(103, 78, 160, 0.7);
}
.btn-secondary {
  background: linear-gradient(135deg, #0986B7, #077aa6);
  color: white;
  box-shadow: 0 10px 24px -12px rgba(9, 134, 183, 0.6);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #077aa6, #055a7a);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: white;
  box-shadow: 0 8px 24px -12px rgba(103, 78, 160, 0.3);
}
.btn-ghost { color: var(--navy); padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--purple); }
.btn-lg { padding: 1rem 1.75rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 6. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  padding-top: env(safe-area-inset-top, 0);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -12px rgba(103, 78, 160, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.site-header.scrolled .header-inner { height: calc(var(--header-h) - 8px); }

.logo { display: inline-flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: none; flex-direction: column; line-height: 1.15; }
.logo-text strong {
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-text span {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray);
}
@media (min-width: 480px) { .logo-text { display: flex; } }

.nav-primary { display: none; }
@media (min-width: 1024px) { .nav-primary { display: block; } }
.nav-primary ul { display: flex; align-items: center; gap: 0.15rem; }
.nav-primary a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  color: rgba(30, 41, 59, 0.85);
  transition: all var(--dur) var(--ease);
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] {
  color: var(--purple);
  background: rgba(103, 78, 160, 0.07);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn-primary { display: none; }
@media (min-width: 640px) { .header-actions .btn-primary { display: inline-flex; } }
.header-actions .btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 8px 24px -12px rgba(103, 78, 160, 0.6);
}
.header-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-dark), var(--blue-dark));
  transform: translateY(-1px);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--navy);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.header-spacer { height: var(--header-h); }

/* ---------- 7. MOBILE MENU ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: white;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  animation: slideIn 0.35s var(--ease);
  box-shadow: -20px 0 40px rgba(0,0,0,0.15);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--navy);
}
.mobile-menu-nav { flex: 1; overflow-y: auto; padding: 0.5rem 1.25rem; }
.mobile-menu-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.mobile-menu-nav a:hover, .mobile-menu-nav a[aria-current="page"] { color: var(--purple); }
.mobile-menu-footer { padding: 1.25rem; border-top: 1px solid var(--border); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  isolation: isolate;
  padding-block: 1rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow--purple {
  top: 10%; left: 30%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(147, 108, 202, 0.22), transparent 70%);
}
.hero-glow--blue {
  top: 6%; right: 6%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(9, 134, 183, 0.22), transparent 70%);
}

/* Anatomy circles */


.hero-anatomy--knee {
  top: 8%;
  left: 40%;
  width: 310px;
  height: 310px;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(190, 165, 230, 0.95) 0%,
      rgba(155, 120, 215, 0.85) 35%,
      rgba(115, 80, 185, 0.65) 70%,
      rgba(103, 78, 160, 0.35) 100%);
  box-shadow:
    inset -30px -30px 70px rgba(103, 78, 160, 0.55),
    inset 30px 30px 60px rgba(220, 200, 245, 0.55),
    0 25px 60px -20px rgba(103, 78, 160, 0.5),
    0 0 80px -10px rgba(147, 108, 202, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-anatomy--knee img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(103, 78, 160, 0.45));
  animation: floatAnatomy 7s ease-in-out infinite;
}
.hero-anatomy--knee.is-placeholder img { display: none; }

.hero-anatomy--hip {
  top: 4%;
  right: 3%;
  width: 350px;
  height: 350px;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(150, 210, 240, 0.95) 0%,
      rgba(105, 185, 225, 0.85) 35%,
      rgba(50, 155, 205, 0.65) 70%,
      rgba(9, 134, 183, 0.35) 100%);
  box-shadow:
    inset -30px -30px 70px rgba(9, 134, 183, 0.55),
    inset 30px 30px 60px rgba(180, 225, 245, 0.5),
    0 25px 60px -20px rgba(9, 134, 183, 0.5),
    0 0 80px -10px rgba(90, 180, 225, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-anatomy--hip img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(9, 134, 183, 0.45));
  animation: floatAnatomy 8s ease-in-out infinite reverse;
}
.hero-anatomy--hip.is-placeholder img { display: none; }

@keyframes floatAnatomy {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Callouts */
.hero-callout {
  position: absolute;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 0;
  pointer-events: none;
}
@media (min-width: 1024px) { .hero-callout { display: flex; } }

.hero-callout__badge {
  padding: 0.5rem 1.1rem;
  background: #FFFFFF;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px -8px rgba(30, 41, 59, 0.35), 0 2px 6px rgba(30, 41, 59, 0.08);
  white-space: nowrap;
}
.hero-callout--knee .hero-callout__badge { color: var(--purple); }
.hero-callout--hip  .hero-callout__badge { color: var(--blue); }

.hero-callout__line {
  display: block;
  width: 60px;
  height: 1.5px;
  background: rgba(103, 78, 160, 0.4);
}
.hero-callout--hip .hero-callout__line { background: rgba(9, 134, 183, 0.4); }

.hero-callout__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(103, 78, 160, 0.6);
  background: #FFFFFF;
}
.hero-callout--hip .hero-callout__dot { border-color: rgba(9, 134, 183, 0.6); }

.hero-callout--knee { top: 22%; left: 39%; }
.hero-callout--hip  { top: 30%; right: 3%; }

/* Dots */
.hero-dots {
  position: absolute;
  background-image: radial-gradient(circle, rgba(103, 78, 160, 0.35) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  z-index: 0;
  display: none;
}
@media (min-width: 1024px) { .hero-dots { display: block; } }
.hero-dots--tl { top: 12%; left: 42%; width: 80px; height: 60px; opacity: 0.55; }
.hero-dots--tr { top: 8%;  right: 32%; width: 80px; height: 60px; opacity: 0.55; }
.hero-dots--br { bottom: 22%; right: 22%; width: 90px; height: 70px; opacity: 0.45; }

/* Curves */
.hero-swoosh {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 45%;
  z-index: 0;
  pointer-events: none;
}
.hero-swoosh svg { width: 100%; height: 100%; display: block; }

/* Grid */
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
  z-index: 5;
  width: 100%;
  padding-block: 3rem 0;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 6fr 5fr;
    gap: 1rem;
  }
}

.hero-media { order: 1; }
.hero-content { order: 2; }
@media (min-width: 1024px) {
  .hero-media { order: 2; display: flex; align-items: flex-end; justify-content: flex-end; }
  .hero-content { order: 1; align-self: center; padding-bottom: 1.5rem; }
}



/* Doctor image */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .hero-photo-wrap {
    max-width: 640px;
    margin-inline: 0;
    margin-right: 1rem;
    margin-bottom: -2rem;
  }
}
@media (min-width: 1280px) {
  .hero-photo-wrap { max-width: 720px; }
}
@media (min-width: 1440px) {
  .hero-photo-wrap { max-width: 780px; margin-right: 2rem; }
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(103, 78, 160, 0.18));
}

/* Title */
.hero-title {
  font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem);
  line-height: 1.03;
  margin-top: 0.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.hero-title .accent-purple { color: var(--purple); }
.hero-title .accent-blue   { color: var(--blue); }

.hero-underline {
  display: block;
  width: 52px;
  height: 2px;
  background: var(--purple);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* Features */
.hero-features {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}
.hero-feature {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  max-width: 130px;
  transition: color var(--dur) var(--ease);
}
.hero-feature:hover { color: var(--purple); }
.hero-feature svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hero-feature:nth-child(1) svg { color: var(--purple); }
.hero-feature:nth-child(2) svg { color: var(--purple); }
.hero-feature:nth-child(3) svg { color: var(--blue); }

/* CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; } }

.hero-ctas .btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  box-shadow: 0 14px 32px -12px rgba(103, 78, 160, 0.7);
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
}
.hero-ctas .btn-primary:hover {
  background: linear-gradient(135deg, #563d8c 0%, #077aa6 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(103, 78, 160, 0.85);
}
.hero-ctas .btn-outline {
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
  border-color: rgba(30, 41, 59, 0.12);
}
.hero-ctas .btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: #FFFFFF;
  box-shadow: 0 10px 28px -14px rgba(103, 78, 160, 0.4);
}

/* Doctor name */
.hero-doctor { margin-top: 2rem; }
.hero-doctor-name { font-size: 1rem; font-weight: 800; color: var(--navy); }
.hero-doctor-qual { margin-top: 0.25rem; font-size: 0.875rem; color: var(--gray); }

/* Bottom ribbon */
.hero-ribbon {
  position: relative;
  margin-top: 0;
  padding-block: 1.5rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  z-index: 6;
}
.hero-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  padding-block: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-ribbon-inner::-webkit-scrollbar { display: none; }

.hero-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  padding-inline: 0.25rem;
}
.hero-ribbon-item svg { width: 34px; height: 34px; flex-shrink: 0; }
.hero-ribbon-item:nth-child(1) svg { color: var(--purple); }
.hero-ribbon-item:nth-child(2) svg { color: var(--purple); }
.hero-ribbon-item:nth-child(3) svg { color: var(--blue); }
.hero-ribbon-item:nth-child(4) svg { color: var(--purple); }
.hero-ribbon-item:nth-child(5) svg { color: var(--blue); }
.hero-ribbon-item:nth-child(6) svg { color: var(--purple); }

@media (max-width: 767px) {
  .hero-ribbon-inner { justify-content: flex-start; gap: 1.5rem; }
}

/* ============================================================
   DOCTOR PHOTO — Hover Popup (Desktop only)
   ============================================================ */
.doctor-photo-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.doctor-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: pointer;
}

.doctor-photo-wrap:hover .doctor-photo {
  transform: translateY(-8px) scale(1.015);
}

.doctor-photo-popup {
  position: absolute;
  left: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%) translateX(-10px) scale(0.95);
  width: 260px;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 60%, #F1F8FB 100%);
  border: 1px solid rgba(103, 78, 160, 0.25);
  border-radius: 16px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              visibility 0s linear 0.3s;
  z-index: 10;
}

.doctor-photo-popup::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-left: 1px solid rgba(103, 78, 160, 0.25);
  border-bottom: 1px solid rgba(103, 78, 160, 0.25);
}

.doctor-photo-wrap:hover .doctor-photo-popup,
.doctor-photo-wrap:focus-within .doctor-photo-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
  box-shadow:
    0 0 0 1px rgba(103, 78, 160, 0.12),
    0 12px 32px -8px rgba(103, 78, 160, 0.45),
    0 24px 56px -16px rgba(9, 134, 183, 0.4),
    0 0 60px -8px rgba(103, 78, 160, 0.35);
  transition: opacity 0.3s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              visibility 0s;
}

.popup-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #674EA0;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 0 20px rgba(103, 78, 160, 0.15);
}
.popup-qual {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1E293B;
}
.popup-role {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(103, 78, 160, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  color: #0986B7;
  line-height: 1.4;
}
.popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.875rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #674EA0;
  text-decoration: none;
  transition: gap 0.25s ease, text-shadow 0.25s ease;
}
.popup-cta:hover { gap: 0.6rem; text-shadow: 0 0 12px rgba(103, 78, 160, 0.4); }

/* ---------- 9. MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #F5F2FA 0%, #F1F8FB 100%);
  padding-block: 1.25rem;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex-shrink: 0;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(30, 41, 59, 0.8);
  white-space: nowrap;
}
.marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 10. SECTION HEADINGS ---------- */
.section-heading { max-width: 48rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: 0.25rem; }
.section-heading .lead { margin-top: 1.25rem; }

/* ---------- 11. DOCTOR INTRO ---------- */
.doctor-intro-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .doctor-intro-grid {
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    align-items: center;
  }
}
.doctor-intro-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 440px;
  background: linear-gradient(135deg, #F5F2FA, #F1F8FB);
}
.doctor-intro-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ============================================================
   DOCTOR META — Professional Qualification & Practice cards
   ============================================================ */
.doctor-meta {
  margin-top: 2rem;
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .doctor-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }
  .doctor-meta .doctor-meta-full {
    grid-column: 1 / -1;
  }
}

/* Card style for each meta item */
.doctor-meta > div {
  position: relative;
  padding: 1rem 1.25rem 1rem 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.doctor-meta > div:hover {
  border-color: rgba(103, 78, 160, 0.25);
  box-shadow: 0 8px 24px -14px rgba(103, 78, 160, 0.35);
}

/* Purple accent bar on the left */
.doctor-meta > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--purple), var(--blue));
}

.doctor-meta dt {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.doctor-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

/* Qualification list — 2 columns on tablet+ */
.qual-list {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .qual-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
  }
}

.qual-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

.qual-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 0 2.5px rgba(103, 78, 160, 0.12);
}

.doctor-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- 12. TREATMENT GRID ---------- */
.treatment-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .treatment-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }



/* ================= TREATMENT GRID LAYOUT ================= */

.treatment-grid {
  display: grid;
  /* Desktop: 3 columns */
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; /* Cards ke beech ka space */
  margin-top: 40px;
}

/* Tablet: 2 columns (Optional - agar tablet pe 2 dikhane hain) */
@media (max-width: 1024px) {
  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .treatment-grid {
    grid-template-columns: 1fr;
  }
}

.treatment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--dur) var(--ease);
  height: 100%;
  min-width: 0;
}
@media (min-width: 640px) { .treatment-card { padding: 2rem; } }
.treatment-card:hover {
  border-color: rgba(103, 78, 160, 0.35);
  box-shadow:
    0 24px 50px -20px rgba(103, 78, 160, 0.4),
    0 8px 16px -8px rgba(9, 134, 183, 0.2);
  transform: translateY(-4px);
}
.treatment-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--dur) var(--ease);
  pointer-events: none;
}
.treatment-card:hover::before {
  background: radial-gradient(circle, rgba(103, 78, 160, 0.13), rgba(9, 134, 183, 0.06) 60%, transparent 70%);
}
.treatment-card-inner { position: relative; z-index: 1; }
.treatment-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.treatment-num {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--purple);
}
.treatment-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: white;
  transition: all var(--dur) var(--ease);
}
.treatment-card:hover .treatment-arrow {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: white;
  transform: translateX(3px) rotate(-8deg);
  box-shadow: 0 8px 16px -6px rgba(103, 78, 160, 0.5);
}
.treatment-card h3 {
  margin-top: 1.5rem;
  font-size: var(--fs-h4);
  color: var(--navy);
  line-height: 1.25;
  transition: color var(--dur) var(--ease);
  word-break: normal;
  overflow-wrap: break-word;
}
.treatment-card:hover h3 { color: var(--purple); }
.treatment-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}
.treatment-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.treatment-tag {
  padding: 0.35rem 0.85rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, #FAFAFB, #F5F2FA);
  color: var(--navy);
}
.treatment-cta {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple);
}
.treatment-cta .arrow {
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
  color: var(--purple);
}
.treatment-card:hover .treatment-cta .arrow { transform: translateX(5px); color: var(--blue); }

/* ---------- 13. ROBOTIC FEATURE ---------- */
.robotic-feature {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: linear-gradient(135deg, #2A1A4A 0%, #1E1A3B 40%, #0F2A3D 100%);
  color: white;
}
.robotic-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(103, 78, 160, 0.4), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(9, 134, 183, 0.35), transparent 60%);
  pointer-events: none;
}
.robotic-contours { position: absolute; inset: 0; opacity: 0.18; pointer-events: none; }
.robotic-grid { position: relative; display: grid; gap: 3rem; }
@media (min-width: 1024px) { .robotic-grid { grid-template-columns: 6fr 6fr; gap: 4rem; } }

.robotic-feature h2 { color: white; }
.robotic-feature h2 .accent {
  background: linear-gradient(135deg, #6EA8D6, #0986B7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.robotic-feature .lead { color: rgba(255, 255, 255, 0.75); }
.robotic-feature .eyebrow { color: rgba(110, 168, 214, 1); }
.robotic-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.robotic-feature .btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}
.robotic-feature .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.robotic-points { display: grid; gap: 1rem; }
@media (min-width: 640px) { .robotic-points { grid-template-columns: repeat(3, 1fr); } }
.robotic-point {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(103, 78, 160, 0.15), rgba(9, 134, 183, 0.08));
  backdrop-filter: blur(10px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.robotic-point:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 168, 214, 0.35);
}
.robotic-point-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #6EA8D6;
}
.robotic-point p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

/* ---------- 14. TREATMENT EXPLORER ---------- */
.explorer {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 100%);
}
@media (min-width: 640px) { .explorer { padding: 2rem; } }
.explorer-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.explorer-tab {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--navy);
  background: white;
  transition: all var(--dur) var(--ease);
}
.explorer-tab:hover { border-color: var(--purple); color: var(--purple); }
.explorer-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 24px -12px rgba(103, 78, 160, 0.6);
}
.explorer-panel { margin-top: 1.5rem; }
.explorer-list { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .explorer-list { grid-template-columns: 1fr 1fr; } }
.explorer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.explorer-list a:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: linear-gradient(135deg, #FAF7FF, #F1F8FB);
  transform: translateX(3px);
}
.explorer-list .num {
  display: inline-block;
  margin-right: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--purple);
}

/* ---------- 15. PATIENT JOURNEY ---------- */
.journey-desktop { display: none; }
.journey-mobile { display: block; }
@media (min-width: 1024px) {
  .journey-desktop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .journey-mobile { display: none; }
}
.journey-desktop li { position: relative; }
.journey-num {
  position: relative;
  z-index: 2;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--purple);
  font-size: var(--fs-sm);
  font-weight: 800;
  box-shadow: 0 4px 12px -6px rgba(103, 78, 160, 0.2);
}
.journey-line {
  position: absolute;
  top: 24px;
  left: 48px;
  right: -1rem;
  height: 2px;
  background: linear-gradient(to right, rgba(103, 78, 160, 0.5), rgba(9, 134, 183, 0.5));
  z-index: 1;
  border-radius: 2px;
}
.journey-desktop h4 {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--navy);
}
.journey-desktop p {
  margin-top: 0.375rem;
  font-size: var(--fs-xs);
  color: var(--gray);
  line-height: 1.5;
}

.journey-mobile { position: relative; padding-left: 1.5rem; }
.journey-mobile::before {
  content: '';
  position: absolute;
  left: 10px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(103, 78, 160, 0.5), rgba(9, 134, 183, 0.5));
  border-radius: 2px;
}
.journey-mobile li { position: relative; padding-bottom: 2rem; }
.journey-mobile li:last-child { padding-bottom: 0; }
.journey-mobile .bullet {
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-mobile .bullet::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}
.journey-mobile .num {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--purple);
}
.journey-mobile h4 { margin-top: 0.25rem; font-size: var(--fs-sm); }
.journey-mobile p {
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- 16. LOCATIONS ---------- */
.locations-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .locations-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

.location-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  height: 100%;
}
.location-card:hover {
  border-color: rgba(103, 78, 160, 0.3);
  box-shadow:
    0 24px 50px -20px rgba(103, 78, 160, 0.35),
    0 8px 16px -8px rgba(9, 134, 183, 0.15);
  transform: translateY(-3px);
}

.location-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F5F2FA, #F1F8FB);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
@media (min-width: 640px) {
  .location-card-body { padding: 2rem; }
}

.location-type {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue);
}
.location-card h3 {
  margin-top: 0.75rem;
  font-size: var(--fs-h4);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.location-card .city {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--gray);
}
.location-note {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: rgba(129, 131, 134, 0.85);
  line-height: 1.55;
}

/* ---------- 17. CTA BANNER ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #674EA0 0%, #5a3d92 50%, #0986B7 100%);
  color: white;
}
@media (min-width: 640px) { .cta-banner { padding: 3rem; } }
@media (min-width: 1024px) { .cta-banner { padding: 4rem; } }
.cta-banner-contours { position: absolute; inset: 0; opacity: 0.2; pointer-events: none; }
.cta-banner-inner { position: relative; max-width: 48rem; }
.cta-banner .eyebrow { color: rgba(255, 255, 255, 0.75); }
.cta-banner h2 { color: white; }
.cta-banner .lead { color: rgba(255, 255, 255, 0.85); }
.cta-banner-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta-banner .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: white;
  color: white;
}

/* ---------- 18. FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  transition: color var(--dur) var(--ease);
}
.faq-trigger:hover { color: var(--purple); }
.faq-trigger .faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  transition: all var(--dur) var(--ease);
  background: white;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: white;
}
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.faq-panel.open { max-height: 500px; }
.faq-panel p {
  padding-bottom: 1.5rem;
  padding-right: 2.5rem;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- 19. BLOG ---------- */
.blog-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease);
  height: 100%;
}
.blog-card:hover {
  border-color: rgba(103, 78, 160, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-cat {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.blog-card h3 {
  margin-top: 1rem;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--navy);
  transition: color var(--dur) var(--ease);
}
.blog-card:hover h3 { color: var(--purple); }
.blog-card p {
  margin-top: 0.75rem;
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.6;
}
.blog-meta {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--gray);
}

/* ---------- 20. FORM ---------- */
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field label {
  margin-bottom: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}
.form-field label .req { color: var(--purple); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(103, 78, 160, 0.15);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #dc2626; }
.form-field .error {
  margin-top: 0.375rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #dc2626;
}
.form-full { grid-column: 1 / -1; }
.form-note { font-size: var(--fs-xs); color: var(--gray); line-height: 1.5; }
.form-success {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #F1F8FB 0%, #F5F2FA 100%);
}
@media (min-width: 640px) { .form-success { padding: 2rem; } }
.form-success h3 { font-size: var(--fs-h4); }
.form-success p {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.6;
}

/* ---------- 21. PAGE HERO ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 3rem 3.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(9, 134, 183, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(103, 78, 160, 0.08), transparent 55%);
}
@media (min-width: 768px) { .page-hero { padding-block: 4rem 5rem; } }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--gray);
}
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--navy); }
.page-hero h1 { margin-top: 1.5rem; }
.page-hero .lead { margin-top: 1.5rem; max-width: 42rem; }
.page-hero-cta { margin-top: 2rem; }

/* ---------- 22. PROSE ---------- */
.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 {
  font-size: var(--fs-h3);
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: var(--fs-body);
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.prose ul { list-style: none; padding-left: 0; margin-bottom: 1rem; }
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-body);
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}
.treatment-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #F5F2FA, #FFFFFF 50%, #F1F8FB);
  margin-bottom: 2rem;
}
.treatment-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .treatment-banner { aspect-ratio: 24 / 9; border-radius: 24px; } }

.treatment-info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .treatment-info-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.treatment-info-card {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #FFFFFF, #FAF7FF);
}
.treatment-info-card .label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.treatment-info-card h4 {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}
.treatment-info-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ---------- 23. DISCLAIMER ---------- */
.disclaimer-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #F1F8FB 0%, #F5F2FA 100%);
}
@media (min-width: 640px) { .disclaimer-box { padding: 2rem; } }
.disclaimer-box p {
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.7;
}
.disclaimer-box strong { color: var(--navy); }
.disclaimer-box .btn { margin-top: 1.5rem; }

/* ---------- 24. FOOTER ---------- */
.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #FAFBFD 0%, #F5F6F7 100%);
}
.footer-grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; gap: 2.5rem; }
}
.footer-tagline {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.6;
}
.footer-doctor { margin-top: 0.75rem; font-size: var(--fs-sm); color: var(--gray); }
.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--navy);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--gray);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--purple); }
.footer-locations { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-locations li { font-size: var(--fs-sm); color: var(--gray); }
.footer-locations .name { font-weight: 700; color: var(--navy); display: block; }
.footer-book {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--purple);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-copyright { font-size: var(--fs-xs); color: var(--gray); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--fs-xs);
  color: var(--gray);
}
.footer-legal a:hover { color: var(--purple); }

/* ---------- 25. REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-anatomy img { animation: none; }
}

/* ---------- 26. 404 ---------- */
.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound-inner { max-width: 36rem; }
.notfound-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ============================================================
   FLOATING ACTION BUTTONS
   ============================================================ */
.float-actions {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  border: 2.5px solid #FFFFFF;
  box-shadow:
    0 8px 20px -8px rgba(30, 41, 59, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.float-btn svg { width: 24px; height: 24px; }
.float-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.1);
}
.float-btn:active { transform: translateY(0) scale(0.96); }
.float-btn--wa { background: linear-gradient(135deg, #25D366, #1EBE5B); }
.float-btn--wa:hover { background: linear-gradient(135deg, #1EBE5B, #17A34A); }
.float-btn--phone { background: linear-gradient(135deg, #674EA0, #563d8c); }
.float-btn--phone:hover { background: linear-gradient(135deg, #563d8c, #4a2f77); }
.float-btn--mail { background: linear-gradient(135deg, #E94B3C, #D63E30); }
.float-btn--mail:hover { background: linear-gradient(135deg, #D63E30, #B92A1D); }

@media (min-width: 768px) and (max-width: 1023px) {
  .float-actions {
    right: 1.5rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.875rem;
  }
  .float-btn { width: 58px; height: 58px; }
  .float-btn svg { width: 26px; height: 26px; }
}
@media (min-width: 1024px) {
  .float-actions {
    right: 1.75rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    gap: 0.875rem;
  }
  .float-btn { width: 60px; height: 60px; }
  .float-btn svg { width: 28px; height: 28px; }
}
@media (min-width: 1440px) {
  .float-actions { right: 2.5rem; }
  .float-btn { width: 58px; height: 58px; }
  .float-btn svg { width: 28px; height: 28px; }
}
@media (max-width: 380px) {
  .float-actions {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.625rem;
  }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 20px; height: 20px; }
}

/* ============================================================
   TREATMENT PAGE — Individual treatment pages
   ============================================================ */
.treatment-hero {
  position: relative;
  overflow: hidden;
  padding-block: 3rem 3.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(9, 134, 183, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(103, 78, 160, 0.09), transparent 55%);
}
@media (min-width: 768px) {
  .treatment-hero { padding-block: 4rem 5rem; }
}
.treatment-hero .container { max-width: var(--container); }
.treatment-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--gray);
  margin-bottom: 2rem;
}
.treatment-hero .breadcrumb a:hover { color: var(--purple); }
.treatment-hero .breadcrumb .sep { opacity: 0.5; }
.treatment-hero .breadcrumb [aria-current="page"] { color: var(--navy); }
.treatment-hero .eyebrow {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--purple);
  margin: 0 0 1rem 0;
}
.treatment-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0;
  max-width: 50rem;
}
.treatment-hero .treatment-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.treatment-hero .treatment-tag {
  padding: 0.4rem 0.9rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, #FAFAFB, #F5F2FA);
  color: var(--navy);
}
.treatment-hero .lead {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: var(--gray);
  line-height: 1.7;
  max-width: 48rem;
}
.treatment-hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.treatment-content { padding-block: 4rem; }
@media (min-width: 768px) {
  .treatment-content { padding-block: 5rem; }
}
.treatment-content .prose {
  max-width: 100%;
  margin-inline: 0;
}
.treatment-content .prose h2 {
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
  max-width: 52rem;
}
.treatment-content .prose h2:first-of-type { margin-top: 0; }
.treatment-content .prose p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 52rem;
}

.treatment-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
}
@media (min-width: 768px) {
  .treatment-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.treatment-point {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.treatment-point:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 78, 160, 0.3);
  box-shadow: 0 12px 30px -14px rgba(103, 78, 160, 0.35);
}
.treatment-point .label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.treatment-point h4 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.treatment-point p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.treatment-content .disclaimer-box {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #F1F8FB 0%, #F5F2FA 100%);
  max-width: 52rem;
}
@media (min-width: 640px) {
  .treatment-content .disclaimer-box { padding: 2rem; }
}
.treatment-content .disclaimer-box p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}
.treatment-content .disclaimer-box strong { color: var(--navy); }
.treatment-content .disclaimer-box .btn { margin-top: 1.5rem; }

.section-tight .prose {
  max-width: 52rem;
  margin-inline: 0;
}
.section-tight .prose .section-heading {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-tight .prose .section-heading h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.25rem);
}

@media (max-width: 767px) {
  .treatment-hero { padding-block: 2rem 2.5rem; }
  .treatment-hero h1 { font-size: clamp(1.75rem, 1rem + 4vw, 2.5rem); }
  .treatment-content { padding-block: 2.5rem; }
  .treatment-content .prose h2 { font-size: 1.35rem; margin-top: 2rem; }
  .treatment-point { padding: 1.25rem; }
}

/* ============================================================
   MOBILE OVERRIDES — Final responsive polish
   ============================================================ */
@media (max-width: 767px) {

  /* Hero */
  .hero { padding-block: 0.5rem 0; }
  .hero-grid { padding-block: 1.5rem 0; gap: 1.25rem; }
  .hero-photo-wrap { max-width: 320px; }
  .hero-photo { aspect-ratio: 3 / 4; max-height: 480px; }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 0.75rem;
  }

  .hero .eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 1.25rem;
  }
  .hero-feature {
    font-size: 0.8125rem;
    line-height: 1.35;
    max-width: none;
  }
  .hero-feature svg { width: 22px; height: 22px; }

  .hero-underline {
    width: 44px;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .hero-ctas { margin-top: 1.5rem; gap: 0.625rem; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
  }

  .hero-ribbon { padding-block: 1rem; }
  .hero-ribbon-inner { gap: 1.25rem; padding-block: 0.5rem; }
  .hero-ribbon-item { font-size: 0.75rem; gap: 0.5rem; }
  .hero-ribbon-item svg { width: 24px; height: 24px; }

  /* ============================================================
   DOCTOR POPUP — Mobile (hidden by default, shows on tap)
   ============================================================ */
@media (max-width: 767px) {
  .doctor-photo-wrap {
    display: block;
    width: 100%;
    cursor: pointer;
  }

  /* Popup hidden by default */
  .doctor-photo-popup {
    position: static;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 60%, #F1F8FB 100%);
    border: 0 solid rgba(103, 78, 160, 0.2);
    border-radius: 16px;
    box-shadow: none;
    text-align: left;
    transition:
      opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      border-width 0.35s ease,
      box-shadow 0.35s ease;
  }

  /* Show when .popup-open is added */
  .doctor-photo-wrap.popup-open .doctor-photo-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 400px;
    margin: 1rem 0 0 0;
    padding: 1.25rem 1.25rem 1rem;
    border-width: 1px;
    box-shadow:
      0 12px 32px -12px rgba(103, 78, 160, 0.28),
      0 4px 12px -6px rgba(9, 134, 183, 0.15);
  }

  .doctor-photo-popup::before { display: none; }

  /* Popup content */
  .popup-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #674EA0;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    text-shadow: none;
  }
  .popup-qual {
    margin: 0.35rem 0 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1E293B;
    text-align: left;
  }
  .popup-role {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(103, 78, 160, 0.12);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0986B7;
    line-height: 1.4;
    text-align: left;
  }
  .popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.875rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #674EA0;
    text-decoration: none;
  }

  .doctor-photo-wrap:hover .doctor-photo { transform: none; }

}

/* Extra small phones */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .hero-photo-wrap { max-width: 280px; }
  .hero-features { grid-template-columns: 1fr; gap: 0.75rem; }
}
}

/* Mobile + Tablet — show circles with smaller size */
@media (max-width: 1023px) {
  .hero-callout,
  .hero-dots { display: none; }  /* Callouts aur dots mobile pe hidden */

  .hero-photo-wrap { margin-inline: auto; max-width: 380px; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-content { padding-bottom: 0; }

  /* Knee circle — mobile */
  .hero-anatomy--knee {
    top: 4%;
    left: -8%;
    width: 120px;
    height: 120px;
    opacity: 0.9;
    z-index: 0;   /* photo ke peeche */
  }
  .hero-anatomy--knee img {
    width: 62%;
    height: 62%;
  }

  /* Hip circle — mobile */
  .hero-anatomy--hip {
    top: 6%;
    right: -8%;
    width: 200px;
    height: 200px;
    opacity: 0.9;
    z-index: 0;
  }
  .hero-anatomy--hip img {
    width: 62%;
    height: 62%;
  }
}

@media (max-width: 480px) {
  .hero-anatomy--knee {
    top: 3%;
    left: -5%;
    width: 140px;
    height: 140px;
    opacity: 0.85;
  }
  .hero-anatomy--hip {
    top: 14%;
    right: -2%;
    width: 130px;
    height: 130px;
    opacity: 0.85;
  }
}

.hero-anatomy {
  position: absolute;
  user-select: none;
  pointer-events: none;
  display: flex;          /* ← ab sab screens pe dikhega */
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 50%;
}

.treatment-image {
  width: 100%;
  height: 220px;          /* Fixed height — sab cards same */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
}

.treatment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Ye magic line hai */
  object-position: center; /* Subject hamesha center mein */
  display: block;
  transition: transform 0.3s ease;
}

.treatment-card:hover .treatment-image img {
  transform: scale(1.05);
}

/* ================= BLOG GRID ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ================= BLOG CARD ================= */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* ================= BLOG IMAGE ================= */
.blog-image {
  width: 100%;
  height: 200px;         /* Fixed height — sab same */
  overflow: hidden;
  background-color: #f5f5f5;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Magic line — no stretch, no distortion */
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05); /* Zoom effect on hover */
}

/* ================= BLOG CONTENT ================= */
.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-cat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed; /* Purple color */
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.blog-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Meta (Date + Read time) - Neeche chipak jaye */
.blog-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .blog-image {
    height: 220px;
  }
}

/* ================= FORM SELECT STYLING ================= */
.form-field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a1a;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;

  /* Custom arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23674EA0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-field select:focus {
  border-color: #674EA0;
  box-shadow: 0 0 0 3px rgba(103, 78, 160, 0.1);
}

.form-field select:hover {
  border-color: #b0a0d0;
}

/* ================= PRESS / MEDIA COVERAGE ================= */
.press-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
  gap: 20px;
  margin-top: 40px;
}

.press-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.press-image {
  width: 100%;
  height: 320px;         /* ⚠️ Fixed height — sab same */
  overflow: hidden;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;          /* Thoda breathing space */
}

.press-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* 🔑 MAGIC LINE — koi crop nahi hoga */
  display: block;
  transition: transform 0.4s ease;
}

.press-card:hover .press-image img {
  transform: scale(1.03);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .press-grid {
    grid-template-columns: repeat(4, 1fr); /* Tablet: 2 columns */
  }
}

@media (max-width: 576px) {
  .press-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 4px 20px;
    grid-template-columns: none;
  }
  .press-grid::-webkit-scrollbar {
    height: 6px;
  }
  .press-grid::-webkit-scrollbar-thumb {
    background: rgba(103, 78, 160, 0.35);
    border-radius: 3px;
  }
  .press-grid .press-card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }
  .press-image {
    height: 400px;
  }
}
  .press-image {
    height: 400px; /* Mobile par thodi zyada height */
  }


/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* ============================================================
   APPOINTMENT MODAL — Popup Form
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn 0.25s ease;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  box-shadow:
    0 25px 70px -20px rgba(103, 78, 160, 0.5),
    0 10px 30px -15px rgba(30, 41, 59, 0.4);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 100%);
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid var(--border);
}

.modal-header-text { min-width: 0; }
.modal-header-text h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
  color: var(--navy);
}
.modal-header-text p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--navy);
  transition: all 0.25s ease;
}
.modal-close:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .form-grid {
  gap: 1rem;
}

.modal-body .form-note {
  font-size: 0.7rem;
}

.modal-body .btn-primary {
  width: 100%;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile — fullscreen-ish modal */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-panel {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    animation: modalSlideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-header {
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.25rem 1rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .modal-header-text h2 { font-size: 1.15rem; }
}

@keyframes modalSlideUpMobile {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}


/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(103, 78, 160, 0.08);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--purple);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  box-shadow: 0 4px 12px -4px rgba(103, 78, 160, 0.5);
}

/* Mobile menu me bhi language switch */
.mobile-menu-footer .lang-switch {
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}
.mobile-menu-footer .lang-btn {
  flex: 1;
  max-width: 120px;
}

@media (max-width: 480px) {
  .lang-switch { padding: 2px; }
  .lang-btn {
    min-width: 34px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
}

.faq-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 0; }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.35s ease;
}
.faq-trigger:hover { color: var(--purple); }

.faq-trigger .faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  transition: all 0.35s ease;
  background: white;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: white;
}

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-panel.open { max-height: 500px; }

.faq-panel p {
  padding-bottom: 1.5rem;
  padding-right: 2.5rem;
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 767px) {
  /* Photo wrap ko relative rakho */
  .doctor-photo-wrap {
    display: block;
    width: 100%;
    cursor: pointer;
    transition: margin-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Popup hidden by default */
  .doctor-photo-popup {
    position: static;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7FF 60%, #F1F8FB 100%);
    border: 0 solid rgba(103, 78, 160, 0.2);
    border-radius: 16px;
    box-shadow: none;
    text-align: left;
    transition:
      opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      border-width 0.35s ease,
      box-shadow 0.35s ease;
  }

  /* Popup open hone par — visible */
  .doctor-photo-wrap.popup-open .doctor-photo-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 400px;
    margin: 1rem 0 0 0;
    padding: 1.25rem 1.25rem 1rem;
    border-width: 1px;
    box-shadow:
      0 12px 32px -12px rgba(103, 78, 160, 0.28),
      0 4px 12px -6px rgba(9, 134, 183, 0.15);
  }

  .doctor-photo-popup::before { display: none; }

  /* ⭐ YE HAI MAIN FIX — popup khulne pe content neeche shift */
  .doctor-photo-wrap.popup-open {
    margin-bottom: 3.5rem;
  }

  /* Popup content */
  .popup-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #674EA0;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    text-shadow: none;
  }
  .popup-qual {
    margin: 0.35rem 0 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1E293B;
    text-align: left;
  }
  .popup-role {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(103, 78, 160, 0.12);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0986B7;
    line-height: 1.4;
    text-align: left;
  }
  .popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.875rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #674EA0;
    text-decoration: none;
  }

  .doctor-photo-wrap:hover .doctor-photo { transform: none; }
}


/* ============================================================
   TREATMENT PAGE — Image-enhanced layout
   ============================================================ */

/* Hero with side image */
.treatment-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .treatment-hero-layout {
    grid-template-columns: 6fr 5fr;
    gap: 3.5rem;
  }
}

.treatment-hero-text { min-width: 0; }

.treatment-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F2FA, #F1F8FB);
  box-shadow:
    0 30px 60px -30px rgba(103, 78, 160, 0.4),
    0 10px 30px -15px rgba(9, 134, 183, 0.25);
  border: 1px solid rgba(103, 78, 160, 0.15);
}

.treatment-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-hero-media:hover img {
  transform: scale(1.04);
}

/* Treatment points with mini image on top */
.treatment-point-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #F5F2FA, #F1F8FB);
  border: 1px solid var(--border);
}

.treatment-point-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-point:hover .treatment-point-image img {
  transform: scale(1.05);
}

/* Wide banner between sections */
.treatment-banner--wide {
  aspect-ratio: 24 / 9;
}

@media (min-width: 768px) {
  .treatment-banner--wide {
    aspect-ratio: 32 / 9;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .treatment-hero-media {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }
  .treatment-banner--wide {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
}