/* =====================================================================
   likdoc-theme.css — طبقة تصميم موحّدة فوق Tailwind لكل صفحات likdoc.com
   ---------------------------------------------------------------------
   لا تغيّر أي وظيفة: فقط الألوان والظلال والزوايا والخطوط والبطاقات.
   المحددات تبدأ بـ "html body" حتى تتغلب على أصناف Tailwind التي تُحقن
   في الصفحة بعد هذا الملف.
   ===================================================================== */
:root{
  --ld-navy:#0f2a4a;
  --ld-ink:#0f172a;
  --ld-muted:#64748b;
  --ld-line:#e9eef5;
  --ld-primary:#0e7fd8;
  --ld-primary-2:#0d9488;
  --ld-grad:linear-gradient(135deg,#0ea5e9 0%,#2563eb 100%);
  --ld-grad-teal:linear-gradient(135deg,#14b8a6 0%,#0ea5e9 100%);
  --ld-shadow:0 1px 2px rgba(15,23,42,.04),0 10px 30px -14px rgba(15,23,42,.18);
  --ld-shadow-lg:0 2px 4px rgba(15,23,42,.04),0 24px 48px -18px rgba(15,23,42,.28);
}

/* ---------- عام ---------- */
html body{
  background:
    radial-gradient(900px 480px at 100% -5%, rgba(14,165,233,.09), transparent 60%),
    radial-gradient(800px 460px at -5% 15%, rgba(20,184,166,.08), transparent 60%),
    #f5f8fb !important;
  color:var(--ld-ink);
  text-rendering:optimizeLegibility;
}
/* المحتوى يحجز ارتفاع الشاشة: التذييل يبدأ أسفلها، فلا يقفز عندما تصل قائمة الأطباء أو المقالات
   بعد التحميل (Layout Shift يضرّ بتقييم Google للسرعة) */
html body main{ min-height:calc(100vh - 4rem); }
html body ::selection{ background:#bae6fd; color:var(--ld-ink); }

/* ---------- الهيدر ---------- */
html body > header.sticky{
  background:rgba(255,255,255,.86) !important;
  border-bottom-color:var(--ld-line) !important;
  box-shadow:0 10px 30px -24px rgba(15,23,42,.35);
}

/* ---------- عناوين صفحات القوائم: شريط ملوّن بعرض المحتوى ---------- */
html body main div:has(> #sectionTitle){
  position:relative; overflow:hidden; max-width:none !important;
  background:linear-gradient(135deg,#0b3a6b 0%,#0e6fb8 55%,#0ea5a4 100%);
  border-radius:28px; padding:44px 24px 40px; margin-bottom:34px !important;
  box-shadow:0 24px 48px -26px rgba(11,58,107,.6);
}
html body main div:has(> #sectionTitle)::before,
html body main div:has(> #sectionTitle)::after{
  content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,.08); pointer-events:none;
}
html body main div:has(> #sectionTitle)::before{ width:320px; height:320px; top:-150px; inset-inline-end:-80px; }
html body main div:has(> #sectionTitle)::after{ width:220px; height:220px; bottom:-120px; inset-inline-start:-60px; }
html body #sectionTitle{
  position:relative; z-index:1;
  font-size:clamp(26px,4vw,40px) !important; line-height:1.25; font-weight:800 !important;
  color:#fff !important; letter-spacing:-.3px; margin-bottom:10px !important;
}
html body #sectionSubtitle{ position:relative; z-index:1; font-size:15px !important; color:rgba(255,255,255,.85) !important; }

/* ---------- لوحة الفلترة ---------- */
html body #filterSidebar{
  border-radius:24px !important;
  border-color:var(--ld-line) !important;
  box-shadow:var(--ld-shadow) !important;
}
html body #filterSidebar input,
html body #filterSidebar select{
  border-radius:14px !important;
  background:#f8fafc !important;
  border-color:#e2e8f0 !important;
  font-size:13px !important;
  padding-top:11px !important; padding-bottom:11px !important;
}
html body #filterSidebar input:focus,
html body #filterSidebar select:focus{
  background:#fff !important; border-color:#38bdf8 !important;
  box-shadow:0 0 0 4px rgba(14,165,233,.14) !important;
}
html body #filterSidebar label{ color:#475569 !important; font-size:12.5px !important; }
html body #filterSidebar button[type="submit"]{
  background:var(--ld-grad) !important; border:0 !important; border-radius:14px !important;
  box-shadow:0 12px 22px -12px rgba(37,99,235,.65) !important;
}

/* ---------- بطاقات المهنيين في صفحات القوائم ---------- */
html body [id$="GridContainer"]{ gap:22px !important; }
html body [id$="GridContainer"] > div{
  border-radius:24px !important;
  border:1px solid var(--ld-line) !important;
  box-shadow:var(--ld-shadow) !important;
  background:#fff !important;
}
html body [id$="GridContainer"] > div:hover{
  transform:translateY(-4px);
  box-shadow:var(--ld-shadow-lg) !important;
  border-color:#d6e4f2 !important;
}
/* الصورة */
html body [id$="GridContainer"] > div .w-16.h-16{ width:72px !important; height:72px !important; }
html body [id$="GridContainer"] > div img.rounded-xl{
  width:72px !important; height:72px !important;
  border-radius:18px !important;
  box-shadow:0 0 0 3px #fff, 0 0 0 5px #e0f2fe, 0 8px 18px -8px rgba(15,23,42,.35) !important;
}
/* الاسم والتخصص */
html body [id$="GridContainer"] [id*="_name_"]{
  color:var(--ld-navy) !important; font-weight:800 !important; text-decoration:none !important;
}
html body [id$="GridContainer"] [id*="_name_"]:hover{ color:var(--ld-primary) !important; }
html body [id$="GridContainer"] [id*="_spec_"]{ color:#0d9488 !important; font-weight:700 !important; }
/* شريط أيقونات التواصل */
html body [id$="GridContainer"] > div > .border-t.border-b{
  background:linear-gradient(180deg,#fbfdff,#f6f9fc) !important;
  border-color:var(--ld-line) !important;
}
html body [id$="GridContainer"] > div > .border-t.border-b a{
  width:34px !important; height:34px !important; border-color:var(--ld-line) !important;
  box-shadow:0 2px 6px -2px rgba(15,23,42,.12) !important; font-size:13px !important;
}
/* الوسوم */
html body [id$="GridContainer"] span.bg-sky-50{
  background:#eef7ff !important; color:#0b5ea8 !important; border:1px solid #dbeafe;
  font-weight:600 !important;
}
/* زر الحجز / الاتصال */
html body [id$="GridContainer"] .bg-blue-600{
  background:var(--ld-grad) !important; border-radius:14px !important;
  box-shadow:0 12px 22px -12px rgba(37,99,235,.7) !important;
  padding-top:12px !important; padding-bottom:12px !important; font-size:13.5px !important;
}
html body [id$="GridContainer"] .bg-blue-600:hover{ filter:brightness(1.06); }

/* ---------- الصفحة الرئيسية: بطاقة البحث والفئات ---------- */
html body .banner-slider{ border-radius:28px !important; box-shadow:var(--ld-shadow-lg) !important; }
html body #searchMainForm{ gap:18px !important; }
/* بطاقة البحث: أعرض، وتتداخل قليلاً مع البانر */
html body main > div.rounded-3xl.shadow-xl{
  position:relative; z-index:5; max-width:1040px !important;
  margin-top:-56px; padding:28px 32px !important;
}
@media (max-width:640px){ html body main > div.rounded-3xl.shadow-xl{ margin-top:-22px; padding:20px 16px !important; border-radius:24px !important; } }
html body #searchMainForm input,
html body #searchMainForm select{
  border-radius:16px !important; background:#f8fafc !important; border-color:#e2e8f0 !important;
}
html body #searchMainForm input:focus,
html body #searchMainForm select:focus{
  background:#fff !important; border-color:#38bdf8 !important; box-shadow:0 0 0 4px rgba(14,165,233,.14) !important;
}
html body #searchMainForm button[type="submit"]{
  background:var(--ld-grad) !important; border-radius:18px !important;
  box-shadow:0 16px 28px -14px rgba(37,99,235,.75) !important;
}
html body #searchMainForm button[type="submit"]:hover{ filter:brightness(1.06); transform:translateY(-1px); }
html body #catTabs{ padding-top:6px; padding-bottom:10px !important; }
@media (min-width:1024px){
  html body #catTabs{ gap:12px !important; justify-content:center; }
  html body #catTabs > button{ width:104px !important; }
}
html body #catTabs > button{
  border-radius:22px !important; padding:8px !important;
  border:1px solid var(--ld-line) !important; background:#fff !important;
  box-shadow:0 6px 16px -10px rgba(15,23,42,.3) !important;
}
html body #catTabs > button:hover{ transform:translateY(-3px); box-shadow:0 14px 24px -14px rgba(15,23,42,.35) !important; }
html body #catTabs > button.border-2{
  border:2px solid transparent !important;
  background:linear-gradient(#fff,#fff) padding-box, var(--ld-grad-teal) border-box !important;
  box-shadow:0 14px 26px -14px rgba(14,165,233,.55) !important;
}
html body #catTabs > button > span:first-child{ border-radius:16px !important; }
html body #catTabs > button > span:last-child{ color:var(--ld-navy) !important; }
html body #catTabs > button.border-2 > span:last-child{ color:var(--ld-primary) !important; }

/* البطاقة البيضاء الكبيرة التي تحتوي البحث */
html body main > div.rounded-3xl.shadow-xl{
  border-radius:30px !important; border-color:var(--ld-line) !important;
  box-shadow:var(--ld-shadow-lg) !important;
}

/* ---------- الفوتر ---------- */
html body footer.bg-slate-900{
  background:linear-gradient(180deg,#0f1f36 0%,#0b1628 100%) !important;
}

@media (prefers-reduced-motion: reduce){
  html body [id$="GridContainer"] > div:hover,
  html body #catTabs > button:hover{ transform:none; }
}

/* =====================================================================
   صفحات الملف الشخصي (طبيب، مستشفى، مختبر، صيدلية، ممرض، شبه صيدلية، بصريات)
   ===================================================================== */
html body [id$="ProfileContainer"]{
  position:relative;
  border-radius:28px !important;
  border:1px solid var(--ld-line) !important;
  box-shadow:var(--ld-shadow) !important;
  padding-top:0 !important;
}
/* شريط غلاف ملوّن أعلى البطاقة */
html body [id$="ProfileContainer"]::before{
  content:''; position:absolute; top:0; left:0; right:0; height:118px;
  background:
    radial-gradient(260px 160px at 85% -20%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(135deg,#0b3a6b 0%,#0e6fb8 55%,#0ea5a4 100%);
}
html body [id$="ProfileContainer"] > div:first-child{
  position:relative; z-index:1; margin-top:52px; align-items:flex-start !important;
}
/* الصورة */
html body [id$="ProfileContainer"] > div:first-child > div:first-child img{
  border-radius:28px !important; border:5px solid #fff !important;
  box-shadow:0 18px 36px -16px rgba(11,58,107,.55) !important;
}
/* الاسم */
html body [id$="ProfileContainer"] > div:first-child .text-sky-600.font-extrabold,
html body [id$="ProfileContainer"] > div:first-child .text-indigo-600.font-extrabold{
  color:var(--ld-navy) !important; letter-spacing:-.3px; padding-top:82px;
}
@media (max-width:767px){
  html body [id$="ProfileContainer"] > div:first-child{ align-items:center !important; margin-top:30px; }
  html body [id$="ProfileContainer"] > div:first-child .text-sky-600.font-extrabold,
  html body [id$="ProfileContainer"] > div:first-child .text-indigo-600.font-extrabold{ padding-top:0; }
}
/* التخصص */
html body [id$="ProfileContainer"] .bg-rose-50{
  background:#e6f7f5 !important; color:#0f766e !important; border:1px solid #c7ece7;
  border-radius:99px !important; padding:5px 14px !important;
}
/* أزرار التواصل */
html body [id$="ProfileContainer"] > div:first-child a.w-10.h-10{
  width:46px !important; height:46px !important; border-radius:16px !important;
  background:#fff !important; border-color:var(--ld-line) !important;
  box-shadow:0 6px 14px -8px rgba(15,23,42,.3) !important; font-size:17px !important;
}
html body [id$="ProfileContainer"] > div:first-child a.w-10.h-10:hover{
  transform:translateY(-2px); color:#fff !important;
}
/* عناوين الأقسام */
html body [id$="ProfileContainer"] h4{
  display:flex; align-items:center; gap:10px; color:var(--ld-navy) !important; font-weight:800 !important;
}
html body [id$="ProfileContainer"] h4::before{
  content:''; width:6px; height:22px; border-radius:99px; background:var(--ld-grad-teal); flex-shrink:0;
}
html body [id$="ProfileContainer"] h5{ color:var(--ld-navy) !important; font-weight:800 !important; }
/* صناديق التخصصات / الشهادات / الساعات */
html body [id$="ProfileContainer"] .bg-slate-50\/60,
html body [id$="ProfileContainer"] .bg-sky-50\/30{
  background:#fff !important; border:1px solid var(--ld-line) !important; border-radius:20px !important;
  box-shadow:0 8px 22px -16px rgba(15,23,42,.25) !important;
}
html body [id$="ProfileContainer"] ul li{ color:#334155; }
html body [id$="ProfileContainer"] .border-t.border-slate-100{ border-color:var(--ld-line) !important; }
/* معرض الصور والفيديو والخريطة */
html body [id$="ProfileContainer"] iframe,
html body [id$="ProfileContainer"] .aspect-video{ border-radius:20px !important; }

/* لوحة الحجز / الاتصال الجانبية */
html body #bookingPanelDesktop,
html body #callPanelDesktop{
  border-radius:28px !important; border:1px solid var(--ld-line) !important; box-shadow:var(--ld-shadow-lg) !important;
}
html body #bookingPanelDesktop > div:first-child{
  background:linear-gradient(135deg,#0b3a6b 0%,#0e6fb8 60%,#0ea5a4 100%) !important; border:0 !important;
  padding:22px 24px !important;
}
html body #bookingPanelDesktop > div:first-child h3{ color:#fff !important; font-size:17px !important; font-weight:800 !important; }
html body #bookingPanelDesktop > div:first-child p{ color:rgba(255,255,255,.85) !important; }
html body #bookingPanelDesktop input,
html body #bookingPanelDesktop select,
html body #bookingModal input,
html body #bookingModal select{
  border-radius:14px !important; background:#f8fafc !important; border-color:#e2e8f0 !important;
}
html body #bookingPanelDesktop input:focus,
html body #bookingPanelDesktop select:focus{
  background:#fff !important; border-color:#38bdf8 !important; box-shadow:0 0 0 4px rgba(14,165,233,.14) !important;
}
html body #bookingPanelDesktop label{ color:#475569 !important; letter-spacing:.2px; }
html body .btnModalSubmit,
html body #callPanelPhoneBtn{
  background:var(--ld-grad) !important; border-radius:16px !important;
  box-shadow:0 14px 26px -12px rgba(37,99,235,.7) !important;
}
html body .btnModalSubmit:hover,
html body #callPanelPhoneBtn:hover{ filter:brightness(1.06); }

/* زر الرجوع */
html body #backButtonContainer a{
  background:#fff; border:1px solid var(--ld-line); padding:8px 16px; border-radius:99px;
  box-shadow:0 4px 12px -8px rgba(15,23,42,.3);
}
/* الأزرار العائمة وشريط الحجز في الهاتف */
html body #floatingPhoneBtn{ background:var(--ld-grad) !important; }
html body #stickyBookingBar a,
html body #stickyBookingBar button,
html body #stickyCallBar a{ border-radius:16px !important; }
html body #stickyBookingBar .bg-sky-600,
html body #stickyCallBar .bg-sky-600{ background:var(--ld-grad) !important; }

/* ---------- زر الخريطة (Google Maps): دبوس موقع أنيق بدل أيقونة الخريطة ---------- */
html body a[title="Google Maps"]:not(#floatingMapsBtn){
  background:#fff4f2 !important; color:#ea4335 !important; border-color:#ffd9d3 !important;
}
html body a[title="Google Maps"]:not(#floatingMapsBtn):hover{
  background:linear-gradient(135deg,#ff7a59,#ea4335) !important; color:#fff !important; border-color:transparent !important;
}
html body #floatingMapsBtn{
  background:linear-gradient(135deg,#ff7a59 0%,#ea4335 100%) !important; color:#fff !important;
  border:0 !important; box-shadow:0 14px 28px -10px rgba(234,67,53,.6) !important;
}

/* ---------- تنسيق نص المقال (العناوين، القوائم، الروابط، الصور، الاقتباسات) ---------- */
html body #artFullContent{ font-size:1rem; line-height:1.95; color:#334155; }
html body #artFullContent > * + *{ margin-top:1rem; }
html body #artFullContent h2{ font-size:1.35rem; font-weight:800; color:#0f172a; margin-top:2rem; padding-inline-start:.75rem; border-inline-start:4px solid #0ea5e9; line-height:1.5; }
html body #artFullContent h3{ font-size:1.12rem; font-weight:800; color:#0f172a; margin-top:1.5rem; }
html body #artFullContent ul{ list-style:disc; padding-inline-start:1.5rem; }
html body #artFullContent ol{ list-style:decimal; padding-inline-start:1.5rem; }
html body #artFullContent li{ margin:.35rem 0; }
html body #artFullContent li::marker{ color:#0ea5e9; }
html body #artFullContent a{ color:#0284c7; text-decoration:underline; text-underline-offset:3px; }
html body #artFullContent strong, html body #artFullContent b{ color:#0f172a; font-weight:800; }
html body #artFullContent blockquote{ background:#f0f9ff; border-inline-start:4px solid #14b8a6; border-radius:.9rem; padding:1rem 1.25rem; color:#0f172a; font-weight:600; }
html body #artFullContent img{ max-width:100%; height:auto; border-radius:1rem; margin:1.25rem auto; }
