/* Lalitpur Metro City Hospital — public site styles.
   Theme colours arrive as CSS variables from the active theme (see layouts/app). */
:root {
  --primary: #003B8E; --primary-dark: #002766; --primary-rgb: 0,59,142;
  --secondary: #DA121A; --secondary-rgb: 218,18,26; --accent: #DA121A;
  --soft: #EBF1FA; --soft-alt: #FDECEC; --ink: #0A1F44;
  --text: #3d4b63; --muted: #6b7890; --line: #e3e9f2; --white: #fff; --bg: #f7f9fc;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(16,33,63,.06);
  --shadow: 0 10px 30px rgba(16,33,63,.08);
  --shadow-lg: 0 24px 60px rgba(16,33,63,.14);
  --font: "Plus Jakarta Sans", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[lang="ne"] body { font-size: 16.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }
h1,h2,h3,h4,h5 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(var(--secondary-rgb), .55); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }
.text-primary { color: var(--primary) !important; } .text-secondary { color: var(--secondary) !important; } .text-muted { color: var(--muted); }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.center { text-align: center; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: all .2s ease; line-height: 1.2; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(var(--primary-rgb), .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { filter: brightness(.95); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--soft); color: var(--primary); }
.btn-danger { background: var(--accent); color: #fff; }
.btn-danger:hover { filter: brightness(.95); color: #fff; }
.btn-sm { padding: .5em 1.05em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn i { font-size: 1.05em; }
.link-arrow { font-weight: 600; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow i { transition: transform .2s; } .link-arrow:hover i { transform: translateX(3px); }

/* ── Top bar & ticker ── */
.topbar { background: var(--primary); color: rgba(255,255,255,.9); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.92); } .topbar a:hover { color: #fff; }
.topbar-list { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.topbar-list i { margin-right: 6px; opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.social-mini { display: flex; gap: 6px; }
.social-mini a { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: .8rem; }
.social-mini a:hover { background: #fff; color: var(--primary); }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 2px; }
.lang-switch a { padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .78rem; }
.lang-switch a.active { background: #fff; color: var(--primary); }
.ticker { background: var(--soft-alt); border-bottom: 1px solid var(--line); font-size: .87rem; overflow: hidden; }
.ticker .container { display: flex; align-items: center; gap: 14px; height: 38px; }
.ticker-label { flex: none; background: var(--accent); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-inner { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 35s linear infinite; padding-left: 100%; }
.ticker-inner a { color: var(--ink); font-weight: 500; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ── Header ── */
.site-header { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; gap: 26px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--primary); }
.brand:hover { color: var(--primary); }
.brand-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-img { height: 56px; width: auto; max-width: 300px; object-fit: contain; }
.brand-location { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); padding-left: 2px; }
.brand-on-dark .brand-logo { background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.brand-on-dark .brand-img { height: 48px; max-width: 250px; }
.main-nav { flex: 1; }
.nav-list { display: flex; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 30px 11px; font-weight: 600; font-size: .88rem; color: var(--ink); position: relative; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 18px; height: 3px; border-radius: 3px; background: var(--primary); transform: scaleX(0); transition: transform .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link .bi-chevron-down { font-size: .65rem; transition: transform .2s; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; border: 1px solid var(--line); z-index: 50; }
.dropdown.mega { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); min-width: 480px; }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .bi-chevron-down { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 500; }
.dropdown a i { color: var(--secondary); width: 18px; }
.dropdown a:hover { background: var(--soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-form { position: relative; }
.search-form input { width: 170px; padding: 9px 38px 9px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .85rem; background: #fff; transition: width .25s, border-color .2s; }
.search-form input:focus { width: 220px; border-color: var(--primary); outline: none; }
.search-form button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--primary); width: 32px; height: 32px; cursor: pointer; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 1.4rem; cursor: pointer; }
.header-cta { display: none; }

/* ── Hero ── */
.hero { position: relative; background: linear-gradient(115deg, #fff 0%, var(--soft) 45%, var(--soft-alt) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: radial-gradient(ellipse at 30% 100%, rgba(var(--secondary-rgb), .12), transparent 60%); pointer-events: none; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 30px; align-items: center; min-height: 520px; padding: 48px 0 110px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); font-size: .95rem; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 10px; background: radial-gradient(circle, var(--secondary) 2px, transparent 2.5px) 0 0/8px 10px repeat-x; }
.eyebrow::after { content: ""; width: 40px; height: 2px; background: var(--secondary); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; color: var(--primary); margin-bottom: .35em; letter-spacing: -.02em; }
.hero h1 span { color: var(--secondary); display: block; }
.hero p.lead { font-size: 1.08rem; max-width: 540px; color: var(--text); margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; }
.hero-media img { max-height: 470px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(var(--primary-rgb), .12)); }
.hero-art { width: 100%; max-width: 600px; }
.hero-chip { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: .82rem; font-weight: 600; color: var(--ink); animation: float 5s ease-in-out infinite; }
.hero-chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--secondary); font-size: 1rem; }
.hero-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.hero-chip.c1 { left: 2%; top: 18%; } .hero-chip.c2 { right: 2%; bottom: 22%; animation-delay: -2.5s; } .hero-chip.c2 i { background: var(--accent); }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-dots { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(var(--primary-rgb), .25); cursor: pointer; transition: all .3s; padding: 0; }
.hero-dots button.active { width: 28px; background: var(--primary); }

/* ── Quick services strip ── */
.quick-services { position: relative; z-index: 5; margin-top: -78px; }
.quick-grid { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(var(--cols, 10), 1fr); overflow: hidden; border: 1px solid var(--line); }
.quick-item { padding: 22px 10px 18px; text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); transition: background .2s, transform .2s; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--soft); color: var(--primary); }
.quick-item .q-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.85rem; color: var(--primary); margin-bottom: 6px; transition: transform .25s; }
.quick-item:hover .q-icon { transform: translateY(-3px) scale(1.06); }
.quick-item.emergency .q-icon { color: #fff; background: var(--accent); border-radius: 14px; font-size: 1.4rem; }
.quick-item strong { font-size: .9rem; line-height: 1.25; }
.quick-item small { color: var(--muted); font-size: .74rem; line-height: 1.35; }

/* ── Sections ── */
.section { padding: 70px 0; }
.section-sm { padding: 44px 0; }
.section-soft { background: var(--bg); }
.section-tint { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; color: var(--ink); margin: 0; }
.section-title .accent { color: var(--secondary); }
.section-sub { color: var(--muted); max-width: 640px; margin: 8px 0 0; }
.kicker { color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; display: block; margin-bottom: 6px; }
.block-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.block-title i { color: var(--primary); font-size: 1.35rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-hover { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--primary-rgb), .2); }

/* Home 3-col block */
.home-trio { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 26px; align-items: stretch; }
.promo-card { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--soft) 0%, #fff 60%, var(--soft-alt) 100%); border: 1px solid var(--line); padding: 28px 26px; min-height: 100%; display: flex; flex-direction: column; }
.promo-card .promo-eyebrow { font-size: 2rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.promo-card .promo-eyebrow b { color: var(--primary); }
.promo-price { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 2.6rem; padding: 4px 16px; border-radius: 10px; transform: rotate(-3deg); margin: 10px 0 4px; box-shadow: 0 10px 22px rgba(229,56,59,.28); line-height: 1.1; }
.promo-sub { display: inline-block; background: #fff; color: var(--primary); font-weight: 800; padding: 4px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); transform: rotate(-3deg); font-size: 1.05rem; }
.promo-card .promo-text { margin-top: 22px; color: var(--ink); font-weight: 600; display: flex; gap: 10px; font-size: .97rem; }
.promo-card .promo-text i { font-size: 1.5rem; color: var(--ink); }
.promo-card img.promo-img { position: absolute; right: -10px; bottom: -10px; width: 58%; opacity: .95; }
.promo-art { position: absolute; right: 12px; bottom: 12px; font-size: 6rem; color: rgba(var(--primary-rgb), .08); line-height: 1; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dept-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: .87rem; transition: all .2s; }
.dept-pill:hover { border-color: var(--c, var(--primary)); color: var(--c, var(--primary)); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.dept-pill .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c, var(--primary)); flex: none; font-size: 1.05rem; }
.doctor-panel { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.doc-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-of-type { border-bottom: 0; }
.doc-row img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: none; }
.doc-row h4 { font-size: .98rem; margin: 0 0 2px; } .doc-row h4 a { color: var(--ink); } .doc-row h4 a:hover { color: var(--primary); }
.doc-row p { margin: 0; font-size: .84rem; color: var(--muted); }
.doc-row .time { color: var(--secondary); font-weight: 600; font-size: .8rem; }

/* About split */
.about-split { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 0; background: var(--bg); align-items: stretch; }
.about-media { min-height: 320px; background-size: cover; background-position: center; position: relative; }
.about-media .ph { position: absolute; inset: 0; }
.about-body { padding: 40px 36px; }
.about-body .block-title { font-size: 1.4rem; }
.badge-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0; }
.mini-badge { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.mini-badge i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.1rem; flex: none; }
.mini-badge strong { color: var(--ink); display: block; font-size: .84rem; }
.side-stack { padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; }
.side-stack .card { padding: 18px; }
.side-card { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.side-card:last-child { border-bottom: 0; }
.side-card > i { font-size: 2.2rem; color: var(--primary); flex: none; }
.side-card h4 { margin: 0 0 4px; font-size: 1.02rem; } .side-card p { margin: 0 0 10px; font-size: .86rem; color: var(--muted); }

/* Stats */
.stats-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); }
.stats-band h2, .stats-band .section-title { color: #fff; }
.stat { text-align: center; padding: 10px; }
.stat i { font-size: 2rem; color: var(--secondary); }
.stat .num { font-size: 2.4rem; font-weight: 800; display: block; line-height: 1.1; margin-top: 8px; }
.stat .lbl { opacity: .85; font-size: .92rem; }

/* Cards: doctors / departments / posts / packages */
.doctor-card { overflow: hidden; display: flex; flex-direction: column; }
.doctor-card .photo { aspect-ratio: 1/1; background: var(--soft); overflow: hidden; position: relative; }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.doctor-card:hover .photo img { transform: scale(1.04); }
.doctor-card .tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); color: var(--primary); font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.doctor-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.doctor-card h3 { font-size: 1.05rem; margin-bottom: 2px; } .doctor-card h3 a { color: var(--ink); }
.doctor-card .role { color: var(--secondary); font-weight: 600; font-size: .86rem; }
.doctor-card .meta { color: var(--muted); font-size: .82rem; margin: 8px 0 14px; display: grid; gap: 4px; }
.doctor-card .meta i { color: var(--primary); margin-right: 6px; }
.doctor-card .actions { margin-top: auto; display: flex; gap: 8px; }
.doctor-card .actions .btn { flex: 1; }
.dept-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.dept-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 12%, white); }
.dept-card h3 { font-size: 1.1rem; margin: 6px 0 0; } .dept-card h3 a { color: var(--ink); }
.dept-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.dept-card .foot { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.post-card .thumb img, .post-card .thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1rem; margin-bottom: 4px; } .post-card h3 a { color: var(--ink); } .post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.post-card .date { font-size: .78rem; color: var(--muted); margin-top: auto; display: flex; gap: 6px; align-items: center; }
.pkg-card { padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.pkg-card.featured { border: 2px solid var(--secondary); }
.pkg-card .ribbon { position: absolute; right: 16px; top: 16px; background: var(--secondary); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pkg-card h3 { font-size: 1.15rem; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.price del { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; font-size: .9rem; }
.check-list li { display: flex; gap: 10px; } .check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; color: var(--secondary); }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--soft) 0%, var(--soft-alt) 100%); color: rgba(var(--primary-rgb), .35); font-size: 3rem; width: 100%; height: 100%; min-height: 120px; }

/* CTA + news row */
.news-row { display: grid; grid-template-columns: 1fr 1.7fr; gap: 26px; }
.cta-card { border-radius: var(--radius); overflow: hidden; position: relative; background: linear-gradient(110deg, var(--soft) 0%, var(--soft-alt) 100%); padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; min-height: 220px; border: 1px solid var(--line); }
.cta-card .cta-ic { width: 70px; height: 70px; border-radius: 22px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 2rem; margin-bottom: 16px; box-shadow: 0 12px 26px rgba(var(--primary-rgb), .3); }
.cta-card h3 { font-size: 1.5rem; color: var(--primary); margin: 0; } .cta-card h3 span { color: var(--secondary); display: block; }
.cta-card p { margin: 8px 0 18px; color: var(--muted); }
.cta-card img { position: absolute; right: 0; bottom: 0; height: 100%; width: 55%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 35%); }
.appointment-band { background: linear-gradient(110deg, var(--secondary) 0%, var(--primary) 100%); color: #fff; border-radius: var(--radius-lg); padding: 38px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.appointment-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.7rem; } .appointment-band p { margin: 0; opacity: .9; }

/* Testimonials */
.testimonial { padding: 26px; position: relative; }
.testimonial::before { content: "\201C"; position: absolute; right: 20px; top: -6px; font-size: 6rem; color: rgba(var(--secondary-rgb), .18); font-family: Georgia, serif; line-height: 1; }
.testimonial .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial blockquote { margin: 0 0 18px; font-size: .95rem; color: var(--ink); }
.testimonial .who { display: flex; gap: 12px; align-items: center; }
.testimonial .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial .who strong { display: block; color: var(--ink); } .testimonial .who small { color: var(--muted); }

/* ── Page hero / breadcrumb ── */
.page-hero { background: linear-gradient(115deg, var(--primary) 0%, var(--primary-dark) 70%); color: #fff; padding: 54px 0 58px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(var(--secondary-rgb), .25); filter: blur(10px); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0 0 8px; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 720px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; font-size: .85rem; flex-wrap: wrap; }
.breadcrumb li { color: rgba(255,255,255,.7); } .breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: #fff; }

/* ── Layout helpers for inner pages ── */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 22px; }
.sidebar .card { padding: 22px; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.side-links a:hover, .side-links a.active { background: var(--soft); color: var(--primary); }
.side-links i { color: var(--secondary); }
.prose { font-size: 1rem; color: var(--text); }
.prose h2 { font-size: 1.45rem; margin-top: 1.4em; } .prose h3 { font-size: 1.2rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { border-left: 4px solid var(--secondary); background: var(--soft-alt); margin: 1.2em 0; padding: 14px 20px; border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.prose th { background: var(--soft); }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }
.cover-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/7; background: var(--soft); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; font-size: .92rem; }
.info-list i { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--primary); display: grid; place-items: center; flex: none; font-size: 1.05rem; }
.info-list strong { display: block; color: var(--ink); font-size: .86rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--primary); font-weight: 600; }
.chip.green { background: var(--soft-alt); color: var(--secondary); } .chip.red { background: #fdecec; color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Doctor profile */
.profile-head { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.profile-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--soft); box-shadow: var(--shadow); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.schedule-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.schedule-table th, .schedule-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.schedule-table th { background: var(--soft); color: var(--ink); font-weight: 700; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr.today td { background: var(--soft-alt); font-weight: 600; }

/* Filters */
.filter-bar { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto; gap: 12px; padding: 18px; margin-top: -40px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.tabs-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs-inline a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .87rem; background: #fff; }
.tabs-inline a.active, .tabs-inline a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--accent); }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .94rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1); outline: none; }
select.form-control { appearance: none; 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' stroke='%236b7890' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { min-height: 120px; resize: vertical; }
.is-invalid { border-color: var(--accent) !important; }
.invalid { color: var(--accent); font-size: .8rem; margin-top: 4px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; }
.hp-field { position: absolute !important; left: -9999px !important; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.alert-success { background: #e8f8f1; color: #11643f; border: 1px solid #bfe9d4; }
.alert-error { background: #fdecec; color: #8f1d1f; border: 1px solid #f6c5c6; }
.alert-info { background: var(--soft); color: var(--primary); border: 1px solid rgba(var(--primary-rgb), .15); }

/* Booking */
.booking-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; counter-reset: step; flex-wrap: wrap; }
.steps span { flex: 1; min-width: 120px; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); }
.steps span::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: .78rem; }
.steps span.on { background: var(--soft); color: var(--primary); border-color: rgba(var(--primary-rgb), .2); }
.steps span.on::before { background: var(--primary); color: #fff; border-color: var(--primary); }
.doctor-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 360px; overflow: auto; padding: 2px; }
.doctor-option { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .2s; background: #fff; text-align: left; font: inherit; }
.doctor-option img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.doctor-option strong { display: block; font-size: .88rem; color: var(--ink); } .doctor-option small { color: var(--muted); font-size: .76rem; }
.doctor-option:hover { border-color: rgba(var(--primary-rgb), .4); }
.doctor-option.selected { border-color: var(--primary); background: var(--soft); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.pill-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-option { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .85rem; font-weight: 600; background: #fff; color: var(--ink); font-family: inherit; }
.pill-option:hover { border-color: var(--primary); }
.pill-option.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill-option:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.summary-card { position: sticky; top: 110px; padding: 24px; }
.summary-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .9rem; margin: 0; }
.summary-card dt { color: var(--muted); } .summary-card dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.success-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--soft-alt); color: var(--secondary); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 18px; }

/* FAQ accordion */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.accordion summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; color: var(--primary); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details[open] summary { color: var(--primary); }
.accordion .answer { padding: 0 20px 16px; color: var(--text); }

/* Gallery */
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-grid a { display: block; margin-bottom: 16px; border-radius: 12px; overflow: hidden; position: relative; break-inside: avoid; }
.gallery-grid a img { width: 100%; transition: transform .4s; } .gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #fff; background: rgba(0,0,0,.25); }
.lightbox { position: fixed; inset: 0; background: rgba(8,15,30,.92); display: none; align-items: center; justify-content: center; z-index: 500; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox iframe { max-width: 92vw; max-height: 84vh; border-radius: 10px; }
.lightbox iframe { width: 960px; aspect-ratio: 16/9; height: auto; border: 0; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* Tables (lab test price list) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.table th { background: var(--soft); text-align: left; padding: 12px 16px; color: var(--ink); font-weight: 700; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.table tr:hover td { background: #fbfcfe; }
.status { font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.status-pending { background: #fff5e0; color: #9a6400; } .status-confirmed { background: var(--soft); color: var(--primary); }
.status-completed, .status-ready, .status-delivered { background: #e8f8f1; color: #11643f; } .status-cancelled, .status-no_show { background: #fdecec; color: #8f1d1f; }
.status-processing { background: #fff5e0; color: #9a6400; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 36px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pagination .active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled span { opacity: .45; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 3rem; color: rgba(var(--primary-rgb), .25); display: block; margin-bottom: 10px; }

/* Emergency hub */
.emergency-hero { background: linear-gradient(115deg, #b3131b 0%, var(--accent) 100%); }
.hotline { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: var(--radius-lg); padding: 22px 28px; box-shadow: var(--shadow-lg); margin-top: -46px; position: relative; z-index: 2; flex-wrap: wrap; }
.hotline .pulse { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.7rem; animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,56,59,.5); } 70% { box-shadow: 0 0 0 18px rgba(229,56,59,0); } 100% { box-shadow: 0 0 0 0 rgba(229,56,59,0); } }
.hotline a.num { font-size: 1.9rem; font-weight: 800; color: var(--accent); }

/* Portal */
.portal-shell { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.portal-nav { padding: 18px; position: sticky; top: 110px; }
.portal-user { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.portal-user img { width: 48px; height: 48px; border-radius: 50%; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-tile { padding: 20px; display: flex; gap: 14px; align-items: center; }
.stat-tile i { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; }
.stat-tile b { font-size: 1.5rem; color: var(--ink); display: block; line-height: 1.1; }
.stat-tile span { font-size: .82rem; color: var(--muted); }

/* Auth */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 50px 16px; background: linear-gradient(135deg, var(--soft) 0%, #fff 50%, var(--soft-alt) 100%); }
.auth-card { width: 100%; max-width: 460px; padding: 36px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 4px; }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.82); font-size: .9rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: -100px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.03); }
.footer-main { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.2fr 1fr; gap: 34px; padding: 56px 0 40px; position: relative; }
.footer-main h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-main h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--secondary); }
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-main a { color: rgba(255,255,255,.82); } .footer-main a:hover { color: #fff; padding-left: 2px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-contact li { display: flex; gap: 10px; } .footer-contact i { color: var(--secondary); margin-top: 2px; }
.footer-social { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-size: 1rem; }
.footer-social a:hover { background: var(--secondary); padding: 0; }
.slogan { font-family: "Dancing Script", cursive; font-size: 1.55rem; color: #fff; transform: rotate(-6deg); display: inline-block; margin-top: 8px; line-height: 1.25; }
.newsletter { display: flex; margin-top: 14px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; }
.newsletter input { flex: 1; background: none; border: 0; color: #fff; padding: 8px 14px; font: inherit; min-width: 0; }
.newsletter input::placeholder { color: rgba(255,255,255,.6); }
.newsletter button { border: 0; background: var(--secondary); color: #fff; border-radius: 999px; width: 38px; height: 38px; cursor: pointer; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.82); margin-left: 14px; }

/* Floating buttons, popup, theme switcher */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 90; }
.float-actions a, .float-actions button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: var(--shadow-lg); border: 0; cursor: pointer; }
.fab-whatsapp { background: #25D366; } .fab-call { background: var(--accent); } .fab-top { background: var(--primary); opacity: 0; pointer-events: none; transition: opacity .3s; } .fab-top.show { opacity: 1; pointer-events: auto; }
.fab-call { animation: pulse 2s infinite; }
.modal { position: fixed; inset: 0; background: rgba(8,15,30,.55); display: none; align-items: center; justify-content: center; z-index: 400; padding: 20px; }
.modal.open { display: flex; animation: fadeIn .3s; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%; padding: 30px; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.theme-switcher { position: fixed; left: 0; top: 40%; z-index: 95; display: flex; }
.theme-switcher .panel { background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 12px 12px 0; padding: 12px; display: none; gap: 8px; flex-direction: column; }
.theme-switcher.open .panel { display: flex; }
.theme-switcher .panel a { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink); font-weight: 600; }
.swatch { width: 22px; height: 22px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8), 0 0 0 1px var(--line); }
.theme-switcher > button { background: var(--primary); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 0 10px 10px 0; cursor: pointer; font-size: 1.1rem; align-self: flex-start; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .nav-link { padding: 30px 8px; font-size: .84rem; }
  .search-form input { width: 130px; } .search-form input:focus { width: 160px; }
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .quick-item:nth-child(5n) { border-right: 0; }
  .quick-item:nth-child(-n+5) { border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: inline-flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s; z-index: 200; overflow-y: auto; padding: 80px 18px 30px; }
  .main-nav.open { transform: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8,15,30,.45); z-index: 150; display: none; }
  .nav-backdrop.open { display: block; }
  .nav-close { position: absolute; top: 18px; right: 18px; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 13px 10px; justify-content: space-between; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .dropdown, .dropdown.mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; min-width: 0; border: 0; padding: 4px 0 8px 10px; grid-template-columns: 1fr; }
  .has-dropdown.open > .dropdown { display: block; }
  .has-dropdown:hover > .dropdown { opacity: 1; }
  .header-actions .search-form { display: none; }
  .home-trio { grid-template-columns: 1fr 1fr; } .home-trio .promo-card { grid-column: 1 / -1; min-height: 260px; }
  .about-split { grid-template-columns: 1fr 1fr; } .about-split .side-stack { grid-column: 1 / -1; flex-direction: row; gap: 16px; }
  .with-sidebar, .booking-wrap { grid-template-columns: 1fr; }
  .sidebar, .summary-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1081px) { .nav-close, .nav-backdrop { display: none !important; } }
@media (max-width: 860px) {
  .topbar-list li.hide-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 34px 0 110px; min-height: 0; text-align: left; }
  .hero-media { justify-content: center; } .hero-media img { max-height: 320px; }
  .quick-grid { grid-template-columns: repeat(var(--cols-sm, 5), minmax(110px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .quick-item { scroll-snap-align: start; border-bottom: 0 !important; }
  .home-trio, .news-row, .grid-3, .profile-head { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; } .about-split .side-stack { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .portal-shell { grid-template-columns: 1fr; } .portal-nav { position: static; }
  .stat-tiles { grid-template-columns: 1fr; }
  .profile-photo { max-width: 300px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .topbar .container { justify-content: center; }
  .topbar-list { display: none; }
  .site-header .container { min-height: 72px; gap: 12px; }
  .brand-img { height: 40px; max-width: 210px; } .brand-location { font-size: .6rem; letter-spacing: .04em; }
  .header-cta { display: none; }
  .grid-2, .grid-4, .form-grid, .dept-grid, .doctor-options, .filter-bar { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .appointment-band { padding: 28px 22px; }
  .hero-chip { display: none; }
  .auth-card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .float-actions, .theme-switcher, .ticker { display: none !important; }
}
.mobile-search { display: none; }
@media (max-width: 1080px) { .mobile-search { display: block; } .mobile-search input, .mobile-search input:focus { width: 100%; } }
/* Navigation fit at laptop widths + ticker visible immediately */
.nav-link { white-space: nowrap; }
.ticker-inner { padding-left: 0; animation-name: ticker-in; }
@keyframes ticker-in { from { transform: translateX(35%); } to { transform: translateX(-100%); } }
@media (max-width: 1400px) and (min-width: 1081px) {
  .site-header .container { gap: 16px; }
  .nav-link { padding: 30px 7px; font-size: .83rem; }
  .nav-link::after { left: 7px; right: 7px; }
  .search-form input { width: 120px; } .search-form input:focus { width: 160px; }
  .brand-img { height: 48px; max-width: 250px; }
}
@media (max-width: 1240px) and (min-width: 1081px) { .header-actions .search-form { display: none; } }
/* Prevent long inline content (ticker, nowrap buttons) from widening flex/grid parents on small screens */
.ticker-track, .topbar-right, .hero-grid > *, .home-trio > *, .news-row > *, .with-sidebar > *, .booking-wrap > *, .portal-shell > *, .about-split > *, .profile-head > * { min-width: 0; }
html, body { overflow-x: hidden; }
@media (max-width: 600px) { .hero-actions .btn { white-space: normal; } .social-mini { display: none; } }
