/* ============ Doctor Directory — Modern UI ============ */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --navy: #0f2942;
  --navy-2: #163a5f;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7fafc;
  --white: #fff;
  --danger: #e11d48;
  --amber: #f59e0b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 41, 66, .08);
  --shadow-lg: 0 12px 40px rgba(15, 41, 66, .14);
  --font: 'Roboto', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--primary-dark); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .2s; font-family: var(--font); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 148, 136, .45); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #be123c; }
.btn-light { background: #fff; color: var(--navy); font-weight: 700; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-xs { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
/* line icon inside a button — the calendar emoji rendered as a dated glyph
   that looked broken next to the SVG icons elsewhere */
.btn-ico { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 13.5px; padding: 7px 0; }
.topbar a { color: #5eead4; }
.topbar-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: var(--navy); font-family: 'Roboto', var(--font); flex-shrink: 0; }
.brand-text { white-space: nowrap; }   /* a two-word site name stays on one line */
.brand-mark { font-size: 26px; }
.brand-logo { height: 42px; max-width: 170px; width: auto; object-fit: contain; display: block; }
.brand-text span { color: var(--primary); }
.brand-light .brand-text { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { color: var(--ink); font-weight: 600; font-size: 15.5px; position: relative; white-space: nowrap; }
.main-nav > a:not(.btn):hover { color: var(--primary-dark); }
.main-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2.5px; background: var(--primary); border-radius: 2px; transition: width .25s; }
.main-nav > a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- "Find Specialist" menu ---------- */
/* <details> so it opens on tap as well as click, with no JS to go wrong */
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary:hover { color: var(--primary-dark); }
.nav-dd-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.nav-dd[open] > summary { color: var(--primary-dark); }
.nav-dd[open] .nav-dd-caret { transform: rotate(-135deg) translate(-3px, -3px); }

.nav-dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 120;
  width: min(620px, 88vw); max-height: min(60vh, 440px); overflow-y: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.nav-dd-panel a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.nav-dd-panel a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-dd-ico { flex-shrink: 0; font-size: 15px; width: 20px; text-align: center; }
.nav-dd-name { min-width: 0; }
.nav-dd-all { grid-column: 1 / -1; justify-content: center; margin-top: 4px; border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px; color: var(--primary-dark) !important; font-weight: 700; }

@media (max-width: 1100px) {
  /* inside the hamburger panel the dropdown is part of the flow, not a popup */
  .nav-dd > summary { padding: 11px 8px; border-radius: 10px; width: 100%; justify-content: space-between; }
  .nav-dd[open] > summary { background: var(--bg); }
  .nav-dd-panel { position: static; transform: none; width: auto; max-height: 300px;
    grid-template-columns: 1fr; box-shadow: none; border-radius: 10px; margin: 4px 0 6px; padding: 6px; }
}

/* ---------- Hero ---------- */
/* Vivid teal-to-indigo canvas with colour fields on top; the cards that sit on
   it are white, each with its own accent colour. */
.hero { color: #eaf3ff; padding: 72px 0 124px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(118deg, #0a7f79 0%, #0b6bb2 46%, #4a3fd0 100%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(38% 55% at 6% 8%, rgba(45, 212, 191, .6), transparent 70%),
  radial-gradient(34% 50% at 97% 6%, rgba(167, 139, 250, .6), transparent 70%),
  radial-gradient(40% 52% at 80% 104%, rgba(244, 114, 182, .4), transparent 70%),
  radial-gradient(36% 46% at 28% 112%, rgba(56, 189, 248, .5), transparent 70%); }
/* fine grid, strongest at the top and gone by the middle */
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(85% 75% at 50% 0, #000 25%, transparent 78%);
  mask: radial-gradient(85% 75% at 50% 0, #000 25%, transparent 78%); }
/* curved edge into the page below */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 6vw, 84px);
  display: block; pointer-events: none; }
.hero-wave path { fill: var(--bg); }
.hero-wave path + path { fill: rgba(255, 255, 255, .16); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; display: inline-block; box-shadow: 0 0 0 0 rgba(110, 231, 183, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); } }

/* Segmented search bar */
.search-bar { background: #fff; border-radius: 18px; padding: 9px; display: flex; align-items: stretch; gap: 0;
  box-shadow: 0 24px 60px rgba(8, 22, 60, .34); position: relative; transition: box-shadow .22s ease; }
.search-bar:focus-within { box-shadow: 0 24px 60px rgba(8, 22, 60, .34), 0 0 0 4px rgba(255, 255, 255, .38); }
/* the one warm accent on the page: amber, with navy text for contrast */
.hero .sb-btn { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #0f2942; font-weight: 800;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .42); }
.hero .sb-btn:hover { box-shadow: 0 12px 26px rgba(245, 158, 11, .55); }
.sb-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 18px; min-width: 150px; }
.sb-grow { flex: 1; }
.sb-field label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.sb-field select, .sb-field input { border: 0; padding: 2px 0; font-size: 15px; font-weight: 600; font-family: var(--font); color: var(--navy); background: #fff; width: 100%; }
.sb-field select:focus, .sb-field input:focus { outline: none; }
.sb-field input::placeholder { color: #a3b2c2; font-weight: 500; }
.sb-divider { width: 1px; background: var(--line); margin: 8px 0; }
.sb-btn { border-radius: 13px; padding: 0 30px; font-size: 15.5px; align-self: stretch; }

.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; font-size: 13.5px; }
.hp-label { color: rgba(255, 255, 255, .78); font-weight: 700; }
.hero-popular a { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600;
  border-radius: 999px; padding: 6px 13px; font-size: 13px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .18s ease, color .18s ease, transform .18s ease; }
.hero-popular a:hover { background: #fff; color: #0b5fa3; transform: translateY(-1px); }

/* stat cards: white, each with its own colour tile */
.hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; max-width: 600px; }
.ht-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 13px 14px;
  box-shadow: 0 14px 34px rgba(8, 22, 60, .22); min-width: 0; }
.ht-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ht-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ht-item:nth-of-type(1) .ht-ico { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 14px rgba(5, 150, 105, .35); }
.ht-item:nth-of-type(2) .ht-ico { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 6px 14px rgba(249, 115, 22, .35); }
.ht-item:nth-of-type(3) .ht-ico { background: linear-gradient(135deg, #f472b6, #8b5cf6); box-shadow: 0 6px 14px rgba(139, 92, 246, .35); }
.ht-txt { min-width: 0; }
.ht-item strong { display: block; font-size: 23px; color: var(--navy); font-family: 'Roboto', var(--font); line-height: 1.15; }
.ht-item span.ht-lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
/* the separators belong to the old inline row; the cards carry their own edges */
.ht-sep { display: none; }

/* Emergency panel: a white card, one accent colour per line */
.em-panel { position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 24px 20px 18px;
  box-shadow: 0 26px 60px rgba(8, 22, 60, .32); display: flex; flex-direction: column; gap: 6px; }
.em-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, #f43f5e, #f59e0b, #10b981, #3b82f6, #8b5cf6); }
.em-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.em-icon { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #fb7185, #e11d48); display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 8px 18px rgba(225, 29, 72, .35); }
.em-head strong { display: block; color: var(--navy); font-size: 16.5px; }
.em-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.em-row { --em: #e11d48; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; transition: background .18s; }
.em-row:nth-of-type(2) { --em: #0d9488; }
.em-row:nth-of-type(3) { --em: #9333ea; }
.em-row:nth-of-type(4) { --em: #d97706; }
.em-row:hover { background: #f4f8fb; }
.em-row-icon { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--em) 13%, #fff); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.em-row-label { flex: 1; font-size: 13.5px; color: #334155; font-weight: 600; }
.em-row strong { color: var(--em); font-size: 18px; font-weight: 800; font-family: 'Roboto', var(--font); }
.em-panel .btn-danger { margin-top: 8px; }

/* Area strip below hero */
.area-strip { background: #0c2237; border-top: 1px solid rgba(255, 255, 255, .06); padding: 14px 0; }
.area-strip-inner { display: flex; align-items: center; gap: 16px; }
.as-label { font-size: 13px; font-weight: 700; color: #7d93a8; white-space: nowrap; }
.as-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chip { border: 1px solid rgba(255, 255, 255, .12); color: #a7c4d8; border-radius: 999px; padding: 5px 15px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .18s; }
.as-chip:hover { border-color: #5eead4; color: #5eead4; background: rgba(94, 234, 212, .08); }
.hero-inner { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .15); color: #fff;
  border: 1px solid rgba(255, 255, 255, .32); padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  margin-bottom: 20px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.6px; margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(8, 22, 60, .22); }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #99f6e4, #fde68a);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-copy > p { max-width: 600px; font-size: 17.5px; color: rgba(255, 255, 255, .88); margin-bottom: 30px; }

.search-card { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.search-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1; }
.search-field.grow { flex: 1.4; }
.search-field label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.search-field select, .search-field input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff; }
.search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary); }
.search-btn { padding: 12px 26px; }

.hero-districts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.hero-districts-label { font-size: 13.5px; color: #93a8bb; font-weight: 600; margin-right: 4px; }
.hero-district-chip { border: 1px solid rgba(94, 234, 212, .3); color: #5eead4; border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 600; transition: all .18s; }
.hero-district-chip:hover { background: rgba(94, 234, 212, .12); }
.hero-stats { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: #5eead4; font-family: 'Roboto', var(--font); }
.hero-stats span { font-size: 13.5px; color: #93a8bb; }

.emergency-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.emergency-card h3 { color: #fff; margin-bottom: 14px; font-size: 18px; }
.emergency-card ul { margin-bottom: 16px; }
.emergency-card li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); font-size: 14.5px; color: #b6c6d5; }
.emergency-card li a { color: #5eead4; font-size: 19px; font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #eef5f4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 4px; }

/* ---------- Specialty grid ---------- */
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 14px; }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: all .22s; position: relative; overflow: hidden; }
.sp-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2)); opacity: 0; transition: opacity .22s; }
.sp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--g1), var(--g2)); opacity: 0; transition: opacity .22s; }
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sp-card:hover::before { opacity: 1; }
.sp-card:hover::after { opacity: .06; }
.sp-icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 13%, #fff), color-mix(in srgb, var(--g2) 13%, #fff)); border: 1px solid color-mix(in srgb, var(--g1) 18%, #fff); transition: transform .22s; position: relative; z-index: 1; }
.sp-card:hover .sp-icon { transform: scale(1.1) rotate(-4deg); }
.sp-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; position: relative; z-index: 1; }
.sp-info strong { color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.sp-info > span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sp-arrow { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 15px; transition: all .22s; flex-shrink: 0; position: relative; z-index: 1; }
.sp-card:hover .sp-arrow { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: transparent; color: #fff; transform: translateX(3px); }

/* ---------- Doctor cards ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 20px; }
.doctor-grid.two-col { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doctor-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 20px 20px; position: relative; display: flex; flex-direction: column; gap: 12px; transition: all .22s; overflow: hidden; }
.doctor-card::before { content: ''; display: block; height: 74px; background: linear-gradient(120deg, #e6f4f2, #e8f0f8); margin: 0 -20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #b8dcd8; }
.badge-featured { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(245, 158, 11, .35); z-index: 2; }
.dc-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -46px; gap: 3px; }
.dc-avatar { width: 144px; height: 144px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 44px; font-family: 'Roboto', var(--font); border: 5px solid #fff; box-shadow: 0 6px 16px rgba(15, 41, 66, .18); margin-bottom: 6px; }
.dc-avatar-photo { overflow: hidden; background: var(--line); }
.dc-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-name { line-height: 1.3; }
.dc-name a { color: var(--navy); font-size: 17.5px; }
.dc-name a:hover { color: var(--primary-dark); }
.dc-specialty { background: var(--primary-light); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; padding: 3px 13px; border-radius: 999px; margin-top: 3px; }
.dc-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.dc-degrees { font-size: 13px; color: var(--navy); font-weight: 700; text-align: center; min-height: 36px; }
.dc-meta { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 12px; }
.dc-meta li { display: flex; align-items: baseline; gap: 8px; line-height: 1.45; flex-wrap: wrap; }
.dc-ico { flex-shrink: 0; }
/* Same colour coding as the doctor profile: department teal, degrees navy, designation amber */
.dc-meta .dc-place { color: var(--primary-dark); font-weight: 600; }   /* hospital name → its page */
.dc-meta .dc-place:hover { text-decoration: underline; }
.dc-meta .dc-designation { color: #b45309; font-weight: 700; }
.dc-meta .dc-workplace { color: var(--navy); font-weight: 700; }
.dc-verified { font-style: normal; color: #059669; font-weight: 800; }
.dc-btn { width: 100%; margin-top: auto; }
.avatar { width: 58px; height: 58px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex-shrink: 0; font-family: 'Roboto', var(--font); box-shadow: 0 4px 12px rgba(15, 41, 66, .18); }
.avatar-xl { width: 108px; height: 108px; font-size: 34px; border: 4px solid rgba(255, 255, 255, .35); }
.avatar-sm { width: 42px; height: 42px; font-size: 14px; }
.avatar-photo { padding: 0; overflow: hidden; background: var(--line); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.photo-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.photo-preview img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }

/* ---------- Rich text editor (admin) ---------- */
.rte-wrap { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; padding: 8px; background: var(--bg); border-bottom: 1.5px solid var(--line); border-radius: 11px 11px 0 0; }
.rte-group { display: flex; align-items: center; gap: 3px; padding: 0 8px; border-right: 1px solid var(--line); }
.rte-group:first-child { padding-left: 0; }
.rte-group:last-child { border-right: 0; }
.rte-toolbar button, .rte-tablebar button { border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 6px 10px; min-width: 32px; height: 32px; font-size: 13.5px; line-height: 1; cursor: pointer; font-family: var(--font); color: var(--ink); box-shadow: 0 1px 2px rgba(15,41,66,.06); display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.rte-toolbar button:hover, .rte-tablebar button:hover { border-color: var(--primary); color: var(--primary-dark); }
.rte-toolbar button.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.rte-toolbar button sup, .rte-toolbar button sub { font-size: 9px; margin-left: -3px; }
.rte-toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; height: 32px; font-size: 13.5px; font-family: var(--font); background: #fff; width: auto; }
.rte-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
/* colour pickers: a letter with a bar in the chosen colour, the native picker laid over it */
.rte-color { position: relative; margin: 0 !important; width: 34px; height: 32px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15,41,66,.06); display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; }
.rte-color:hover { border-color: var(--primary); }
.rte-color span { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1; padding-bottom: 3px; border-bottom: 4px solid var(--c, #e11d48); }
.rte-color .rte-color-hl { font-weight: 600; font-size: 12.5px; background: var(--c, #fff59d); border-bottom: 0; padding: 3px 4px; border-radius: 3px; }
.rte-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
/* table size picker */
.rte-pop-anchor { position: relative; display: inline-flex; }
.rte-pop { position: absolute; top: 38px; left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-lg); }
.rte-grid { display: grid; grid-template-columns: repeat(8, 20px); gap: 3px; }
.rte-toolbar .rte-grid button { min-width: 0; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 3px; box-shadow: none; }
.rte-toolbar .rte-grid button.on { background: var(--primary-light); border-color: var(--primary); }
.rte-grid-label { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }
.rte-tablebar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 10px; background: #fffbeb; border-bottom: 1.5px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.rte-tablebar[hidden] { display: none; }
.rte-tablebar button { height: 28px; font-size: 12.5px; }
.rte-editor { min-height: 420px; max-height: 72vh; overflow-y: auto; padding: 22px 28px; font-size: 15.5px; line-height: 1.7; outline: none; }
.rte-editor table { display: table; }
.rte-editor td, .rte-editor th { min-width: 60px; }
.rte-editor hr, .rich-content hr { border: 0; border-top: 1.5px solid var(--line); margin: 18px 0; }
.rte-editor img { max-width: 100%; height: auto; }
.rte-source { width: 100%; min-height: 420px; max-height: 72vh; border: 0 !important; border-radius: 0 !important; padding: 18px 22px !important; font-family: ui-monospace, Consolas, monospace !important; font-size: 13px !important; line-height: 1.6; background: #0f2942 !important; color: #d5e3f0 !important; resize: vertical; outline: none; }
.rte-source[hidden], .rte-editor[hidden] { display: none; }
.rte-source-on .rte-group > *:not([data-source]):not([data-full]) { opacity: .35; pointer-events: none; }
.rte-status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 7px 14px; border-top: 1.5px solid var(--line); background: var(--bg); font-size: 12.5px; color: var(--muted); border-radius: 0 0 11px 11px; }
.rte-status [data-count] { font-weight: 700; }
/* full screen writing mode */
.rte-wrap.rte-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; border: 0; }
.rte-wrap.rte-full .rte-toolbar, .rte-wrap.rte-full .rte-status { border-radius: 0; }
.rte-wrap.rte-full .rte-editor, .rte-wrap.rte-full .rte-source { flex: 1; max-height: none; min-height: 0; }
.rte-wrap.rte-full .rte-editor { padding: 32px max(28px, calc((100vw - 900px) / 2)); }
body.rte-lock { overflow: hidden; }
.rte-editor:focus { box-shadow: inset 0 0 0 2px rgba(13,148,136,.15); }
.rte-editor h2 { font-size: 21px; margin: 12px 0 6px; }
.rte-editor h3 { font-size: 18px; margin: 10px 0 5px; }
.rte-editor h4 { font-size: 16px; margin: 8px 0 4px; }
.rte-editor ul, .rte-editor ol { padding-left: 24px; margin: 8px 0; list-style-position: outside; }
.rte-editor ul { list-style-type: disc; }
.rte-editor ol { list-style-type: decimal; }
.rte-editor blockquote { border-left: 3px solid var(--primary); margin: 10px 0; padding: 4px 14px; color: var(--muted); background: var(--bg); border-radius: 0 8px 8px 0; }
.rte-editor p { margin-bottom: 8px; }

/* ---------- Rich content (public profile "About") ---------- */
.rich-content p { margin-bottom: 12px; font-size: 15.5px; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 16px 0 8px; }
.rich-content h2 { font-size: 21px; }
.rich-content h3 { font-size: 18px; }
.rich-content h4 { font-size: 16px; }
.rich-content ul, .rich-content ol { padding-left: 26px; margin: 10px 0; list-style-position: outside; }
.rich-content ul { list-style-type: disc; }
.rich-content ol { list-style-type: decimal; }
.rich-content blockquote { border-left: 3px solid var(--primary); margin: 12px 0; padding: 8px 16px; color: var(--muted); background: var(--bg); border-radius: 0 10px 10px 0; }
.rich-content a { text-decoration: underline; }
/* Pricing / comparison tables pasted into a page's content */
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.rich-content th, .rich-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.rich-content th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.rich-content tbody tr:nth-child(even) td { background: var(--bg); }
.doctor-name a { color: var(--navy); font-size: 17.5px; }
.doctor-name a:hover { color: var(--primary-dark); }
.doctor-specialty { color: var(--primary-dark); font-weight: 600; font-size: 13.5px; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rating-row.light { color: #cbd5e1; margin-top: 8px; }
.stars { display: inline-flex; gap: 1px; color: #d1d9e2; }
.star.on { color: var(--amber); }
.doctor-degrees { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.doctor-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink); }
.doctor-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.fee { font-weight: 800; color: var(--navy); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; position: relative; }
.step-num { position: absolute; top: 14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-icon { font-size: 38px; display: block; margin-bottom: 12px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Hospitals ---------- */
.hospital-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.hospital-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; transition: all .22s; position: relative; overflow: hidden; }
.hospital-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.hc-cover { height: 64px; position: relative; display: flex; justify-content: flex-end; align-items: flex-start; padding: 12px 14px; }
.hc-cover::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .35), transparent 45%),
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 12px); }
.hc-cover.hc-private { background: linear-gradient(120deg, #0d9488, #0284c7); }
.hc-cover.hc-gov { background: linear-gradient(120deg, #2563eb, #6366f1); }
.hc-cover.hc-diag { background: linear-gradient(120deg, #7c3aed, #db2777); }
.hc-cover.hc-clinic { background: linear-gradient(120deg, #d97706, #ea580c); }
.hc-type { position: relative; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; backdrop-filter: blur(4px); }
.hc-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hc-icon { width: 58px; height: 58px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 41, 66, .14); display: flex; align-items: center; justify-content: center; font-size: 27px; margin-top: -30px; position: relative; transition: transform .22s; }
.hospital-card:hover .hc-icon { transform: scale(1.08) rotate(-3deg); }
.hc-name { font-size: 17px; line-height: 1.35; color: var(--navy); margin-top: 8px; }
.hospital-card:hover .hc-name { color: var(--primary-dark); }
.hc-loc { color: var(--muted); font-size: 13.5px; }
.hc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; gap: 8px; }
.hc-docs { display: inline-flex; align-items: center; gap: 8px; }
.hc-dots { display: inline-flex; }
.hc-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; display: inline-block; }
.hc-dots i + i { margin-left: -8px; }
.hc-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.hc-count strong { color: var(--navy); font-size: 14.5px; }
.hc-view { font-size: 13px; font-weight: 700; color: var(--primary-dark); border: 1.5px solid var(--primary); border-radius: 999px; padding: 7px 16px; display: inline-flex; align-items: center; gap: 5px; transition: all .2s; }
.hc-view span { transition: transform .2s; }
.hospital-card:hover .hc-view { background: linear-gradient(135deg, #10b3a1, #0284c7); border-color: transparent; color: #fff; }
.hospital-card:hover .hc-view span { transform: translateX(3px); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: all .22s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-cat { align-self: flex-start; background: var(--primary-light); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.post-card h3 a { color: var(--navy); font-size: 18px; }
.post-card h3 a:hover { color: var(--primary-dark); }
.post-card p { color: var(--muted); font-size: 14.5px; }
.post-meta { margin-top: auto; font-size: 13.5px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary-dark), #075985); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 27px; margin-bottom: 6px; }
.cta-inner p { color: #bae6fd; max-width: 560px; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #b6c6d5; padding: 46px 0; }
.page-hero.danger { background: linear-gradient(140deg, #7f1d1d, #b91c1c); color: #fecaca; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 6px; }
.badge-light { background: rgba(255, 255, 255, .14); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.light-link { color: #5eead4; }

/* ---------- Listing / filters ---------- */
.listing-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 88px; }
.filter-panel h3 { margin-bottom: 14px; }
.filter-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-group input, .filter-group select { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; font-family: var(--font); }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); }
.filter-panel .btn-ghost { margin-top: 6px; }
.inline-filter { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.inline-filter input, .inline-filter select { border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-family: var(--font); min-width: 220px; background: #fff; }
.inline-filter input:focus, .inline-filter select:focus { outline: none; border-color: var(--primary); }
.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); font-size: 16.5px; }
.empty-state.big { padding: 80px 24px; }
.empty-state.big h1 { margin: 12px 0 6px; }
.empty-state.big .btn { margin-top: 18px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-link { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots { align-self: center; color: var(--muted); }

/* ---------- Doctor profile ---------- */
.profile-hero { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #b6c6d5; padding: 46px 0; }
.profile-hero-inner { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.profile-head { flex: 1; min-width: 260px; }
.profile-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.profile-specialty { color: #5eead4; font-weight: 700; margin: 4px 0; }
.profile-degrees { font-size: 14.5px; max-width: 640px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #e2e8f0; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.fee-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 20px 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.fee-box span { font-size: 13px; }
.fee-box strong { font-size: 30px; color: #5eead4; font-family: 'Roboto', var(--font); }
.profile-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.card h2 { font-size: 20px; margin-bottom: 14px; }
.designation { margin-bottom: 10px; }
.chamber-box h3 { color: var(--primary-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chamber-box p { margin-bottom: 4px; font-size: 15px; }
.chamber-extra { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 18px; }
.badge-primary-chamber { background: var(--primary-light); color: var(--primary-dark); border: 0; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chamber-district { font-size: 13px; color: var(--muted); font-weight: 600; }
.chamber-link { color: var(--primary-dark); }
.chamber-link:hover { text-decoration: underline; }
.chamber-more { background: #eef5f4; color: var(--primary-dark); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 4px; }
.text-link { font-weight: 700; }
.muted { color: var(--muted); }
.review-item { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-item p { font-size: 14.5px; margin-top: 4px; }
.review-date { font-size: 12.5px; color: var(--muted); }
.review-form { margin-top: 20px; background: var(--bg); border-radius: 12px; padding: 18px; }
.review-form h3 { margin-bottom: 10px; font-size: 16.5px; }
.appointment-card { border-top: 4px solid var(--primary); }
/* Desktop: the appointment form follows the reader down the profile, parked under the
   sticky header + section nav. On a short screen it scrolls inside itself instead of being cut off. */
@media (min-width: 1025px) {   /* below this the profile is a single column */
  .profile-side { position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; scrollbar-width: thin; }
  .profile-side .card:last-child { margin-bottom: 0; }
}
.mini-doctor { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini-doctor:last-child { border-bottom: 0; }
.mini-doctor strong { display: block; color: var(--navy); font-size: 14.5px; }
.mini-doctor span { font-size: 12.5px; color: var(--muted); }

/* ---------- Doctor profile: banner + floating card ---------- */
.doc-banner { height: 200px; background: linear-gradient(120deg, var(--navy) 0%, #0d5c56 60%, var(--primary) 100%); position: relative; overflow: hidden; }
.doc-banner-deco { position: absolute; inset: 0; background:
  radial-gradient(circle at 85% -20%, rgba(94, 234, 212, .25), transparent 45%),
  radial-gradient(circle at 10% 120%, rgba(3, 105, 161, .45), transparent 50%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); margin-top: -110px; position: relative; z-index: 5; padding: 26px 30px 24px; }
.doc-card-top { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.doc-photo { width: 200px; height: 200px; border-radius: 26px; overflow: hidden; flex-shrink: 0; margin-top: -84px; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(15, 41, 66, .25); background: var(--line); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-photo-initials { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 62px; font-weight: 800; font-family: 'Roboto', var(--font); }
.doc-info { flex: 1; min-width: 260px; }
.doc-info h1 { font-size: clamp(23px, 3vw, 31px); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.doc-specialty { color: var(--primary-dark); font-weight: 700; font-size: 16px; margin-top: 2px; }
.doc-degrees { color: var(--navy); font-weight: 700; font-size: 14.5px; margin-top: 4px; max-width: 560px; }
.doc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.doc-badge { background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.doc-side { width: 240px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
/* label + amount sit on one line; they wrap only if the phone is too narrow */
.doc-fee { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; text-align: center; font-size: 16px; }
.doc-fee span { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.doc-fee strong { color: var(--primary-dark); font-family: 'Roboto', var(--font); line-height: 1.2; }
.doc-fee em { flex-basis: 100%; font-style: normal; font-size: 12px; color: var(--muted); }
.doc-share { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }

/* ---- BMDC registration: a verified-credential chip, built to match .doc-call ---- */
.doc-bmdc { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid var(--primary); border-radius: 13px; padding: 6px 9px; }
.doc-bmdc-ico { width: 19px; height: 19px; flex-shrink: 0; display: grid; place-items: center; }
.doc-bmdc-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc-bmdc-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.doc-bmdc-txt small { font-size: 9.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-bmdc-txt strong { font-size: 15.5px; color: var(--navy); font-family: 'Roboto', var(--font); letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-bmdc-tick { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: #dcfce7; }
.doc-bmdc-tick svg { width: 11px; height: 11px; fill: none; stroke: #15803d; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
html.lang-bn .doc-bmdc-txt small { text-transform: none; letter-spacing: 0; font-size: 10.5px; }
/* no registration number on file: the chip still holds its place, muted, so the
   gap is visible rather than silently absent */
.doc-bmdc.is-missing { border-color: var(--line); }
.doc-bmdc.is-missing .doc-bmdc-ico svg { stroke: var(--muted); }
.doc-bmdc.is-missing .doc-bmdc-txt strong { color: var(--muted); }

/* ---- Share buttons ---- */
/* the BMDC chip that used to sit beside these is gone, so they centre */
.doc-share-btns { display: flex; gap: 8px; flex-shrink: 0; margin: 0 auto; }
.share-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s; }
.share-btn svg { width: 19px; height: 19px; display: block; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 41, 66, .16); }
.share-btn:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }
.share-wa svg { fill: #25D366; }
.share-fb svg { fill: #1877F2; }
.share-wa:hover { border-color: #25D366; background: #f0fdf4; }
.share-fb:hover { border-color: #1877F2; background: #eff6ff; }
.share-copy svg { fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.share-copy:hover { border-color: var(--primary); background: var(--primary-light); }
.share-copy:hover svg { stroke: var(--primary-dark); }

/* the copied state swaps the icon instead of replacing the button's content */
.share-copy .ic-check { display: none; stroke: #15803d; stroke-width: 3; }
.share-copy.copied { border-color: #15803d; background: #dcfce7; }
.share-copy.copied .ic-link { display: none; }
.share-copy.copied .ic-check { display: block; }
.share-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  padding: 4px 9px; border-radius: 7px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s; }
.share-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--navy); }
.share-copy.copied .share-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Above 860px the side column is only ~200px wide, so the chip takes its own row */
@media (min-width: 861px) {
  .doc-share { flex-wrap: wrap; justify-content: center; }
  .doc-bmdc { flex: 0 0 100%; gap: 9px; padding: 7px 10px; }
  .doc-bmdc-ico { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #0369a1); }
  .doc-bmdc-ico svg { width: 18px; height: 18px; stroke: #fff; }
  .doc-bmdc-tick { margin-left: auto; }
  .doc-share-btns { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .share-btn, .share-tip { transition: none; }
  .share-btn:hover { transform: none; }
}

.icon-btn-dark { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all .18s; }
.icon-btn-dark:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .doc-banner { height: 150px; }
  .doc-card { padding: 20px 18px 18px; margin-top: -80px; }
  .doc-card-top { gap: 14px; }
  .doc-photo { width: 150px; height: 150px; margin-top: -72px; border-radius: 22px; }
  .doc-photo-initials { font-size: 46px; }
  .doc-side { width: 100%; }
}

/* ---------- Smart profile ---------- */
.verified-badge { display: inline-flex; align-items: center; background: #d1fae5; color: #065f46; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.share-group { display: inline-flex; gap: 8px; margin-left: 4px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all .18s; }
.icon-btn:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.fee-range { font-size: 12px; color: #93a8bb; }
.hero-divider { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 0 0; }
.pstat { text-align: center; padding: 4px; border-right: 1px solid rgba(255, 255, 255, .1); }
.pstat:last-child { border-right: 0; }
.pstat strong { display: block; font-size: 24px; color: #5eead4; font-family: 'Roboto', var(--font); }
.pstat span { font-size: 12.5px; color: #93a8bb; font-weight: 600; }
.profile-nav { position: sticky; top: 68px; z-index: 90; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,41,66,.05); margin-top: 22px; }
.profile-nav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.profile-nav-inner a { padding: 13px 16px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2.5px solid transparent; }
.profile-nav-inner a.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.profile-nav-inner a.nav-book { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #fff; background: linear-gradient(135deg, var(--primary), #0369a1); border-radius: 999px; padding: 8px 18px; align-self: center; border: 0; }
.chamber-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rating-summary { display: flex; gap: 28px; align-items: center; padding: 16px; background: var(--bg); border-radius: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.rating-big { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rating-big strong { font-size: 40px; color: var(--navy); font-family: 'Roboto', var(--font); line-height: 1; }
.rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 5px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.rating-bar-row > span:first-child { width: 26px; }
.rating-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--amber); border-radius: 999px; }
@media (max-width: 860px) {
  /* the section nav's Book Appointment is cut off at this width; the profile
     card carries the call + booking buttons instead */
  .profile-nav-inner a.nav-book { display: none; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .pstat:nth-child(even) { border-right: 0; }
}

/* ---------- Forms (public) ---------- */
form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=date], form input[type=password], form input[type=number], form textarea, form select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: var(--font); background: #fff; color: var(--ink); }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
form button[type=submit] { margin-top: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q { flex: none; padding: 9px 14px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--bg); color: var(--navy); font-weight: 700; font-size: 16px; letter-spacing: 1px; user-select: none; }
form .captcha-row input[type=text] { width: 110px; flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-warn { color: #991b1b; font-weight: 600; }
.form-subhead { font-size: 15.5px; color: var(--navy); margin: 24px 0 2px; padding-top: 16px; border-top: 1px dashed var(--line); }
form input[type=file] { width: 100%; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14px; background: var(--bg); }
.check-line { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; color: var(--ink); font-size: 14px; margin-top: 18px; line-height: 1.5; }
.check-line input { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: var(--primary); }
.check-line a { color: var(--primary-dark); text-decoration: underline; }
.alert { border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-danger-soft { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-weight: 600; }

/* ---------- Ambulance ---------- */
.ambulance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.ambulance-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; transition: all .22s; }
.ambulance-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ambulance-icon { font-size: 38px; }
.amb-type { color: var(--danger); font-weight: 700; font-size: 13.5px; }
.amb-addr { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }

/* ---------- Contact / Join / Post ---------- */
.contact-layout, .post-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.contact-info li { padding: 7px 0; font-size: 15px; }
.contact-layout .emergency-card { background: var(--navy); border: 0; }
.benefit-list li { padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.benefit-list li:last-child { border: 0; }
.post-body p { margin-bottom: 14px; font-size: 16px; }
.post-disclaimer { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-top: 20px; }
.recent-post { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.recent-post:last-child { border: 0; }
.recent-post strong { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.45; }
.recent-post span { font-size: 12.5px; color: var(--muted); }

/* ---------- Dynamic finder ---------- */
.finder-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.finder-step h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.step-badge { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.district-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.district-pill { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .18s; font-family: var(--font); }
.district-pill:hover { border-color: var(--primary); color: var(--primary-dark); }
.district-pill.active { background: linear-gradient(135deg, var(--primary), #0369a1); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.finder-hospital { margin-bottom: 18px; max-width: 520px; }
.finder-hospital label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 5px; }
.finder-hospital select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: var(--font); background: #fff; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); gap: 12px; }
.dept-card { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .18s; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font); }
.dept-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.dept-card.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 4px 14px rgba(13, 148, 136, .25); }
.dept-icon { font-size: 28px; }
.dept-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.dept-count { font-size: 12.5px; color: var(--primary-dark); font-weight: 600; }
.finder-loading { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); z-index: 200; }
.spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #93a8bb; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 34px; padding: 54px 20px 40px; }
.footer-about { margin-top: 14px; font-size: 14.5px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.site-footer li { padding: 5px 0; font-size: 14.5px; }
.site-footer a { color: #93a8bb; }
.site-footer a:hover { color: #5eead4; }
.hotlines li { display: flex; justify-content: space-between; }
.hotlines a { color: #5eead4; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disclaimer { color: #64798c; flex-basis: 100%; }   /* own row, under the copyright + credit line */
.powered-by a { color: #5eead4; font-weight: 600; }
.powered-by a:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--navy), #0d5c56); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card h1 { margin-top: 16px; }
.login-card .muted { margin-bottom: 10px; }

.admin-body { background: #eef2f6; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-sidebar nav a { color: #b6c6d5; padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.admin-sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-sidebar nav a.active { background: var(--primary); color: #fff; }
.nav-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #64798c; margin: 14px 14px 4px; font-weight: 700; }
.admin-user { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; color: #b6c6d5; font-size: 14px; }
.admin-user a, .admin-user button { color: #f87171; font-weight: 700; }
.admin-user button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.bulk-bar label { display: inline-flex; gap: 7px; align-items: center; margin: 0; font-weight: 600; }
.bulk-bar input[type=checkbox], .bulk-pick { width: 17px; height: 17px; flex: none; accent-color: var(--primary); }
.spam-tag { background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.ok-tag { background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.muted-tag { background: var(--bg); color: var(--muted); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.admin-main { padding: 0 28px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.admin-topbar h1 { font-size: 24px; }
.admin-content .card { margin-bottom: 20px; }

/* ---------- Modern admin dashboard ---------- */
.aicon { vertical-align: -3px; }
.admin-sidebar nav a .aicon, .seo-tab .aicon { margin-right: 4px; opacity: .85; }
.dash-hero { background: linear-gradient(120deg, var(--navy), #0d5c56); border-radius: 18px; padding: 24px 28px; color: #cbd5e1; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hero h2 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.dash-hero p { font-size: 13.5px; }
.dash-hero code { background: rgba(255,255,255,.1); padding: 1px 8px; border-radius: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; animation: pulse 2s infinite; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; transition: all .2s; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kc, var(--primary)); }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--kc, var(--primary)); margin-bottom: 8px; }
.kpi-card strong { font-size: 26px; color: var(--navy); font-family: 'Roboto', var(--font); line-height: 1.1; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-sub { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; background: var(--bg); border: 1px solid var(--line); color: var(--primary-dark); padding: 3px 9px; border-radius: 999px; }
.k-teal { --kc: #0d9488; } .k-blue { --kc: #0284c7; } .k-indigo { --kc: #6366f1; } .k-amber { --kc: #f59e0b; }
.k-pink { --kc: #ec4899; } .k-yellow { --kc: #eab308; } .k-cyan { --kc: #06b6d4; } .k-violet { --kc: #8b5cf6; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-grid-3 .card { margin-bottom: 0; }
.dash-grid-3 h2 { font-size: 16.5px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-val { font-size: 12px; font-weight: 700; color: var(--muted); }
.bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #10b3a1, #0284c7); border-radius: 7px 7px 3px 3px; min-height: 4px; transition: height .5s; }
.bar-day { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hbar-label { width: 110px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1; height: 9px; background: #e9eef4; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, #10b3a1, #0284c7); border-radius: 999px; }
.hbar-row strong { width: 24px; text-align: right; color: var(--navy); }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 130px; height: 130px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.donut::before { content: ''; position: absolute; inset: 16px; background: #fff; border-radius: 50%; }
.donut span { position: relative; font-size: 27px; font-weight: 800; color: var(--navy); font-family: 'Roboto', var(--font); }
.donut small { font-size: 12px; color: var(--muted); font-weight: 600; }
.donut-legend { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.dl-row i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.dl-row strong { color: var(--navy); }
.dash-health { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dh-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 13px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.dh-item strong { color: var(--navy); }
.dh-item.dh-warn { border-color: #fecaca; background: #fff1f2; }
.dh-item code { font-size: 11.5px; }
.act-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.act-row:last-of-type { border-bottom: 0; }
.act-ava { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act-body { flex: 1; min-width: 0; }
.act-body strong { display: block; font-size: 13.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-body span { font-size: 12px; color: var(--muted); }
.act-stars { color: var(--amber); font-size: 12px; }
.act-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary-dark); }
@media (max-width: 1100px) { .dash-grid-3 { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; transition: all .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { font-size: 22px; }
.stat-card strong { font-size: 26px; color: var(--navy); font-family: 'Roboto', var(--font); }
.stat-card > span:last-child { color: var(--muted); font-size: 13.5px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.admin-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 14.5px; min-width: 260px; font-family: var(--font); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; background: var(--bg); color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--line); }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.actions-col { white-space: nowrap; width: 140px; }
.sort-col { white-space: nowrap; width: 78px; text-align: center; }
.sort-col .btn-xs { padding: 3px 7px; font-size: 14px; line-height: 1; border: 1.5px solid var(--line); background: #fff; }
.sort-col .btn-xs:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.sort-col .btn-xs:disabled { opacity: .3; cursor: default; }
.inline-form { display: inline-block; }
.status { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed, .status-approved, .status-active { background: #d1fae5; color: #065f46; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-cancelled, .status-rejected, .status-inactive { background: #fee2e2; color: #991b1b; }
.form-card { max-width: none; }   /* edit screens use the full content width */
/* …and no wider: a long <pre> or table scrolls inside its card instead of stretching the page */
.admin-shell > *, .form-grid > * { min-width: 0; }
/* English / Bangla tabs inside one form */
.lang-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.lang-tab { border: 0; background: none; cursor: pointer; font-family: var(--font); font-size: 14.5px; font-weight: 700; color: var(--muted);
  padding: 10px 16px; border-radius: 10px 10px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; transition: all .18s; }
.lang-tab:hover { color: var(--primary-dark); background: var(--bg); }
.lang-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); background: var(--primary-light); }
.lang-tab-note { margin-left: auto; font-size: 12.5px; color: var(--muted); padding-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
/* the display:grid above would otherwise override the hidden attribute — keep inactive language panes truly hidden */
.lang-pane[hidden] { display: none !important; }
.form-field.span-2 { grid-column: span 2; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; margin-top: 8px !important; font-size: 15px !important; color: var(--ink) !important; }
.checkbox-label input { width: auto !important; }
/* ---------- SEO landing pages ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--primary-dark); font-weight: 600; }
.link-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.link-chip { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.link-chip span { background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.link-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.link-chip.active { background: linear-gradient(135deg, var(--primary), #0369a1); border-color: transparent; color: #fff; }
.link-chip.active span { background: rgba(255,255,255,.2); color: #fff; }
.faq-item { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq-item p { margin-top: 8px; color: var(--muted); }
a.dept-card { text-decoration: none; }
a.district-pill { text-decoration: none; display: inline-block; }

/* ---------- SEO debug panel ---------- */
.seo-debug { position: fixed; bottom: 0; left: 0; right: 0; background: #0f2942; color: #cbd5e1; font-size: 12.5px; padding: 12px 20px; z-index: 999; max-height: 45vh; overflow: auto; border-top: 3px solid #0d9488; font-family: monospace; }
.seo-debug strong { color: #5eead4; }
.seo-debug .dbg-row { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ---------- SEO Command Center ---------- */
.seo-tabs, .seo-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.seo-subtabs { margin-bottom: 0; }
.seo-tab { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
.seo-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.seo-tab.active { background: linear-gradient(135deg, var(--primary), #0369a1); border-color: transparent; color: #fff; }
.seo-score-row { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 20px; }
.seo-score-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.score-ring { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), #e2e8f0 0); position: relative; }
.score-ring::before { content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.score-ring span { position: relative; font-size: 38px; font-weight: 800; color: var(--navy); font-family: 'Roboto', var(--font); }
.cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-label { width: 150px; font-size: 14px; font-weight: 600; }
.cat-bar { flex: 1; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.cat-fill { height: 100%; border-radius: 999px; }
.seo-quick-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.issue-group { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.issue-group summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.issue-group table { margin-top: 10px; }
.bulk-table .bulk-input { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; font-family: var(--font); }
.bulk-table .bulk-input:focus { outline: none; border-color: var(--primary); }
.char-count { display: block; font-size: 11.5px; font-weight: 700; margin-top: 3px; }
/* Admin: schema markup field + preview */
form textarea.code-input, .schema-pre { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.55; }
.schema-node { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.schema-node summary { cursor: pointer; padding: 11px 16px; font-weight: 700; color: var(--navy); }
.schema-pre { margin: 0; padding: 14px 16px; background: #0f2942; color: #d5e3f0; border-radius: 0 0 12px 12px; overflow: auto; max-height: 420px; white-space: pre; }
.redirect-form { display: flex; gap: 6px; align-items: center; }
.redirect-form input[type=text] { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; width: 170px; font-family: var(--font); }
.serp-preview { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 620px; background: #fff; display: flex; flex-direction: column; gap: 3px; }
.serp-url { color: #202124; font-size: 13px; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; font-weight: 500; }
.serp-desc { color: #4d5156; font-size: 13.5px; line-height: 1.55; }
.checkbox-label.inline { display: inline-flex !important; margin: 0 10px 0 0 !important; }
@media (max-width: 900px) { .seo-score-row { grid-template-columns: 1fr; } }

.message-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.message-item:last-child { border: 0; }
.message-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Premium polish layer ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3 { letter-spacing: -.02em; }
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #c3d0dc; border-radius: 999px; border: 3px solid var(--bg); }
body::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 41, 66, .09); }

.btn-primary { background: linear-gradient(135deg, #10b3a1, #0284c7); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 2px; }

.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ''; width: 26px; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), #0369a1); }

.specialty-card { border-radius: 16px; }
.specialty-card .specialty-icon { transition: transform .25s; display: inline-block; }
.specialty-card:hover .specialty-icon { transform: scale(1.18) rotate(-4deg); }

.steps-grid { position: relative; }
.step-card { border-radius: 18px; }
.step-card .step-num { background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; }
@media (min-width: 900px) {
  .step-card:not(:last-child)::after { content: '➜'; position: absolute; top: 50%; right: -19px; transform: translateY(-50%); color: #b8cbd9; font-size: 15px; z-index: 2; }
  .step-card { position: relative; }
}

.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .12), transparent 40%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 16px); }
.cta-inner { position: relative; }
.cta-band .btn-light { box-shadow: 0 10px 26px rgba(2, 12, 27, .3); }

.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #0369a1, #5eead4); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; transition: all .18s; }
.footer-social a svg { width: 16px; height: 16px; display: block; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); color: #fff; }

/* Scroll-reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.rv.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Super responsive layer ---------- */
/* No sideways scroll. `hidden` on body would turn it into a scroll container, and every
   position: sticky element (header, section nav, appointment card) would stop sticking —
   `clip` cuts the overflow without doing that. */
html { overflow-x: hidden; }
body { overflow-x: clip; }

/* Tablet & below */
@media (max-width: 1024px) {
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 100px; }
  .em-panel { max-width: 560px; }
}

/* Large phones / small tablets */
@media (max-width: 860px) {
  .topbar-inner { justify-content: center; text-align: center; font-size: 12.5px; }
  .section-head { align-items: flex-start; }
  .section-head .btn { padding: 8px 18px; font-size: 14px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; max-width: 340px; }
  .hero h1 { font-size: clamp(27px, 7vw, 38px); }
  .hero-copy > p { font-size: 15.5px; }
}

/* Phones */
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .section-head h2 { font-size: 22px; }
  .hero { padding: 40px 0 74px; }
  .hero-eyebrow { font-size: 12px; }
  /* prevent iOS auto-zoom: form controls at 16px */
  .sb-field select, .sb-field input, .filter-group input, .filter-group select,
  form input[type=text], form input[type=email], form input[type=tel], form input[type=date],
  form textarea, form select { font-size: 16px; }
  .hero-popular { font-size: 12.5px; gap: 6px 12px; }
  .hero-trust { margin-top: 24px; gap: 8px; }
  .ht-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; border-radius: 14px; }
  .ht-ico { width: 36px; height: 36px; border-radius: 10px; }
  .ht-ico svg { width: 18px; height: 18px; }
  .ht-item strong { font-size: 20px; }
  .ht-item span.ht-lbl { font-size: 11px; }
  .em-panel { max-width: none; }
  .steps-grid { gap: 14px; }
  .step-card { padding: 24px 18px; }
  .post-card { padding: 20px; }
  .footer-grid { padding: 40px 16px 30px; gap: 26px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
  .pagination { gap: 6px; }
  .page-link { min-width: 36px; height: 36px; font-size: 14px; }
}

/* Phones: specialty grid becomes a compact 2-per-row tile grid */
@media (max-width: 700px) {
  .specialty-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sp-card { flex-direction: column; text-align: center; padding: 16px 10px 14px; gap: 9px; }
  .sp-info { align-items: center; }
  .sp-info strong { font-size: 13.5px; }
  .sp-info > span { font-size: 11.5px; }
  .sp-icon { width: 46px; height: 46px; font-size: 23px; border-radius: 13px; }
  .sp-arrow { display: none; }
}

/* Small phones */
@media (max-width: 420px) {
  .sp-card { padding: 13px 8px 12px; gap: 7px; }
  .sp-info strong { font-size: 12.5px; }
  .brand { font-size: 20px; }
  .brand-mark { font-size: 22px; }
  .brand-logo { height: 34px; max-width: 130px; }
  .topbar-inner { font-size: 11.5px; gap: 4px; }
  .topbar-right { display: none; }
  .hero h1 { font-size: 26px; }
  .search-bar { padding: 10px; }
  .sb-field { padding: 7px 12px; }
  .as-chip { padding: 4px 12px; font-size: 12.5px; }
  .doctor-card { padding: 0 16px 16px; }
  .doctor-card::before { margin: 0 -16px; }
  .hc-body { padding: 0 16px 16px; }
  .hc-foot { flex-wrap: wrap; gap: 10px; }
  .em-row strong { font-size: 16px; }
  .cta-inner h2 { font-size: 22px; }
  .profile-nav-inner { padding: 0 10px; }
  .profile-nav-inner a { padding: 12px 10px; font-size: 13.5px; }
}

/* ---------- Print (SEO reports) ---------- */
@media print {
  .admin-sidebar, .admin-topbar, .seo-tabs, .no-print, .btn { display: none !important; }
  .admin-shell { display: block; }
  .admin-main { padding: 0; }
  .card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { order: 2; }
  .profile-layout, .contact-layout, .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
}
/* Header: a long site name + 7 links + CTA stop fitting well before the phone
   breakpoint, so the menu collapses at 1100px and tightens up just above it. */
@media (max-width: 1280px) and (min-width: 1101px) {
  .header-inner { gap: 12px; }
  .main-nav { gap: 18px; }
  .main-nav > a { font-size: 14.5px; }
  .brand { font-size: 21px; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 22px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 11px 8px; border-radius: 10px; }
  .main-nav > a:not(.btn):hover { background: var(--bg); }
  .main-nav > a::after { display: none; }
  .nav-cta { margin-top: 8px; }
}
@media (max-width: 860px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
}
@media (max-width: 700px) {
  .search-bar { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; }
  .sb-field { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; }
  .sb-divider { display: none; }
  .sb-btn { padding: 13px; }
  .area-strip-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .as-chips { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .search-card { flex-direction: column; align-items: stretch; }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .form-field.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 70px; }
  .section { padding: 44px 0; }
}

/* ---------- Department (specialty) page — unique modern look ---------- */
.dp-hero { position: relative; background: linear-gradient(150deg, #0a1f33 0%, var(--navy) 45%, #0b4f4a 100%); color: #b6c6d5; padding: 38px 0 0; overflow: hidden; }
.dp-hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 50% 55% at 90% 10%, rgba(13, 148, 136, .4), transparent),
  radial-gradient(ellipse 40% 50% at 0% 100%, rgba(3, 105, 161, .35), transparent),
  linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px; }
.dp-hero-inner { position: relative; z-index: 1; padding-bottom: 26px; }
.dp-watermark { position: absolute; right: -30px; top: -25px; font-size: 250px; line-height: 1; opacity: .07; user-select: none; pointer-events: none; filter: grayscale(30%); }
.dp-crumbs { font-size: 13px; color: #7d93a8; margin-bottom: 24px; }
.dp-crumbs a { color: #5eead4; font-weight: 600; }
.dp-eyebrow { display: inline-flex; align-items: center; background: rgba(94, 234, 212, .12); color: #5eead4; border: 1px solid rgba(94, 234, 212, .3); padding: 5px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: 1.2px; text-transform: uppercase; }
.dp-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 8px; letter-spacing: -.5px; }
.dp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-sub { font-size: 15.5px; max-width: 660px; }
.dp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; margin-top: 28px; max-width: 680px; }
.dp-stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 14px 18px; backdrop-filter: blur(8px); }
.dp-stat strong { display: block; font-size: 26px; color: #fff; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dp-stat span { font-size: 11.5px; color: #7d93a8; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.dp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 8px 10px 8px 18px; max-width: 680px; }
.dp-share-label { font-size: 13px; font-weight: 700; color: #b6c6d5; white-space: nowrap; }
.dp-share-url { flex: 1 1 200px; min-width: 0; font-size: 13.5px; font-weight: 600; color: #5eead4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-share-url:hover { text-decoration: underline; }
.dp-share-btns { display: flex; gap: 8px; margin-left: auto; }
.dp-share .icon-btn-dark { width: 34px; height: 34px; font-size: 15px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.dp-share .icon-btn-dark:hover { background: #fff; color: var(--navy); border-color: transparent; }
.dp-ecg { display: block; width: 100%; height: 48px; position: relative; z-index: 1; }
.dp-ecg path { fill: none; stroke: #5eead4; stroke-width: 2; opacity: .9; stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: dp-draw 3.4s ease forwards; filter: drop-shadow(0 0 6px rgba(94, 234, 212, .55)); }
@keyframes dp-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .dp-ecg path { animation: none; stroke-dashoffset: 0; } }

.dp-tabs { position: sticky; top: 68px; z-index: 90; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dp-tabs-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 9px 0; }
.dp-tabs-inner::-webkit-scrollbar { display: none; }
.dp-tab { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: all .18s; }
.dp-tab:hover { color: var(--primary-dark); background: var(--primary-light); }

.dp-section { padding: 34px 0 0; scroll-margin-top: 128px; }
.dp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.dp-head-ico { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(13, 148, 136, .35); }
.dp-head h2 { font-size: 22px; line-height: 1.25; }
.dp-head small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.dp-pill { margin-left: auto; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }

.dp-about { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 22px 26px; }

.dp-hosp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 14px; }
.dp-hosp-card { display: flex; align-items: center; gap: 13px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; cursor: pointer; font-family: var(--font); transition: all .18s; text-decoration: none; }
.dp-hosp-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.dp-hosp-card.active { border-color: var(--primary); background: linear-gradient(135deg, rgba(204, 251, 241, .55), #fff); box-shadow: 0 6px 18px rgba(13, 148, 136, .18); }
.dp-hosp-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.dp-hosp-body { flex: 1; min-width: 0; }
.dp-hosp-body strong { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.35; }
.dp-hosp-body span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dp-hosp-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; transition: all .18s; }
.dp-hosp-card.active .dp-hosp-check { background: var(--primary); border-color: var(--primary); color: #fff; }

.dp-faq { display: flex; flex-direction: column; gap: 10px; }
.dp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: box-shadow .18s, border-color .18s; }
.dp-faq details[open] { box-shadow: var(--shadow); border-color: rgba(13, 148, 136, .45); }
.dp-faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 0; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15px; }
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary::after { content: '+'; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; transition: transform .25s; flex-shrink: 0; }
.dp-faq details[open] summary::after { transform: rotate(45deg); }
.dp-faq details p { padding: 0 0 16px; color: var(--muted); }

.dp-cta { margin: 40px 0 6px; background: linear-gradient(135deg, var(--navy), #0b4f4a); border-radius: 20px; padding: 28px 30px; color: #b6c6d5; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden; }
.dp-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 90% at 95% 10%, rgba(94, 234, 212, .18), transparent); }
.dp-cta > div { position: relative; }
.dp-cta h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.dp-cta .btn { position: relative; }

@media (max-width: 700px) {
  .dp-watermark { font-size: 150px; right: -40px; top: auto; bottom: 30px; }
  .dp-stat strong { font-size: 21px; }
  .dp-stat { padding: 12px 14px; }
  .dp-section { padding-top: 26px; }
  .dp-head h2 { font-size: 19px; }
  .dp-pill { margin-left: 0; }
  .dp-share { border-radius: 18px; padding: 12px 14px; gap: 8px; }
  .dp-share-btns { margin-left: 0; }
}

/* Admin list filter dropdowns */
.admin-search { flex-wrap: wrap; align-items: center; }
.admin-filter { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; font-family: var(--font); cursor: pointer; max-width: 210px; }
.admin-filter:focus { outline: none; border-color: var(--primary); }
@media (max-width: 700px) { .admin-search input { min-width: 0; flex: 1; } }

/* Doctor designation badge + expertise chips */
.dc-designation { display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-top: 5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-expertise { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: -2px; }
.dc-exp-chip { background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.dc-exp-more { background: var(--primary-light); border-color: transparent; color: var(--primary-dark); }
.doc-expertise { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.doc-exp-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.doc-expertise .dc-exp-chip { background: #fff; font-size: 12.5px; }

/* Admin emoji icon picker */
.emoji-field input { font-size: 20px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 10px; max-height: 200px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: var(--bg); }
.emoji-opt { font-size: 22px; padding: 7px 0; border: 1.5px solid transparent; background: #fff; border-radius: 10px; cursor: pointer; transition: all .15s; line-height: 1.3; font-family: var(--font); }
.emoji-opt:hover { transform: scale(1.12); border-color: var(--primary); }
.emoji-opt.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 2px 8px rgba(13, 148, 136, .25); }

/* Blog images */
.post-card-thumb { display: block; margin: -20px -20px 12px; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--bg); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-feature-img { margin: 0 0 18px; border-radius: 14px; overflow: hidden; }
.post-feature-img img { width: 100%; display: block; }
.rich-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; display: block; }

/* Doctor profile: call-for-serial box */
.doc-call { display: flex; align-items: center; gap: 11px; background: #fff; border: 1.5px solid var(--primary); border-radius: 14px; padding: 9px 13px; transition: all .18s; }
.doc-call:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13, 148, 136, .2); }
.doc-call-ico { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), #0369a1); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.doc-call-txt { min-width: 0; }
/* the doctor panel stacks both buttons full width: keep icon and text together in the middle */
.doc-side .doc-call { justify-content: center; }
/* equal text width, so the two icons also line up one above the other */
.doc-side .doc-call-txt { min-width: 122px; }
/* Book Appointment: same shape as the call button, its own colour so the two read apart */
.doc-call-book { border-color: #6366f1; }
.doc-call-book:hover { background: #eef2ff; box-shadow: 0 4px 14px rgba(99, 102, 241, .2); }
.doc-call-book .doc-call-ico { background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff; }
.doc-call-book .doc-call-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-call-book .doc-call-txt strong { color: #4338ca; font-family: var(--font); letter-spacing: 0; }
.doc-call-txt small { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; line-height: 1.3; }
.doc-call-txt strong { display: block; font-size: 16px; color: var(--primary-dark); font-family: 'Roboto', var(--font); letter-spacing: .2px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Related doctors carousel */
.car-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.car-head h2 { margin-bottom: 0; }
.car-nav { display: flex; gap: 8px; }
.car-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .18s; font-family: var(--font); padding-bottom: 3px; }
.car-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); transform: translateY(-1px); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > .doctor-card { flex: 0 0 262px; scroll-snap-align: start; }
@media (max-width: 480px) { .car-track > .doctor-card { flex-basis: 236px; } }

/* Carousel: mouse drag support */
.car-track { cursor: grab; }
.car-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car-track img { -webkit-user-drag: none; user-select: none; }

/* Contain the carousel inside the profile grid column (prevents grid blowout) */
.profile-layout > * { min-width: 0; }
.car-track { max-width: 100%; }

/* Mobile polish: doctor profile */
@media (max-width: 700px) {
  /* carousel: swipe is natural on touch — hide arrows, give the title full width */
  .car-nav { display: none; }
  .car-head { margin-bottom: 10px; }
  .car-head h2 { font-size: 18px; }
  .car-track { gap: 12px; }
  .car-track > .doctor-card { flex-basis: min(78vw, 250px); }

  /* sticky bottom bar: keep both buttons on one line, never overflow */

  /* call-for-serial box breathes a bit less on small screens */
  .doc-call { padding: 8px 11px; }
  .doc-call-txt strong { font-size: 15px; }
}

/* Carousel: whole cards only — exactly 2 per view on desktop, 1 (with a small peek) on mobile */
.car-track > .doctor-card { flex: 0 0 calc(50% - 8px); }
@media (max-width: 700px) {
  .car-track > .doctor-card { flex-basis: 86%; }
}

/* Doctor cover/banner image (uploaded from admin) */
.doc-banner { background-size: cover; background-position: center; }
.doc-banner.has-cover .doc-banner-deco { background: linear-gradient(180deg, rgba(10, 31, 51, .1), rgba(10, 31, 51, .45)); }

/* Footer: 5-column layout */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cover banner: follow the uploaded image ratio so the full cover is visible */
.doc-banner.has-cover { height: auto; min-height: 180px; max-height: 460px; }
@media (max-width: 700px) { .doc-banner.has-cover { min-height: 120px; max-height: 260px; } }

/* Department page: 3-per-view carousel for chambers/districts */
.car-3 > * { flex: 0 0 calc(33.333% - 8px); scroll-snap-align: start; }
@media (max-width: 900px) { .car-3 > * { flex: 0 0 calc(50% - 6px); } }
@media (max-width: 560px) { .car-3 > * { flex: 0 0 80%; } }

/* Department page: bigger doctor photos in the doctor list */
#dp-doctors .dc-avatar { width: 168px; height: 168px; font-size: 50px; }
#dp-doctors .doctor-card::before { height: 86px; }

/* Doctor cover shown INSIDE the profile card (full-bleed top of the card) */
.doc-cover { margin: -26px -30px 0; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--bg); }
.doc-cover img { width: 100%; height: auto; max-height: 380px; object-fit: cover; display: block; }
.doc-cover + .doc-card-top { margin-top: 18px; }
@media (max-width: 700px) {
  .doc-cover { margin: -20px -18px 0; border-radius: 18px 18px 0 0; }
  .doc-cover img { max-height: 190px; }
}

/* Profile card: soft decoration in the empty area (dept watermark + faint heartbeat) */
.doc-card-top { position: relative; }
.doc-deco { position: absolute; right: 300px; bottom: 0; font-size: 148px; line-height: 1; opacity: .06; filter: grayscale(25%); pointer-events: none; user-select: none; z-index: 0; }
.doc-card-top::after { content: ''; position: absolute; left: 210px; right: 320px; bottom: 12px; height: 44px; pointer-events: none; opacity: .12; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 H110 l10 0 6 -14 8 26 7 -32 7 24 5 -4 8 0 H250 l10 0 6 -14 8 26 7 -32 7 24 5 -4 8 0 H400' fill='none' stroke='%230d9488' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.doc-info, .doc-side { position: relative; z-index: 1; }
@media (max-width: 1024px) {
  .doc-deco { right: 12px; font-size: 110px; }
  .doc-card-top::after { left: 20px; right: 20px; bottom: 6px; opacity: .08; }
}
@media (max-width: 700px) { .doc-deco { font-size: 84px; } }

/* Ambient page decoration: soft gradient orbs + faint dot texture on wide-screen whitespace */
body { background-image: radial-gradient(rgba(15, 41, 66, .05) 1px, transparent 1px); background-size: 26px 26px; }
.page-orbs { pointer-events: none; user-select: none; }
.page-orbs span { position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; }
.page-orbs span:nth-child(1) { width: 440px; height: 440px; left: -150px; top: 20%; background: rgba(13, 148, 136, .12); }
.page-orbs span:nth-child(2) { width: 400px; height: 400px; right: -130px; top: 10%; background: rgba(3, 105, 161, .10); }
.page-orbs span:nth-child(3) { width: 340px; height: 340px; right: -90px; bottom: -70px; background: rgba(236, 72, 153, .07); }
@media (max-width: 1300px) { .page-orbs { display: none; } }

/* Admin: footer menu manager */
.menu-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.menu-col-head { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.menu-col-head input[type=text] { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 15px; font-weight: 700; font-family: var(--font); color: var(--navy); }
.menu-item-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.menu-item-row input[type=text] { border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13.5px; font-family: var(--font); min-width: 0; }
.menu-item-row input[name=label] { flex: 1.1; }
.menu-item-row input[name=link] { flex: 1; color: var(--muted); }
.menu-item-row .btn { flex-shrink: 0; padding: 5px 8px; }
.menu-item-add { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* Footer grid adapts to however many menu columns the admin creates */
.footer-grid { grid-template-columns: 1.6fr repeat(var(--fcols, 3), 1fr) 1.3fr; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* BMDC number in the stat row: smaller so long reg numbers fit */

/* Admin: combo page doctor/hospital panels */
.combo-add { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.combo-add h3 { font-size: 16px; margin-bottom: 4px; }
.combo-add .link-chips { max-height: 190px; overflow-y: auto; padding: 4px; }
.combo-add .link-chip { font-size: 13px; padding: 6px 12px; }
.admin-content h2 .dp-pill { margin-left: 6px; font-size: 12px; vertical-align: middle; }

/* Admin: combo coverage progress */
.combo-progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.combo-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #0369a1); border-radius: 999px; transition: width .4s; }

/* Admin: combo → live page connection */
.combo-url { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--primary-dark); word-break: break-all; }
.combo-url:hover { text-decoration: underline; }
.combo-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--navy), #0b4f4a); color: #b6c6d5; border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; }
.combo-banner > div > span { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: #7d93a8; }
.combo-banner a { color: #5eead4; font-weight: 700; font-size: 16px; word-break: break-all; }
.combo-banner small { display: block; margin-top: 5px; font-size: 12.5px; color: #93a8bb; }
.combo-banner .btn-light { color: var(--navy); }

/* District page: featured-doctor carousel matches the 4-across doctor grid elsewhere */
/* District page: 3 wide cards per row — departments grid and the featured-doctor carousel */
#lo-doctors .car-track > .doctor-card { flex: 0 0 calc(33.333% - 11px); }
#lo-departments .dp-hosp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) {
  #lo-doctors .car-track > .doctor-card { flex: 0 0 calc(50% - 8px); }
  #lo-departments .dp-hosp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) { #lo-doctors .car-track > .doctor-card { flex: 0 0 86%; } #lo-doctors .car-nav { display: none; } }
@media (max-width: 620px) { #lo-departments .dp-hosp-grid { grid-template-columns: 1fr; } }

/* Home "newly listed" grid and the related doctors of a profile: 3 wide cards per row */
.doctor-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .doctor-grid.three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 620px) { .doctor-grid.three-col { grid-template-columns: 1fr; } }
#related { margin-top: 26px; }
#related .car-track > .doctor-card { flex: 0 0 calc(33.333% - 11px); }
@media (max-width: 1000px) { #related .car-track > .doctor-card { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 700px) { #related .car-track > .doctor-card { flex: 0 0 86%; } }

/* Admin: multi-select combo adder */
.combo-adder summary { cursor: pointer; font-size: 15px; padding: 2px 0; }
.combo-adder summary::marker { color: var(--primary); }
.combo-adder[open] summary { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.combo-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .combo-pick-grid { grid-template-columns: 1fr; } }
.combo-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.combo-pick-head h3 { font-size: 15px; }
.combo-pick-box { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; max-height: 260px; overflow-y: auto; background: var(--bg); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 4px; }
.combo-pick { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.combo-pick:hover { background: #fff; }
.combo-pick input { accent-color: var(--primary); }

/* Doctor profile: current workplace line */
.doc-workplace { margin: 6px 0 2px; font-size: 14.5px; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.doc-workplace span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.doc-workplace strong { color: var(--navy); font-weight: 700; }

/* ---------- Bangla / English language support ---------- */
/* English is Roboto, Bangla is Kalpurush. Roboto has no Bengali glyphs, so one stack serves
   both: Latin letters and digits come from Roboto, Bengali text falls through to Kalpurush —
   also inside English pages (doctor names and addresses are often mixed).
   unicode-range keeps the file from being fetched on pages with no Bengali text;
   Kalpurush has a single weight, so bold is synthesised by the browser. */
@font-face {
  font-family: 'Kalpurush'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Kalpurush'), url('https://fonts.maateen.me/kalpurush/Kalpurush-v0.258.woff2') format('woff2');
  unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC;
}
:root { --font: 'Roboto', 'Kalpurush', system-ui, sans-serif; --font-bn: var(--font); }
html.lang-bn body { font-size: 17px; line-height: 1.8; }
html.lang-bn h1, html.lang-bn h2, html.lang-bn h3, html.lang-bn h4 { line-height: 1.45; }
/* letter-spacing pulls Bengali conjuncts apart */
html.lang-bn * { letter-spacing: normal !important; }
/* Caption-size text: Bengali vowel signs blur below ~14px, so these go one size up */
html.lang-bn .dc-specialty, html.lang-bn .dc-degrees, html.lang-bn .dc-expertise, html.lang-bn .dc-meta li,
html.lang-bn .sp-info span, html.lang-bn .ht-item span, html.lang-bn .section-eyebrow, html.lang-bn .hero-eyebrow,
html.lang-bn .hero-popular a, html.lang-bn .hp-label, html.lang-bn .as-label, html.lang-bn .as-chip, html.lang-bn .em-row-label,
html.lang-bn .post-meta, html.lang-bn .post-cat, html.lang-bn .topbar, html.lang-bn .crumbs, html.lang-bn .dp-crumbs,
html.lang-bn form label, html.lang-bn .form-note, html.lang-bn .disclaimer, html.lang-bn .link-chip,
html.lang-bn .doc-badge, html.lang-bn .doc-expertise span, html.lang-bn .chamber-district,
html.lang-bn .dp-stat span, html.lang-bn .dp-hosp-body span, html.lang-bn .dp-head small, html.lang-bn .dp-pill,
html.lang-bn .dp-eyebrow, html.lang-bn .dept-count, html.lang-bn .footer-grid li, html.lang-bn .review-date { font-size: 14.5px; }
html.lang-bn .sb-field label, html.lang-bn .badge, html.lang-bn .badge-featured, html.lang-bn .doc-call-txt small,
html.lang-bn .lang-switch a { font-size: 13px; }
html.lang-bn .btn { font-size: 15.5px; }
html.lang-bn .btn-sm { font-size: 14.5px; }

.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch a { padding: 4px 11px; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.6; transition: all .18s; }
.lang-switch a:hover { color: var(--primary-dark); background: var(--primary-light); }
.lang-switch a.active { background: linear-gradient(135deg, var(--primary), #0369a1); color: #fff; }
@media (max-width: 900px) { .lang-switch { align-self: flex-start; margin: 6px 0; } }

/* CMS pages */
.page-hero-light { background: linear-gradient(140deg, #e6f4f2, #e8f0f8); color: var(--muted); }
.page-hero-light h1 { color: var(--navy); }
.page-split { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .page-split { grid-template-columns: 1fr; } }
.page-form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.page-form input, .page-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: var(--font); }
.page-form input:focus, .page-form textarea:focus { outline: none; border-color: var(--primary); }
.page-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .page-form .form-row { grid-template-columns: 1fr; } }
.page-form .btn { margin-top: 14px; }
.page-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* Admin: FAQ builder */
.faq-builder .faq-row { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg); }
.faq-row-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.faq-num { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.faq-row-head input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 14.5px; font-weight: 600; font-family: var(--font); }
.faq-row-head input:focus { outline: none; border-color: var(--primary); }
.faq-row-head .btn { flex-shrink: 0; padding: 4px 8px; }
.faq-builder textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 14px; font-family: var(--font); background: #fff; }
.faq-builder textarea:focus { outline: none; border-color: var(--primary); }

/* Admin: site-wide indexing switch */
.indexing-switch.is-off { border-color: #fca5a5; background: #fff5f5; }
.indexing-toggle { align-items: flex-start; gap: 10px; font-size: 15px; margin: 6px 0 12px; }
.indexing-toggle input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--danger); flex-shrink: 0; }
.indexing-list { margin: 6px 0 0 20px; color: var(--muted); font-size: 13.5px; list-style: disc; }
.indexing-list li { margin: 3px 0; }
.indexing-warn { margin-top: 14px; background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 600; }
.nav-indexing-off { display: block; margin: 0 10px 10px; background: rgba(225,29,72,.18); border: 1px solid rgba(248,113,113,.5); color: #fecaca !important; border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.nav-indexing-off:hover { background: rgba(225,29,72,.3); }

/* Doctor profile: specialty and designation on their own lines, distinct colours */
.doc-specialty { color: var(--primary-dark); font-weight: 700; font-size: 16.5px; }
.doc-designation { color: #b45309; font-weight: 700; font-size: 15px; margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.doc-workplace { margin: 3px 0 2px; }

/* Test page: keep the illustration modest instead of full-bleed */
.test-img { max-width: 340px; margin: 0 0 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.test-img img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .test-img { max-width: 100%; } }
.chamber-hosp { margin: 2px 0 6px; }

/* Responsive video embeds inside rich content */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; margin: 16px 0; border-radius: 14px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Admin: tag input */
.tag-box { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 11px; background: #fff; cursor: text; min-height: 46px; }
.tag-box:focus-within { border-color: var(--primary); }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 5px 6px 5px 13px; font-size: 13.5px; font-weight: 600; }
.tag-x { border: 0; background: rgba(15,41,66,.12); color: var(--primary-dark); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.tag-x:hover { background: var(--danger); color: #fff; }
.tag-input { flex: 1; min-width: 180px; border: 0; outline: none; font-size: 14.5px; font-family: var(--font); padding: 4px 2px; }

/* Uploaded video player inside rich content */
.video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Admin: repeatable one-line boxes (degrees, etc.) */
.line-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.line-num { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.line-row input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 13px; font-size: 14.5px; font-family: var(--font); }
.line-row input:focus { outline: none; border-color: var(--primary); }
.line-row .btn { flex-shrink: 0; padding: 5px 8px; }

/* Expert in Treating as a plain single line */
.doc-expertise { display: block; margin: 6px 0 2px; font-size: 14.5px; color: var(--ink); }
.doc-expertise span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.dc-expertise { display: block; font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Doctor card: workplace sits with the specialty/designation, not in the meta list */
.dc-workplace { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 4px; max-width: 100%; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Doctor card: designation is plain text, sitting above the workplace */
.dc-designation { display: block; background: none; border: 0; padding: 0; border-radius: 0; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Icon + text lines: the icon never ends up alone on its own line ----------
   Doctor card details were flex rows that could wrap, so on a narrow card a long
   designation, hospital name or visiting-hours text dropped onto the line under its icon
   (and a no-wrap designation was cut off). The icon now sits in a fixed gutter and the
   text wraps beside it. */
.dc-meta li, .dc-meta li.dc-designation, .dc-meta li.dc-workplace {
  display: block; position: relative; padding-left: 26px; margin-top: 0; max-width: none;
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
}
.dc-meta li > .dc-ico { position: absolute; left: 0; top: 0; }
/* Footer / contact lists: a long e-mail address breaks inside itself instead of jumping to
   the next line and leaving ✉️ behind (the icon is tied to the text with a no-break space). */
.site-footer li, .contact-info li, .hc-loc, .topbar-right { overflow-wrap: anywhere; }
/* Doctor profile header: same fix for the 🏛️ workplace and 🎓 designation lines (wrapping flex rows) */
.doc-workplace, .doc-designation { display: block; overflow-wrap: anywhere; }
/* ---------- Content protection (public pages only — body.no-copy is set by partials/header.php) ----------
   No text selection, no long-press copy menu on phones, no dragging images out.
   Form fields keep normal selection so visitors can still type and edit. */
body.no-copy { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.no-copy img { -webkit-user-drag: none; user-drag: none; }
body.no-copy input, body.no-copy textarea, body.no-copy select, body.no-copy [contenteditable="true"] { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* Copyright notice for AI tools: in the page text that AI assistants read, but never shown
   to visitors or read out by screen readers (aria-hidden), and kept out of Google snippets (data-nosnippet). */
.ai-notice { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ============ Mobile bottom bar & back-to-top ============ */
/* Clinic-styled bar: an ECG pulse line traced along the top edge, a mint
   "chart chip" behind the current item, and a stethoscope button in the notch.
   Both are hidden by default and only switched on under 700px (the bar) —
   the back-to-top button shows on every width once the page is scrolled. */

.mobile-bar { display: none; }

.to-top {
  position: fixed; right: 16px; bottom: 20px; z-index: 60;
  width: 44px; height: 44px; cursor: pointer;
  border: 1.5px solid rgba(13, 148, 136, .25); border-radius: 14px;
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(15, 41, 66, .14);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--primary-light); }
.to-top:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 700px) {
  /* Full-width bar with a curved notch cradling the stethoscope button.
     The notch is cut with a mask rather than a stretched SVG, so it stays the
     same size whether the phone is 320px or 700px wide. */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: none;
  }
  /* the surface sits behind the items so the mask never clips them */
  .mb-surface {
    position: absolute; inset: 0;
    background: linear-gradient(#f2fbf9, #fff 22px);
    border-top: 1px solid rgba(13, 148, 136, .22);
    -webkit-mask: radial-gradient(circle 34px at 50% 0, transparent 0 34px, #000 34.5px);
    mask: radial-gradient(circle 34px at 50% 0, transparent 0 34px, #000 34.5px);
    /* drop-shadow follows the masked outline; box-shadow would be cut away */
    -webkit-filter: drop-shadow(0 -2px 10px rgba(15, 41, 66, .13));
    filter: drop-shadow(0 -2px 10px rgba(15, 41, 66, .13));
  }
  /* the heartbeat trace, repeated across the width and cut by the notch */
  .mb-surface::after {
    content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 20px;
    opacity: .5;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='20' viewBox='0 0 132 20'><path d='M0 10h18l3-6 4 12 3-6h23l3-3.5 3 7 3-3.5h24l4-7 4 14 4-7h30' fill='none' stroke='%230d9488' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") repeat-x 0 0;
  }

  /* the surface and the button are absolutely positioned, so they take no grid
     slot — the four real items are placed by hand or they shift left */
  .mb-c1 { grid-column: 1; }
  .mb-c2 { grid-column: 2; }
  .mb-c4 { grid-column: 4; }
  .mb-c5 { grid-column: 5; }

  .mb-item {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 10px 2px 7px;
    color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center;
    letter-spacing: .2px;
    transition: color .2s ease, transform .16s ease;
  }
  /* mint chip behind the icon of the page you are on */
  .mb-item::before {
    content: ''; position: absolute; top: 5px; left: 50%; z-index: -1;
    width: 40px; height: 27px; border-radius: 9px;
    background: transparent; transform: translateX(-50%);
    transition: background .2s ease;
  }
  .mb-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .2s ease; }
  .mb-item span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mb-item:active { transform: scale(.92); }
  .mb-item.is-active { color: var(--primary-dark); }
  .mb-item.is-active::before { background: rgba(13, 148, 136, .13); }
  .mb-item.is-active svg { stroke-width: 2.3; }

  /* the raised stethoscope button, sitting in the notch */
  .mb-fab {
    position: absolute; left: 50%; z-index: 2;
    transform: translateX(-50%);
    bottom: calc(33px + env(safe-area-inset-bottom, 0px));
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, #14b8a6, var(--primary) 55%, var(--primary-dark));
    box-shadow: 0 9px 22px rgba(13, 148, 136, .45), inset 0 0 0 3px rgba(255, 255, 255, .22);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  /* a slow pulse ring, like a monitor's beat */
  .mb-fab::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, .45);
    animation: mbPulse 2.6s ease-out infinite;
  }
  .mb-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; }
  .mb-fab:active { transform: translateX(-50%) scale(.92); }
  .mb-fab.is-active { box-shadow: 0 9px 22px rgba(13, 148, 136, .5), inset 0 0 0 3px rgba(255, 255, 255, .3), 0 0 0 4px rgba(13, 148, 136, .2); }
  .mb-fab:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }

  /* language: a compact segmented control in the last slot */
  .mb-lang { position: relative; z-index: 1; display: grid; place-items: center; padding: 0 4px; }
  .mb-lang-pills { display: inline-flex; gap: 2px; padding: 2px;
    background: #fff; border: 1px solid rgba(13, 148, 136, .28); border-radius: 999px; }
  .mb-lang-pills a { padding: 5px 7px; font-size: 10.5px; font-weight: 800; line-height: 1;
    color: var(--muted); border-radius: 999px; transition: background .2s ease, color .2s ease; }
  .mb-lang-pills a.active { color: #fff;
    background: linear-gradient(140deg, #14b8a6, var(--primary-dark)); }

  /* The bottom bar replaces the hamburger on phones, so the toggle goes away.
     It stays on 701-1100px, where the bar is not shown. */
  .main-nav { display: none !important; }

  /* nothing at the end of the page may hide behind the fixed bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  /* clears the raised button, which pokes above the bar */
  .to-top { bottom: calc(102px + env(safe-area-inset-bottom, 0px)); right: 16px; }
}

@keyframes mbPulse {
  0%   { transform: scale(.92); opacity: .75; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* Bangla labels run wider than the English ones */
html.lang-bn .mb-item { font-size: 9.5px; }

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
  .mb-item, .mb-item span, .mb-item::before, .mb-lang-pills a { transition: none; }
  .mb-item:active { transform: none; }
  .mb-fab::after { animation: none; }
}

@media print {
  .mobile-bar, .to-top { display: none !important; }
}

/* ============ Header matched to the home hero ============ */
/* On the home page (body.has-hero) the header has no background of its own: the
   hero is pulled up underneath it, so the two read as one piece whatever design
   is showing. Once the page scrolls, the header takes that design's colour.
   body.hero-<key> comes from hero_active(); the top bar is tinted to match. */
.hx-headroom { height: 68px; }
body.has-hero .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 0; transition: background .25s ease, box-shadow .25s ease; }
body.has-hero .hx, body.has-hero .hero { margin-top: -68px; }
body.has-hero .hx-pulse .hx-ecg { top: 164px; }
body.has-hero .site-header.scrolled { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* light designs */
body.hero-sunny .site-header.scrolled { background: rgba(255, 247, 232, .95); }
body.hero-bento .site-header.scrolled { background: rgba(239, 243, 248, .95); }
body.hero-orbit .site-header.scrolled { background: rgba(230, 249, 245, .95); }
body.hero-edit  .site-header.scrolled { background: rgba(255, 255, 255, .95); }

body.hero-sunny .topbar { background: #ffd040; color: #3d3310; }
body.hero-sunny .topbar a { color: #0f2942; font-weight: 800; }
body.hero-sunny .nav-cta { background: #0f2942; color: #fff; box-shadow: 0 4px 14px rgba(15, 41, 66, .3); }
body.hero-orbit .topbar { background: linear-gradient(90deg, #0d9488, #2563eb); color: #e8f6ff; }
body.hero-orbit .topbar a { color: #fff; font-weight: 800; }
body.hero-orbit .nav-cta { background: linear-gradient(135deg, #0d9488, #2563eb); color: #fff; }
body.hero-edit .topbar { background: #0b1f33; }
body.hero-edit .nav-cta { background: #0d9488; color: #fff; border-radius: 10px; box-shadow: 4px 4px 0 #0b1f33; }

/* dark designs: white lettering, and a white chip behind the logo image */
body.hero-pulse .site-header.scrolled { background: rgba(10, 34, 56, .95); }
body.hero-panel .site-header.scrolled { background: linear-gradient(90deg, rgba(10, 61, 145, .96), rgba(11, 107, 178, .96)); }
body.hero-classic .site-header.scrolled { background: linear-gradient(90deg, rgba(10, 127, 121, .96), rgba(11, 107, 178, .96)); }
body.hero-pulse .topbar { background: #061523; }
body.hero-panel .topbar { background: #072c69; }
body.hero-panel .topbar a { color: #a7f3d0; }
body.hero-classic .topbar { background: #065650; }
body.hero-classic .topbar a { color: #99f6e4; }

body.hero-pulse .brand, body.hero-panel .brand, body.hero-classic .brand { color: #fff; }
body.hero-pulse .brand-text span { color: #5eead4; }
body.hero-panel .brand-text span { color: #a7f3d0; }
body.hero-classic .brand-text span { color: #fde68a; }
body.hero-pulse .brand-logo, body.hero-panel .brand-logo, body.hero-classic .brand-logo {
  background: #fff; border-radius: 10px; padding: 3px; }
body.hero-pulse .nav-toggle span, body.hero-panel .nav-toggle span, body.hero-classic .nav-toggle span { background: #fff; }
body.hero-panel .nav-cta { background: #fff; color: #0b5fa3; box-shadow: 0 4px 14px rgba(4, 20, 60, .3); }
body.hero-classic .nav-cta { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #0f2942; box-shadow: 0 4px 14px rgba(245, 158, 11, .4); }

/* the inline menu exists only above 1100px; below that the links live in the
   white hamburger panel and keep their dark colour */
@media (min-width: 1101px) {
  body.hero-pulse .main-nav > a:not(.btn), body.hero-panel .main-nav > a:not(.btn), body.hero-classic .main-nav > a:not(.btn),
  body.hero-pulse .nav-dd > summary, body.hero-panel .nav-dd > summary, body.hero-classic .nav-dd > summary { color: rgba(255, 255, 255, .92); }
  body.hero-pulse .main-nav > a:not(.btn):hover, body.hero-panel .main-nav > a:not(.btn):hover, body.hero-classic .main-nav > a:not(.btn):hover,
  body.hero-pulse .nav-dd > summary:hover, body.hero-panel .nav-dd > summary:hover, body.hero-classic .nav-dd > summary:hover,
  body.hero-pulse .nav-dd[open] > summary, body.hero-panel .nav-dd[open] > summary, body.hero-classic .nav-dd[open] > summary { color: #fff; }
  body.hero-pulse .main-nav > a:not(.btn)::after, body.hero-panel .main-nav > a:not(.btn)::after, body.hero-classic .main-nav > a:not(.btn)::after { background: #fff; }
  body.hero-pulse .lang-switch, body.hero-panel .lang-switch, body.hero-classic .lang-switch {
    border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .1); }
  body.hero-pulse .lang-switch a:not(.active), body.hero-panel .lang-switch a:not(.active), body.hero-classic .lang-switch a:not(.active) { color: #fff; }
  body.hero-pulse .lang-switch a:not(.active):hover, body.hero-panel .lang-switch a:not(.active):hover, body.hero-classic .lang-switch a:not(.active):hover { background: rgba(255, 255, 255, .18); color: #fff; }
  body.hero-panel .lang-switch a.active, body.hero-classic .lang-switch a.active { background: #fff; color: #0b5fa3; }
}

/* ============ Phone menu: header button + slide-in drawer ============ */
.mdrawer[hidden] { display: none; }
html.md-lock, html.md-lock body { overflow: hidden; }

@media (max-width: 700px) {
  /* the menu button: a rounded tile instead of three bare lines */
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 13px;
    background: rgba(13, 148, 136, .1); border: 1px solid rgba(13, 148, 136, .18); transition: background .2s, transform .15s; }
  .nav-toggle:active { transform: scale(.94); }
  .nav-toggle:focus-visible { outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 2px; }
  .nav-toggle span { width: 19px; height: 2.2px; margin: 0; background: var(--primary-dark); }
  .nav-toggle span + span { margin-top: 4px; }
  .nav-toggle span:nth-child(2) { width: 13px; justify-self: end; }
  .nav-toggle { grid-auto-rows: min-content; align-content: center; justify-items: start; padding: 0 11.5px; }
  /* on the dark home heroes the button turns to glass */
  body.hero-pulse .nav-toggle, body.hero-panel .nav-toggle, body.hero-classic .nav-toggle {
    background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
  body.hero-pulse .nav-toggle span, body.hero-panel .nav-toggle span, body.hero-classic .nav-toggle span { background: #fff; }
}

.mdrawer { position: fixed; inset: 0; z-index: 300; }
.mdrawer-scrim { position: absolute; inset: 0; background: rgba(6, 18, 34, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.mdrawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); outline: 0;
  display: flex; flex-direction: column; background: #f6f9fc;
  border-radius: 24px 0 0 24px; overflow: hidden;
  box-shadow: -18px 0 50px rgba(6, 18, 34, .28);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.mdrawer.open .mdrawer-scrim { opacity: 1; }
.mdrawer.open .mdrawer-panel { transform: none; }
.md-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* head: brand band */
.mdrawer-head { position: relative; padding: 20px 18px 18px; color: #fff; overflow: hidden;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  background: linear-gradient(135deg, #0d9488 0%, #0b6bb2 70%, #4f46e5 130%); }
.mdrawer-head::after { content: ''; position: absolute; right: -60px; top: -70px; width: 190px; height: 190px; border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, .08); pointer-events: none; }
.mdrawer-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-size: 19px; font-weight: 800; max-width: calc(100% - 52px); }
.mdrawer-brand img { height: 38px; width: auto; max-width: 110px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.mdrawer-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdrawer-brand .brand-text span, .mdrawer-brand span span { color: #a7f3d0; }
.mdrawer-mark { font-size: 24px; }
.mdrawer-close { position: absolute; z-index: 1; right: 14px; top: calc(16px + env(safe-area-inset-top, 0px));
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mdrawer-close:active { transform: scale(.94); }
.mdrawer-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mdrawer-tag { position: relative; z-index: 1; margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* body */
.mdrawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px; }
/* the body scrolls; its blocks keep their full height instead of being squeezed to fit */
.mdrawer-body > * { flex-shrink: 0; }

.mdrawer-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mdrawer-tiles a { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 11px 10px; min-width: 0; line-height: 1.25;
  background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; color: var(--navy); font-weight: 700; font-size: 14.5px;
  box-shadow: 0 2px 8px rgba(15, 41, 66, .04); transition: transform .15s, border-color .15s; }
.mdrawer-tiles a:active { transform: scale(.97); }
.mdrawer-tiles i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; font-style: normal; }
.mdrawer-tiles .md-t1 i { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.mdrawer-tiles .md-t2 i { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.mdrawer-tiles .md-t3 i { background: linear-gradient(135deg, #fb7185, #e11d48); }
.mdrawer-tiles .md-t4 i { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.mdrawer-tiles a.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .14); }
/* small phones: a wider panel and a slimmer icon, so the longest label still fits */
@media (max-width: 380px) {
  .mdrawer-panel { width: 92vw; }
  .mdrawer-body { padding-left: 12px; padding-right: 12px; }
  .mdrawer-tiles { gap: 8px; }
  .mdrawer-tiles a { gap: 8px; padding: 10px 8px; font-size: 13.5px; }
  .mdrawer-tiles i { width: 32px; height: 32px; border-radius: 10px; }
  .mdrawer-tiles i .md-i { width: 17px; height: 17px; }
}

.mdrawer-dd { background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; overflow: hidden; }
.mdrawer-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 14px 14px; font-weight: 700; color: var(--navy); font-size: 15px; }
.mdrawer-dd > summary::-webkit-details-marker { display: none; }
.mdrawer-dd > summary span { flex: 1; }
.mdrawer-dd > summary small { background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: 12px;
  border-radius: 999px; padding: 2px 9px; }
.mdrawer-dd > summary .md-i { color: var(--muted); transition: transform .2s; }
.mdrawer-dd[open] > summary { border-bottom: 1px solid #edf2f7; }
.mdrawer-dd[open] > summary .md-i { transform: rotate(180deg); }
.mdrawer-dd-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.mdrawer-dd-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px;
  color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.mdrawer-dd-list a:active, .mdrawer-dd-list a:hover { background: var(--bg); }
.md-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; background: #f1f5f9; display: grid; place-items: center; font-size: 15px; }
.md-name { flex: 1; min-width: 0; }
.md-count { font-size: 11.5px; font-weight: 800; color: var(--primary-dark); background: var(--primary-light); border-radius: 999px; padding: 1px 8px; }
.mdrawer-dd-all { justify-content: center; margin-top: 4px; color: var(--primary-dark) !important; font-weight: 800 !important; background: #f0fdfa; }
.mdrawer-dd-all .md-i { width: 16px; height: 16px; }

.mdrawer-links { background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; padding: 4px; }
.mdrawer-links a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: 15px; }
.mdrawer-links a + a { border-top: 1px solid #f1f5f9; }
.mdrawer-links a span { flex: 1; }
.mdrawer-links a > .md-i:first-child { color: var(--primary); }
.mdrawer-links a > .md-i:last-child { width: 16px; height: 16px; color: #94a3b8; }
.mdrawer-links a:active, .mdrawer-links a:hover { background: var(--bg); }
.mdrawer-links a.is-active { color: var(--primary-dark); background: #f0fdfa; }

.mdrawer-cta { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; color: #0f2942;
  background: linear-gradient(135deg, #fde68a, #fbbf24); box-shadow: 0 8px 20px rgba(245, 158, 11, .28); }
.mdrawer-cta i { width: 38px; height: 38px; border-radius: 11px; background: #0f2942; color: #fde68a; display: grid; place-items: center; font-style: normal; flex: none; }
.mdrawer-cta span { flex: 1; min-width: 0; }
.mdrawer-cta strong { display: block; font-size: 15.5px; font-weight: 800; }
.mdrawer-cta small { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.mdrawer-cta > .md-i:last-child { width: 18px; height: 18px; }
.mdrawer-cta:active { transform: scale(.98); }

.mdrawer-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px;
  background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; }
.mdrawer-lang > span { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.mdrawer-lang div { display: inline-flex; padding: 3px; gap: 3px; background: #f1f5f9; border-radius: 999px; }
.mdrawer-lang a { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); }
.mdrawer-lang a.active { color: #fff; background: linear-gradient(135deg, var(--primary), #0369a1); box-shadow: 0 3px 10px rgba(13, 148, 136, .3); }

html.lang-bn .mdrawer-tiles a, html.lang-bn .mdrawer-links a { font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .mdrawer-scrim, .mdrawer-panel { transition: none; }
}

