/*
Theme Name: VirtualPsy Platform Theme
Theme URI: https://virtualpsy.org/
Author: VirtualPsy Team
Author URI: https://virtualpsy.org/
Description: قالب ووردبريس خفيف وسريع (RTL) لمنصة نفسي فيرتول + إعدادات للهيدر والفوتر + سلايدر مقالات بدون جافاسكربت + صورة بارزة وبريدكرَمب.
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virtualpsy-theme
*/

/* تثبيت ستايل العناوين وعدم الاعتماد على User-Agent */
/* === Tajawal (Local) === */
@font-face{
  font-family:"Tajawal";
  src:url("./assets/fonts/Tajawal-ExtraLight.woff2") format("woff2");
  font-weight:200;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tajawal";
  src:url("./assets/fonts/Tajawal-Light.woff2") format("woff2");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tajawal";
  src:url("./assets/fonts/Tajawal-Regular.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tajawal";
  src:url("./assets/fonts/Tajawal-Medium.woff2") format("woff2");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tajawal";
  src:url("./assets/fonts/Tajawal-Bold.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Tajawal";
  src:url("./assets/fonts/Tajawal-ExtraBold.woff2") format("woff2");
  font-weight:800;
  font-style:normal;
  font-display:swap;
}
/* امنع 800 من العناوين الافتراضية */
h1, h2, h3, .site-title, .hero-title{
  font-weight: 700 !important;
}
/* قلّل طلب Medium */
body, p, a, button, .meta, .post-meta, .nav-links{
  font-weight: 400 !important;
}

/* Apply font */
html, body{
  font-family:"Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

:where(h1) { font-size: 2em; margin-block: 0.67em; }
:where(h2) { font-size: 1.5em; margin-block: 0.83em; }
:where(h3) { font-size: 1.17em; margin-block: 1em; }

/* مثال: لو عندك عنوان الموقع (اللوجو تيكست) */
.site-title { margin: 0; }
.site-title a { font-size: 28px; line-height: 1.2; display: inline-block; }

/* =========================
   0) Reset + Base
========================= */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{opacity:.95}
:focus-visible{outline:3px solid rgba(11,95,255,.35);outline-offset:2px;border-radius:10px}

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e8edf5;

  --brand:#0b5fff;
  --brand2:#2563eb;

  --shadow:0 14px 44px rgba(15, 23, 42, .10);
  --shadow2:0 6px 20px rgba(15, 23, 42, .08);

  --radius:16px;
  --radius2:22px;

  --container:1400px;
  --pad:24px;

  --tap:44px; /* minimum touch target */
}

body{
  font-family:"Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.9;
  direction:rtl;
  text-align:right;
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
}

::selection{background:rgba(11,95,255,.16)}

/* =========================
   1) Layout
========================= */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--pad);
}
.site-content{
  padding:34px 0;
}

/* مساعدات صغيرة */
.muted{color:var(--muted)}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}

/* =========================
   2) Header (Pro + Mobile friendly)
========================= */
.site-header{
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:50;
}

.header-row{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

/* Brand */
.site-branding{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.site-title{
  margin:0;
  font-size:22px;
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.site-description{
  margin: 6px 0 0;
  font-size: 13px;

  /* خليها تظهر بدل (...) */
  white-space: normal;
  overflow: visible;
  text-overflow: clip;

  /* ستايل براند لطيف */
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.35;

  /* ديكور بسيط */
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgb(0 237 237 / 10%);
  border: 1px solid rgba(237,175,0,.28);
}

/* نجمة/نقطة ديكور قبل الوصف */
.site-description::before{
  content: "✦";
  font-size: 12px;
  opacity: .9;
}

/* موبايل: خليها سطرين كحد أقصى وبشكل مرتب */
@media (max-width: 768px){
  .site-description{
    font-size: 12.5px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;  /* سطرين */
    overflow: hidden;
  }
}
@media (max-width: 768px){

  /* الشارة الصفراء + الديسكربشن تحتها */
  .site-branding{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:4px !important;
  }

  .site-branding .site-description{
    margin:0 !important;
    font-size:12.5px;
    line-height:1.3;
    opacity:.75;
  }

  /* العنوان النصّي لا ينقص ولا ينحذف */
  .site-title,
  .site-title a{
    display:block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100%;
    line-height:1.2;
    font-size: 21px;
  }
}

/* Menu (بدون JS) */
.main-navigation{
  min-width:0;
}
.main-navigation ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:10px;
  flex-direction:row-reverse; /* RTL */
  flex-wrap:wrap;
  justify-content:flex-start;
}

.main-navigation a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--tap);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700 !important;
  font-size:16px;
  color:var(--text);
  background:transparent;
  transition:background .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.main-navigation a:hover{
  border-color:var(--line);
  background:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.07);
  transform:translateY(-1px);
}

/* =========================
   3) Index grid cards
========================= */
.posts-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}

.post-card{
  background:var(--card);
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow2);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:rgba(11,95,255,.14);
}

.post-thumbnail{background:#f1f5f9}
.post-thumbnail img{width:100%;height:auto}

.post-content{
  padding:18px 18px 22px;
}
.post-card .post-title{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.55;
  font-weight:900;
}
.post-card .post-title a{
  display:block; /* clickable area أكبر */
}
.post-excerpt{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

/* =========================
   4) Single / Page (منظّم بدون تضارب)
========================= */
/* خلي صفحة المقال/الصفحة بعرض الموقع */
.single-post .site-content,
.single-page .site-content{padding-top:22px}

/* داخل الصفحة: أقسام على شكل بطاقات */
.post-header,
.post-content-area,
.related-wrap{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow:var(--shadow2);
  padding:28px;
  margin-bottom:18px;
}

/* العنوان */
.single-post .post-title,
.single-page .page-title{
  font-size:clamp(24px, 3.2vw, 36px);
  margin:0 0 10px;
  line-height:1.35;
  font-weight:950;
  letter-spacing:.1px;
}

/* Breadcrumbs (RTL مضبوط) */
.breadcrumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  flex-direction:rtl;
  justify-content:flex-start;
  color:var(--muted);
  font-size:13px;
  margin:0 0 10px;
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs .sep{opacity:.6}

/* Meta */
.post-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}
.post-meta a{
  color:inherit;
  border-bottom:1px dashed rgba(100,116,139,.45);
}
.post-meta a:hover{border-bottom-color:rgba(100,116,139,.85)}

/* Featured image */
.single-featured{
  margin:18px 0 18px;
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 20px 55px rgba(15,23,42,.12);
}
.single-featured img{width:100%;height:auto}

/* Content typography */
.post-content-area{
  font-size:18px;
}
.post-content-area h2{
  font-size:24px;
  margin:26px 0 10px;
  line-height:1.45;
  font-weight:950;
}
.post-content-area h3{
  font-size:20px;
  margin:22px 0 8px;
  line-height:1.5;
  font-weight:900;
}
.post-content-area p{margin:0 0 14px}
.post-content-area ul,
.post-content-area ol{margin:0 0 14px;padding-inline-start:22px}
.post-content-area li{margin:6px 0}
.post-content-area a{
  border-bottom:1px solid rgba(11,95,255,.22);
}
.post-content-area a:hover{
  border-bottom-color:rgba(11,95,255,.6);
}

/* =========================
   5) Related slider (NO JS)
========================= */
.related-wrap{
  margin-top:0; /* صار ضمن بطاقات */
}
.related-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.related-title{
  margin:0;
  font-size:18px;
  font-weight:950;
}
.related-hint{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

.related-slider{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:6px 2px 14px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.related-card{
  min-width:300px;
  max-width:300px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  scroll-snap-align:start;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.related-card a{display:block}
.related-thumb{background:#f1f5f9}
.related-thumb img{width:100%;height:auto}
.related-body{padding:14px 14px 16px}
.related-card h3{margin:0 0 8px;font-size:16px;line-height:1.55;font-weight:900}
.related-meta{font-size:12px;color:var(--muted);margin:0 0 10px}
.related-excerpt{font-size:13px;color:var(--muted);margin:0}

/* scrollbar */
.related-slider::-webkit-scrollbar{height:10px}
.related-slider::-webkit-scrollbar-thumb{background:#cfd7e6;border-radius:999px}
.related-slider::-webkit-scrollbar-track{background:transparent}

/* =========================
   6) Footer (Pro)
========================= */
.site-footer{
  margin-top:46px;
  background:#0b1220;
  color:#e5e7eb;
  padding:34px 0 18px;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr 1fr;
  gap:18px;
  align-items:start;
}
.footer-box{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:16px;
}
.footer-box h3{
  margin:0 0 10px;
  font-size:15px;
  font-weight:950;
  color:#fff;
}
.footer-box p{margin:0;color:#cbd5e1}

.footer-links ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.footer-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#e5e7eb;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
}
.footer-links a:hover{background:rgba(255,255,255,.06)}

.footer-bottom{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:#94a3b8;
  font-size:12px;
}

/* =========================
   7) Responsive (احترافي للموبايل)
========================= */

/* لابتوب أصغر / تابلت كبير */
@media (max-width: 1100px){
  :root{--pad:18px}
  .posts-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .footer-grid{grid-template-columns:1fr}
}

/* تابلت / موبايل كبير */
@media (max-width: 768px){
  :root{--pad:16px}

  .site-content{padding:22px 0}

  /* هيدر: خلي الماركة فوق والمنيو تحت */
  .header-row{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:12px 0;
  }
  .site-branding{
    justify-content:space-between;
  }

  /* منيو: بدون JS خليها Scrollable أفقياً + Touch friendly */
  .main-navigation ul{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    gap:10px;
    padding:6px 2px 10px;
    border-top:1px solid var(--line);
    margin-top:6px;
  }
  .main-navigation ul::-webkit-scrollbar{height:8px}
  .main-navigation ul::-webkit-scrollbar-thumb{background:#d7deea;border-radius:999px}
  .main-navigation li{scroll-snap-align:start}
  .main-navigation a{
    white-space:nowrap;
    min-height:46px;
    padding:10px 14px;
    background:#fff;
    border-color:var(--line);
    box-shadow:0 8px 18px rgba(15,23,42,.06);
  }

  /* Grid */
  .posts-grid{grid-template-columns:1fr; gap:14px}
  .post-content{padding:16px 16px 18px}
  .post-card .post-title{font-size:18px}
  .post-excerpt{font-size:14px}

  /* Single/Page بطاقات أنحف */
  .post-header,
  .post-content-area,
  .related-wrap{
    padding:18px;
    border-radius:18px;
  }
  .post-content-area{font-size:16.5px}
  .post-content-area h2{font-size:20px;margin:20px 0 8px}
  .post-content-area h3{font-size:18px;margin:16px 0 6px}

  .single-featured{
    border-radius:18px;
    margin:14px 0 14px;
  }

  /* related cards أصغر */
  .related-card{min-width:240px;max-width:240px}
}

/* موبايل صغير */
@media (max-width: 480px){
  :root{--pad:14px}

  .site-title{font-size:20px}
  .site-description{font-size:12px}

  .post-card{border-radius:18px}
  .post-card:hover{transform:none} /* على الموبايل ما في داعي قفز */

  .main-navigation a{min-height:48px}

  /* تحسين القراءة على شاشات ضيقة */
  .post-content-area{font-size:16px}
  .breadcrumbs{font-size:12px}
  .post-meta{font-size:12px}

  /* Safe area للآيفون */
  .site-header,
  .site-content,
  .site-footer{
    padding-left:env(safe-area-inset-left);
    padding-right:env(safe-area-inset-right);
  }
}
































/* ===== Mobile menu (NO JS) - SIMPLE ===== */
.nav-toggle{ display:none; }

/* زر القائمة: بسيط */
.nav-toggle-btn{
  display:none;            /* يظهر فقط بالموبايل */
  width:44px;
  height:44px;
  cursor:pointer;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  align-items:center;
  justify-content:center;
}

/* أيقونة إيموجي */
.nav-ico::before{
  content:"☰";
  font-size:22px;
  line-height:1;
  color:#0f172a;
}

/* عند الفتح تتحول إلى X */
.nav-toggle:checked + .nav-toggle-btn .nav-ico::before{
  content:"✕";
}

/* ===== Mobile layout + menu ===== */
@media (max-width: 900px){

  .site-header .header-row{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap:10px;
    align-items:center;
  }

  .site-header .site-branding{ grid-area:brand; }
  .nav-toggle-btn{ grid-area:toggle; display:flex; }
  .site-header .main-navigation{ grid-area:nav; }

  /* اخفاء القائمة افتراضيًا */
  .site-header .main-navigation ul{
    display:none;
    margin:8px 0 0;
    padding:0;
    list-style:none;
  }

  /* اظهار القائمة عند التفعيل */
  .nav-toggle:checked ~ .main-navigation ul{
    display:block;
  }

  /* شكل القائمة: بسيط عمودي */
  .site-header .main-navigation li{
    margin:0;
    padding:0;
    border-top:1px solid #e8edf5;
  }

  .site-header .main-navigation a{
    display:block;
    padding:12px 0;
    text-decoration:none;
    border:none !important;
    background:transparent !important;
    border-radius:0 !important;
  }

  /* القوائم الفرعية: تظهر تحت الأب بشكل بسيط */
  .site-header .main-navigation li ul{
    display:block !important;
    position:static !important;
    margin:0;
    padding:0;
    border:none !important;
    box-shadow:none !important;
  }

  .site-header .main-navigation li ul li{
    border-top:1px dashed #e8edf5;
  }

  .site-header .main-navigation li ul a{
    padding:10px 0;
    color:#334155;
  }
}













/* Featured image below content */
.single-featured--below{ margin-top:22px; }

/* Author box */
.author-box{
  margin-top:26px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  padding:16px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.author-avatar img{ border-radius:999px; }
.author-info{ flex:1; }
.author-name{ margin:0 0 6px; font-size:16px; font-weight:800; }
.author-name a{ text-decoration:none; }
.author-bio{ margin:0 0 10px; color:var(--muted); font-size:14px;}
.author-link{
  display:inline-block;
  font-size:13px;
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
}

/* Rating summary */
.rating-summary{ margin-top:18px; }
.rating-summary__box{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  padding:16px;
}
.rating-summary__title{ margin:0 0 10px; font-size:16px; font-weight:800; }
.rating-summary__row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.rating-summary__stars .star{ font-size:18px; opacity:.35; }
.rating-summary__stars .star.filled{ opacity:1; }
.rating-summary__count{ color:var(--muted); margin-right:6px; }
.rating-summary__empty{ margin:0; color:var(--muted); }

/* Comment form rating (no JS) */
.lt-rating-field{ margin:12px 0 0; }
.lt-rating-label{ display:block; font-weight:800; margin:0 0 6px; }
.lt-rating-note{ margin:6px 0 0; color:var(--muted); font-size:12px; }

/* Star input styling */
.lt-stars-input{
  display:inline-flex;
  flex-direction:row-reverse; /* RTL + star hover works */
  gap:6px;
}
.lt-stars-input input{ display:none; }
.lt-stars-input label{
  font-size:22px;
  cursor:pointer;
  opacity:.35;
  line-height:1;
}
.lt-stars-input input:checked ~ label{ opacity:1; }
.lt-stars-input label:hover,
.lt-stars-input label:hover ~ label{ opacity:1; }

/* Rating shown above each comment */
.comment-rating{ margin:0 0 8px; }
.comment-rating .star{ font-size:16px; opacity:.35; }
.comment-rating .star.filled{ opacity:1; }







/* =========================
   Comments Form (Pro Skin)
========================= */

/* صندوق النموذج كله */
#respond{
  margin-top:22px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

#reply-title{
  margin:0 0 12px;
  font-size:18px;
  font-weight:900;
}

/* النص اللي فوق النموذج (مُسجل دخول...) */
.logged-in-as,
.comment-notes{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
}

/* شبكة الحقول */
.comment-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px 14px;
}

/* خلي حقل التعليق ياخذ عرض كامل */
.comment-form-comment{
  grid-column:1 / -1;
}

/* الليبلات */
.comment-form label{
  display:block;
  margin:0 0 8px;
  font-weight:800;
  font-size:13px;
  color:var(--text);
}

/* textarea */
.comment-form textarea{
  width:100% !important;
  min-height:160px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  outline:none;
  font-size:15px;
  line-height:1.8;
  transition:box-shadow .12s ease, border-color .12s ease;
}

.comment-form textarea:focus{
  border-color:rgba(11,95,255,.35);
  box-shadow:0 0 0 4px rgba(11,95,255,.10);
}

/* ========== Rating Block (داخل النموذج) ========== */
.lt-rating-field{
  grid-column:1 / -1;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(2,6,23,.02);
}

.lt-rating-label{
  display:inline-block;
  font-weight:900;
  margin:0 0 10px;
  font-size:13px;
  color:var(--text);
}

/* مهم: نجوم على سطر واحد + سلوك checked بدون JS */
.lt-stars-input{
  display:inline-flex !important;
  flex-direction:row-reverse; /* لسهولة hover */
  align-items:center;
  gap:10px;
  direction:ltr; /* يخلي checked ~ label يشتغل صح */
  unicode-bidi:bidi-override;
}

/* اخفاء الراديو */
.lt-stars-input input{
  position:absolute !important;
  opacity:0 !important;
  width:1px !important;
  height:1px !important;
  pointer-events:none !important;
}

/* النجمة */
.lt-stars-input label{
  display:inline-block !important;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  opacity:.25;
  transform:translateY(-1px);
  transition:opacity .12s ease, transform .12s ease;
  user-select:none;
}

.lt-stars-input label:hover,
.lt-stars-input label:hover ~ label{
  opacity:1;
  transform:translateY(-2px);
}

.lt-stars-input input:checked ~ label{
  opacity:1;
}

.lt-rating-note{
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
}

/* زر الإرسال */
.form-submit{
  grid-column:1 / -1;
  margin:0;
  display:flex;
  justify-content:flex-start;
}

.form-submit .submit{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:12px 16px;
  border-radius:999px;
  background:#0b5fff;
  color:#fff;
  font-weight:900;
  font-size:14px;
  box-shadow:0 12px 26px rgba(11,95,255,.22);
}

.form-submit .submit:hover{
  opacity:.94;
}

/* اجبار RTL للمكان الصح إذا في إضافات بتغير الاتجاه */
#respond, .comment-form{ direction:rtl; text-align:right; }

/* موبايل */
@media (max-width: 768px){
  .comment-form{ grid-template-columns:1fr; }
}
/* =========================
   Related Slider (No JS) — Full CSS
   - 1..3 cards: fill width (no empty gap)
   - 4+ cards: horizontal slider
========================= */

.related-wrap{
  margin-top:34px;
  border-top:1px solid var(--line);
  padding-top:22px;
}

.related-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.related-title{
  margin:0;
  font-size:18px;
  font-weight:800;
}

.related-hint{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

/* Slider container */
.related-slider{
  display:flex;
  gap:16px;
  padding:6px 2px 14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;

  /* مهم: هذا يلغي الفراغ لما العناصر قليلة */
  justify-content:stretch;
}

/* Card: مرنة */
.related-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  scroll-snap-align:start;
  box-shadow:0 10px 24px rgba(15, 23, 42, .06);

  /* السر */
  flex: 1 1 300px;     /* خليه يتمدد ويصغر */
  min-width: 260px;    /* أقل عرض */
  max-width: none;     /* لا تقصّه على 300 */
}

/* Link block */
.related-card a{
  text-decoration:none;
  display:block;
  height:100%;
}

/* Thumb */
.related-thumb{
  background:#f1f5f9;
}

.related-thumb img{
  display:block;
  width:100%;
  height:auto;
}

/* Body */
.related-body{
  padding:14px 14px 16px;
}

.related-card h3{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.55;
}

.related-meta{
  font-size:12px;
  color:var(--muted);
  margin:0 0 10px;
}

.related-excerpt{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* Scrollbar */
.related-slider::-webkit-scrollbar{ height:10px; }
.related-slider::-webkit-scrollbar-thumb{
  background:#cfd7e6;
  border-radius:999px;
}
.related-slider::-webkit-scrollbar-track{ background:transparent; }

/* Responsive tweaks */
@media (max-width: 768px){
  .related-card{
    flex: 0 0 240px;   /* على الموبايل خليه سلايدر واضح */
    min-width:240px;
  }
}

/* ===== Mobile: related posts stacked (no horizontal scroll) ===== */
@media (max-width: 768px){
  .related-slider{
    overflow-x: visible;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
    flex-wrap: wrap;
    justify-content: stretch;
    padding-bottom: 0;
  }

  .related-card{
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
}/* =========================
   TOC (No JS) H2..H5
========================= */
.lt-toc{
  margin:18px 0 18px;
  border:1px solid var(--line);
  background:rgba(2,6,23,.02);
  border-radius:18px;
  padding:16px;
}

.lt-toc__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.lt-toc__title{
  font-size:15px;
  font-weight:900;
}

.lt-toc__note{
  font-size:12px;
  color:var(--muted);
}

.lt-toc__list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.lt-toc__list a{
  text-decoration:none;
  color:var(--text);
  border-bottom:1px dashed rgba(100,116,139,.35);
}

.lt-toc__list a:hover{
  border-bottom-color:rgba(100,116,139,.75);
}

/* indent by heading level */
.lt-toc__list .lvl-2{ padding-right:0; }
.lt-toc__list .lvl-3{ padding-right:14px; opacity:.95; }
.lt-toc__list .lvl-4{ padding-right:28px; opacity:.90; }
.lt-toc__list .lvl-5{ padding-right:42px; opacity:.85; }

.posts-page-intro{
 
  padding:20px;
  margin:0 0 22px;
}

.posts-page-title{
  margin:0 0 10px;
  font-size:22px;
  font-weight:900;
}

.posts-page-content{
  color:var(--muted);
  font-size:16px;
}
.posts-page-content p{ margin:0 0 12px; }
/* =========================================
   Posts page intro (lt_index_intro_text)
   ========================================= */

/* متغيرات بسيطة لتغيير الشكل بسهولة */
:root{
  --intro-bg: #ffffff;
  --intro-border: rgba(15, 23, 42, .10);
  --intro-text: #0f172a;
  --intro-muted: rgba(15, 23, 42, .72);
  --intro-link: #2563eb;
  --intro-link-hover: #1d4ed8;
  --intro-radius: 18px;
}

/* الحاوية العامة للقسم */
.posts-page-intro{
  position: relative;
  margin: 18px 0 26px;
}

/* الكارد */
.posts-page-intro .posts-page-content{
  background: var(--intro-bg);
  border: 1px solid var(--intro-border);
  border-radius: var(--intro-radius);
  padding: 18px 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  overflow: hidden;
}

/* تحسين القراءة والخط */
.posts-page-intro .posts-page-content{
  color: var(--intro-text);
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* فقرات وتباعد */
.posts-page-intro .posts-page-content p{
  margin: 0 0 12px;
  color: var(--intro-muted);
}
.posts-page-intro .posts-page-content p:last-child{
  margin-bottom: 0;
}

/* عناوين داخل النص */
.posts-page-intro .posts-page-content h1,
.posts-page-intro .posts-page-content h2,
.posts-page-intro .posts-page-content h3,
.posts-page-intro .posts-page-content h4{
  margin: 0 0 10px;
  color: var(--intro-text);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}
.posts-page-intro .posts-page-content h2{ font-size: 20px; }
.posts-page-intro .posts-page-content h3{ font-size: 18px; }
.posts-page-intro .posts-page-content h4{ font-size: 16px; opacity: .95; }

/* روابط */
.posts-page-intro .posts-page-content a{
  color: var(--intro-link);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(37, 99, 235, .25);
  transition: .15s ease;
}
.posts-page-intro .posts-page-content a:hover{
  color: var(--intro-link-hover);
  border-bottom-color: rgba(29, 78, 216, .45);
}

/* قوائم */
.posts-page-intro .posts-page-content ul,
.posts-page-intro .posts-page-content ol{
  margin: 10px 0 12px;
  padding-inline-start: 22px;
  color: var(--intro-muted);
}
.posts-page-intro .posts-page-content li{
  margin: 6px 0;
}

/* اقتباس */
.posts-page-intro .posts-page-content blockquote{
  margin: 12px 0;
  padding: 12px 14px;
  border-right: 4px solid rgba(37, 99, 235, .55);
  background: rgba(37, 99, 235, .06);
  border-radius: 12px;
  color: rgba(15, 23, 42, .78);
}

/* فاصل */
.posts-page-intro .posts-page-content hr{
  border: 0;
  height: 1px;
  background: rgba(15, 23, 42, .10);
  margin: 14px 0;
}

/* صور داخل النص (لو فيه محتوى محرر) */
.posts-page-intro .posts-page-content img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* لمسة شكل بسيطة فوق الكارد */
.posts-page-intro .posts-page-content::before{
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(37,99,235,.9), rgba(34,197,94,.7));
  border-radius: 999px;
  margin: 0 18px;
}

/* تحسين للموبايل */
@media (max-width: 768px){
  .posts-page-intro{ margin: 14px 0 20px; }
  .posts-page-intro .posts-page-content{
    padding: 14px 14px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.9;
  }
  .posts-page-intro .posts-page-content h2{ font-size: 18px; }
  .posts-page-intro .posts-page-content h3{ font-size: 17px; }
}
.footer-archive-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-archive-list a{color:inherit;text-decoration:none;line-height:1.6}
.footer-archive-list a:hover{text-decoration:underline}

/* إظهار أول 5 فقط */
.footer-archive-list li:nth-child(n+6){display:none}

/* عند الضغط: إظهار الكل */
.footer-archive-toggle:checked ~ .footer-archive-list li{display:list-item}

/* زر إظهار المزيد */
.footer-archive-btn{
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:10px; padding:8px 12px;
  border:1px solid rgba(0,0,0,.12); border-radius:10px;
  cursor:pointer; user-select:none;
}
.footer-archive-btn .less{display:none}
.footer-archive-toggle:checked ~ .footer-archive-btn .more{display:none}
.footer-archive-toggle:checked ~ .footer-archive-btn .less{display:inline}
/* ===== WP Comment Form (RTL friendly) ===== */
.comment-respond .comment-form{
  direction: rtl;
  text-align: right;
}

/* كل سطر (الاسم/الايميل/الموقع/التعليق) */
.comment-respond .comment-form > p{
  margin: 0 0 14px;
}

/* الليبل */
.comment-respond .comment-form label{
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1b1f2a;
}

/* النجمة المطلوبة */
.comment-respond .comment-form .required{
  color: #d12c2c;
  margin-inline-start: 4px;
}

/* حقول الإدخال + textarea */
.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea{
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #d9deea;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* صندوق التعليق أكبر */
.comment-respond .comment-form textarea{
  max-width: 820px;
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

/* فوكس */
.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus{
  border-color: #6b7cff;
  box-shadow: 0 0 0 4px rgba(107,124,255,.15);
}

/* placeholder */
.comment-respond .comment-form input::placeholder,
.comment-respond .comment-form textarea::placeholder{
  color: #8a93a6;
}

/* ===== cookies consent (checkbox) ===== */
.comment-respond .comment-form-cookies-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.comment-respond .comment-form-cookies-consent input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #6b7cff;
}

.comment-respond .comment-form-cookies-consent label{
  display: inline;
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  color: #3b4354;
  line-height: 1.7;
}

/* ===== Mobile ===== */
@media (max-width: 600px){
  .comment-respond .comment-form input[type="text"],
  .comment-respond .comment-form input[type="email"],
  .comment-respond .comment-form input[type="url"],
  .comment-respond .comment-form textarea{
    max-width: 100%;
    font-size: 16px; /* يمنع زوم iOS */
  }
}
/* مقالات اقرأ أيضاً */
.related-article-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-right: 4px solid #0073aa;
    border-radius: 5px;
}

.related-article .read-also {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
    font-size: 16px;
}

.related-article .article-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.related-article .article-content img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.related-article .article-content p {
    margin: 0;
    flex: 1;
}

.related-article .article-content a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.related-article .article-content a:hover {
    color: #0073aa;
}

@media (max-width: 600px) {
    .related-article .article-content {
        flex-direction: column;
        text-align: center;
    }
    
    .related-article .article-content img {
        width: 100%;
        height: auto;
    }
}
























/* ========================================
   تصميم احترافي لصفحات الأرشيف - نفسي فيرتول
   ======================================== */

/* الحاوية الرئيسية */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   رأس صفحة الأرشيف
   ======================================== */
.archive-header {
    position: relative;
    margin-bottom: 60px;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.archive-header > * {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding: 50px 50px 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.archive-description {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 18px;
    padding: 0 50px 50px;
    max-width: 800px;
}

/* ========================================
   معلومات الكاتب
   ======================================== */
.author-info-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 50px;
}

.author-avatar {
    flex-shrink: 0;
    position: relative;
}

.author-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.5));
    border-radius: 50%;
    z-index: 0;
}

.author-avatar img {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    border: 5px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.author-details {
    flex: 1;
}

.author-details .page-title {
    padding: 0;
    margin-bottom: 15px;
}

.author-profile {
    color: rgba(255, 255, 255, 0.95);
    margin: 15px 0;
    line-height: 1.7;
    font-size: 16px;
   
}

.author-posts-count {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ========================================
   قائمة المقالات - تصميم Grid حديث
   ======================================== */
.archive-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.archive-post-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.archive-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.archive-post-item .post-thumbnail {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.archive-post-item .post-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.archive-post-item:hover .post-thumbnail::after {
    opacity: 1;
}

.archive-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-post-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content-wrapper {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.4;
}

.entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-title a:hover {
    color: #667eea;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-meta span::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
}

.entry-meta span:first-child::before {
    content: '';
}

.entry-meta a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-meta a:hover {
    color: #764ba2;
}

.entry-summary {
    color: #666;
    line-height: 1.8;
    margin: 20px 0;
    flex: 1;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-footer {
    margin-top: auto;
    padding-top: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}



.read-more-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.read-more-btn:hover::after {
    transform: translateX(-4px);
}

/* ========================================
   الترقيم (Pagination)
   ======================================== */
.pagination-wrapper {
    margin: 60px 0 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

.pagination .prev,
.pagination .next {
    padding: 0 20px;
    font-weight: 700;
}

/* ========================================
   رسالة عدم وجود مقالات
   ======================================== */
.no-posts-found {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px dashed #dee2e6;
}

.no-posts-found p {
    font-size: 20px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   تصميم متجاوب (Responsive)
   ======================================== */
@media (max-width: 1024px) {
    .archive-posts {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 30px 15px;
    }
    
    .archive-header {
        margin-bottom: 40px;
        border-radius: 16px;
    }
    
    .page-title {
        font-size: 32px;
        padding: 35px 30px 15px;
    }
    
    .archive-description {
        font-size: 16px;
        padding: 0 30px 35px;
    }
    
    .author-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 35px 30px;
        gap: 25px;
    }
    
    .author-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .archive-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .entry-title {
        font-size: 20px;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
        padding: 30px 20px 15px;
    }
    
    .archive-description {
        font-size: 15px;
        padding: 0 20px 30px;
    }
    
    .author-info-header {
        padding: 30px 20px;
    }
    
    .post-content-wrapper {
        padding: 25px 20px;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }
    
    .read-more-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    
    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ========================================
   تأثيرات إضافية
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-post-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.archive-post-item:nth-child(1) { animation-delay: 0.1s; }
.archive-post-item:nth-child(2) { animation-delay: 0.2s; }
.archive-post-item:nth-child(3) { animation-delay: 0.3s; }
.archive-post-item:nth-child(4) { animation-delay: 0.4s; }
.archive-post-item:nth-child(5) { animation-delay: 0.5s; }
.archive-post-item:nth-child(6) { animation-delay: 0.6s; }

/* تأثير التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* تحسين الخطوط */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Simple Medical References */
.lt-medical-refs{
  margin: 24px 0 0;
  padding: 14px 16px;
background: linear-gradient(135deg, #ffffff 0%, #f6f7fb 45%, #eef2ff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.lt-medical-refs-title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.lt-medical-refs-list{
  margin: 0;
  padding: 0 18px 0 0; /* RTL */
  line-height: 1.9;
}

.lt-medical-refs-list li{
  margin: 6px 0;
}

.lt-medical-refs-list a{
  color: #1d4ed8;
  text-decoration: none;
}

.lt-medical-refs-list a:hover{
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px){
  .lt-medical-refs{
    padding: 12px 14px;
    border-radius: 10px;
  }
  .lt-medical-refs-title{
    font-size: 15px;
  }
}

 .vp-wa-wrap{
    position: fixed;
    z-index: 999999;
    right: 18px;
    bottom: 18px;
  }

  .vp-wa-btn{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(18, 18, 18, .82);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 35px rgba(0,0,0,.28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }

  .vp-wa-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0,0,0,.34);
    background: rgba(18, 18, 18, .90);
  }

  .vp-wa-ico{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.10);
    position: relative;
    overflow: hidden;
  }

  .vp-wa-ico:before{
    content:"";
    position:absolute;
    inset:-40%;
    background: conic-gradient(from 180deg, rgba(37,211,102,.0), rgba(37,211,102,.55), rgba(37,211,102,.0));
    animation: vpWaSpin 2.8s linear infinite;
  }

  .vp-wa-ico svg{
    width: 22px;
    height: 22px;
    fill: #25D366; /* WhatsApp green */
    position: relative;
    z-index: 1;
  }

  .vp-wa-text{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #fff;
    font-family: inherit;
  }

  .vp-wa-text strong{
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
  }

  .vp-wa-text small{
    margin-top: 3px;
    font-size: 12px;
    opacity: .75;
  }

  /* subtle pulse dot */
  .vp-wa-text strong:after{
    content:"";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-start: 8px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 0 rgba(37,211,102,.55);
    animation: vpWaPulse 1.8s infinite;
    vertical-align: middle;
  }

  @keyframes vpWaSpin{
    to{ transform: rotate(360deg); }
  }

  @keyframes vpWaPulse{
    0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70%{ box-shadow: 0 0 0 10px rgba(37,211,102,0); }
    100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
  }

  /* Mobile: show icon only to keep it clean */
 /* Mobile: show text too (compact) */
@media (max-width: 480px){
  .vp-wa-btn{
    padding: 10px 12px;
    gap: 10px;
  }

  .vp-wa-text{
    display: flex;          /* بدل none */
    line-height: 1.05;
  }

  .vp-wa-text strong{
    font-size: 13px;
  }

  .vp-wa-text small{
    font-size: 11px;
    margin-top: 2px;
  }

  .vp-wa-ico{
    width: 44px;
    height: 44px;
  }

  .vp-wa-ico svg{
    width: 22px;
    height: 22px;
  }
}
/* إظهار أول 10 فقط */
.posts-grid .post-card:nth-child(n+10){display:none;}

/* عند التفعيل: أظهر الكل */
.posts-toggle:checked ~ .posts-grid .post-card:nth-child(n+11){display:block;}

/* زر إظهار المزيد/أقل */
.posts-more-btn{
  display:flex;
  justify-content:center;
  align-items:center;
  width: fit-content;
  margin: 22px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.posts-more-btn .less{display:none;}
.posts-toggle:checked ~ .posts-more-btn .more{display:none;}
.posts-toggle:checked ~ .posts-more-btn .less{display:inline;}
























































 .hero-content {
            position: relative;
            z-index: 1;
              text-align: center;     /* يخلي النص نفسه بالوسط */

        }

        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            opacity: 0.95;
        }

        .cta-button {
            display: inline-block;
            background: white;
            color: #667eea;
            padding: 18px 45px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 18px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }

      


        h2 {
            font-size: 36px;
            margin-bottom: 40px;
            text-align: center;
            color: #2c3e50;
        }

        .comparison-table {
            overflow-x: auto;
            margin: 40px 0;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        th, td {
            padding: 20px;
            text-align: right;
            border-bottom: 1px solid #e9ecef;
        }

        th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: bold;
        }

        tr:hover {
            background: #f8f9fa;
        }

        .benefits {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .benefit-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .benefit-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
        }

        .benefit-card h3 {
            color: #667eea;
            margin-bottom: 15px;
            font-size: 22px;
        }

        .questions-list {
            max-width: 800px;
            margin: 40px auto;
        }

        .question-item {
            background: white;
            padding: 25px;
            margin-bottom: 20px;
            border-radius: 10px;
            border-right: 4px solid #667eea;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
        }

        .question-item h3 {
            color: #667eea;
            margin-bottom: 10px;
            font-size: 20px;
        }

        .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .step {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            position: relative;
        }

        .step-number {
            position: absolute;
            top: -20px;
            right: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .step h3 {
            margin-top: 20px;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .session-types {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .session-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .session-card:hover {
            transform: scale(1.05);
        }

        .session-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .testimonials {
            max-width: 900px;
            margin: 40px auto;
        }

        .testimonial {
            background: white;
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-top: 3px solid #ffd700;
        }

        .stars {
            color: #ffd700;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .testimonial-text {
            font-style: italic;
            margin-bottom: 15px;
            line-height: 1.8;
        }

        .testimonial-author {
            font-weight: bold;
            color: #667eea;
        }

        .stats {
            text-align: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 20px;
            border-radius: 15px;
            margin: 40px 0;
        }

        .stats-number {
            font-size: 48px;
            font-weight: bold;
            margin-bottom: 10px;
        }

       

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 32px;
            }

            .hero p {
                font-size: 16px;
            }

            h2 {
                font-size: 28px;
            }
        }





