/* ==============================================================
   مركز أبكار الطبي — نظام التصميم الموحد الحديث v3.0
   مستوحى من هوية الشعار الطبي وفخامة تصميم الصياد
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ألوان الشعار الملكي */
  --p: #0a63c9;             /* أزرق الشعار الملكي */
  --pd: #063973;            /* أزرق داكن */
  --pl: #f0f7ff;            /* أزرق فاتح وناعم جداً */
  --b: #0284c7;             /* سماوي طبي */
  --bd: #0369a1;
  --bl: #e0f2fe;
  
  --red: #d4141c;           /* أحمر الشعار القرمزي الحيوي */
  --red-dark: #991b1b;
  --red-soft: #fee2e2;
  
  --g: linear-gradient(135deg, #063973 0%, #0a63c9 55%, #0284c7 100%);
  --g-btn: linear-gradient(135deg, #0a63c9 0%, #0284c7 100%);
  --g-red: linear-gradient(135deg, #d4141c 0%, #ef4444 100%);
  
  --bar: #041c3b;
  --glow1: #0284c7;
  --glow2: #38bdf8;
  
  --ink: #0f172a;
  --ink2: #334155;
  --mut: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --bg: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.96);
  --ok: #059669;
  
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 9999px;
  
  --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --sh: 0 10px 30px -10px rgba(10, 99, 201, 0.09), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --sh-lg: 0 20px 45px -12px rgba(6, 57, 115, 0.22);
  --font: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Sans', -apple-system, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15.5px;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.22s ease; }
.container { width: min(1360px, 94%); margin-inline: auto; }
.ic { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 1. الشريط العلوي بنمط الصياد المطور */
.topbar {
  background: var(--bar);
  color: #dbeafe;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.topbar .ph {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar .ph a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
}

.topbar .ph a:hover { color: #38bdf8; }

.topbar .tick {
  font-weight: 600;
  color: #bae6fd;
}

/* 2. الترويسة الزجاجية الفخمة */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-pure {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.brand-logo-img-pure {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(10, 99, 201, 0.18));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-logo-img-pure {
  transform: scale(1.05);
}

.brand-title-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title-box .brand-name-ar {
  font-size: 1.35rem;
  font-weight: 900;
  color: #063973;
  line-height: 1.15;
  letter-spacing: -0.3px;
  display: block;
}

.brand-title-box .brand-name-en {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0a63c9;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  line-height: 1.2;
  margin-top: 1px;
  display: block;
}

.brand-title-box .brand-location {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 1px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav a {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--ink2);
  white-space: nowrap;
}

.nav a:hover {
  background: var(--pl);
  color: var(--p);
}

.nav a.on {
  background: var(--g-btn);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(10, 99, 201, 0.3);
}

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* زر الدخول للنظام بنمط الصياد المطور */
.btn-his-login {
  background: var(--g-btn) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 8px 18px !important;
  border-radius: var(--r-pill) !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
  box-shadow: 0 4px 14px rgba(10, 99, 201, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.9rem !important;
}

.btn-his-login:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(10, 99, 201, 0.45) !important;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1.4;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--g-btn);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 99, 201, 0.25);
}

.btn-light {
  background: #ffffff;
  color: var(--pd);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

.btn-line {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--pl);
}

.btn-sm { padding: 7px 16px; font-size: 0.88rem; border-radius: var(--r-pill); }

/* 3. قسم Hero الافتتاحية الملكية بهوية الشعار الجديد وتأثيرات الإضاءة */
.hero {
  background: radial-gradient(at 90% 12%, rgba(24, 164, 255, 0.42) 0px, transparent 55%),
              radial-gradient(at 8% 88%, rgba(212, 20, 28, 0.22) 0px, transparent 50%),
              radial-gradient(at 50% 50%, rgba(10, 99, 201, 0.95) 0px, transparent 100%),
              linear-gradient(135deg, #063973 0%, #0a4ba8 55%, #05264f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 68px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(24, 164, 255, 0.28) 0%, transparent 70%);
  top: -180px;
  right: -120px;
  pointer-events: none;
  animation: pulseMesh 8s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 20, 28, 0.2) 0%, transparent 70%);
  bottom: -180px;
  left: -120px;
  pointer-events: none;
}

@keyframes pulseMesh {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(-30px, 20px); opacity: 1; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 18px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: #bae6fd;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.22;
  font-weight: 900;
  margin: 16px 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero h1 span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  margin-top: 6px;
}

.hero p.lead {
  font-size: 1.14rem;
  color: #e0f2fe;
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-side {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-side:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.hero-side-logo-pure {
  width: auto;
  height: auto;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero-logo-img-pure {
  width: 105px;
  height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.hero-side:hover .hero-logo-img-pure {
  transform: scale(1.05);
}

.hero-side-title-ar {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  margin: 0 0 2px;
  line-height: 1.2;
}

.hero-side-title-en {
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  margin-bottom: 6px;
}

.hero-side-loc {
  color: #bae6fd;
  font-size: 0.84rem;
  margin: 0 0 16px;
}

.hero-side-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* شريط الإحصاءات الأنيق */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat .si {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #38bdf8;
}

.stat b { font-size: 1.25rem; font-weight: 900; display: block; color: #fff; line-height: 1.2; }
.stat span { font-size: 0.82rem; color: #bae6fd; font-weight: 600; }

/* 4. البطاقات والشبكات للعيادات والأطباء */
.section { padding: 64px 0; }
.section.alt { background: #ffffff; }

.head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 46px;
}

.head .eyebrow {
  display: inline-block;
  background: var(--pl);
  color: var(--p);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.head h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}

.head p {
  color: var(--mut);
  font-size: 1.05rem;
  margin: 0;
}

.grid { display: grid; gap: 24px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }

/* بطاقات العيادات الزجاجية الفخمة المطورة (Glassmorphism Clinic Cards) */
.clinic-card-glass,
.dept {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.88) !important;
  border-radius: 20px !important;
  padding: 26px 22px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.clinic-card-glass:hover,
.dept:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(10, 99, 201, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(10, 99, 201, 0.35) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

.clinic-card-glass .di,
.clinic-card-glass .clinic-icon-box,
.dept .di {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 1px solid rgba(10, 99, 201, 0.15) !important;
  box-shadow: 0 4px 12px rgba(10, 99, 201, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.7rem !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
}

.clinic-card-glass h3,
.dept h3 {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
}

.clinic-card-glass p,
.dept p {
  font-size: 0.92rem !important;
  color: #64748b !important;
  line-height: 1.7 !important;
  margin: 0 0 16px !important;
}

/* ==============================================================
   شريط قنوات التواصل الاجتماعي الرسمي المطور (Social Channels Bar)
   ============================================================== */
.social-channels-bar-section {
  padding: 44px 0 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%) !important;
}

.social-bar-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.social-bar-header {
  flex: 1 !important;
  min-width: 260px !important;
}

.social-bar-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #eff6ff !important;
  color: #0a63c9 !important;
  border: 1px solid #bfdbfe !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
}

.social-bar-badge svg,
.badge-icon {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0 !important;
}

.social-bar-title {
  margin: 0 0 4px !important;
  font-size: 1.25rem !important;
  color: #063973 !important;
  font-weight: 900 !important;
}

.social-bar-subtitle {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.88rem !important;
}

.social-bar-items {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.social-channel-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 16px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}

.social-channel-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.channel-icon-wrap {
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.channel-icon-wrap svg,
.social-channel-item svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.channel-facebook:hover { background: #1877f2 !important; color: #fff !important; border-color: #1877f2 !important; }
.channel-instagram:hover { background: #e4405f !important; color: #fff !important; border-color: #e4405f !important; }
.channel-tiktok:hover { background: #000000 !important; color: #fff !important; border-color: #000000 !important; }
.channel-whatsapp:hover { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
.channel-linkedin:hover { background: #0a66c2 !important; color: #fff !important; border-color: #0a66c2 !important; }

/* بطاقات الأطباء */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--sh);
  transition: all 0.25s ease;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--p);
}

.doctor-photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--pl);
  border: 2px solid #bae6fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.doctor-info h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 4px;
}

.doctor-specialty {
  color: var(--p);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.doctor-schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink2);
  font-weight: 700;
}

/* 5. نموذج الحجز والتواصل بنمط البطاقة الزجاجية */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--sh-lg);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field.full { grid-column: span 2; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}

.input:focus {
  background: #fff;
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(10, 99, 201, 0.15);
  outline: 0;
}

.locked {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

/* بطاقات الوصول */
.reach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reach-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  box-shadow: var(--sh);
}

.reach-item .ri {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pl);
  color: var(--p);
  display: grid;
  place-items: center;
}

.reach-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.reach-item p {
  margin: 0;
  color: var(--mut);
  font-weight: 600;
}

/* 6. الفوتر الفخم */
.site-footer {
  background: #021226;
  color: #94a3b8;
  padding: 60px 0 20px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fgrid4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a:hover { color: #38bdf8; }

.site-footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* زر بوابة المرضى والنتائج في الترويسة */
.btn-patient-portal {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-patient-portal:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(2, 132, 199, 0.4);
}

.btn-portal-hero {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-portal-hero:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* رابط الكادر الطبي الهادئ في الشريط العلوي */
.topbar-staff {
  display: flex;
  align-items: center;
}

.staff-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.staff-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-close, .nav-drawer-header, .nav-drawer-actions {
  display: none;
}

.menu-btn {
  display: none;
}

/* ==============================================================
   نافذة دخول المراجعين والمرضى المنفصلة (Patient Portal Modal)
   ============================================================== */
.patient-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 30, 60, 0.72);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ptModalFade 0.25s ease-out;
}

@keyframes ptModalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.patient-modal-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 480px;
  padding: 32px 28px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
}

.patient-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.patient-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.patient-modal-header {
  margin-bottom: 22px;
}

.patient-modal-logo {
  width: 76px;
  height: 76px;
  background: #f0fdfa;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(11, 110, 143, 0.15);
  border: 1px solid #e0f2fe;
}

.patient-modal-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
}

.patient-modal-header h3 {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
}

.patient-modal-header p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.patient-modal-form {
  text-align: right;
  margin-bottom: 20px;
}

.pt-field-wrap {
  margin-bottom: 16px;
}

.pt-field-wrap label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .icon {
  position: absolute;
  right: 12px;
  font-size: 1.1rem;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #f8fafc;
}

.input-with-icon input:focus {
  border-color: #0284c7;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.pt-pin-input {
  letter-spacing: 6px;
  font-size: 1.3rem !important;
  font-weight: 900;
  text-align: center;
}

.pt-field-hint {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}

.btn-portal-submit {
  width: 100%;
  padding: 13px;
  font-size: 1.05rem;
  font-weight: 900;
  background: #0284c7;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
  margin-top: 6px;
}

.patient-modal-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.modal-feature-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #0369a1;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-feature-pills span {
  background: #f0fdfa;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.modal-help-line {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-help-line a {
  color: #16a34a;
  font-weight: 800;
  text-decoration: none;
}

.modal-help-line a:hover {
  text-decoration: underline;
}

/* تحسين الترويسة للشاشات المتوسطة (لابتوب/شاشات متوسطة) لمنع أي انكسار أو تداخل */
@media (min-width: 1041px) and (max-width: 1240px) {
  .site-header .container {
    gap: 10px !important;
  }
  .brand-logo-img-pure {
    width: 46px !important;
    height: 46px !important;
  }
  .brand-title-box .brand-name-ar {
    font-size: 1.22rem !important;
  }
  .brand-title-box .brand-name-en {
    font-size: 0.72rem !important;
  }
  .brand-title-box .brand-location {
    display: none !important;
  }
  .nav {
    gap: 2px !important;
  }
  .nav a {
    padding: 6px 9px !important;
    font-size: 0.86rem !important;
  }
  .btn-patient-portal {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }
  .btn-patient-portal .portal-btn-text {
    font-size: 0.82rem !important;
  }
  .btn-hdr-book {
    padding: 8px 14px !important;
    font-size: 0.84rem !important;
  }
}

/* ==============================================================
   قواعد التجاوب للجوال (Responsive Drawer & Mobile View)
   ============================================================== */
@media (max-width: 1040px) {
  .site-header {
    background: #ffffff !important;
  }
  .site-header .container {
    min-height: 60px !important;
    gap: 10px !important;
    padding-inline: 12px !important;
  }
  .brand {
    flex: 1 !important;
    min-width: 0 !important;
    gap: 10px !important;
    overflow: hidden !important;
  }
  .brand-logo-pure {
    flex-shrink: 0 !important;
  }
  .brand-title-box {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .brand-title-box .brand-name-ar {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }
  .brand-title-box .brand-name-en {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
  }
  .hdr-cta {
    flex-shrink: 0 !important;
    gap: 8px !important;
  }
  .hero-grid, .booking-grid { grid-template-columns: 1fr; }
  .grid.g4, .grid.g3, .doctors-grid, .reach, .stats { grid-template-columns: 1fr; }
  .fgrid4 { grid-template-columns: 1fr; }

  .menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--p);
    cursor: pointer;
    flex-shrink: 0 !important;
  }

  body.nav-open .site-header,
  .site-header.nav-open {
    z-index: 100000 !important;
  }

  .nav {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 300px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 100005 !important;
    padding: 20px !important;
    box-shadow: -8px 0 30px rgba(0,0,0,0.25) !important;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    gap: 8px !important;
    align-items: stretch !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }

  .nav.open {
    right: 0 !important;
  }

  .nav-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #475569;
  }

  .nav-drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
  }

  .brand-drawer {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-drawer b {
    font-size: 1rem;
    color: var(--pd);
    display: block;
  }

  .brand-drawer small {
    font-size: 0.75rem;
    color: var(--mut);
    display: block;
  }

  .nav-drawer-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
  }

  .btn-portal-drawer {
    background: #0284c7;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
  }

  .btn-drawer-book {
    width: 100%;
    justify-content: center;
  }

  .btn-drawer-staff {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 9px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
  }

  .nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15,23,42,0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99995 !important;
    display: none;
  }

  .nav-backdrop.show {
    display: block !important;
  }

  input, select, textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .btn-hdr-book { display: none !important; }
  .topbar .tick { display: none !important; }
  .topbar-hours { display: none !important; }
  .topbar-sep { display: none !important; }
  .topbar .container {
    justify-content: space-between !important;
    padding: 6px 12px !important;
  }
  .topbar-staff .staff-link {
    font-size: 0.78rem !important;
    padding: 3px 8px !important;
  }

  /* على شاشات الجوال يتم إخفاء زر البوابة من الشريط العلوي لمنع أي تزاحم وتداخل مع اسم المركز، وهو متاح بوضوح داخل القائمة المنزلقة وفي واجهة الهيرو */
  .hdr-cta .btn-patient-portal {
    display: none !important;
  }

  .brand-logo-img-pure {
    width: 44px !important;
    height: 44px !important;
  }
  .brand-title-box .brand-name-ar {
    font-size: 1.18rem !important;
  }
  .brand-title-box .brand-name-en {
    font-size: 0.70rem !important;
    letter-spacing: 0.3px !important;
  }
  .brand-title-box .brand-location {
    display: none !important;
  }
  .hero-side-logo-pure img {
    width: 82px !important;
    height: 82px !important;
  }

  .card {
    padding: 18px 16px !important;
  }
}

@media (max-width: 420px) {
  .brand-logo-img-pure {
    width: 38px !important;
    height: 38px !important;
  }
  .brand-title-box .brand-name-ar {
    font-size: 1.05rem !important;
  }
  .brand-title-box .brand-name-en {
    font-size: 0.62rem !important;
  }
}

