/* ==========================================================================
   مستشفى بن سينا التعليمي — سرت
   نظام التصميم: كحلي المؤسسة + تركوازي ساحل سرت + أحمر الطوارئ فقط للطوارئ
   ========================================================================== */
:root {
  --ink: #13283b;
  --ink-2: #47596a;
  --navy: #0b3550;
  --navy-2: #0f4466;
  --teal: #0e7c7b;
  --teal-d: #0a6261;
  --teal-l: #e3f2f1;
  --mist: #eef4f5;
  --line: #d7e3e6;
  --white: #fff;
  --red: #c62828;
  --gold: #9a7128;
  --gold-l: #f5eedf;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --f-body: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --f-head: "Kufi", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --bs-primary: var(--teal);
  --bs-primary-rgb: 14, 124, 123;
  --bs-link-color: var(--teal-d);
  --bs-link-color-rgb: 10, 98, 97;
  --bs-link-hover-color: var(--navy);
  --bs-body-font-family: var(--f-body);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { font-family: var(--f-body); color: var(--ink); background: var(--white); font-size: 1.0625rem; line-height: 1.8; }
body.ltr { line-height: 1.65; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); color: var(--navy); line-height: 1.45; font-weight: 700; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--teal); color: #fff; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 2000; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: var(--r-s); }
.skip-link:focus { top: .5rem; }

/* ---------- أزرار ---------- */
.btn { font-weight: 600; border-radius: var(--r-s); display: inline-flex; align-items: center; gap: .45rem; }
.btn-primary { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal-d); --bs-btn-hover-border-color: var(--teal-d); --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); --bs-btn-disabled-bg: var(--teal); --bs-btn-disabled-border-color: var(--teal); }
.btn-outline-primary { --bs-btn-color: var(--teal-d); --bs-btn-border-color: var(--teal); --bs-btn-hover-bg: var(--teal); --bs-btn-hover-border-color: var(--teal); --bs-btn-active-bg: var(--teal-d); --bs-btn-active-border-color: var(--teal-d); }
.btn-lg { font-size: 1rem; padding: .75rem 1.25rem; }
.btn-icon { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.2rem; padding: 0; }
.btn-icon:hover { background: var(--mist); }

/* ---------- شريط الطوارئ ---------- */
.er-strip { background: var(--red); color: #fff; font-size: .9rem; }
.er-strip .container { min-height: 40px; }
.er-strip a { color: #fff; text-decoration: none; }
.er-call { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.er-call:hover { color: #fff; text-decoration: underline; }
.er-num { font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.16); padding: 0 .55rem; border-radius: 4px; }
.er-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: erPulse 2s infinite; }
@keyframes erPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.er-tools a { opacity: .92; }
.er-tools a:hover { opacity: 1; }
.lang-switch { font-weight: 600; }
@media (max-width: 575.98px) { .er-label { display: none; } }

/* ---------- الرأس ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-inline-end: 1.5rem; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--f-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.brand-city { color: var(--teal-d); font-size: .85rem; font-weight: 600; }
.main-nav .nav-link { color: var(--ink); font-weight: 600; font-size: .95rem; padding: .6rem .7rem !important; border-radius: var(--r-s); }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--teal-d); background: var(--mist); }
.main-nav .nav-link.active { color: var(--teal-d); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(11,53,80,.12); padding: .5rem; font-size: .95rem; }
.dropdown-item { border-radius: var(--r-s); padding: .5rem .75rem; white-space: normal; }
.dropdown-item.sub { padding-inline-start: 1.6rem; font-size: .88rem; color: var(--ink-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--teal-l); color: var(--teal-d); }
.dropdown-item .bi { color: var(--teal); }

@media (min-width: 1200px) {
  .dropdown-mega { position: static; }
  .dropdown-menu.mega { inset-inline: 0; width: min(1100px, calc(100% - 2rem)); margin-inline: auto; padding: 1.5rem; }
  .main-nav .dropdown-menu:not(.mega) { min-width: 260px; }
}
.mega-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.mega-grid.even { grid-template-columns: 1fr 1fr; }
@media (min-width: 1200px) { .dropdown-menu.mega.mega-sm { width: min(760px, calc(100% - 2rem)); } }
.brand-name, .main-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .main-nav .nav-link { font-size: .9rem; padding: .55rem .5rem !important; }
  .brand { margin-inline-end: .75rem; }
  .brand-name { font-size: .98rem; }
}
.mega-h { font-size: .85rem; color: var(--ink-2); font-weight: 700; margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.mega-list { list-style: none; padding: 0; margin: 0; }
.mega-list.cols-2 { columns: 2; column-gap: 1.5rem; }
.mega-list a { display: flex; gap: .6rem; align-items: center; padding: .35rem .4rem; color: var(--ink); text-decoration: none; border-radius: var(--r-s); break-inside: avoid; }
.mega-list a:hover { background: var(--teal-l); color: var(--teal-d); }
.mega-list .bi { color: var(--teal); width: 1.2em; }
.mega-foot { display: flex; gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mega-foot a { font-weight: 700; text-decoration: none; }

@media (max-width: 1199.98px) {
  /* قائمة الموبايل: ارتفاع الشاشة الفعلي + تمرير لمسي مستقل عن الصفحة */
  .offcanvas-xl { height: 100vh; height: 100dvh; max-height: 100dvh; }
  .offcanvas-xl .offcanvas-header { flex-shrink: 0; }
  .offcanvas-xl .offcanvas-body { padding-top: 0; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
  /* أثناء فتح القائمة يخرج الهيدر من وضع sticky حتى لا يحبس القائمة (مشكلة Safari/iOS) */
  html.nav-open .site-header { position: static; z-index: auto; }
  .main-nav .nav-link { padding: .75rem .5rem !important; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-link.active { box-shadow: none; }
  .dropdown-menu { box-shadow: none; border: 0; padding: 0 .5rem .5rem; }
  .mega-grid { grid-template-columns: 1fr; gap: 1rem; }
  .mega-list.cols-2 { columns: 1; }
  .mega-foot { flex-direction: column; gap: .5rem; }
  .brand-name { font-size: .95rem; }
  .brand img { width: 44px; height: 44px; }
}

.search-modal { border-radius: var(--r-l); border: 0; }

/* ---------- البطل ---------- */
.hero { padding: 3.5rem 0 3rem; background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); }
.hero-title { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 800; line-height: 1.35; margin-bottom: 1rem; max-width: 18ch; }
body.ltr .hero-title { max-width: 22ch; }
.hero-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.hero-visual { position: relative; padding-bottom: 7rem; }
.hero-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-l); display: block; background: var(--line); }
.task-panel { position: absolute; inset-inline-start: -1.5rem; bottom: 0; width: min(390px, 92%); background: #fff; border-radius: var(--r-l); box-shadow: 0 18px 48px rgba(11,53,80,.18); padding: 1.1rem 1.1rem .6rem; border-top: 4px solid var(--teal); }
.task-h { font-size: 1.02rem; margin: 0 0 .5rem; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li + li { border-top: 1px solid var(--line); }
.task-list a { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; text-decoration: none; color: var(--ink); }
.task-list a:hover .task-txt strong { color: var(--teal-d); text-decoration: underline; }
.task-ic { flex: 0 0 42px; height: 42px; border-radius: var(--r-m); background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; font-size: 1.2rem; }
.task-txt { display: flex; flex-direction: column; line-height: 1.45; flex: 1; }
.task-txt strong { font-size: .98rem; }
.task-txt small { color: var(--ink-2); font-size: .82rem; }
.task-go { color: var(--teal); }
@media (max-width: 991.98px) {
  .hero { padding-top: 2rem; }
  .hero-visual { padding-bottom: 0; }
  .task-panel { position: relative; inset: auto; width: auto; margin: -2.5rem 1rem 0; }
}

/* ---------- الأرقام ---------- */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.facts-list li { padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .1rem; border-inline-start: 1px solid var(--line); }
.facts-list li:first-child { border-inline-start: 0; }
.facts-list strong { font-family: var(--f-head); font-size: 1.75rem; color: var(--navy); font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.facts-list span { color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
@media (max-width: 991.98px) {
  .facts-list { grid-template-columns: repeat(3, 1fr); }
  .facts-list li:nth-child(4) { border-inline-start: 0; }
  .facts-list li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list li { border-inline-start: 0 !important; border-top: 1px solid var(--line); padding: .9rem .5rem; }
  .facts-list li:nth-child(even) { border-inline-start: 1px solid var(--line) !important; padding-inline-start: 1rem; }
  .facts-list li:nth-child(-n+2) { border-top: 0; }
  .facts-list strong { font-size: 1.4rem; }
}

/* ---------- دليل الأقسام (لوحة إرشاد) ---------- */
.directory { background: var(--navy); color: #d5e2ea; padding: 4rem 0; }
.dir-head { max-width: 60ch; margin-bottom: 2.25rem; }
.dir-head p { color: #b8cbd8; margin: 0; }
.sec-title.light { color: #fff; }
.dir-col-h { color: #8fd3cf; font-size: .95rem; font-weight: 700; padding-bottom: .6rem; margin-bottom: .25rem; border-bottom: 2px solid rgba(143,211,207,.35); }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list.two { columns: 2; column-gap: 2rem; }
@media (max-width: 575.98px) { .dir-list.two { columns: 1; } }
.dir-list li { break-inside: avoid; border-bottom: 1px solid rgba(255,255,255,.09); }
.dir-list a { display: flex; align-items: center; gap: .85rem; padding: .7rem 0; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.dir-ic { flex: 0 0 36px; height: 36px; border-radius: var(--r-s); background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.05rem; transition: background .15s; }
.dir-list a:hover { color: #8fd3cf; }
.dir-list a:hover .dir-ic { background: #fff; color: var(--navy); }

/* ---------- أقسام عامة ---------- */
.sec { padding: 4rem 0; }
.sec-mist { background: var(--mist); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.sec-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; margin: 0 0 1rem; }
.sec-head .sec-title { margin: 0; }
.sec-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }

/* ---------- الأخبار ---------- */
.news-lead { display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.news-lead-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--mist); }
.news-lead-body { padding: 1.25rem 1.5rem 1.5rem; }
.news-lead h3 { font-size: 1.35rem; margin: .3rem 0 .6rem; }
.news-lead h3 a { color: var(--navy); text-decoration: none; }
.news-lead h3 a:hover { color: var(--teal-d); text-decoration: underline; }
.news-lead p { color: var(--ink-2); margin: 0; }
time { color: var(--teal-d); font-size: .85rem; font-weight: 600; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { display: flex; gap: 1rem; padding: .9rem 0; text-decoration: none; color: var(--ink); align-items: flex-start; }
.news-list li:first-child a { padding-top: 0; }
.news-list img { flex: 0 0 120px; width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-m); background: var(--mist); }
.news-list span { display: flex; flex-direction: column; gap: .2rem; }
.news-list strong { font-weight: 600; line-height: 1.55; font-size: 1rem; }
.news-list a:hover strong { color: var(--teal-d); text-decoration: underline; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--mist); }
.news-card .nc-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.news-card h2, .news-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.6; color: var(--navy); }
.news-card p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.news-card:hover { border-color: var(--teal); }
.news-card:hover h2, .news-card:hover h3 { color: var(--teal-d); text-decoration: underline; }

/* ---------- عن المستشفى + كلمة المدير ---------- */
.prose { font-size: 1.06rem; }
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.prose img { border-radius: var(--r-m); margin: .5rem 0; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--teal); }
.prose table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .75rem; }
.prose a { word-break: break-word; }
.prose iframe { max-width: 100%; }
.clamp-prose { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

.director { background: #fff; border-radius: var(--r-l); padding: 1.75rem; border: 1px solid var(--line); display: grid; grid-template-columns: 112px 1fr; gap: 0 1.25rem; margin: 0; }
.director img { width: 112px; height: 140px; object-fit: cover; border-radius: var(--r-m); grid-row: span 2; background: var(--mist); }
.director blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); position: relative; }
.director blockquote p { margin: 0; }
.director figcaption { display: flex; flex-direction: column; margin-top: .9rem; line-height: 1.5; }
.director figcaption strong { color: var(--navy); font-family: var(--f-head); }
.director figcaption span { color: var(--ink-2); font-size: .9rem; }
.director figcaption a { font-weight: 700; font-size: .92rem; margin-top: .35rem; }
@media (max-width: 575.98px) { .director { grid-template-columns: 1fr; } .director img { grid-row: auto; margin-bottom: 1rem; } }

.vmv { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.25rem; border-top: 2px solid var(--navy); }
.vmv > div { padding: 1.5rem 1.5rem 0 0; }
body.rtl .vmv > div { padding: 1.5rem 0 0 1.5rem; }
.vmv > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 1.5rem; }
.vmv h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.vmv p { color: var(--ink-2); margin: 0; }
.vmv ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.vmv li { padding: .15rem 0; }
.vmv li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-inline-end: .55rem; vertical-align: middle; }
@media (max-width: 767.98px) {
  .vmv { grid-template-columns: 1fr; }
  .vmv > div, body.rtl .vmv > div { padding: 1.25rem 0 0; }
  .vmv > div + div { border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 1.25rem; padding-inline-start: 0; }
}

/* ---------- الخدمات الإلكترونية ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.svc-grid a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto auto; column-gap: .9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); height: 100%; background: #fff; }
.svc-ic { grid-row: span 3; width: 48px; height: 48px; border-radius: var(--r-m); background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; font-size: 1.35rem; }
.svc-t { font-weight: 700; color: var(--navy); line-height: 1.5; }
.svc-s { color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.svc-b { color: var(--teal-d); font-weight: 700; font-size: .88rem; margin-top: .35rem; }
.svc-grid a:hover { border-color: var(--teal); background: var(--teal-l); }
.svc-grid a:hover .svc-b { text-decoration: underline; }

/* ---------- المؤتمرات (طابع أكاديمي) ---------- */
.sec-academic { background: var(--gold-l); }
.sec-academic .sec-title { color: #4a3510; }
.sec-academic .sec-more { color: var(--gold); }
.conf-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--gold); }
.conf-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eadfc7; }
.conf-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.conf-body strong { color: #3d2c0d; line-height: 1.6; font-family: var(--f-head); font-weight: 700; font-size: 1rem; }
.conf-body small { color: var(--gold); font-weight: 600; }
.conf-card:hover strong { text-decoration: underline; }

/* ---------- معرض الصور ---------- */
.album-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
@media (max-width: 991.98px) { .album-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .album-strip { grid-template-columns: repeat(2, 1fr); } }
.album-tile { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 1; background: var(--mist); text-decoration: none; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-tile span { position: absolute; inset: auto 0 0 0; padding: 2rem .75rem .65rem; background: linear-gradient(180deg, transparent, rgba(8,32,48,.85)); color: #fff; display: flex; flex-direction: column; line-height: 1.4; }
.album-tile strong { font-size: .92rem; }
.album-tile small { opacity: .85; font-size: .8rem; }
.album-tile:hover img { transform: scale(1.04); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.album-grid .album-tile { aspect-ratio: 4/3; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.photo-grid a { display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--mist); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photo-grid a:hover img { transform: scale(1.05); }

/* ---------- حقوق المريض + الاستبيان ---------- */
.rights-tabs .nav-link { color: var(--ink); font-weight: 700; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; margin-inline-end: .5rem; }
.rights-tabs .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.rights-body { background: #fff; border-radius: var(--r-l); padding: 1.5rem 1.75rem; border: 1px solid var(--line); }
.rights-body ul { margin: 0; }
.poll { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; }
.poll-h { font-size: 1.15rem; margin-bottom: .25rem; }
.poll-q { color: var(--ink-2); }
.poll .form-check { padding: .55rem .75rem .55rem; padding-inline-start: 2.2rem; border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: .5rem; }
.poll .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.poll-results { list-style: none; padding: 0; margin: 0; }
.poll-results li { margin-bottom: .75rem; }
.poll-bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; margin-top: .25rem; }
.poll-bar span { display: block; height: 100%; background: var(--teal); }
.poll-total { color: var(--ink-2); font-size: .88rem; margin: 0; }
.poll-msg { background: var(--teal-l); color: var(--teal-d); padding: .5rem .75rem; border-radius: var(--r-s); font-weight: 600; }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-head { background: var(--mist); padding: 2.25rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); font-weight: 800; margin: .25rem 0 0; display: flex; align-items: center; gap: .85rem; }
.page-head .ph-ic { flex: 0 0 52px; height: 52px; border-radius: var(--r-m); background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.page-head .lead { color: var(--ink-2); margin: .6rem 0 0; font-size: 1.08rem; max-width: 70ch; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline-end: .35rem; color: #9fb2bd; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal-d); text-decoration: underline; }
.page-body { padding: 2.75rem 0 4rem; }

.side-box { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.25rem; background: #fff; }
.side-box + .side-box { margin-top: 1.25rem; }
.side-box h2 { font-size: 1rem; margin-bottom: .75rem; color: var(--ink-2); }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; text-decoration: none; color: var(--ink); border-radius: var(--r-s); line-height: 1.5; }
.side-nav a .bi { color: var(--teal); }
.side-nav a:hover { background: var(--mist); color: var(--teal-d); }
.side-nav a.active { background: var(--teal-l); color: var(--teal-d); font-weight: 700; }
@media (min-width: 992px) { .sticky-side { position: sticky; top: 100px; } }

.page-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-l); background: var(--mist); }
.page-figure { margin-bottom: 2rem; }
.empty-note { background: var(--mist); border-radius: var(--r-m); padding: 1.25rem; color: var(--ink-2); }

/* ---------- الأطباء ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.doc-card { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.doc-card .doc-photo { aspect-ratio: 4/4.4; background: var(--mist); overflow: hidden; }
.doc-card .doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-card .doc-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.doc-card h2, .doc-card h3 { font-size: 1.02rem; margin: 0; color: var(--navy); }
.doc-pos { color: var(--ink); font-size: .9rem; line-height: 1.55; }
.doc-grade { color: var(--teal-d); font-size: .86rem; font-weight: 600; }
.doc-dept { font-size: .84rem; color: var(--ink-2); text-decoration: none; }
.doc-card .btn { margin-top: auto; align-self: flex-start; }
.doc-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.doc-filter .form-select, .doc-filter .form-control { max-width: 320px; }

/* ---------- المقال ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--ink-2); font-size: .92rem; margin-top: .6rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article-cover { border-radius: var(--r-l); width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 1.75rem; background: var(--mist); }
.article-body { max-width: 72ch; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share a, .share button { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); background: #fff; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- صفحة المؤتمر ---------- */
.conf-hero { background: var(--gold-l); border-bottom: 1px solid #e6d8b8; }
.conf-hero h1 { color: #3d2c0d; }
.conf-hero .crumbs a, .conf-hero .crumbs { color: #6b5428; }

/* ---------- التواصل ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list .bi { flex: 0 0 40px; height: 40px; border-radius: var(--r-s); background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; font-size: 1.1rem; }
.contact-list strong { display: block; color: var(--navy); font-size: .92rem; }
.contact-list li.er .bi { background: #fdecec; color: var(--red); }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--r-l); background: var(--mist); }
.form-control, .form-select { border-radius: var(--r-s); padding: .65rem .85rem; border-color: #c4d4d9; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(14,124,123,.18); }
.form-label { font-weight: 600; font-size: .95rem; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- الترقيم ---------- */
.pager { margin-top: 2.5rem; }
.pagination { --bs-pagination-color: var(--teal-d); --bs-pagination-active-bg: var(--navy); --bs-pagination-active-border-color: var(--navy); --bs-pagination-hover-color: var(--navy); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(14,124,123,.25); gap: .25rem; }
.page-link { border-radius: var(--r-s) !important; }

/* ---------- التذييل ---------- */
.site-footer { background: #082a40; color: #b7c9d5; padding: 3.5rem 0 0; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #e2edf3; text-decoration: none; }
.site-footer a:hover { color: #8fd3cf; text-decoration: underline; }
.f-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.f-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: var(--r-m); padding: 4px; }
.f-name { font-family: var(--f-head); font-weight: 800; color: #fff; line-height: 1.4; }
.f-city { color: #8fd3cf; font-size: .88rem; }
.f-about { line-height: 1.8; }
.f-social { display: inline-flex; gap: .45rem; align-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-s); padding: .35rem .8rem; }
.f-h { color: #fff; font-size: .98rem; margin-bottom: .9rem; }
.f-contact, .f-links { list-style: none; padding: 0; margin: 0; }
.f-contact li { display: flex; gap: .65rem; margin-bottom: .7rem; line-height: 1.6; }
.f-contact .bi { color: #8fd3cf; margin-top: .2rem; }
.f-links li { margin-bottom: .45rem; }
.f-visits { display: flex; gap: 1.25rem; margin: 0; }
.f-visits dt { font-weight: 400; font-size: .82rem; color: #8ea7b6; }
.f-visits dd { margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.1rem 0; font-size: .85rem; color: #8ea7b6; }

.to-top { position: fixed; inset-inline-end: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--teal); color: #fff; }

img.img-missing { object-fit: contain !important; background: var(--mist); }

@media print {
  .er-strip, .site-header, .site-footer, .to-top, .share, .side-box { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- دليل الأقسام (صفحة) ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.dept-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); background: #fff; height: 100%; }
.dept-ic { flex: 0 0 46px; height: 46px; border-radius: var(--r-m); background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.25rem; }
.dept-txt { display: flex; flex-direction: column; gap: .2rem; }
.dept-txt strong { color: var(--navy); font-family: var(--f-head); font-weight: 700; line-height: 1.5; }
.dept-txt small { color: var(--ink-2); font-size: .88rem; line-height: 1.6; }
.dept-card:hover { border-color: var(--teal); }
.dept-card:hover .dept-ic { background: var(--teal); }
.dept-card:hover strong { text-decoration: underline; }

/* ---------- خط زمني للمؤتمر (الأخبار مرتبة زمنياً فعلاً) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; inset-block: .5rem; inset-inline-start: 7px; width: 2px; background: #e2d3b2; }
.timeline li { position: relative; padding-inline-start: 2.25rem; padding-bottom: 1.75rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline time { color: var(--gold); display: block; margin-bottom: .4rem; }
.tl-card { display: flex; gap: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); background: #fff; }
.tl-card img { flex: 0 0 150px; width: 150px; height: 105px; object-fit: cover; border-radius: var(--r-s); background: var(--mist); }
.tl-card span { display: flex; flex-direction: column; gap: .3rem; }
.tl-card strong { color: var(--navy); line-height: 1.6; }
.tl-card small { color: var(--ink-2); line-height: 1.6; }
.tl-card:hover { border-color: var(--gold); }
.tl-card:hover strong { text-decoration: underline; }
@media (max-width: 575.98px) { .tl-card { flex-direction: column; } .tl-card img { width: 100%; height: auto; aspect-ratio: 16/9; flex: none; } }
.article-title { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.1rem) !important; max-width: 40ch; }

/* ---------- صفحة عن المستشفى ---------- */
.facts-list.mini { grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--r-m); }
.facts-list.mini li { padding: .9rem 1rem; border-inline-start: 0; }
.facts-list.mini li:nth-child(even) { border-inline-start: 1px solid var(--line) !important; }
.facts-list.mini li:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts-list.mini strong { font-size: 1.4rem; }
.director-full { grid-template-columns: 200px 1fr; gap: 2rem; padding: 2rem; scroll-margin-top: 110px; }
.director-full img { width: 200px; height: 250px; grid-row: auto; }
@media (max-width: 767.98px) { .director-full { grid-template-columns: 1fr; } }
.text-navy { color: var(--navy); }
#vision, #rights { scroll-margin-top: 110px; }

/* رأس الجوال: الشعار والأزرار في سطر واحد */
@media (max-width: 1199.98px) {
  .site-header .navbar > .container { flex-wrap: nowrap; gap: .5rem; }
  .brand { min-width: 0; flex: 1 1 auto; margin-inline-end: 0; }
  .brand-text { min-width: 0; }
  .brand-name { white-space: normal; line-height: 1.35; }
}
@media (max-width: 400px) {
  .brand-name { font-size: .86rem; }
  .brand img { width: 40px; height: 40px; }
  .btn-icon { width: 40px; height: 40px; }
}

/* محتوى عربي داخل النسخة الإنجليزية */
.ltr [dir="rtl"][lang="ar"] { font-family: var(--f-body); text-align: right; line-height: 1.85; }
.ar-note { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--mist); border-inline-start: 3px solid var(--teal); padding: .6rem .9rem; border-radius: var(--r-s); font-size: .92rem; color: var(--ink-2); }
.ar-note a { font-weight: 600; }

/* ---------- حجز العيادات ---------- */
.btn-book { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; border-radius: 999px; padding: .45rem 1rem; white-space: nowrap; }
@media (max-width: 575.98px) { .btn-book span { display: none; } .btn-book { width: 42px; height: 42px; padding: 0; justify-content: center; } }
.bk-ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--r-m); background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; font-size: 1.35rem; }
.bk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.bk-how { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-2); font-size: .95rem; }
.bk-how li { display: flex; align-items: center; gap: .5rem; }
.bk-how span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.bk-clinic { margin-bottom: 2.5rem; scroll-margin-top: 110px; }
.bk-clinic-h { display: flex; align-items: center; gap: .9rem; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 2px solid var(--line); }
.bk-clinic-h h2 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 0; }
.bk-clinic-h p { margin: .15rem 0 0; color: var(--ink-2); font-size: .92rem; }
.bk-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.1rem; }
.bk-doc { border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; overflow: hidden; scroll-margin-top: 110px; display: flex; flex-direction: column; }
.bk-doc:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
.bk-doc-h { padding: 1.1rem 1.2rem .9rem; }
.bk-doc-h h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin: 0; }
.bk-doc-h > p { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; }
.bk-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .6rem; font-size: .88rem; color: var(--teal-d); font-weight: 600; }
.bk-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.bk-note { margin: .6rem 0 0; font-size: .86rem; color: var(--gold); }
.bk-days { flex: 1; align-content: start; list-style: none; margin: 0; padding: .9rem 1.2rem 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .55rem; background: var(--mist); border-top: 1px solid var(--line); }
.bk-days li > a, .bk-days li > div { display: flex; flex-direction: column; gap: .05rem; padding: .6rem .7rem; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.bk-dn { font-weight: 700; font-size: .92rem; }
.bk-dd { font-size: .82rem; color: var(--ink-2); }
.bk-ds { font-size: .8rem; font-weight: 600; margin-top: .25rem; }
.bk-dr { font-size: .75rem; color: var(--ink-2); line-height: 1.5; }
.bk-go { font-size: .82rem; font-weight: 700; color: var(--teal-d); margin-top: .2rem; display: flex; align-items: center; gap: .3rem; }
.bk-days .is-available .bk-ds { color: #1b7a43; }
.bk-days .is-available a:hover { border-color: var(--teal); background: var(--teal-l); }
.bk-days .is-available a:hover .bk-go { text-decoration: underline; }
.bk-days .is-full > div { background: #f6f6f6; color: #7a8790; }
.bk-days .is-full .bk-ds { color: var(--red); }
.bk-days .is-absent > div { background: #fff8e6; border-color: #f0dca6; }
.bk-days .is-absent .bk-ds { color: #8a5a00; }
.bk-days .bk-empty { grid-column: 1 / -1; color: var(--ink-2); font-size: .92rem; }
.bk-summary { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.25rem; background: var(--mist); position: sticky; top: 100px; }
.bk-sum-doc { display: flex; gap: .85rem; align-items: center; margin-bottom: 1rem; }
.bk-sum-doc strong { display: block; font-size: 1.08rem; color: var(--navy); }
.bk-sum-doc small { color: var(--ink-2); }
.bk-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; }
.bk-summary dt { color: var(--ink-2); font-weight: 500; }
.bk-summary dd { margin: 0; font-weight: 700; }
.bk-form .form-control-lg { font-size: 1.05rem; }
.bk-ticket { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 10px 30px rgba(11, 53, 80, .08); }
.bk-t-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; background: var(--navy); color: #fff; }
.bk-t-head img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.bk-t-head strong { display: block; font-size: 1rem; }
.bk-t-head small { opacity: .8; }
.bk-t-status { margin-inline-start: auto; background: #2fb36d; color: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.bk-ticket.is-cancelled .bk-t-status { background: var(--red); }
.bk-ticket.is-examined .bk-t-status { background: #6c7a86; }
.bk-t-num { text-align: center; padding: 1.4rem 1rem 1.2rem; border-bottom: 2px dashed var(--line); }
.bk-t-num small { display: block; color: var(--ink-2); font-weight: 600; }
.bk-t-num b { display: block; font-size: 4.2rem; line-height: 1.1; color: var(--teal-d); font-family: var(--f-head); }
.bk-t-num span { color: var(--ink-2); }
.bk-t-num strong { color: var(--ink); font-size: 1.15rem; }
.bk-ticket.is-cancelled .bk-t-num b { color: #b9c3ca; text-decoration: line-through; }
.bk-t-body { margin: 0; padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.bk-t-body div:first-child { grid-column: 1 / -1; }
.bk-t-body dt { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.bk-t-body dd { margin: 0; font-weight: 700; }
.bk-code { letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; }
.bk-t-note { margin: 0; padding: .9rem 1.25rem; background: var(--gold-l); color: #5f4716; font-size: .9rem; display: flex; gap: .5rem; }
.bk-lookup { max-width: 560px; }
.bk-mylist { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 860px; }
.bk-mylist li { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.bk-mylist li.is-cancelled { opacity: .65; }
.bk-my-n { text-align: center; background: var(--teal-l); border-radius: var(--r-m); padding: .5rem; }
.bk-my-n small { display: block; font-size: .72rem; color: var(--ink-2); }
.bk-my-n b { font-size: 1.7rem; color: var(--teal-d); line-height: 1.2; }
.bk-my-b { display: flex; flex-direction: column; gap: .15rem; }
.bk-my-b strong { color: var(--navy); }
.bk-my-a { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; }
.bk-badge { text-align: center; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #e3f5ea; color: #1b7a43; }
.bk-badge.is-cancelled { background: #fde8e8; color: var(--red); }
.bk-badge.is-examined { background: #eceff1; color: #4b5a66; }
@media (max-width: 575.98px) { .bk-mylist li { grid-template-columns: 64px 1fr; } .bk-my-a { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
.doc-book { margin-top: 1rem; }
@media print {
  .no-print, .page-head { display: none !important; }
  .page-body { padding: 0 !important; }
  .bk-ticket { box-shadow: none; border-color: #999; }
  .bk-t-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.side-book { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: var(--r-l); background: var(--teal); color: #fff; text-decoration: none; font-size: 1.5rem; }
.side-book span { display: flex; flex-direction: column; font-size: 1rem; }
.side-book small { opacity: .85; font-size: .85rem; }
.side-book:hover { background: var(--teal-d); color: #fff; }
/* ---------- حجز الرنين ---------- */
.mri-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
.mri-steps li { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; font-weight: 500; }
.mri-steps span { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mri-token-box { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; background: var(--mist); }
.mri-token-input { font-size: 1.8rem !important; letter-spacing: .35em; text-align: center; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.mri-token-input::placeholder { letter-spacing: .2em; color: #b5c3ca; }
.bk-t-num b.mri-date { font-size: 2.2rem; line-height: 1.4; }
.bk-t-note.mri-prep { background: #fff3cd; border-bottom: 1px solid #f1e0b0; }
.bk-my-n.mri { display: flex; flex-direction: column; align-items: center; gap: .1rem; color: var(--teal-d); font-size: 1.4rem; }
.bk-my-n.mri small { font-size: .68rem; }
/* ---------- الشكاوى والملاحظات ---------- */
.cp-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
@media (max-width: 575.98px) { .cp-kinds { grid-template-columns: repeat(2, 1fr); } }
.cp-kind { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .5rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: pointer; font-weight: 600; text-align: center; color: var(--ink-2); }
.cp-kind .bi { font-size: 1.4rem; color: var(--teal); }
.btn-check:checked + .cp-kind { border-color: var(--teal); background: var(--teal-l); color: var(--navy); box-shadow: 0 0 0 2px var(--teal) inset; }
.btn-check:focus-visible + .cp-kind { outline: 3px solid #f2b705; outline-offset: 2px; }
.cp-done { text-align: center; border: 1px solid var(--line); border-radius: var(--r-l); padding: 2rem 1.25rem; background: #fff; }
.cp-done-ic { font-size: 3rem; color: #1b7a43; }
.cp-done h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: .5rem 0 1rem; }
.cp-done p { margin: 0 0 .25rem; color: var(--ink-2); }
.cp-ref { display: inline-block; font-size: 2.2rem; letter-spacing: .18em; font-family: ui-monospace, Consolas, monospace; color: var(--teal-d); background: var(--teal-l); border: 2px dashed var(--teal); border-radius: var(--r-m); padding: .3rem 1rem; margin: .25rem 0 .75rem; }
.cp-track { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.cp-track dt { color: var(--ink-2); font-weight: 500; }
.cp-track dd { margin: 0; font-weight: 700; }
.cp-st { font-size: .82rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: #eceff1; color: #4b5a66; }
.cp-st.st-new { background: #e3edf9; color: #1d4f8c; }
.cp-st.st-progress { background: #fff1d6; color: #8a5a00; }
.cp-st.st-referred { background: #efe5fb; color: #5b2f99; }
.cp-st.st-closed { background: #e1f4ea; color: #146c3b; }
.cp-reply { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-m); background: var(--mist); border-inline-start: 3px solid var(--teal); }
.cp-reply p { margin: .4rem 0 0; line-height: 1.9; }
/* ---------- التبرع بالدم ---------- */
.bd-head .ph-ic { background: #c62828; }
.bd-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.bd-cta { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; text-decoration: none; color: var(--ink); font-size: 1.6rem; }
.bd-cta .bi { color: #c62828; }
.bd-cta span { display: flex; flex-direction: column; font-size: 1rem; }
.bd-cta strong { color: var(--navy); }
.bd-cta small { color: var(--ink-2); font-size: .85rem; line-height: 1.5; }
.bd-cta.main { background: #c62828; border-color: #c62828; color: #fff; }
.bd-cta.main .bi, .bd-cta.main strong, .bd-cta.main small { color: #fff; }
.bd-cta:hover { border-color: #c62828; box-shadow: 0 6px 18px rgba(198, 40, 40, .12); }
.bd-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: .6rem; }
@media (max-width: 991.98px) { .bd-types { grid-template-columns: repeat(4, 1fr); } }
.bd-types a { display: flex; flex-direction: column; align-items: center; padding: .8rem .3rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; text-decoration: none; color: var(--ink); }
.bd-types b { font-size: 1.15rem; color: #c62828; font-family: var(--f-head); }
.bd-types span { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.bd-types small { font-size: .7rem; color: var(--ink-2); text-align: center; }
.bd-types a:hover, .bd-types a.on { border-color: #c62828; background: #fdecec; }
.bd-search { background: var(--mist); border-radius: var(--r-l); padding: 1rem; margin: 0; }
.bd-res-head { margin: 1.25rem 0 .75rem; }
.bd-res-head p { margin: .25rem 0 0; color: var(--ink-2); font-size: .92rem; }
.bd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bd-list li { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.bd-list form { margin-inline-start: auto; }
.bd-list .btn-success { margin-inline-start: auto; }
.bd-who { display: flex; flex-direction: column; }
.bd-who small { color: var(--ink-2); }
.bd-drop { flex: 0 0 auto; min-width: 48px; height: 48px; padding: 0 .3rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #c62828; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.bd-drop.sm { min-width: 38px; height: 38px; font-size: .8rem; }
.bd-drop.lg { min-width: 64px; height: 64px; font-size: 1.25rem; }
.bd-urgent h2 { color: #c62828 !important; }
.bd-urgent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bd-urgent li { display: flex; gap: .7rem; align-items: center; padding: .55rem .6rem; border-radius: var(--r-m); background: #fff8f8; border: 1px solid #f6d6d6; }
.bd-urgent li span:last-child { display: flex; flex-direction: column; font-size: .9rem; }
.bd-urgent li small { color: var(--ink-2); }
.bd-urgent li.u-critical { background: #fdecec; border-color: #c62828; }
.bd-why { margin: 0 0 .75rem; padding-inline-start: 1.1rem; line-height: 1.9; }
.bd-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: .45rem; }
@media (max-width: 575.98px) { .bd-pick { grid-template-columns: repeat(4, 1fr); } }
.bd-pick label { display: grid; place-items: center; height: 52px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; font-weight: 800; font-size: 1.1rem; color: #c62828; cursor: pointer; }
.btn-check:checked + .bd-pick label, .bd-pick .btn-check:checked + label { background: #c62828; color: #fff; border-color: #c62828; }
.bd-pick .btn-check:focus-visible + label { outline: 3px solid #f2b705; outline-offset: 2px; }
.bd-consent { background: var(--mist); border-radius: var(--r-m); padding: .75rem .9rem .75rem 2.6rem; }
[dir=rtl] .bd-consent { padding: .75rem 2.6rem .75rem .9rem; }
.bd-me-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.bd-me-card strong { font-size: 1.15rem; color: var(--navy); }
/* ---------- الأطباء الزوار ---------- */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.vd-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; overflow: hidden; scroll-margin-top: 110px; }
.vd-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
.vd-photo { aspect-ratio: 4 / 3.2; background: var(--mist); display: grid; place-items: center; color: #b5c3ca; font-size: 4rem; overflow: hidden; }
.vd-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vd-card.single .vd-photo { aspect-ratio: 4 / 3.4; }
.vd-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.vd-body h2 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0; }
.vd-spec { color: var(--ink-2); margin: 0; font-size: .93rem; line-height: 1.6; }
.vd-dates { display: flex; gap: .5rem; align-items: flex-start; background: var(--teal-l); color: var(--teal-d); border-radius: var(--r-m); padding: .55rem .75rem; font-size: .9rem; margin-top: .35rem; }
.vd-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.vd-foot .btn { margin-inline-start: auto; }
