/* =========================================================
   MegWorld Healthcare – Specialities page
   Theme: White / Maroon / Navy
   ---------------------------------------------------------
   1. Variables & reset
   2. Background (blobs, grid, shapes)
   3. Navigation
   4. Buttons & shared UI
   5. Hero
   6. Group titles & grids
   7. 3D floating cards
   8. Reveal animations
   9. Footer
   10. Responsive
   11. Reduced motion
   ========================================================= */

/* ---------- 1. Variables & reset ---------- */
:root {
  --white: #ffffff;
  --navy: #0a1f4d;
  --navy-900: #061336;
  --navy-700: #16337a;
  --maroon: #7b1230;
  --maroon-600: #9b1c3f;
  --maroon-300: #c9667f;
  --maroon-100: #f7e9ed;
  --ink: #4a5675;
  --line: #e7eaf3;

  --radius: 20px;
  --gap: 22px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --shadow-sm: 0 2px 6px rgba(10, 31, 77, .05), 0 10px 22px rgba(10, 31, 77, .08);
  --shadow-md: 0 4px 10px rgba(10, 31, 77, .06), 0 18px 40px rgba(10, 31, 77, .12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--maroon-300); outline-offset: 3px; border-radius: 8px; }

/* ---------- 2. Background ---------- */
.bg-layer {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f9 55%, #f4f6fc 100%);
}

.bg-grid {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(10, 31, 77, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 77, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  animation: gridMove 24s linear infinite;
}
@keyframes gridMove { to { transform: translate(60px, 60px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob-1 { width: 520px; height: 520px; left: -160px; top: 8%;  background: radial-gradient(circle, rgba(123, 18, 48, .30), transparent 68%); animation: drift1 20s ease-in-out infinite; }
.blob-2 { width: 620px; height: 620px; right: -220px; top: -120px; background: radial-gradient(circle, rgba(22, 51, 122, .28), transparent 68%); animation: drift2 24s ease-in-out infinite; }
.blob-3 { width: 480px; height: 480px; right: 6%; bottom: -160px; background: radial-gradient(circle, rgba(155, 28, 63, .22), transparent 68%); animation: drift1 26s ease-in-out infinite reverse; }

@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(90px, -60px) scale(1.12); } 66% { transform: translate(-40px, 80px) scale(.94); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-100px, 90px) scale(1.14); } }

/* Floating shapes (created in JS). Wrapper = parallax, inner = drift animation */
.shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.shape-wrap { position: absolute; will-change: transform; }
.shape {
  display: block; position: relative;
  width: var(--s); height: var(--s);
  animation: shapeDrift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes shapeDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)); }
}

.shape.ring   { border-radius: 50%; border: 3px solid currentColor; opacity: .22; }
.shape.square { border-radius: 22%; border: 3px solid currentColor; opacity: .20; }
.shape.dot    { border-radius: 50%; background: currentColor; opacity: .20; }
.shape.tri    { background: currentColor; opacity: .16; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape.plus::before, .shape.plus::after { content: ""; position: absolute; background: currentColor; border-radius: 3px; opacity: .25; }
.shape.plus::before { left: 38%; right: 38%; top: 0; bottom: 0; }
.shape.plus::after  { top: 38%; bottom: 38%; left: 0; right: 0; }
.shape.orb {
  border-radius: 50%; opacity: .55;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 8%, currentColor 55%, rgba(6, 19, 54, .9) 100%);
  box-shadow: 0 18px 30px rgba(10, 31, 77, .18);
}
.c-maroon { color: var(--maroon); }
.c-navy   { color: var(--navy-700); }

/* ---------- 3. Navigation ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--navy), var(--maroon)); }

.site-header { position: fixed; inset: 14px 0 auto 0; z-index: 100; padding: 0 20px; transition: inset .4s var(--ease); }
.site-header.scrolled { inset: 8px 0 auto 0; }

.nav-bar {
  position: relative;
  width: min(1240px, 100%); height: var(--nav-h); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 14px 0 26px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 31, 77, .08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(10, 31, 77, .10);
  transition: box-shadow .4s, height .4s var(--ease);
}
.site-header.scrolled .nav-bar { height: 64px; box-shadow: 0 14px 34px rgba(10, 31, 77, .16); }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  position: relative; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon));
  box-shadow: 0 6px 14px rgba(123, 18, 48, .35);
}
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.logo-mark::before { left: 17px; top: 9px; width: 6px; height: 22px; }
.logo-mark::after  { top: 17px; left: 9px; height: 6px; width: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -.3px; }
.logo-text small { font-size: 13px; font-weight: 400; color: var(--maroon); letter-spacing: .5px; }
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text small { color: #f0b9c7; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a:not(.btn) {
  position: relative; display: block; padding: 10px 16px;
  font-size: 16px; font-weight: 500; color: var(--navy);
  border-radius: 999px; transition: color .3s, background .3s;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-menu a:not(.btn):hover { color: var(--maroon); }
.nav-menu a:not(.btn):hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--maroon); font-weight: 600; }
.menu-cta { display: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--maroon-100); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--maroon); transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 4. Buttons & shared UI ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon));
  box-shadow: 0 10px 22px rgba(123, 18, 48, .32);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(123, 18, 48, .42); }
.btn:hover::after { transform: translateX(130%); }
.btn-ghost { margin-top: 26px; background: linear-gradient(135deg, var(--navy-700), var(--navy)); box-shadow: 0 10px 22px rgba(10, 31, 77, .28); }
.btn-ghost:hover { box-shadow: 0 16px 30px rgba(10, 31, 77, .38); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon));
  box-shadow: 0 12px 26px rgba(123, 18, 48, .4);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.to-top::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 12px; height: 12px;
  border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- 5. Hero ---------- */
.page { position: relative; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 90px; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 440px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--maroon); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -1.8px; color: var(--navy); }
.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-300), var(--maroon));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.lead { margin-top: 20px; max-width: 540px; font-size: 15px; line-height: 1.8; }

.hero-copy > * { opacity: 0; transform: translateY(26px); animation: fadeUp .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .10s; }
.hero-copy > *:nth-child(2) { animation-delay: .22s; }
.hero-copy > *:nth-child(3) { animation-delay: .36s; }
.hero-copy > *:nth-child(4) { animation-delay: .50s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; height: 420px; perspective: 1100px; opacity: 0; transform: translateX(40px); animation: fadeLeft 1s .3s var(--ease) forwards; }
@keyframes fadeLeft { to { opacity: 1; transform: none; } }

.hero-ring { position: absolute; right: 2%; top: 4%; width: 380px; height: 380px; border-radius: 50%; border: 2px dashed rgba(123, 18, 48, .35); animation: spin 40s linear infinite; }
.hero-block { position: absolute; right: 8%; bottom: 0; width: 280px; height: 320px; border-radius: 36px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); transform: rotate(8deg); box-shadow: var(--shadow-md); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-frame {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: absolute; right: 12%; bottom: 14px; width: 300px; height: 380px;
  border-radius: 30px; overflow: hidden; border: 6px solid #fff;
  box-shadow: 0 30px 60px rgba(10, 31, 77, .28), 0 8px 18px rgba(123, 18, 48, .18);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
  animation: floatY 7s ease-in-out infinite;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-frame.is-tilting { transition: transform .08s linear; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 16px; background: rgba(255, 255, 255, .95);
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--navy);
  box-shadow: 0 16px 34px rgba(10, 31, 77, .20);
  border: 1px solid rgba(10, 31, 77, .06);
  animation: bob 5.5s ease-in-out infinite;
}
.chip i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--maroon); animation: pulse 2.2s infinite; }
.chip-1 { top: 2px; left: -30%; --tilt: -7deg; }
.chip-2 { top: 300px; left: 30%; --tilt: -6deg; animation-delay: -1.8s; }
.chip-2 i { background: var(--navy-700); }
.chip-3 { top: 60px; right: -2%; --tilt: 7deg; animation-delay: -3.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--tilt, 0deg)); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 18, 48, .45); } 70% { box-shadow: 0 0 0 11px rgba(123, 18, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 18, 48, 0); } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- 6. Group titles & grids ---------- */
.group { margin-top: 70px; scroll-margin-top: 110px; }

.group-title { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 34px; }
.group-title h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; color: var(--navy); text-align: center; }
.group-title .line { position: relative; overflow: hidden; width: min(150px, 14vw); height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--maroon)); }
.group-title .line:last-child { background: linear-gradient(90deg, var(--maroon), var(--navy)); }
.group-title .line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #fff, transparent); transform: translateX(-100%); animation: lineRun 3.2s infinite; }
@keyframes lineRun { to { transform: translateX(100%); } }

.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); --n: 4; }
.grid > * { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; }
.cols-5 { --n: 5; }
.cols-4 { --n: 4; }
.cols-3 { --n: 3; }
.cols-2 { --n: 2; }

/* ---------- 7. 3D floating cards ---------- */
.card-wrap {
  perspective: 1000px;
  animation: floatY var(--dur, 6.5s) ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.9s);
}
.card-wrap:hover { animation-play-state: paused; }

.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --sx: 0px; --sy: 18px;
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: 10px 10px 18px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid rgba(10, 31, 77, .07);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow:
    var(--sx) var(--sy) 34px -10px rgba(10, 31, 77, .22),
    0 2px 6px rgba(10, 31, 77, .05),
    inset 0 1px 0 #fff;
  transition: transform .55s var(--ease), box-shadow .45s var(--ease), translate .45s var(--ease);
  will-change: transform;
}
.card.is-tilting { transition: transform .08s linear, box-shadow .25s, translate .3s var(--ease); }
.card:hover {
  translate: 0 -8px;
  box-shadow:
    var(--sx) calc(var(--sy) + 14px) 48px -12px rgba(123, 18, 48, .34),
    0 6px 14px rgba(10, 31, 77, .08),
    inset 0 1px 0 #fff;
}

/* Animated gradient border on hover */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, var(--maroon), var(--navy-700), var(--maroon));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; animation: borderFlow 5s linear infinite;
}
.card:hover::before { opacity: 1; }
@keyframes borderFlow { to { background-position: 300% 300%; } }

/* Glossy highlight following the pointer */
.card-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%);
  opacity: 0; transition: opacity .4s;
  transform: translateZ(40px);
}
.card:hover .card-shine, .hero-frame:hover .card-shine { opacity: 1; }
.hero-frame .card-shine { transform: none; z-index: 3; }

/* Image box (shared by cards + hero) */
.img-box { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--maroon)); }

.card-img { aspect-ratio: 16 / 10; border-radius: 14px; transform: translateZ(16px); box-shadow: 0 10px 20px -8px rgba(10, 31, 77, .35); }
.card-img.tall { aspect-ratio: 16 / 9.5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1s var(--ease), filter .6s; }
.card:hover .card-img img { transform: scale(1.14); filter: saturate(1.08) contrast(1.03); }

.card-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(6, 19, 54, .55)); opacity: 0; transition: opacity .5s; }
.card:hover .card-img::before { opacity: 1; }
.card-img::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); transition: transform .9s var(--ease); }
.card:hover .card-img::after { transform: translateX(130%); }

/* Shown only when an image fails to load (no icons – just the title on brand colors) */
.fb-label { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 10px; text-align: center; font-weight: 700; font-size: 18px; letter-spacing: .5px; color: #fff; z-index: 1; }
.img-box.is-fallback .fb-label { display: flex; }
.img-box.is-fallback img { display: none; }

.card-body { padding: 16px 8px 0; transform: translateZ(26px); }
.card-body h3 { position: relative; display: inline-block; padding-bottom: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.card-body h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--maroon); transition: width .45s var(--ease); }
.card:hover .card-body h3::after { width: 100%; }
.card-body p { font-size: 13px; line-height: 1.65; color: var(--ink); }

/* Wide (therapy) cards */
.card.wide { flex-direction: row; align-items: center; gap: 20px; padding: 12px 22px 12px 12px; }
.card.wide .card-img { flex: 0 0 42%; aspect-ratio: 4 / 3; }
.card.wide .card-body { padding: 0; }

/* Process steps */
.step-num {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  padding: 4px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon));
  box-shadow: 0 6px 14px rgba(123, 18, 48, .45);
}
.step .card-body { flex: 1; }
.step .card-body h3 { font-size: 15px; }

/* ---------- 8. Reveal animations ---------- */
.js .reveal-item {
  opacity: 0;
  transform: translateY(60px) rotateX(14deg) scale(.94);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .reveal.in-view .reveal-item { opacity: 1; transform: none; }

.js .group-title { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in-view .group-title { opacity: 1; transform: none; }

/* ---------- 9. Footer ---------- */
.site-footer { position: relative; overflow: hidden; color: #cfd7ee; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, #3b0f22 100%); }
.footer-shape { position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 28, 63, .55), transparent 70%); filter: blur(30px); animation: drift2 22s ease-in-out infinite; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 40px; padding: 70px 0 50px; }
.footer-brand p { margin: 18px 0 20px; font-size: 13px; line-height: 1.75; max-width: 340px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #fff; text-transform: lowercase;
  border: 1px solid rgba(255, 255, 255, .35); transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.socials a:hover { background: var(--maroon); border-color: var(--maroon); transform: translateY(-4px) scale(1.08); }

.footer-col h4 { margin-bottom: 18px; font-size: 15px; font-weight: 700; color: #f0b9c7; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; position: relative; transition: color .3s, padding .3s; }
.footer-col ul a:hover { color: #fff; padding-left: 8px; }
.footer-col address { font-style: normal; }
.footer-col address p { margin-bottom: 14px; font-size: 13px; line-height: 1.65; }
.footer-col address span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f0b9c7; margin-bottom: 2px; }
.footer-col address a:hover { color: #fff; }

.footer-bottom { position: relative; background: rgba(0, 0, 0, .28); padding: 18px 0; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom span { margin: 0 10px; opacity: .6; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
  .cols-5 { --n: 3; }
  .cols-4 { --n: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-frame { right: 6%; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-bar { padding-right: 10px; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 12px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    background: rgba(255, 255, 255, .97); border: 1px solid rgba(10, 31, 77, .08);
    border-radius: 26px; box-shadow: 0 24px 50px rgba(10, 31, 77, .22);
    opacity: 0; visibility: hidden; transform: translateY(-14px) scale(.98); transform-origin: top;
    transition: opacity .35s, transform .4s var(--ease), visibility .35s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { padding: 13px 18px; border-radius: 14px; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu a:not(.btn):hover, .nav-menu a.active { background: var(--maroon-100); }
  .menu-cta { display: block; padding: 8px 4px 2px; }
  .menu-cta .btn { width: 100%; }

  .hero { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .lead { margin-inline: auto; }
  .hero-visual { height: 440px; max-width: 520px; width: 100%; margin: 20px auto 0; }
  .hero-frame { right: 50%; margin-right: -150px; }
  .hero-block { right: 50%; margin-right: -150px; }
  .hero-ring { right: 50%; margin-right: -190px; }

  .cols-3 { --n: 2; }
  .cols-2 { --n: 1; }
  .card.wide { max-width: 640px; margin-inline: auto; }
}

@media (max-width: 680px) {
  :root { --gap: 18px; }
  .page { padding-top: calc(var(--nav-h) + 40px); }
  .group { margin-top: 56px; }
  .group-title .line { display: none; }
  .cols-5, .cols-4, .cols-3 { --n: 2; }
  .card { padding: 8px 8px 14px; }
  .card-body { padding: 12px 6px 0; }
  .card-body h3 { font-size: 14px; }
  .card-body p { font-size: 12.5px; }
  .chip { padding: 10px 14px; font-size: 12px; }
  .chip-2 { left: -4px; }
  .chip-3 { right: -4px; }
  .footer-grid { grid-template-columns: 1fr; padding: 50px 0 36px; gap: 30px; }
}

@media (max-width: 520px) {
  .cols-5, .cols-4, .cols-3, .cols-2 { --n: 1; }
  .card.wide { flex-direction: column; align-items: stretch; padding: 10px 10px 18px; }
  .card.wide .card-img { flex: none; aspect-ratio: 16 / 10; }
  .card.wide .card-body { padding: 14px 8px 0; }
  .hero-visual { height: 400px; }
  .hero-frame { width: 260px; height: 340px; margin-right: -130px; }
  .hero-block { width: 240px; height: 290px; margin-right: -120px; }
  .hero-ring { width: 320px; height: 320px; margin-right: -160px; }
  .chip-3 { top: 250px; }
  .logo-text strong { font-size: 17px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* Touch devices: no hover tilt, give a pressed feel instead */
@media (hover: none) {
  .card:active { transform: scale(.98); }
  .card:hover { translate: 0 0; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal-item, .js .group-title, .hero-copy > *, .hero-visual { opacity: 1 !important; transform: none !important; }
}

/* =========================================
   MEGWORLD HEALTHCARE FOOTER
   Navy Blue + Maroon + White
========================================= */

.mwf {
  --mwf-navy: #102B52;
  --mwf-navy-dark: #081F42;
  --mwf-maroon: #941337;
  --mwf-rose: #ff6b8e;
  --mwf-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 22px;
  color: #e7edf8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(
    110deg,
    #081F42,
    #102B52 38%,
    #34173f 70%,
    #941337
  );
  background-size: 180% 180%;
  animation: mwf-background 18s ease-in-out infinite alternate;
}

.mwf *,
.mwf *::before,
.mwf *::after {
  box-sizing: border-box;
}

.mwf a {
  color: inherit;
  text-decoration: none;
}

.mwf ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mwf p,
.mwf h3,
.mwf address {
  margin: 0;
  font-style: normal;
}

.mwf-inner {
  position: relative;
  z-index: 2;
  width: min(1320px, 93%);
  margin: auto;
}

/* BACKGROUND EFFECTS */

.mwf-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mwf-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: mwf-drift 12s ease-in-out infinite alternate;
}

.mwf-glow--l {
  background: #3286db;
  left: -100px;
  top: -100px;
}

.mwf-glow--r {
  background: #f33e79;
  right: -100px;
  bottom: -100px;
  animation-delay: -5s;
}

.mwf-steth {
  position: absolute;
  width: 130px;
  right: 5%;
  top: 8%;
  color: rgba(255,255,255,.08);
  animation: mwf-float 7s ease-in-out infinite alternate;
}

.mwf-wave {
  position: absolute;
  width: 200%;
  height: 140px;
  left: -50%;
  opacity: .15;
}

.mwf-wave--1 {
  top: 15%;
  color: #fff;
  animation: mwf-wave-move 25s linear infinite;
}

.mwf-wave--2 {
  bottom: 8%;
  color: #ff8eac;
  animation: mwf-wave-move 35s linear infinite reverse;
}

.mwf-wave svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mwf-dots {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: .15;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 15px 15px;
}

.mwf-dots--l {
  left: 2%;
  bottom: 12%;
}

.mwf-dots--r {
  right: 2%;
  top: 20%;
}

/* MAIN GRID */

.mwf-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.15fr 1.1fr 1.05fr;
  grid-template-areas: "brand quick services contact";
  gap: 28px;
  align-items: start;
}

.mwf-brand {
  grid-area: brand;
  min-width: 0;
}

.mwf-quick {
  grid-area: quick;
}

.mwf-services {
  grid-area: services;
}

.mwf-contact-col {
  grid-area: contact;
  min-width: 0;
}

/* LOGO */

.mwf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.mwf-logo__mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--mwf-maroon);
  font-size: 35px;
  font-weight: 500;
  transition: transform .35s var(--mwf-ease);
}

.mwf-logo:hover .mwf-logo__mark {
  transform: rotate(90deg);
}

.mwf-logo__text strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.mwf-logo__text small {
  display: block;
  margin-top: 7px;
  color: #c4d2e9;
  font-size: 10px;
  line-height: 1.5;
}

/* DESCRIPTION */

.mwf-about {
  max-width: 360px;
  margin-bottom: 22px !important;
  color: #c8d4e8;
  font-size: 13px;
  line-height: 1.9;
}

/* SOCIAL ICONS */

.mwf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mwf-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition:
    background .3s,
    transform .3s,
    border-color .3s;
}

.mwf-social a:hover {
  background: var(--mwf-maroon);
  border-color: var(--mwf-rose);
  transform: translateY(-5px);
}

/* FOOTER CARDS */

.mwf-card {
  min-width: 0;
  padding: 23px 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: rgba(255,255,255,.065);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  transition:
    background .35s,
    border-color .35s,
    transform .35s;
}

.mwf-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,107,142,.4);
  transform: translateY(-4px);
}

.mwf-card__title {
  position: relative;
  margin-bottom: 22px !important;
  padding-bottom: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.mwf-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  border-radius: 5px;
  background: var(--mwf-rose);
  transition: width .35s;
}

.mwf-card:hover .mwf-card__title::after {
  width: 65px;
}

/* QUICK LINKS AND SERVICES */

.mwf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mwf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mwf-list a {
  display: inline-block;
  color: #c8d4e8;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  transition: color .25s, transform .25s;
}

.mwf-list a::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  color: var(--mwf-rose);
  font-size: 18px;
  line-height: 0;
  transition: transform .25s;
}

.mwf-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.mwf-list a:hover::before {
  transform: translateX(3px);
}

/* CONTACT DETAILS */

.mwf-contact-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mwf-contact {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.mwf-contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #d1dbee;
  font-size: 12.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.mwf-contact a {
  color: #d1dbee;
  transition: color .25s;
}

.mwf-contact a:hover {
  color: var(--mwf-rose);
}

.mwf-ico {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,107,142,.15);
  color: var(--mwf-rose);
  font-size: 18px;
}

/* LET'S TALK BUTTON */

.mwf-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff3f6c, var(--mwf-maroon));
  box-shadow: 0 10px 26px rgba(255,63,108,.28);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .3s, box-shadow .3s;
  animation: mwf-pulse 3s infinite;
}

.mwf-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 32px rgba(255,63,108,.4);
  animation-play-state: paused;
}

.mwf-arrow {
  font-size: 22px;
  transition: transform .3s;
}

.mwf-cta:hover .mwf-arrow {
  transform: translateX(6px);
}

/* COPYRIGHT BAR */

.mwf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #b9c6dd;
  font-size: 12px;
}

.mwf-top {
  color: #e7edf8;
  transition: color .25s, transform .25s;
}

.mwf-top:hover {
  color: var(--mwf-rose);
  transform: translateY(-2px);
}

/* SCROLL REVEAL */

.mwf--js:not(.mwf--in) .mwf-r {
  opacity: 0;
}

.mwf--in .mwf-r {
  animation: mwf-reveal .8s var(--mwf-ease) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

/* ANIMATIONS */

@keyframes mwf-reveal {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mwf-background {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes mwf-drift {
  to { transform: translate(35px, 25px) scale(1.12); }
}

@keyframes mwf-float {
  from { transform: translateY(-8px); }
  to { transform: translateY(12px); }
}

@keyframes mwf-wave-move {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

@keyframes mwf-pulse {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(255,63,108,.28);
  }
  50% {
    box-shadow: 0 10px 32px rgba(255,63,108,.5);
  }
}

/* TABLET */

@media (max-width: 1150px) {
  .mwf-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand contact"
      "quick services";
    gap: 25px;
  }

  .mwf-about {
    max-width: 520px;
  }
}

/* MOBILE */

@media (max-width: 720px) {
  .mwf {
    padding: 42px 0 20px;
  }

  .mwf-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "quick"
      "services"
      "contact";
    gap: 22px;
  }

  .mwf-card {
    padding: 22px;
  }

  .mwf-about {
    max-width: 100%;
  }

  .mwf-steth,
  .mwf-dots--r,
  .mwf-wave--2 {
    display: none;
  }

  .mwf-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mwf-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mwf-list {
    gap: 10px;
  }

  .mwf-logo__text strong {
    font-size: 19px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .mwf,
  .mwf *,
  .mwf *::before,
  .mwf *::after {
    animation: none !important;
    transition: none !important;
  }

  .mwf--js:not(.mwf--in) .mwf-r {
    opacity: 1;
  }
}

/* ==========================================
   PREMIUM GLASSMORPHISM FOOTER UPGRADE
   Navy Blue + Maroon + Frosted Glass
========================================== */

/* Rich glass background */
.mwf {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 12% 15%,
      rgba(54, 139, 231, 0.28),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 88% 78%,
      rgba(211, 35, 91, 0.28),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #06162f 0%,
      #102b52 42%,
      #241b40 72%,
      #57172f 100%
    );
}

/* Animated ambient glow */
.mwf-glow {
  filter: blur(100px);
  opacity: .48;
  mix-blend-mode: screen;
}

.mwf-glow--l {
  background: #258ce8;
}

.mwf-glow--r {
  background: #ef286b;
}

/* Glass cards */
.mwf .mwf-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.13),
    rgba(255,255,255,.035) 55%,
    rgba(255,255,255,.075)
  );

  border: 1px solid rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.38);
  border-left-color: rgba(255,255,255,.28);

  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(255,255,255,.035),
    0 18px 45px rgba(0,0,0,.20),
    0 4px 12px rgba(4,15,40,.14);

  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    border-color .4s,
    box-shadow .4s,
    background .4s;
}

/* Glossy reflection across each card */
.mwf .mwf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    125deg,
    rgba(255,255,255,.16) 0%,
    rgba(255,255,255,.045) 22%,
    transparent 45%,
    transparent 72%,
    rgba(255,255,255,.055) 100%
  );

  opacity: .85;
}

/* Moving light reflection on hover */
.mwf .mwf-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -110%;
  width: 65%;
  height: 180%;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.11),
    rgba(255,255,255,.22),
    transparent
  );

  transform: skewX(-22deg);
  transition: left .85s ease;
}

.mwf .mwf-card:hover {
  transform: translateY(-8px);

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.19),
    rgba(255,255,255,.065),
    rgba(255,255,255,.11)
  );

  border-color: rgba(255,255,255,.38);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 25px 60px rgba(0,0,0,.30),
    0 0 28px rgba(67,139,235,.12),
    0 0 24px rgba(211,35,91,.10);
}

.mwf .mwf-card:hover::after {
  left: 150%;
}

/* Premium glass logo mark */
.mwf-logo__mark {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.98),
    rgba(220,234,255,.82)
  );

  border: 1px solid rgba(255,255,255,.8);

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    0 8px 25px rgba(0,0,0,.18),
    0 0 18px rgba(255,255,255,.10);
}

/* Frosted social buttons */
.mwf .mwf-social a {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 5px 16px rgba(0,0,0,.12);
}

.mwf .mwf-social a:hover {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.24),
    rgba(148,19,55,.75)
  );

  border-color: rgba(255,255,255,.55);

  box-shadow:
    0 8px 25px rgba(0,0,0,.20),
    0 0 20px rgba(255,107,142,.20);
}

/* Glass contact icons */
.mwf .mwf-ico {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.15),
    rgba(255,255,255,.045)
  );

  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 5px 14px rgba(0,0,0,.10);
}

/* Glossy CTA */
.mwf .mwf-cta {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.35);

  background: linear-gradient(
    125deg,
    #d21b50,
    #941337 55%,
    #c32658
  );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 12px 28px rgba(148,19,55,.30);
}

.mwf .mwf-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.20),
    transparent 48%
  );
}

.mwf .mwf-cta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 18px 38px rgba(148,19,55,.42),
    0 0 25px rgba(255,107,142,.15);
}

/* Glass divider */
.mwf-bottom {
  border-top: 1px solid rgba(255,255,255,.20);

  box-shadow: 0 -1px 0 rgba(255,255,255,.025);
}

/* Softer floating glass motion */
@keyframes mwf-glass-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mwf .mwf-card {
    animation: mwf-glass-float 7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.2s);
  }

  .mwf .mwf-card:hover {
    animation-play-state: paused;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mwf .mwf-card {
    animation: none !important;
  }
}

/* Blue hero card — same effect as hero-frame */

.hero-block.img-box {
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 25px 55px rgba(10, 31, 77, 0.24),
    0 8px 20px rgba(123, 18, 48, 0.12);
}

/* Image fills the existing blue card */
.hero-block.img-box > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform 0.65s cubic-bezier(.2, .8, .2, 1);
}

/* Reuse the existing shine effect */
.hero-block.img-box .card-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Image zoom on hover */
@media (hover: hover) {
  .hero-block.img-box:hover > img {
    transform: scale(1.08);
  }
}

/* Hero blue card with image */
.hero-block {
  position: absolute;
  right: 8%;
  bottom: 0;

  width: 280px;
  height: 320px;

  overflow: hidden;
  isolation: isolate;

  border-radius: 36px;

  background: linear-gradient(
    160deg,
    var(--navy-700),
    var(--navy-900)
  );

  transform: rotate(8deg);

  box-shadow: var(--shadow-md);
}

/* Image inside the blue card */
.hero-block-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;

  border-radius: inherit;

  opacity: 0.95;
}

/* Navy overlay to retain the original design */


/* Responsive image card */
@media (max-width: 768px) {
  .hero-block {
    width: 210px;
    height: 250px;
    right: 4%;
  }
}
/* ==========================================
   PROFESSIONAL RESOURCES DROPDOWN
========================================== */

.nav-dropdown {
  position: relative;
}

/* Resources link */
.nav-menu .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Simple arrow */
.dropdown-arrow {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Dropdown panel */
.nav-menu .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 270px;

  margin: 0;
  padding: 8px;
  list-style: none;

  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-top: 3px solid #7b1230;
  border-radius: 10px;

  box-shadow: 0 12px 30px rgba(10, 31, 77, .12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, 7px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;

  z-index: 1600;
}

/* Keep panel open while moving mouse into it */
.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Remove the main navbar underline inside dropdown */
.nav-menu .dropdown-menu a::after {
  display: none !important;
}

.nav-menu .dropdown-menu li {
  display: block;
  width: 100%;
}

/* Individual links */
.nav-menu .dropdown-menu li a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  width: 100%;
  padding: 13px 14px;

  border-radius: 6px;
  background: #ffffff;

  white-space: normal;
  text-decoration: none;

  transition:
    background .2s ease,
    padding-left .2s ease;
}

/* Heading */
.nav-menu .dropdown-title {
  color: #0a1f4d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* Supporting text */
.nav-menu .dropdown-desc {
  color: #667085;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

/* Subtle professional hover */
.nav-menu .dropdown-menu li a:hover,
.nav-menu .dropdown-menu li a:focus-visible {
  background: #f8f3f5;
  padding-left: 18px;
}

.nav-menu .dropdown-menu li a:hover .dropdown-title,
.nav-menu .dropdown-menu li a:focus-visible .dropdown-title {
  color: #7b1230;
}

/* Mobile dropdown */
@media (max-width: 960px) {
  .nav-menu .nav-dropdown {
    width: 100%;
  }

  .nav-menu .dropdown-trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .nav-menu .dropdown-menu {
    position: static;
    display: none;

    width: 100%;
    margin: 4px 0 8px;
    padding: 5px;

    border: 1px solid #e6e9ef;
    border-left: 3px solid #7b1230;
    border-top: 1px solid #e6e9ef;
    border-radius: 8px;

    background: #ffffff;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-menu .nav-dropdown.open > .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-menu li a {
    padding: 12px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .dropdown-arrow,
  .nav-menu .dropdown-menu,
  .nav-menu .dropdown-menu li a {
    transition: none !important;
  }
}

/* Resources dropdown arrow — visible by default */
.nav-menu .dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

.nav-menu .dropdown-arrow {
  display: inline-block !important;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: -4px;
  border: 0 !important;
  border-right: 1.8px solid currentColor !important;
  border-bottom: 1.8px solid currentColor !important;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

/* Arrow turns up when dropdown is open */
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Prevent underline animation from affecting the arrow */
.nav-menu .dropdown-trigger::after {
  right: 13px;
}

/* Mobile dropdown */
@media (max-width: 960px) {
  .nav-menu .dropdown-trigger {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu .dropdown-arrow {
    transition: none;
  }
}

/* =========================================
   MOBILE HERO OVERFLOW FIX
   MegWorld Healthcare - Specialities
========================================= */

@media (max-width: 680px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-inline: auto;
  }

  .page {
    padding-top: calc(var(--nav-h) + 36px);
  }

  /* Stack heading and image */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 32px);
    max-width: 100%;
    min-height: auto;
    gap: 16px;
    text-align: center;
    align-items: start;
    overflow: clip;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .hero h1 {
    font-size: clamp(32px, 8.5vw, 43px);
    line-height: 1.12;
    letter-spacing: -1px;
    overflow-wrap: break-word;
  }

  .hero .lead {
    max-width: 100%;
    margin: 16px auto 0;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-copy .btn {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Keep image artwork inside the screen */
  .hero-visual {
    width: 100%;
    max-width: 100%;
    height: clamp(300px, 90vw, 370px);
    min-width: 0;
    margin: 12px auto 0;
    overflow: clip;
    perspective: none;
  }

  .hero-ring {
    width: min(76vw, 300px);
    height: min(76vw, 300px);
    top: 5%;
    right: 50%;
    margin-right: 0;
    transform: translateX(50%);
  }

  .hero-block {
    width: min(58vw, 220px);
    height: min(68vw, 250px);
    right: 50%;
    bottom: 5%;
    margin-right: 0;
    transform: translateX(50%) rotate(5deg);
    border-radius: 24px;
  }

  .hero-frame {
    width: min(58vw, 220px);
    height: min(72vw, 270px);
    right: 50%;
    bottom: 8%;
    margin-right: 0;
    transform: translateX(50%);
    border-width: 5px;
    border-radius: 23px;
  }

  /* Place floating labels within the image area */
  .hero-visual .chip {
    max-width: 145px;
    padding: 9px 11px;
    gap: 7px;
    font-size: 10px;
    line-height: 1.35;
    border-radius: 12px;
    white-space: normal;
  }

  .hero-visual .chip-1 {
    top: 3%;
    left: 0;
  }

  .hero-visual .chip-2 {
    top: auto;
    bottom: 2%;
    left: 0;
  }

  .hero-visual .chip-3 {
    top: 15%;
    right: 0;
  }

  .hero-visual .chip i {
    width: 8px;
    height: 8px;
  }
}

/* Small phones */
@media (max-width: 380px) {

  .container,
  .hero {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero .lead {
    font-size: 12px;
  }

  .hero-visual {
    height: 290px;
  }

  .hero-visual .chip {
    max-width: 120px;
    padding: 8px;
    font-size: 9px;
  }

  .hero-frame {
    width: 190px;
    height: 245px;
  }

  .hero-block {
    width: 180px;
    height: 220px;
  }

  .hero-ring {
    width: 255px;
    height: 255px;
  }
}
/* Navbar logo image */
.site-header .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .site-logo {
  display: block;
  width: 175px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

/* Footer logo image */
.mwf-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 20px;
}

.mwf-logo .footer-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 65px;
  object-fit: contain;
  object-position: left center;
}

/* Mobile logo sizing */
@media (max-width: 960px) {
  .site-header .site-logo {
    width: 150px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .site-header .site-logo {
    width: 125px;
    height: 38px;
  }

  .mwf-logo .footer-logo {
    width: 185px;
    height: 58px;
  }
}