@charset "UTF-8";
/* ============================================================
   عيادات بيت العافية — Bayt Al-Afya Teledermatology Clinic
   Visual identity: teal + navy (from clinic calligraphy logo)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800&family=Tajawal:wght@400;500;700&family=Noto+Naskh+Arabic:wght@400;600;700&family=Almarai:wght@400;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans+Arabic:wght@400;600&family=El+Messiri:wght@500;700&family=Readex+Pro:wght@400;600&family=Noto+Kufi+Arabic:wght@400;600&family=Harmattan:wght@400;700&family=Lateef:wght@400;700&family=Markazi+Text:wght@400;600&family=Vazirmatn:wght@400;600&family=Scheherazade+New:wght@400;700&display=swap');

:root{
  /* هوية الألوان الثلاثة من الشعار: أخضر مخضرّ + أزرق الخط + رمادي فحمي */
  --teal:        #0f9d84;
  --teal-dark:   #0b7a67;
  --teal-light:  #e0f4f0;
  --navy:        #1d5b7d;   /* أزرق الشعار */
  --navy-deep:   #143f57;
  --charcoal:    #303639;   /* رمادي الشعار */
  --bg:          #f5f9fa;
  --card:        #ffffff;
  --text:        #24313a;
  --muted:       #5f7280;
  --border:      #dde8e6;
  --radius:      14px;
  --shadow:      0 4px 18px rgba(18,50,73,.08);
  --font-head:   'Cairo', 'Tajawal', sans-serif;
  --font-body:   'Tajawal', 'Cairo', sans-serif;
  /* خط المقالات — الافتراضي: نسخ حديث مريح للقراءة الطويلة.
     بدائل جاهزة (بدّل اسم الخط في السطر التالي):
     'Tajawal' | 'Almarai' | 'Amiri' | 'IBM Plex Sans Arabic' | 'El Messiri'
     عاين الخطوط كلها في صفحة font-preview.html */
  --font-article: 'Noto Naskh Arabic', 'Tajawal', serif;
  --font-scale:  1;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.9;
  font-size:17px;
}
h1,h2,h3,h4{ font-family:var(--font-head); color:var(--navy-deep); line-height:1.5; }
a{ color:var(--teal-dark); text-decoration:none; }
a:hover{ color:var(--navy); }
img{ max-width:100%; display:block; }
.container{ width:min(1100px, 92%); margin-inline:auto; }

/* ---------- Topbar (لغة + تواصل) ---------- */
.topbar{ background:var(--charcoal); color:#c6d2d0; font-size:.82rem; }
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0; flex-wrap:wrap; }
.topbar a{ color:#e8f6f3; font-weight:700; }
.topbar a:hover{ color:var(--teal); }
.lang-switch{ display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.08); border-radius:30px; padding:2px 14px; }

/* ---------- Header (داكن مع بطاقة شعار بيضاء) ---------- */
.site-header{
  background:var(--navy);
  border-bottom:3px solid var(--teal);
  position:sticky; top:0; z-index:50;
  box-shadow:0 2px 12px rgba(10,40,35,.25);
}
.header-inner{ display:flex; align-items:center; gap:16px; padding:8px 0; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-card{
  background:#fff; border-radius:12px; padding:7px 16px;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  display:flex; align-items:center; gap:10px;
}
.brand-card img{ width:50px; height:50px; border-radius:50%; object-fit:cover; }
.brand-card .brand-name{ font-size:1.05rem; line-height:1.3; }
.brand-card .brand-sub{ font-size:.66rem; color:var(--teal-dark); font-weight:700; letter-spacing:1.2px; }
.brand img{ width:54px; height:54px; border-radius:50%; object-fit:cover; }
.brand .brand-name{ font-family:var(--font-head); font-weight:800; font-size:1.15rem; color:var(--navy-deep); }
.brand .brand-sub{ font-size:.78rem; color:var(--muted); letter-spacing:.4px; }
.main-nav{ margin-inline-start:auto; }
.main-nav ul{ display:flex; gap:2px; list-style:none; flex-wrap:wrap; align-items:center; }
.main-nav a{
  display:block; padding:8px 13px; border-radius:8px;
  font-weight:500; color:#dff0ec; font-size:.93rem;
}
.main-nav a:hover, .main-nav a.active{ background:rgba(255,255,255,.12); color:#fff; }
.main-nav .nav-cta a{
  background:var(--teal); color:#fff; font-weight:700; padding:9px 20px; border-radius:30px;
}
.main-nav .nav-cta a:hover{ background:var(--teal-dark); }
.nav-toggle{ display:none; background:none; border:0; font-size:1.6rem; color:#fff; cursor:pointer; margin-inline-start:auto; }

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(23,165,140,.35), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(23,165,140,.25), transparent 55%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #17657a 100%);
  color:#fff;
  padding:70px 0 80px;
  text-align:center;
}
.hero img.hero-logo{ width:110px; height:110px; border-radius:50%; margin:0 auto 18px; background:#fff; padding:6px; object-fit:cover; }
.hero h1{ color:#fff; font-size:clamp(1.6rem, 4vw, 2.6rem); margin-bottom:10px; }
.hero p.tagline{ font-size:clamp(1rem, 2.2vw, 1.25rem); color:#d8ecea; max-width:720px; margin:0 auto 28px; }
.hero .cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* هيرو مقسوم: نص + صورة الطبيب */
.hero.hero-split{ text-align:start; padding:0; }
.hero-grid{
  display:grid; grid-template-columns:1.15fr 1fr; gap:30px; align-items:end; min-height:440px;
}
.hero-text{ padding:64px 0 70px; }
.hero-text h1{ font-size:clamp(1.7rem, 3.6vw, 2.7rem); margin-bottom:14px; line-height:1.6; }
.hero-text .tagline{ margin:0 0 30px; max-width:560px; }
.hero-text .cta-row{ justify-content:flex-start; }
.hero-photo{ align-self:end; display:flex; justify-content:center; }
.hero-photo img{
  max-height:430px; width:auto; object-fit:contain; object-position:bottom;
  filter:drop-shadow(0 12px 30px rgba(0,0,0,.4));
}

.hero{ position:relative; }

/* ---------- شريط المزايا (عن العيادة) ---------- */
.feature-strip{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.feature{ padding:32px 24px; text-align:center; border-inline-start:1px solid var(--border); }
.feature:first-child{ border-inline-start:0; }
.feature .f-icon{
  width:64px; height:64px; margin:0 auto 14px; border-radius:50%;
  background:var(--teal-light); color:var(--teal-dark);
  display:flex; align-items:center; justify-content:center; font-size:1.8rem;
}
.feature h3{ font-size:1.08rem; margin-bottom:8px; }
.feature p{ color:var(--muted); font-size:.93rem; }

/* عن العيادة: شريط مزايا + صورة جانبية */
.about-grid{ display:grid; grid-template-columns:1.25fr 1fr; gap:28px; align-items:center; }
.about-grid .feature-strip{ grid-template-columns:1fr; }
.about-grid .feature{ border-inline-start:0; border-top:1px solid var(--border); text-align:start; display:flex; gap:16px; align-items:flex-start; padding:22px 24px; }
.about-grid .feature:first-child{ border-top:0; }
.about-grid .feature .f-icon{ margin:0; flex:none; width:54px; height:54px; font-size:1.5rem; }
.about-img img{ border-radius:var(--radius); box-shadow:0 10px 30px rgba(14,60,52,.22); }

/* بطاقة المكتبة بخلفية مصورة */
.link-tile.has-bg{
  background:linear-gradient(rgba(11,46,40,.82), rgba(11,46,40,.9)), var(--tile-bg) center/cover no-repeat;
  border:0;
}

/* ---------- قائمة الحجز المرقمة ---------- */
.booking-list{ list-style:none; counter-reset:bk; margin-top:30px; }
.booking-list li{
  counter-increment:bk;
  display:flex; align-items:flex-start; gap:20px; flex-wrap:wrap;
  background:#fff; border:1px solid var(--border); border-radius:14px;
  box-shadow:var(--shadow); padding:20px 24px; margin-bottom:14px;
}
.booking-list li::before{
  content:counter(bk);
  flex:none; width:48px; height:48px; border-radius:50%;
  background:linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color:#fff; font-family:var(--font-head); font-weight:800; font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 10px rgba(14,80,70,.3);
}
.booking-list .b-body{ flex:1; min-width:220px; }
.booking-list .b-body h3{ font-size:1.08rem; margin-bottom:4px; }
.booking-list .b-body p{ color:var(--muted); font-size:.95rem; }
/* صف الأزرار الموحد أسفل الخطوات الأربع */
.booking-actions{
  display:flex; gap:16px; flex-wrap:wrap; justify-content:center;
  margin:26px 0 4px;
}
.booking-actions .btn{ padding:12px 28px; font-size:.98rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:12px 26px; border-radius:50px; font-weight:700;
  font-family:var(--font-head); font-size:1rem; transition:.2s;
  border:0; cursor:pointer; line-height:1.4;
}
.btn .ic{ width:21px; height:21px; fill:currentColor; flex:none; }
.btn-primary{ background:var(--teal); color:#fff; }
.btn-primary:hover{ background:var(--teal-dark); color:#fff; transform:translateY(-2px); }
.btn-outline{ background:transparent; color:#fff; border:2px solid rgba(255,255,255,.7); }
.btn-outline:hover{ background:rgba(255,255,255,.12); color:#fff; }
.btn-whatsapp{
  background:linear-gradient(135deg, #2bd76a 0%, #10906f 100%);
  color:#fff; box-shadow:0 6px 16px rgba(18,140,110,.35);
}
.btn-whatsapp:hover{ color:#fff; transform:translateY(-2px); box-shadow:0 10px 22px rgba(18,140,110,.45); filter:brightness(1.05); }
.btn-telegram{
  background:linear-gradient(135deg, #41b4e6 0%, #1a6fa8 100%);
  color:#fff; box-shadow:0 6px 16px rgba(30,120,170,.35);
}
.btn-telegram:hover{ color:#fff; transform:translateY(-2px); box-shadow:0 10px 22px rgba(30,120,170,.45); filter:brightness(1.05); }

/* ---------- Sections ---------- */
.section{ padding:64px 0; }
.section.alt{ background:#fff; }
.section-head{ text-align:center; margin-bottom:40px; }
.section-head h2{ font-size:clamp(1.4rem, 3vw, 2rem); position:relative; display:inline-block; padding-bottom:12px; }
.section-head h2::after{
  content:""; position:absolute; right:50%; transform:translateX(50%);
  bottom:0; width:70px; height:4px; border-radius:4px; background:var(--teal);
}
.section-head p{ color:var(--muted); max-width:700px; margin:10px auto 0; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2{ grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); }
.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow);
  padding:26px; transition:.2s;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 10px 26px rgba(18,50,73,.12); }
.card .icon{
  width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:var(--teal-light); color:var(--teal-dark); font-size:1.6rem; margin-bottom:14px;
}
.card h3{ margin-bottom:8px; font-size:1.15rem; }
.card p{ color:var(--muted); font-size:.97rem; }

/* بطاقة رابط كبيرة (قسم المقالات في الرئيسية) */
.link-tile{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  background:linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #17657a 100%);
  color:#fff; border-radius:var(--radius); padding:46px 26px; text-align:center;
  box-shadow:var(--shadow); transition:.2s; border:1px solid var(--border);
}
.link-tile:hover{ transform:translateY(-4px); box-shadow:0 12px 30px rgba(18,50,73,.25); color:#fff; }
.link-tile .big-icon{ font-size:2.6rem; }
.link-tile h3{ color:#fff; font-size:1.35rem; }
.link-tile p{ color:#d8ecea; font-size:.95rem; max-width:520px; }
.link-tile .go{ background:rgba(255,255,255,.15); border-radius:30px; padding:8px 26px; font-weight:700; }

/* ---------- Doctor ---------- */
.doctor-wrap{ display:grid; grid-template-columns:300px 1fr; gap:40px; align-items:center; }
.doctor-photo{
  width:280px; height:280px; border-radius:50%; overflow:hidden;
  box-shadow:0 10px 30px rgba(14,60,52,.2);
  border:6px solid #fff; outline:3px solid var(--teal);
  margin:0 auto;
}
.doctor-photo img{ width:100%; height:100%; object-fit:cover; }
.doctor-info h3{ font-size:1.5rem; margin-bottom:4px; }
.doctor-info .role{ color:var(--teal-dark); font-weight:700; margin-bottom:16px; }
.cred-list{ list-style:none; }
.cred-list li{
  padding:7px 0; padding-inline-start:30px; position:relative; color:var(--charcoal);
}
.cred-list li::before{
  content:"\2726"; /* ✦ نجمة رباعية — رمز آمن الترميز */
  position:absolute; right:0; color:var(--teal); font-weight:700;
}

/* ---------- Booking steps ---------- */
.steps{ counter-reset:step; display:grid; gap:20px; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); margin-top:26px; }
.step{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 22px 22px; position:relative; box-shadow:var(--shadow);
}
.step::before{
  counter-increment:step; content:counter(step);
  position:absolute; top:-18px; right:22px;
  width:38px; height:38px; border-radius:50%;
  background:var(--navy); color:#fff; font-family:var(--font-head); font-weight:800;
  display:flex; align-items:center; justify-content:center; font-size:1.05rem;
  box-shadow:0 3px 8px rgba(18,50,73,.3);
}
.step h3{ font-size:1.05rem; margin-bottom:8px; }
.step p{ color:var(--muted); font-size:.95rem; }
.step .btn{ margin-top:12px; font-size:.9rem; padding:9px 20px; }
.notice{
  background:var(--teal-light); border-inline-start:5px solid var(--teal);
  border-radius:10px; padding:18px 22px; margin-top:28px; color:var(--charcoal); font-size:.97rem;
}
.notice ul{ padding-inline-start:20px; }

/* ---------- Reviews ---------- */
.review{ position:relative; padding-top:34px; }
.review::before{
  content:"\275D"; position:absolute; top:6px; right:22px;
  font-size:2.4rem; color:var(--teal); opacity:.5; line-height:1;
}
.review .review-text{ color:var(--charcoal); font-size:.98rem; margin-bottom:14px; }
.review .review-name{ font-weight:700; color:var(--navy); font-size:.92rem; }
.review .review-name::before{ content:"\2014 "; color:var(--teal); }

/* ---------- Articles ---------- */
.article-card{ display:flex; flex-direction:column; overflow:hidden; padding:0; }
.article-card .cover{ height:180px; background:linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); position:relative; }
.article-card .cover img{ width:100%; height:100%; object-fit:cover; }
.article-card .cover .badge{
  position:absolute; top:12px; right:12px; background:rgba(255,255,255,.92);
  color:var(--navy-deep); font-size:.78rem; font-weight:700; padding:4px 12px; border-radius:30px;
}
.article-card .body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.article-card h3{ font-size:1.1rem; }
.article-card h3 a{ color:var(--navy-deep); }
.article-card h3 a:hover{ color:var(--teal-dark); }
.article-card .meta{ color:var(--muted); font-size:.83rem; }
.article-card .excerpt{ color:var(--muted); font-size:.93rem; flex:1; }
.article-card .more{ font-weight:700; font-size:.9rem; }

/* series card */
.series-card{ border-top:5px solid var(--teal); }
.series-card .count{
  display:inline-block; background:var(--teal-light); color:var(--teal-dark);
  border-radius:30px; padding:2px 14px; font-size:.82rem; font-weight:700; margin-bottom:10px;
}

/* ---------- فهرس المقالات: تخطيط بشريط جانبي ---------- */
.index-layout{
  display:grid; grid-template-columns:300px minmax(0,1fr); gap:26px;
  align-items:start; margin-top:34px;
}
.sidebar{ position:sticky; top:86px; max-height:calc(100vh - 106px); overflow:auto; }
.side-box{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:18px;
}
.side-box + .side-box{ margin-top:16px; }
.side-box h3{ font-size:1rem; color:var(--navy-deep); border-bottom:2px solid var(--teal-light); padding-bottom:8px; margin-bottom:10px; }
.search-wrap{ position:relative; }
.search-wrap input{
  width:100%; padding:11px 42px 11px 14px; border:2px solid var(--border); border-radius:30px;
  font-family:inherit; font-size:.95rem; background:#fbfdfd; transition:.2s;
}
.search-wrap input:focus{ outline:none; border-color:var(--teal); background:#fff; }
.search-wrap .s-ic{ position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:1rem; pointer-events:none; }
.results-count{ font-size:.85rem; color:var(--teal-dark); font-weight:700; margin:10px 2px 0; min-height:1.4em; }

.toc-list{ list-style:none; }
.toc-list li{ border-bottom:1px dotted var(--border); }
.toc-list li:last-child{ border-bottom:0; }
.toc-list a{
  display:block; padding:8px 6px; font-size:.92rem; color:var(--charcoal); border-radius:6px;
}
.toc-list a:hover{ background:var(--teal-light); color:var(--teal-dark); }
.toc-list .t-date{ display:block; font-size:.74rem; color:var(--muted); }

details.series-group{ border-bottom:1px dotted var(--border); }
details.series-group:last-child{ border-bottom:0; }
details.series-group summary{
  cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px;
  padding:9px 6px; font-weight:700; font-size:.94rem; color:var(--navy); border-radius:6px;
}
details.series-group summary:hover{ background:var(--teal-light); }
details.series-group summary::-webkit-details-marker{ display:none; }
details.series-group summary .arrow{ transition:.2s; font-size:.7rem; color:var(--teal-dark); }
details.series-group[open] summary .arrow{ transform:rotate(90deg); }
details.series-group summary .s-count{
  margin-inline-start:auto; background:var(--teal-light); color:var(--teal-dark);
  border-radius:30px; padding:0 10px; font-size:.74rem;
}
details.series-group .toc-list{ padding-inline-start:16px; padding-bottom:6px; }
details.series-group .toc-list li{ border-bottom:0; }
details.series-group .toc-list a{ padding:5px 6px; font-size:.88rem; }

/* ---------- Article page ---------- */
.article-hero{
  background:linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #17657a 100%);
  color:#fff; padding:46px 0 60px;
}
.article-hero .crumbs{ font-size:.85rem; color:#bcd9d4; margin-bottom:12px; }
.article-hero .crumbs a{ color:#dff0ee; }
.article-hero h1{ color:#fff; font-size:clamp(1.4rem, 3.4vw, 2.2rem); }
.article-hero .meta{ margin-top:10px; color:#cfe6e2; font-size:.9rem; display:flex; gap:18px; flex-wrap:wrap; }
.article-body{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:clamp(22px, 4vw, 46px);
  margin-top:-26px; margin-bottom:40px;
}
.article-body .cover-img{
  border-radius:10px; margin:0 auto 26px;
  max-height:380px; width:auto; max-width:100%; object-fit:contain;
}

.article-content{
  font-family:var(--font-article);
  font-size:calc(1.08rem * var(--font-scale));
  line-height:2.1;
}
.article-content p{ margin-bottom:16px; }
.article-content h2, .article-content h3{ margin:26px 0 12px; }
.article-content ul, .article-content ol{ margin:0 0 16px; padding-inline-start:26px; }
/* توحيد مقاس صور المقال لتجنب الازدحام */
.article-content img{
  border-radius:10px; margin:18px auto;
  max-height:400px; width:auto; max-width:100%; object-fit:contain;
  cursor:zoom-in;
}
.article-content blockquote{
  border-inline-start:4px solid var(--teal); background:var(--teal-light);
  padding:14px 18px; border-radius:8px; margin:18px 0; color:var(--charcoal);
}
.series-nav{
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  border-top:1px dashed var(--border); margin-top:30px; padding-top:22px; font-size:.95rem;
}
.disclaimer{
  background:#fdf6ec; border-inline-start:5px solid #e0a94e; border-radius:10px;
  padding:14px 18px; margin-top:26px; font-size:.88rem; color:#7a5c22;
}

/* ---------- المعرض: شهادات وقبل/بعد ---------- */
.gallery-masonry{ columns:3 300px; column-gap:18px; }
.g-item{
  break-inside:avoid; margin-bottom:18px; background:#fff; border:1px solid var(--border);
  border-radius:12px; overflow:hidden; box-shadow:var(--shadow); cursor:zoom-in; transition:.2s;
}
.g-item:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(18,50,73,.14); }
.g-item img{ width:100%; }
figure.result-card{
  break-inside:avoid; margin-bottom:18px; background:#fff; border:1px solid var(--border);
  border-radius:12px; overflow:hidden; box-shadow:var(--shadow); transition:.2s;
}
figure.result-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(18,50,73,.14); }
figure.result-card img{ width:100%; cursor:zoom-in; }
figure.result-card figcaption{
  padding:12px 16px; font-size:.9rem; color:var(--charcoal); font-weight:500;
  border-top:3px solid var(--teal-light); background:#fbfdfd;
}

/* شريط معاينة قبل/بعد في الرئيسية */
.ba-strip{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:14px; margin-bottom:26px; }
.ba-strip img{
  width:100%; height:200px; object-fit:cover; border-radius:12px; border:1px solid var(--border);
  box-shadow:var(--shadow); cursor:zoom-in; transition:.2s;
}
.ba-strip img:hover{ transform:scale(1.02); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:300; background:rgba(9,22,32,.93);
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px;
}
.lightbox img{ max-width:94vw; max-height:82vh; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,.5); }
.lightbox .lb-cap{ color:#d8ecea; margin-top:14px; font-size:.95rem; text-align:center; max-width:700px; }
.lightbox .lb-close{
  position:absolute; top:16px; left:16px; background:rgba(255,255,255,.12); color:#fff;
  border:0; border-radius:50%; width:44px; height:44px; font-size:1.4rem; cursor:pointer;
}
.lightbox .lb-close:hover{ background:var(--teal); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--charcoal); color:#c6d2d0; padding:46px 0 20px; margin-top:60px; }
.footer-logo{
  background:#fff; border-radius:12px; padding:8px; width:130px; margin-bottom:14px;
}
.footer-grid{ display:grid; gap:30px; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); margin-bottom:30px; }
.site-footer h4{ color:#fff; margin-bottom:14px; font-size:1.05rem; }
.site-footer a{ color:#9fc6c0; }
.site-footer a:hover{ color:#fff; }
.site-footer ul{ list-style:none; }
.site-footer li{ padding:4px 0; font-size:.95rem; }
.social-row{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.social-row a{
  width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
}
.social-row a svg{ width:20px; height:20px; fill:#cfe6e2; transition:.2s; }
.social-row a:hover{ background:var(--teal); }
.social-row a:hover svg{ fill:#fff; }
.copyright{ border-top:1px solid rgba(255,255,255,.15); padding-top:16px; text-align:center; font-size:.85rem; color:#8fb0bf; }

/* ---------- Utilities ---------- */
.center{ text-align:center; }
.mt-30{ margin-top:30px; }
.chip{
  display:inline-block; background:var(--teal-light); color:var(--teal-dark);
  padding:3px 14px; border-radius:30px; font-size:.82rem; font-weight:700;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .index-layout{ grid-template-columns:260px minmax(0,1fr); gap:18px; }
}
@media (max-width: 860px){
  body{ font-size:16px; }
  .doctor-wrap{ grid-template-columns:1fr; text-align:center; }
  .doctor-photo{ max-width:260px; margin:0 auto; }
  .cred-list li{ text-align:right; }
  .nav-toggle{ display:block; }
  .main-nav{ display:none; width:100%; }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction:column; padding:10px 0; }
  .main-nav a{ padding:12px 14px; font-size:1.02rem; }
  .header-inner{ flex-wrap:wrap; }
  .brand img{ width:46px; height:46px; }
  .brand-card img{ height:44px; width:auto; }
  .brand .brand-name{ font-size:1.02rem; }
  .hero{ padding:46px 0 56px; }
  .hero img.hero-logo{ width:88px; height:88px; }
  .hero.hero-split{ padding:0; }
  .hero-grid{ grid-template-columns:1fr; min-height:0; gap:0; }
  .hero-text{ padding:38px 0 26px; text-align:center; }
  .hero-text .cta-row{ justify-content:center; }
  .hero-photo img{ max-height:300px; }
  .feature{ border-inline-start:0; border-top:1px solid var(--border); }
  .feature:first-child{ border-top:0; }
  .about-grid{ grid-template-columns:1fr; }
  .about-img{ order:-1; max-width:420px; margin:0 auto; }
  .booking-list li{ flex-direction:column; align-items:flex-start; gap:12px; }
  .booking-actions .btn{ flex:1; min-width:170px; }
  .topbar-inner{ justify-content:center; }
  .section{ padding:44px 0; }
  .btn{ padding:12px 20px; font-size:.95rem; }
  .cta-row .btn{ width:100%; max-width:340px; }
  .steps{ grid-template-columns:1fr; gap:26px; }
  .article-body{ margin-top:-18px; padding:18px 16px 26px; }
  .article-hero{ padding:32px 0 46px; }
  .series-nav{ flex-direction:column; }
  /* الفهرس: الشريط الجانبي يصبح فوق المحتوى */
  .index-layout{ grid-template-columns:1fr; }
  .sidebar{ position:static; max-height:none; }
  .gallery-masonry{ columns:2 160px; column-gap:12px; }
  .g-item, figure.result-card{ margin-bottom:12px; }
  .ba-strip img{ height:150px; }
  .footer-grid{ text-align:center; }
  .social-row{ justify-content:center; }
}
@media (max-width: 420px){
  .gallery-masonry{ columns:1 auto; }
  .reader-tools{ font-size:.8rem; }
}
