/* ==========================================================================
   R.N. Pandey Hospital — main stylesheet
   ========================================================================== */
:root {
    --navy: #0b1f3a;
    --navy-2: #13305a;
    --navy-3: #1d4277;
    --red: #d7263d;
    --red-dark: #b01d31;
    --red-soft: #fdecee;
    --teal: #0e9f9a;
    --teal-soft: #e5f6f5;
    --gold: #f2a541;
    --ink: #17223b;
    --text: #3d4a60;
    --muted: #6b778c;
    --line: #e4e9f1;
    --bg: #ffffff;
    --bg-soft: #f5f8fc;
    --bg-cream: #fbf8f4;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
    --shadow: 0 14px 40px -12px rgba(11, 31, 58, .18);
    --shadow-lg: 0 30px 70px -20px rgba(11, 31, 58, .32);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: var(--font);
    --container: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--red); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(215, 38, 61, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }
.section--navy { background: var(--navy); color: #c9d4e6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 80px 0; }
.text-center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #ffb3bd; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head.text-center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { font-size: 18px; color: var(--muted); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; }
.section-head--split > div { max-width: 640px; }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -8px rgba(215, 38, 61, .6); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 14px 30px -8px rgba(215, 38, 61, .7); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { color: var(--red); }
.btn--ghost { background: var(--bg-soft); color: var(--navy); border-color: var(--line); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #b9c6db; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info i { color: #ff8796; margin-right: 4px; }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__emergency { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(215, 38, 61, .22); padding: 5px 14px; border-radius: 999px; }
.topbar__emergency strong { color: #fff; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d63; box-shadow: 0 0 0 0 rgba(255, 77, 99, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 99, 0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11,31,58,.35); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 48px; height: 48px; color: var(--red); display: block; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--display); font-size: 23px; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.brand__text small { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #8fa1bd; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--ink); border-radius: 10px; position: relative; }
.nav__link i { font-size: 11px; transition: transform .25s; }
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px; }
.submenu-toggle { display: none; }
.nav__mobile-cta { display: none; }

.mega {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 10px);
    width: 760px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: 18px; opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-mega:hover .nav__link i { transform: rotate(180deg); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__item { display: flex; gap: 14px; padding: 12px 14px; border-radius: 12px; transition: background .2s; }
.mega__item:hover { background: var(--bg-soft); }
.mega__item i { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 18px; }
.mega__item strong { display: block; color: var(--ink); font-size: 14.5px; }
.mega__item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__call { display: flex; align-items: center; gap: 10px; }
.header__call i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.header__call span { display: flex; flex-direction: column; line-height: 1.2; }
.header__call small { font-size: 12px; color: var(--muted); }
.header__call strong { color: var(--navy); font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 720px; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 22, 44, .94) 0%, rgba(8, 22, 44, .82) 42%, rgba(8, 22, 44, .35) 75%, rgba(8, 22, 44, .2) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 100px 24px 150px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); margin-bottom: 26px; }
.hero__badge span { background: var(--red); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.12; margin-bottom: 24px; }
.hero h1 em { color: #ff8a99; }
.hero__lead { font-size: 19px; color: #d3dcec; max-width: 580px; margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero__trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c3cee0; }
.hero__trust i { font-size: 20px; color: #ff8a99; }

.quick-book { background: rgba(255,255,255,.98); color: var(--text); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); position: relative; }
.quick-book h3 { font-family: var(--display); font-size: 26px; margin-bottom: 6px; }
.quick-book > p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.quick-book .form-grid { gap: 14px; }
.quick-book__tag { position: absolute; top: -14px; right: 28px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; }

/* Highlights strip */
.highlights { position: relative; z-index: 5; margin-top: -86px; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.highlight { padding: 30px 28px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); transition: background .3s; }
.highlight:last-child { border-right: 0; }
.highlight:hover { background: var(--bg-soft); }
.highlight__icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: var(--red); background: var(--red-soft); }
.highlight:nth-child(2) .highlight__icon { color: var(--teal); background: var(--teal-soft); }
.highlight:nth-child(3) .highlight__icon { color: var(--navy-3); background: #e8eefa; }
.highlight:nth-child(4) .highlight__icon { color: #c27612; background: #fdf2e2; }
.highlight strong { display: block; font-family: var(--display); font-size: 26px; color: var(--navy); line-height: 1.1; }
.highlight div > span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse .split__media { order: 2; }
.collage { position: relative; padding: 0 40px 60px 0; }
.collage__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; }
.collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__small { position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--radius); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.collage__small img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge { position: absolute; left: -24px; top: 40px; background: var(--navy); color: #fff; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; max-width: 250px; }
.collage__badge i { font-size: 30px; color: #ff8a99; }
.collage__badge strong { display: block; font-size: 22px; font-family: var(--display); }
.collage__badge span { font-size: 13px; color: #aebbd2; line-height: 1.35; display: block; }
.checklist { display: grid; gap: 14px; margin: 28px 0 36px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist i { color: var(--teal); font-size: 20px; line-height: 1.4; }
.checklist strong { color: var(--ink); display: block; }
.checklist span { font-size: 14.5px; color: var(--muted); }
.checklist--2 { grid-template-columns: 1fr 1fr; }

/* ---------- Department cards ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dept-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; display: flex; flex-direction: column; }
.dept-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.dept-card:hover::after { transform: scaleX(1); }
.dept-card__icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: var(--red); background: var(--red-soft); margin-bottom: 22px; transition: background .3s, color .3s; }
.dept-card:hover .dept-card__icon { background: var(--red); color: #fff; }
.dept-card h3 { font-size: 19px; margin-bottom: 10px; }
.dept-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.dept-card .link-arrow { font-size: 14px; }

.dept-card--img { padding: 0; }
.dept-card--img .dept-card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.dept-card--img .dept-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dept-card--img:hover .dept-card__media img { transform: scale(1.07); }
.dept-card--img .dept-card__icon { position: absolute; left: 24px; bottom: -28px; margin: 0; background: #fff; box-shadow: var(--shadow); }
.dept-card--img .dept-card__body { padding: 44px 26px 28px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Schedule / OPD table ---------- */
.schedule { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.schedule__row { display: grid; grid-template-columns: 64px 1.4fr 1fr 1fr auto; gap: 20px; align-items: center; padding: 22px 30px; border-bottom: 1px solid var(--line); transition: background .2s; }
.schedule__row:last-child { border-bottom: 0; }
.schedule__row:hover { background: var(--bg-soft); }
.schedule__row--head { background: var(--navy); color: #c7d3e6; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 16px 30px; }
.schedule__row--head:hover { background: var(--navy); }
.schedule strong { color: var(--ink); display: block; }
.schedule small { color: var(--muted); font-size: 13px; display: block; line-height: 1.4; }
.schedule__day { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.schedule__day i { color: var(--red); }

/* ---------- Avatars & doctor cards ---------- */
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--navy-3), var(--navy)); flex-shrink: 0; letter-spacing: .02em; }
.avatar--red { background: linear-gradient(135deg, #ef5a6f, var(--red-dark)); }
.avatar--teal { background: linear-gradient(135deg, #2cc0b9, #08736f); }
.avatar--gold { background: linear-gradient(135deg, #f6bb5f, #c27612); }

.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doctor-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-card__top { position: relative; padding: 36px 28px 28px; background: radial-gradient(circle at 85% 0%, rgba(215,38,61,.13), transparent 50%), linear-gradient(160deg, #f3f6fb, #fff); display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.doctor-card__top .avatar { width: 86px; height: 86px; font-size: 28px; box-shadow: 0 0 0 6px #fff, var(--shadow); }
.doctor-card__top h3 { font-size: 20px; margin-bottom: 4px; }
.doctor-card__role { color: var(--red); font-weight: 700; font-size: 13.5px; }
.doctor-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.doctor-card__meta { display: grid; gap: 10px; font-size: 14px; }
.doctor-card__meta div { display: flex; gap: 10px; align-items: flex-start; }
.doctor-card__meta i { color: var(--teal); margin-top: 2px; }
.doctor-card__bio { font-size: 14.5px; color: var(--muted); flex: 1; margin: 0; }
.doctor-card__actions { display: flex; gap: 10px; }
.doctor-card__actions .btn { flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--teal-soft); color: #087a75; }
.tag--red { background: var(--red-soft); color: var(--red-dark); }
.tag--navy { background: #e8eefa; color: var(--navy-3); }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.facility { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.4; color: #fff; isolation: isolate; display: flex; align-items: flex-end; }
.facility img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.facility::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,22,44,0) 30%, rgba(8,22,44,.92) 100%); transition: background .4s; }
.facility:hover img { transform: scale(1.08); }
.facility__body { padding: 28px; }
.facility__icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.25); }
.facility h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.facility p { font-size: 14.5px; color: #cdd7e7; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .45s; }
.facility:hover p, .facility:focus-within p { max-height: 120px; opacity: 1; }

.facility-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.facility-row { display: grid; grid-template-columns: 220px 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.facility-row:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.facility-row__img { cursor: zoom-in; overflow: hidden; }
.facility-row__img img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform .6s var(--ease); }
.facility-row:hover .facility-row__img img { transform: scale(1.06); }
.facility-row__body { padding: 26px 28px; }
.facility-row__body i { font-size: 24px; color: var(--red); }
.facility-row__body h3 { font-size: 19px; margin: 10px 0 8px; }
.facility-row__body p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Why choose / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--navy); padding: 40px 36px; transition: background .3s; }
.feature:hover { background: var(--navy-2); }
.feature i { font-size: 32px; color: #ff8a99; display: block; margin-bottom: 20px; }
.feature h3 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.feature p { font-size: 15px; color: #a9b7cf; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-filter button { border: 1px solid var(--line); background: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.gallery-filter button:hover { border-color: var(--navy); }
.gallery-filter button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.masonry { columns: 3 320px; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item:nth-child(3n+1) img { aspect-ratio: 4/5; object-fit: cover; }
.masonry__item::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: all .3s var(--ease); }
.masonry__item:hover::after { opacity: 1; transform: scale(1); }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(8,22,44,.85)); color: #fff; font-weight: 600; font-size: 14.5px; }
.masonry__item.is-hidden, .doctor-card.is-hidden { display: none; }
.gallery-filter[data-items] { margin-bottom: 48px; }
.gallery-filter[data-items] button { padding: 8px 16px; font-size: 13.5px; }

.gallery-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 18px; }
.gallery-strip > * { border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; border: 0; padding: 0; }
.gallery-strip > *:first-child { grid-row: span 2; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-strip > *:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6, 14, 28, .94); display: flex; align-items: center; justify-content: center; padding: 60px 80px; opacity: 0; visibility: hidden; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 1200px; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #dbe3f0; margin-top: 16px; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Page header ---------- */
.page-hero { position: relative; color: #fff; padding: 110px 0 100px; overflow: hidden; isolation: isolate; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,22,44,.95) 10%, rgba(8,22,44,.72) 60%, rgba(8,22,44,.45)); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 14px; }
.page-hero p { color: #cdd7e7; font-size: 18.5px; max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: 10px; font-size: 14px; color: #9fb0cb; margin: 0 0 20px; padding: 0; list-style: none; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb li:last-child { color: #ff9aa7; }

/* ---------- Department detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.detail__img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.detail__img img { width: 100%; height: 100%; object-fit: cover; }
.detail h2 { font-size: 34px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 40px; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); font-size: 15px; }
.service-list i { color: var(--red); font-size: 18px; margin-top: 1px; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.side-card h4 { font-size: 17px; margin-bottom: 16px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); transition: background .2s, color .2s; }
.side-nav a:hover { background: var(--bg-soft); color: var(--red); }
.side-nav a.is-active { background: var(--red); color: #fff; }
.side-card--cta { background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #c7d3e6; border: 0; position: relative; overflow: hidden; }
.side-card--cta::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(215,38,61,.35); filter: blur(50px); right: -60px; top: -60px; }
.side-card--cta h4 { color: #fff; font-size: 22px; font-family: var(--display); }
.side-card--cta a.phone { display: block; font-size: 24px; font-weight: 800; color: #fff; margin: 8px 0 18px; }
.mini-doc { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-doc:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-doc .avatar { width: 50px; height: 50px; font-size: 16px; }
.mini-doc strong { display: block; color: var(--ink); font-size: 15px; }
.mini-doc small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
    font-size: 15px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b778c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 61, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff8f9; }
.field__error { color: var(--red-dark); font-size: 13px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.radio-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pills label { margin: 0; position: relative; }
.radio-pills input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.split > *, .social-band > *, .booking > *, .detail > *, .form-grid > *, .hero__inner > * { min-width: 0; }
.radio-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.radio-pills input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.radio-pills input:focus-visible + span { box-shadow: 0 0 0 4px rgba(215, 38, 61, .18); }
.form-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius-sm); margin-bottom: 26px; font-size: 15px; }
.alert i { font-size: 22px; line-height: 1.2; }
.alert--success { background: #e7f7ef; color: #11643d; border: 1px solid #bfe8d2; }
.alert--error { background: #fdecee; color: #8f1d2c; border: 1px solid #f7c6cd; }
.alert ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }

.booking { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.booking__form { background: #fff; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.booking__form h2 { font-size: 32px; }
.booking__steps { display: grid; gap: 18px; }
.step { display: flex; gap: 16px; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.step strong { display: block; color: var(--ink); }
.step span { font-size: 14px; color: var(--muted); }

.confirm-card { text-align: center; padding: 50px 40px; }
.confirm-card__icon { width: 90px; height: 90px; margin: 0 auto 24px; border-radius: 50%; background: #e7f7ef; color: #1a9a5c; display: grid; place-items: center; font-size: 44px; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.confirm-card__ref { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; background: var(--bg-soft); border: 2px dashed var(--line); padding: 12px 24px; border-radius: 12px; color: var(--navy); margin: 10px 0 24px; }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; text-align: left; max-width: 420px; margin: 0 auto 30px; font-size: 15px; }
.confirm-card dt { color: var(--muted); }
.confirm-card dd { margin: 0; font-weight: 700; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 70px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.contact-card h4 { font-size: 17px; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--muted); margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--red); }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; filter: saturate(.9); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 26px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--red); transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary::after { content: "\F2EA"; background: var(--red); color: #fff; }
.faq details p { padding: 0 26px 24px; margin: 0; color: var(--muted); }

/* ---------- Info cards (patients page) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); }
.info-card__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; background: var(--teal-soft); color: var(--teal); }
.info-card h3 { font-size: 20px; }
.info-card ul { display: grid; gap: 10px; }
.info-card li { display: flex; gap: 10px; font-size: 15px; }
.info-card li i { color: var(--teal); margin-top: 3px; }

/* ---------- Mission / values / stats ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-card { padding: 40px 34px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.mv-card__num { position: absolute; right: 24px; top: 10px; font-family: var(--display); font-size: 90px; font-weight: 700; color: var(--bg-soft); line-height: 1; z-index: 0; }
.mv-card > * { position: relative; }
.mv-card i { font-size: 34px; color: var(--red); display: block; margin-bottom: 20px; }
.mv-card h3 { font-size: 22px; }
.mv-card p { margin: 0; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 30px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--teal)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.timeline strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.timeline span { color: var(--muted); font-size: 15px; }

/* Social */
.social-band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.social-card { display: flex; align-items: center; gap: 22px; padding: 30px 32px; border-radius: var(--radius-lg); color: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.social-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.social-card i { font-size: 44px; }
.social-card strong { display: block; font-size: 20px; }
.social-card span { opacity: .85; font-size: 14.5px; }
.social-card .bi-arrow-up-right { font-size: 22px; margin-left: auto; }
.social-card--fb { background: linear-gradient(135deg, #1877f2, #0b4fb3); }
.social-card--ig { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 80%); }

/* ---------- Pre-footer & footer ---------- */
.prefooter { background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, #ec5468); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.prefooter::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.prefooter__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; z-index: 1; }
.prefooter h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin: 0; max-width: 640px; }
.prefooter h2 em { color: #ffe0e4; }
.prefooter .eyebrow { color: #ffd6dc; }
.prefooter__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.footer { background: #071528; color: #92a3bf; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 48px; padding-top: 80px; padding-bottom: 60px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 22px; }
.footer__about p { margin: 22px 0 26px; max-width: 360px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__links { display: grid; gap: 11px; }
.footer__links a { display: inline-flex; gap: 8px; align-items: center; }
.footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: .7; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: 16px; }
.footer__contact li { display: flex; gap: 14px; align-items: flex-start; }
.footer__contact i { color: #ff8a99; font-size: 17px; margin-top: 2px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; font-size: 13.5px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* FAB */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; border: 0; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease), opacity .3s; }
.fab__btn:hover { transform: scale(1.08); }
.fab__btn--wa { background: #25d366; }
.fab__btn--call { background: var(--red); animation: ring 2.4s infinite; }
.fab__btn--top { background: var(--navy); opacity: 0; pointer-events: none; }
.fab__btn--top.is-visible { opacity: 1; pointer-events: auto; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(215,38,61,.55); } 50% { box-shadow: 0 0 0 14px rgba(215,38,61,0); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { text-align: center; padding: 140px 0; }
.notfound__code { font-family: var(--display); font-size: clamp(100px, 18vw, 200px); line-height: 1; color: var(--red); font-weight: 700; }

/* ==========================================================================
   Responsive
   ========================================================================== */
.header__call strong, .header__call small { white-space: nowrap; }
@media (max-width: 1440px) {
    .header__call { display: none; }
    .nav__link { padding: 10px 12px; }
}
@media (max-width: 1180px) {
    .nav__link { padding: 10px 10px; font-size: 14.5px; }
    .dept-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .section { padding: 84px 0; }
    .burger { display: flex; }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 120;
        padding: 90px 24px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease);
        box-shadow: -20px 0 60px rgba(11,31,58,.2);
    }
    .nav.is-open { transform: none; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list > li { border-bottom: 1px solid var(--line); }
    .nav__link { padding: 15px 4px; font-size: 16px; width: 100%; }
    .nav__link i { display: none; }
    .nav__link.is-active::after { display: none; }
    .submenu-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 6px; width: 40px; height: 40px; border: 0; background: var(--bg-soft); border-radius: 10px; cursor: pointer; }
    .submenu-toggle.is-open i { transform: rotate(180deg); }
    .mega { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; opacity: 1; visibility: visible; display: none; }
    .has-mega:hover .mega { transform: none; }
    .mega.is-open { display: block; }
    .mega__grid { grid-template-columns: 1fr; }
    .mega__item small { display: none; }
    .mega__item i { width: 34px; height: 34px; font-size: 16px; }
    .nav__mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
    .header { z-index: 130; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,22,44,.5); z-index: 110; }
    .burger { position: relative; z-index: 130; }
    .hero__inner { grid-template-columns: 1fr; padding-bottom: 140px; }
    .quick-book { max-width: 560px; }
    .highlights__grid { grid-template-columns: 1fr 1fr; }
    .highlight:nth-child(2) { border-right: 0; }
    .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .split { grid-template-columns: 1fr; gap: 56px; }
    .split--reverse .split__media { order: 0; }
    .collage { max-width: 600px; }
    .doctor-grid, .facility-grid, .info-grid, .mv-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .detail, .booking { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .facility-list { grid-template-columns: 1fr; }
    .schedule__row { grid-template-columns: 52px 1fr 1fr; }
    .schedule__row > :nth-child(4), .schedule__row--head > :nth-child(4) { display: none; }
    .schedule__row > :last-child { grid-column: 2 / -1; justify-self: start; }
    .schedule__row--head > :last-child { display: none; }
    .prefooter__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
    body { font-size: 15.5px; }
    .container { padding: 0 16px; }
    .section { padding: 68px 0; }
    .hide-sm { display: none !important; }
    .topbar__info span:first-child { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__info { display: none; }
    .header__inner { min-height: 72px; }
    .brand__mark { width: 42px; height: 42px; }
    .brand__text strong { font-size: 20px; }
    .brand__text small { font-size: 10px; }
    .hero { min-height: 0; }
    .hero__inner { padding: 64px 16px 120px; gap: 40px; }
    .hero__lead { font-size: 17px; }
    .hero__trust { gap: 16px; }
    .quick-book { padding: 26px 20px; }
    .highlights { margin-top: -70px; }
    .highlights__grid { grid-template-columns: 1fr; }
    .highlight { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
    .highlight:last-child { border-bottom: 0; }
    .dept-grid, .doctor-grid, .facility-grid, .info-grid, .mv-grid, .feature-grid, .contact-cards, .social-band { grid-template-columns: 1fr; }
    .form-grid, .service-list, .checklist--2 { grid-template-columns: 1fr; }
    .section-head--split { flex-direction: column; align-items: flex-start; }
    .collage { padding: 0 20px 40px 0; }
    .collage__badge { left: 10px; top: 16px; padding: 14px 16px; }
    .facility-row { grid-template-columns: 1fr; }
    .facility-row__img img { min-height: 0; aspect-ratio: 16/9; }
    .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
    .gallery-strip > *:first-child { grid-column: span 2; grid-row: auto; }
    .booking__form { padding: 28px 20px; }
    .schedule__row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .schedule__row > :first-child { display: none; }
    .schedule__row--head { display: none; }
    .schedule__row > :last-child { grid-column: auto; }
    .page-hero { padding: 72px 0 64px; }
    .lightbox { padding: 60px 12px; }
    .lightbox__nav { top: auto !important; bottom: 20px; transform: none !important; }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
    .fab { right: 14px; bottom: 14px; }
    .fab__btn { width: 48px; height: 48px; font-size: 20px; }
    .confirm-card { padding: 30px 8px; }
}

/* ==========================================================================
   Home page (clean layout)
   ========================================================================== */
.h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.head2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head2 .h2 { margin: 0; }
.head2 .eyebrow { margin-bottom: 10px; }

.hero2 { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero2__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 25, 48, .96) 0%, rgba(9, 25, 48, .88) 45%, rgba(9, 25, 48, .55) 100%); }
.hero2__inner { padding-top: 120px; padding-bottom: 170px; max-width: var(--container); }
.hero2__inner > * { max-width: 640px; }
.hero2__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); margin-bottom: 24px; }
.hero2 h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; margin-bottom: 20px; }
.hero2 h1 em { color: #ff8a99; }
.hero2 p { font-size: 18.5px; color: #cdd7e7; margin-bottom: 34px; }
.hero2__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.bookbar { position: relative; z-index: 5; margin-top: -72px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px 28px; display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 20px; align-items: end; }
.bookbar__title { display: flex; gap: 14px; align-items: center; align-self: center; }
.bookbar__title i { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--red-soft); color: var(--red); }
.bookbar__title strong { display: block; color: var(--ink); font-size: 17px; }
.bookbar__title span { font-size: 13.5px; color: var(--muted); }
.bookbar .btn { height: 50px; }

.about2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about2__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.about2__img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 30px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fact i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--teal-soft); color: var(--teal); }
.fact strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.fact span { font-size: 13.5px; color: var(--muted); }

.dept2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dept2__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.dept2__item:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.dept2__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--red-soft); color: var(--red); margin-bottom: 8px; }
.dept2__item strong { color: var(--ink); font-size: 16.5px; }
.dept2__item > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.55; }

.feature2 { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; color: #c4d0e3; }
.feature2__text { padding: 56px; }
.feature2 .h2 { color: #fff; }
.feature2__img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 24px 0 32px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e3e9f3; }
.ticks i { color: #ff8a99; margin-top: 2px; }
.feature2__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.doc2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc2__card { min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 22px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.doc2__card .avatar { width: 76px; height: 76px; font-size: 24px; margin-bottom: 10px; }
.doc2__card strong { color: var(--ink); font-size: 17px; }
.doc2__dept { color: var(--red); font-weight: 600; font-size: 14px; }
.doc2__qual { color: var(--muted); font-size: 13.5px; flex: 1; margin-bottom: 12px; }

.fac2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fac2__tile { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--bg-soft); }
.fac2__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.fac2__tile:hover img { transform: scale(1.05); }
.fac2__tile span { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; display: flex; gap: 8px; align-items: center; }
.fac2__tile span i { color: var(--red); }

@media (max-width: 1024px) {
    .bookbar { grid-template-columns: 1fr 1fr; }
    .bookbar__title { grid-column: 1 / -1; }
    .bookbar .btn { grid-column: 1 / -1; }
    .about2 { grid-template-columns: 1fr; gap: 40px; }
    .dept2, .doc2 { grid-template-columns: repeat(2, 1fr); }
    .feature2 { grid-template-columns: 1fr; }
    .feature2__img { order: -1; }
    .feature2__img img { min-height: 0; aspect-ratio: 16 / 8; }
    .fac2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .hero2__inner { padding-top: 72px; padding-bottom: 130px; }
    .hero2 p { font-size: 16.5px; }
    .bookbar { grid-template-columns: 1fr; padding: 22px 18px; margin-top: -90px; }
    .facts, .ticks { grid-template-columns: 1fr; }
    .dept2 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dept2__item { padding: 18px 14px; }
    .dept2__item > span:last-child { display: none; }
    .dept2__item strong { font-size: 14.5px; line-height: 1.35; }
    .dept2__icon { width: 42px; height: 42px; font-size: 19px; margin-bottom: 4px; }
    .doc2 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .doc2__card { padding: 22px 12px 18px; }
    .doc2__card .avatar { width: 60px; height: 60px; font-size: 20px; }
    .doc2__card strong { font-size: 15px; }
    .feature2__text { padding: 32px 22px; }
    .fac2 { grid-template-columns: 1fr; }
    .head2 { margin-bottom: 28px; }
}

/* ==========================================================================
   Modern hero + motion
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ecgDraw { 0% { stroke-dashoffset: 1600; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ecgMini { 0% { stroke-dashoffset: 260; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes glow { 0%, 100% { box-shadow: 0 10px 24px -8px rgba(215,38,61,.6); } 50% { box-shadow: 0 10px 34px -4px rgba(215,38,61,.85); } }

.anim-up { opacity: 0; animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.anim-zoom { opacity: 0; animation: zoomIn 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }

.hero3 { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f6f9fe 0%, #fff7f8 100%); padding: 70px 0 130px; }
.hero3__blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -2; animation: blob 18s ease-in-out infinite; }
.hero3__blobs span:nth-child(1) { width: 520px; height: 520px; background: #ffc9d1; top: -160px; right: -60px; }
.hero3__blobs span:nth-child(2) { width: 460px; height: 460px; background: #c9e4ff; bottom: -200px; left: -120px; animation-delay: -6s; }
.hero3__blobs span:nth-child(3) { width: 300px; height: 300px; background: #c6f1ec; top: 30%; left: 42%; animation-delay: -12s; opacity: .45; }
.hero3__grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(11,31,58,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,58,.045) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.hero3__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero3__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 26px; }
.hero3 h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 22px; color: var(--navy); }
.hero3 h1 .hl { position: relative; white-space: nowrap; }
.hero3 h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: rgba(215,38,61,.18); border-radius: 4px; z-index: -1; transform-origin: left; animation: hlGrow 1s var(--ease) 1s both; }
@keyframes hlGrow { from { transform: scaleX(0); } }
.rotator { display: inline-block; position: relative; }
.rotator__word { display: inline-block; color: transparent; background: linear-gradient(90deg, var(--red), #ff6b81, var(--red-dark), var(--red)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; animation: shine 4s linear infinite; padding-bottom: .06em; transition: opacity .4s, transform .4s var(--ease); }
.rotator__word.is-out { opacity: 0; transform: translateY(-40%); }
.rotator__word.is-in-start { opacity: 0; transform: translateY(40%); transition: none; }
.hero3 p { font-size: 18.5px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero3__ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn--glow { animation: glow 2.6s ease-in-out infinite; }
.btn--call { display: inline-flex; align-items: center; gap: 12px; padding: 6px 22px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.btn--call:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--call__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; position: relative; }
.btn--call__icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--navy); opacity: .3; animation: pulse 2s infinite; }
.btn--call span:last-child { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; color: var(--navy); }
.btn--call small { font-size: 12px; font-weight: 600; color: var(--muted); }
.hero3__stats { display: flex; gap: 0; margin-top: 44px; }
.hero3__stats > div { padding: 0 28px; border-left: 1px solid var(--line); }
.hero3__stats > div:first-child { padding-left: 0; border-left: 0; }
.hero3__stats strong { display: block; font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.hero3__stats strong small { font-size: .7em; }
.hero3__stats > div > span { font-size: 14px; color: var(--muted); }

.hero3__visual { position: relative; padding: 30px 30px 40px 50px; }
.hero3__ring { position: absolute; inset: 0 0 10px 20px; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; border: 2px dashed rgba(215,38,61,.25); animation: spin 40s linear infinite; }
.hero3__photo { position: relative; border-radius: 36px 36px 36px 120px; overflow: hidden; aspect-ratio: 1 / 1.05; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.hero3__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
.hero3__inset { position: absolute; right: 0; bottom: 10px; width: 38%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); animation: floatY 7s ease-in-out infinite; animation-delay: -2s; }
.hero3__inset img { width: 100%; height: 100%; object-fit: cover; }

.float-card { position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px -14px rgba(11,31,58,.3); animation: floatY 6s ease-in-out infinite; z-index: 2; }
.float-card strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.25; }
.float-card span { font-size: 12.5px; color: var(--muted); }
.float-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.float-card__icon--red { background: var(--red-soft); color: var(--red); }
.float-card__icon--red i { animation: beat 1.2s ease-in-out infinite; }
.float-card__icon--teal { background: var(--teal-soft); color: var(--teal); }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
.float-card--a { top: 6%; left: 0; }
.float-card--b { top: 44%; right: -14px; animation-delay: -2s; }
.float-card--c { bottom: 4%; left: 6%; animation-delay: -4s; }
.avatars { display: flex; }
.avatars .avatar { width: 34px; height: 34px; font-size: 11.5px; border: 2px solid #fff; margin-left: -10px; }
.avatars .avatar:first-child { margin-left: 0; }

.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg--mini { width: 110px; height: 26px; display: block; }
.ecg--mini path { stroke: var(--red); stroke-width: 2.4; stroke-dasharray: 260; animation: ecgMini 2.2s linear infinite; }
.hero3__ecg { position: absolute; left: 0; right: 0; bottom: 30px; width: 100%; height: 80px; z-index: -1; opacity: .5; }
.hero3__ecg path { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 1600; animation: ecgDraw 5s linear infinite; }

.bookbar { margin-top: -70px; }

/* Ticker */
.ticker { margin-top: 56px; overflow: hidden; background: var(--navy); padding: 18px 0; transform: rotate(-1deg); width: 104%; margin-left: -2%; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; color: #fff; font-weight: 600; font-size: 17px; white-space: nowrap; }
.ticker i { color: #ff8a99; font-size: 14px; }

/* Departments & doctors hover polish */
.dept2__item { position: relative; overflow: hidden; }
.dept2__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--red), #ef5a6f); opacity: 0; transition: opacity .35s; z-index: 0; }
.dept2__item > * { position: relative; z-index: 1; transition: color .3s; }
.dept2__item:hover::before { opacity: 1; }
.dept2__item:hover strong, .dept2__item:hover > span:last-child { color: #fff; }
.dept2__item:hover .dept2__icon { background: rgba(255,255,255,.2); color: #fff; transform: rotate(-8deg) scale(1.08); }
.dept2__icon { transition: transform .35s var(--ease), background .3s, color .3s; }
.doc2__card { transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.doc2__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.doc2__card .avatar { position: relative; transition: transform .4s var(--ease); }
.doc2__card .avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(215,38,61,.35); opacity: 0; transition: opacity .3s; animation: spin 10s linear infinite; }
.doc2__card:hover .avatar { transform: scale(1.06); }
.doc2__card:hover .avatar::after { opacity: 1; }
.doc2__card:hover .btn--ghost { background: var(--red); color: #fff; border-color: var(--red); }

/* Bento */
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.bento__item { border-radius: 24px; padding: 30px; background: var(--bg-soft); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.bento__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bento__item h3 { font-size: 20px; margin-bottom: 8px; }
.bento__item p { font-size: 15px; color: var(--muted); margin: 0; }
.bento__item--photo { grid-row: span 2; padding: 0; min-height: 440px; color: #fff; border: 0; }
.bento__item--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__item--photo:hover img { transform: scale(1.06); }
.bento__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: linear-gradient(180deg, transparent 35%, rgba(8,22,44,.9)); }
.bento__overlay h3 { color: #fff; font-size: 24px; }
.bento__overlay p { color: #cdd7e7; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.bento__item--red { background: linear-gradient(140deg, var(--red), #ec5468); color: #fff; border: 0; grid-row: span 1; }
.bento__item--red h3 { color: #fff; }
.bento__item--red p { color: #ffe0e4; }
.bento__big-icon { position: absolute; right: -10px; top: -10px; font-size: 110px; opacity: .14; animation: floatY 6s ease-in-out infinite; }
.bento__link { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; background: #fff; color: var(--red); font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.bento__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: #fff; color: var(--red); box-shadow: var(--shadow-sm); margin-bottom: 18px; transition: transform .4s var(--ease); }
.bento__item:hover .bento__icon { transform: rotate(-10deg) scale(1.1); }
.bento__icon--teal { color: var(--teal); }
.bento__item--navy { background: var(--navy); border: 0; grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 26px; align-items: center; }
.bento__item--navy h3 { color: #fff; margin: 0; align-self: end; }
.bento__item--navy p { color: #a9b7cf; grid-column: 2; }
.bento__stat { grid-row: span 2; font-size: 76px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.04em; }
.bento__stat span { background: linear-gradient(135deg, #fff, #ff8a99); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Heart monitor overlay */
.feature2__img { position: relative; }
.monitor { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 300px; background: rgba(6,16,32,.82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; color: #fff; }
.monitor__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9fb0cb; }
.monitor__top i { color: #ff4d63; animation: beat 1.2s infinite; display: inline-block; }
.monitor__top strong { font-size: 26px; color: #4ef0a0; font-variant-numeric: tabular-nums; }
.ecg--monitor { width: 100%; height: 46px; display: block; }
.ecg--monitor path { stroke: #4ef0a0; stroke-width: 2; stroke-dasharray: 400; animation: ecgDraw 2.4s linear infinite; }

/* Varied reveal directions */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left.is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
    .hero3 { padding: 50px 0 120px; }
    .hero3__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero3__visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento__item--photo { grid-column: span 2; grid-row: auto; min-height: 340px; }
}
@media (max-width: 720px) {
    .hero3 { padding: 36px 0 110px; }
    .hero3 p { font-size: 16.5px; }
    .hero3__stats > div { padding: 0 16px; }
    .hero3__stats strong { font-size: 26px; }
    .hero3__visual { padding: 18px 8px 30px 18px; }
    .float-card { padding: 9px 12px; border-radius: 14px; }
    .float-card strong { font-size: 13px; }
    .float-card__icon { width: 34px; height: 34px; font-size: 16px; }
    .float-card--b { right: -4px; }
    .float-card--b .avatars { display: none; }
    .ecg--mini { width: 80px; }
    .bento { grid-template-columns: 1fr; }
    .bento__item--photo, .bento__item--navy { grid-column: auto; }
    .bento__stat { font-size: 56px; }
    .ticker span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .anim-up, .anim-zoom, .reveal-left { opacity: 1 !important; transform: none !important; }
    .ticker__track { animation: none; }
}

html, body { overflow-x: clip; }
.hero3__visual { overflow: visible; }
@media (max-width: 720px) { .hero3__ring { inset: 0 6px 10px 10px; } }

.avatar--photo { object-fit: cover; background: var(--bg-soft); padding: 0; }

/* Logo image */
.brand__mark { width: 56px; height: 56px; flex-shrink: 0; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 8px rgba(11,31,58,.12)); transition: transform .4s var(--ease); }
.brand:hover .brand__mark img { transform: rotate(-4deg) scale(1.05); }
.footer .brand__mark { width: 64px; height: 64px; }
.footer .brand__mark img { filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
@media (max-width: 720px) { .brand__mark { width: 46px; height: 46px; } }
.topbar__emergency, .topbar__emergency strong { white-space: nowrap; }
@media (max-width: 900px) { .topbar__info a { display: none; } }

/* ==========================================================================
   Medicine price list
   ========================================================================== */
.medsearch { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.medsearch form { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.medsearch form:focus-within { border-color: var(--red); box-shadow: 0 0 0 5px rgba(215,38,61,.1), var(--shadow); }
.medsearch form > i { color: var(--muted); font-size: 18px; }
.medsearch input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 12px 4px; background: transparent; }
.medsearch input[type=search]::-webkit-search-cancel-button { display: none; }
.medsearch__clear { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--bg-soft); }
.medsearch__clear:hover { color: var(--red); }
.medsearch p { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.medsearch p strong { color: var(--ink); }

.medcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.medcard__foot { padding: 16px 20px; border-top: 1px solid var(--line); background: #fcfdff; }
.medtable-wrap { overflow-x: auto; }
.medtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.medtable th { background: var(--navy); color: #c9d4e6; text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 0; white-space: nowrap; position: sticky; top: 0; }
.medtable th a, .medtable th:not(:has(a)) { display: flex; align-items: center; gap: 6px; padding: 15px 16px; }
.medtable th.is-num a { justify-content: flex-end; }
.medtable th a:hover, .medtable th a.is-sorted { color: #fff; }
.medtable th a i { font-size: 12px; opacity: .55; }
.medtable th a.is-sorted i { opacity: 1; color: #ff8a99; }
.medtable td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); }
.medtable td strong { color: var(--ink); }
.medtable tbody tr:nth-child(even) td { background: #fafbfe; }
.medtable tbody tr:hover td { background: #fff4f5; }
.medtable .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.medtable .is-sale { color: #11643d; font-weight: 700; }
.medtable__num { width: 56px; color: var(--muted); font-variant-numeric: tabular-nums; }
.medtable th.medtable__num { padding: 15px 16px; }
.medtable mark { background: #ffe3a3; color: inherit; padding: 0 2px; border-radius: 3px; }
.medtable .muted { color: #b3bccb; }
.medtable__empty { text-align: center; padding: 56px 20px !important; color: var(--muted); }
.medtable__empty i { display: block; font-size: 34px; margin-bottom: 8px; }

/* PHP pagination */
.pp { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pp__size { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.pp__size select { padding: 7px 30px 7px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b778c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; -webkit-appearance: none; font-weight: 600; color: var(--ink); cursor: pointer; }
.pp__info { margin-left: 6px; }
.pp__info strong { color: var(--ink); }
.pp__nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pp__nav a, .pp__nav span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: all .15s; }
.pp__nav a:hover { border-color: var(--red); color: var(--red); }
.pp__nav .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pp__nav .is-disabled { opacity: .4; }
.pp__nav .pp__dots { border: 0; background: none; min-width: 20px; padding: 0; }

@media (max-width: 760px) {
    .medsearch form { border-radius: 18px; flex-wrap: wrap; padding: 10px 10px 10px 18px; }
    .medsearch .btn { width: 100%; }
    .medtable thead { display: none; }
    .medtable, .medtable tbody, .medtable tr, .medtable td { display: block; width: 100%; }
    .medtable tr { border-top: 1px solid var(--line); padding: 12px 6px; }
    .medtable tbody tr:nth-child(even) td, .medtable tbody tr:hover td { background: none; }
    .medtable td { border: 0; padding: 5px 12px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
    .medtable td::before { content: attr(data-label); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; flex-shrink: 0; }
    .medtable td.medtable__num { display: none; }
    .medtable td.medtable__empty { display: block; text-align: center; }
    .medtable td.medtable__empty::before { content: none; }
    .pp { flex-direction: column; align-items: stretch; }
    .pp__nav { justify-content: center; }
}
/* Fit 9 menu items */
.header__inner { gap: 16px; }
@media (max-width: 1480px) {
    .nav__list { gap: 0; }
    .nav__link { padding: 10px 9px; font-size: 14.5px; }
    .header__actions { gap: 12px; }
    .header__actions .btn { padding: 12px 18px; font-size: 14px; }
    .brand__text small { font-size: 10.5px; }
}
@media (max-width: 1240px) and (min-width: 1025px) {
    .nav__link { padding: 10px 7px; font-size: 13.5px; }
    .brand__text strong { font-size: 20px; }
    .header__actions .btn.hide-sm { display: none; }
}
