/* ================================================================
   Ebaratak Theme CSS v3.0
   منصة عباراتك
   Mobile-first · RTL · No gradients · Professional
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --blue:    #003B8E;
  --blue-d:  #002266;
  --blue-l:  #EEF4FF;
  --blue-xl: #F0F6FF;
  --text:    #111827;
  --text-2:  #4B5563;
  --text-3:  #6B7280;
  --border:  #E2E8F0;
  --border-l:#F1F5F9;
  --bg:      #F8FAFC;
  --white:   #FFFFFF;
  --shadow:  0 1px 3px rgba(0,0,0,.08);
  --shadow-m:0 4px 12px rgba(0,0,0,.1);
  --r:       8px;
  --r-lg:    12px;
  --f:       'IBM Plex Sans Arabic', sans-serif;
  --w:       1100px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
html { direction:rtl; overflow-x:hidden }
body {
  font-family: var(--f);
  font-size:   16px;
  line-height: 1.7;
  color:       var(--text);
  background:  var(--bg);
  direction:   rtl;
  text-align:  right;
  padding-top: 64px;
  overflow-x:  hidden;
}
a    { text-decoration:none; color:inherit }
img  { max-width:100%; display:block }
ul   { list-style:none; padding:0; margin:0 }
button { font-family:var(--f); cursor:pointer }
input, textarea, select { font-family:var(--f) }

/* ── Layout ─────────────────────────────────────────────────────── */
.w {
  max-width: var(--w);
  margin:    0 auto;
  padding:   0 24px;
}

/* ── Admin Bar ──────────────────────────────────────────────────── */
.admin-bar .rdk-header { top:32px }
.admin-bar .hdr { top:32px }
body.admin-bar { padding-top:64px }
@media screen and (max-width:782px) {
  .admin-bar .rdk-header { top:46px }
  .admin-bar .hdr { top:46px }
  body.admin-bar { padding-top:64px }
}

/* ================================================================
   HEADER
   ================================================================ */
.rdk-header {
  position:     fixed;
  top:          0; right:0; left:0;
  height:       64px;
  background:   var(--white);
  border-bottom:1px solid var(--border);
  z-index:      1000;
  box-shadow:   var(--shadow);
}
.rdk-header .w {
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
}

/* Logo */
.rdk-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
  text-decoration: none;
}
.rdk-logo__icon {
  width:         40px;
  height:        40px;
  background:    var(--blue);
  border-radius: 10px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}
.rdk-logo__icon svg { width:22px; height:22px }
.rdk-logo__text {
  font-size:   18px;
  font-weight: 800;
  color:       var(--text);
  white-space: nowrap;
}
.rdk-logo__text small {
  display:     block;
  font-size:   10px;
  font-weight: 500;
  color:       var(--text-3);
}

/* Nav */
.rdk-nav { display:flex; gap:2px }
.rdk-nav a {
  padding:       6px 14px;
  border-radius: var(--r);
  font-size:     14px;
  font-weight:   500;
  color:         var(--text-2);
  transition:    .15s;
}
.rdk-nav a:hover, .rdk-nav a.current { color:var(--blue); background:var(--blue-l) }

/* Header Search */
.rdk-header-search {
  position:   relative;
  flex:       1;
  max-width:  280px;
}
.rdk-header-search input {
  width:         100%;
  height:        38px;
  padding:       0 38px 0 14px;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  font-size:     13px;
  background:    var(--bg);
  color:         var(--text);
  outline:       none;
  transition:    .2s;
  direction:     rtl;
}
.rdk-header-search input::placeholder { color:var(--text-3) }
.rdk-header-search input:focus { border-color:var(--blue); background:var(--white) }
.rdk-header-search__icon {
  position:  absolute;
  right:     12px; top:50%;
  transform: translateY(-50%);
  color:     var(--text-3);
  pointer-events: none;
}

/* Header Search Results */
.rdk-header-results {
  display:       none;
  position:      absolute;
  top:           calc(100% + 6px);
  right:         0; left:0;
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow:    var(--shadow-m);
  z-index:       200;
  max-height:    320px;
  overflow-y:    auto;
}
.rdk-header-results.active { display:block }
.rdk-header-results__item {
  display:     flex;
  align-items: center;
  gap:         12px;
  padding:     12px 16px;
  border-bottom: 1px solid var(--border-l);
  color:       var(--text);
  transition:  .1s;
}
.rdk-header-results__item:last-child { border-bottom:none }
.rdk-header-results__item:hover { background:var(--blue-xl) }
.rdk-header-results__icon {
  width:         32px; height:32px;
  background:    var(--blue-l);
  border-radius: 6px;
  display:       flex; align-items:center; justify-content:center;
  font-size:     16px; flex-shrink:0;
}
.rdk-header-results__title { font-size:13px; font-weight:600 }
.rdk-header-results__meta  { font-size:11px; color:var(--text-3); margin-top:1px }
.rdk-header-results__empty { padding:20px; text-align:center; font-size:13px; color:var(--text-3) }

/* Hamburger */
.rdk-hamburger {
  display:       none;
  width:         38px; height:38px;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  background:    var(--white);
  align-items:   center; justify-content:center;
  color:         var(--text-2);
  transition:    .15s;
  flex-shrink:   0;
}
.rdk-hamburger:hover { border-color:var(--blue); color:var(--blue) }

/* Mobile Menu */
.rdk-overlay {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,.5);
  z-index:    300;
}
.rdk-overlay.on { display:block }
.rdk-mobile-menu {
  position:   fixed;
  top:0; right:-280px;
  width:      280px; height:100%;
  background: var(--white);
  z-index:    400;
  transition: right .3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.rdk-mobile-menu.on { right:0 }
.rdk-mobile-menu__head {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         20px;
  border-bottom:   1px solid var(--border-l);
}
.rdk-mobile-menu__head strong { font-size:16px; font-weight:800 }
.rdk-mobile-menu__close {
  width:36px; height:36px;
  border:none; background:var(--bg);
  border-radius:var(--r);
  font-size:20px; color:var(--text-2);
}
.rdk-mobile-menu nav { padding:8px 16px }
.rdk-mobile-menu nav a {
  display:       flex; align-items:center; gap:10px;
  padding:       13px 12px;
  border-radius: var(--r);
  font-size:     15px; font-weight:500;
  color:         var(--text);
  transition:    .15s;
  margin-bottom: 2px;
}
.rdk-mobile-menu nav a:hover { background:var(--blue-l); color:var(--blue) }

/* ================================================================
   HERO
   ================================================================ */
.rdk-hero {
  background: linear-gradient(160deg,#001833 0%,#003B8E 60%,#004b99 100%);
  padding:    52px 0 0;
  text-align: center;
  direction:  rtl;
  position:   relative;
  overflow:   hidden;
}
/* دوائر زخرفة */
.rdk-hero__deco {
  position:absolute;border-radius:50%;pointer-events:none;
}
.rdk-hero__deco-1 {
  width:500px;height:500px;
  left:-180px;top:-200px;
  background:rgba(255,255,255,.04);
}
.rdk-hero__deco-2 {
  width:300px;height:300px;
  right:-80px;bottom:60px;
  background:rgba(255,255,255,.03);
}
.rdk-hero__inner {
  max-width:  680px;
  margin:     0 auto;
  padding:    0 24px 44px;
  position:   relative;
  text-align: center;
  display:    flex;
  flex-direction: column;
  align-items: center;
}
.rdk-hero__eyebrow {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  font-size:     11px;
  font-weight:   600;
  color:         rgba(255,255,255,.65);
  letter-spacing:.04em;
  margin-bottom: 18px;
  background:    rgba(255,255,255,.07);
  border:        1px solid rgba(255,255,255,.12);
  padding:       6px 14px 6px 10px;
  border-radius: 20px;
}
.rdk-hero__eyebrow-dot {
  width:22px;height:22px;
  background:rgba(34,197,94,.15);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.rdk-hero__eyebrow-dot::after {
  content:'';width:8px;height:8px;border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 2px rgba(34,197,94,.3);
  display:block;
}
.rdk-hero__title {
  font-size:      36px;
  font-weight:    900;
  color:          var(--white);
  line-height:    1.3;
  margin:         0 0 12px;
  letter-spacing: -.02em;
}
.rdk-hero__title span {
  display:      block;
  font-size:    36px;
  color:        #fbbf24;
  font-weight:  900;
  letter-spacing:-.02em;
}
.rdk-hero__title span {
  display:     block;
  font-size:   44px;
  font-weight: 900;
  color:       #fbbf24;
  letter-spacing: -.02em;
  margin-top:  2px;
}
.rdk-hero__desc {
  font-size:   15px;
  color:       rgba(255,255,255,.75);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ══ البطاقة الدوارة في الهيرو ══ */
.rdk-hero__card {
  background:    rgba(255,255,255,.09);
  border:        1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  padding:       24px 28px 18px;
  margin-bottom: 24px;
  text-align:    right;
  width:         100%;
}
.rdk-hero__card-text {
  font-size:   19px;
  font-weight: 700;
  color:       #fff;
  line-height: 1.85;
  min-height:  60px;
  display:     flex;
  align-items: center;
  transition:  opacity .3s, transform .3s;
}
.rdk-hero__card-text.fade { opacity:0; transform:translateY(6px) }
.rdk-hero__card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-top:      13px;
  padding-top:     12px;
  border-top:      1px solid rgba(255,255,255,.08);
}
.rdk-hero__card-badge {
  background:  rgba(255,255,255,.08);
  border:      1px solid rgba(255,255,255,.1);
  padding:     4px 12px;
  border-radius:20px;
  font-size:   12px;
  color:       rgba(255,255,255,.55);
  text-decoration:none;
  transition:  opacity .3s, background .15s;
}
.rdk-hero__card-badge.fade    { opacity:0 }
.rdk-hero__card-badge:hover   { background:rgba(255,255,255,.15);color:#fff }
.rdk-hero__card-dots {
  display:     flex;
  gap:         5px;
  align-items: center;
}
.rdk-hero__dot {
  width:5px;height:5px;border-radius:50%;
  background:rgba(255,255,255,.22);
  cursor:pointer;transition:.2s;
}
.rdk-hero__dot.on { background:#fbbf24;width:18px;border-radius:3px }

.rdk-hero__form {
  display:       flex;
  max-width:     560px;
  margin:        0 auto 24px;
  border-radius: var(--r-lg);
  overflow:      hidden;
  box-shadow:    0 8px 32px rgba(0,0,0,.3);
  background:    var(--white);
  border:        2px solid rgba(255,255,255,.15);
}
.rdk-hero__input {
  flex:      1;
  height:    58px;
  padding:   0 20px;
  border:    none;
  font-size: 16px;
  outline:   none;
  color:     var(--text);
  direction: rtl;
  background:transparent;
  min-width: 0;
}
.rdk-hero__input::placeholder { color:var(--text-3) }
.rdk-hero__btn {
  width:      60px; height:58px;
  background: var(--blue);
  border:     none;
  color:      var(--white);
  display:    flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition: .2s;
}
.rdk-hero__btn:hover { background:var(--blue-d) }
.rdk-hero__chips {
  display:         flex;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             8px;
  justify-content: center;
  margin-bottom:   24px;
}
.rdk-hero__chips-label {
  font-size: 12px;
  color:     rgba(255,255,255,.5);
  flex-shrink:0;
}
.rdk-hero__chip {
  padding:       6px 16px;
  background:    rgba(255,255,255,.1);
  border:        1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color:         rgba(255,255,255,.85);
  font-size:     13px;
  font-weight:   500;
  transition:    .15s;
}
.rdk-hero__chip:hover { background:rgba(255,255,255,.22); color:var(--white) }
.rdk-hero__stats-bar {
  display:         flex;
  align-items:     stretch;
  justify-content: center;
  background:      rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  border-top:      1px solid rgba(255,255,255,.08);
  margin-top:      0;
}
.rdk-hero__stat {
  flex:          1;
  max-width:     180px;
  display:       flex;
  flex-direction:column;
  align-items:   center;
  justify-content:center;
  padding:       20px 16px;
  gap:           4px;
}
.rdk-hero__stat-num {
  font-size:   22px;
  font-weight: 900;
  color:       #fff;
  line-height: 1;
}
.rdk-hero__stat-lbl {
  font-size:   12px;
  color:       rgba(255,255,255,.5);
  font-weight: 500;
}
.rdk-hero__stat-sep {
  width:1px;
  background:rgba(255,255,255,.1);
  margin:16px 0;
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.rdk-bc {
  padding:    12px 0;
  font-size:  13px;
  color:      var(--text-3);
  display:    flex;
  align-items:center;
  gap:        6px;
  flex-wrap:  wrap;
}
.rdk-bc a { color:var(--text-2); transition:.15s }
.rdk-bc a:hover { color:var(--blue) }
.rdk-bc__sep { color:var(--border); font-size:11px }
.rdk-bc__current { color:var(--text); font-weight:600 }

/* ================================================================
   SECTION HEAD
   ================================================================ */
.rdk-sh {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   20px;
  gap:             12px;
}
.rdk-sh h2 {
  font-size:   20px;
  font-weight: 800;
  color:       var(--text);
  letter-spacing: -.01em;
}
.rdk-sh a {
  font-size:  13px;
  color:      var(--text-3);
  font-weight:500;
  white-space:nowrap;
  transition: .15s;
}
.rdk-sh a:hover { color:var(--blue) }

/* ================================================================
   بطاقة الموقف — rdk-card (sahelha style)
   ================================================================ */
.rdk-grid-old-removed {
  /* placeholder */
}
.rdk-card {
  display:         flex;
  flex-direction:  column;
  background:      var(--white);
  border:          1px solid var(--border);
  border-radius:   14px;
  text-decoration: none;
  transition:      transform .18s, box-shadow .18s, border-color .18s;
  box-shadow:      0 1px 4px rgba(0,51,102,.04);
  overflow:        hidden;
}
.rdk-card:hover {
  transform:    translateY(-2px);
  box-shadow:   0 10px 32px rgba(0,51,102,.10);
}
.rdk-card__inner {
  padding:    16px 18px 12px;
  flex:       1;
}
.rdk-card__head {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
}
.rdk-card__icon {
  width:            44px; height:44px;
  border-radius:    12px;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  font-size:        22px;
  line-height:      1;
  flex-shrink:      0;
  font-family:      "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  transition:       transform .15s;
}
.rdk-card:hover .rdk-card__icon { transform:scale(1.06) }
.rdk-card__title {
  font-size:   15px;
  font-weight: 700;
  color:       #0f172a;
  line-height: 1.5;
  margin:      4px 0 0;
  flex:        1;
  transition:  color .15s;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}
.rdk-card:hover .rdk-card__title { color:var(--blue) }
.rdk-card__footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         10px 18px;
  border-top:      1px solid #f0f2f5;
  margin-top:      auto;
}
.rdk-card__meta {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   12px;
  color:       #6b7280;
}
.rdk-card__replies {
  display:     inline-flex;
  align-items: center;
  gap:         4px;
  font-weight: 600;
  color:       #6b7280;
}
.rdk-card__cat-name { color:#9ca3af; font-size:11px }
.rdk-card__dot      { color:#e4e7ec }
.rdk-card__go { display:inline-flex; align-items:center; font-size:12.5px; color:var(--blue); font-weight:700; transition:letter-spacing .15s; }
.rdk-card:hover .rdk-card__go { letter-spacing:.02em; }

/* ================================================================
   التصنيفات — الرئيسية
   ================================================================ */
.rdk-cats {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   9px;
}
.rdk-cat {
  display:         flex;
  align-items:     center;
  gap:             13px;
  padding:         13px 15px;
  background:      #F8FAFC;
  border:          1px solid #E8EDF3;
  border-radius:   11px;
  text-decoration: none;
  color:           var(--text);
  transition:      border-color .15s, background .15s, box-shadow .15s;
}
.rdk-cat:hover {
  background:  var(--white);
  box-shadow:  0 3px 12px rgba(0,0,0,.07);
}
/* الكرت المنفرد يمتد */
.rdk-cat:last-child:nth-child(odd) { grid-column: 1 / -1 !important; }
.rdk-cat:only-child                { grid-column: 1 / -1; }

.rdk-cat__icon {
  width:         44px;
  height:        44px;
  border-radius: 10px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     22px;
  flex-shrink:   0;
}
.rdk-cat__info {
  flex:      1;
  min-width: 0;
  display:   flex;
  flex-direction: column;
  gap:       2px;
}
.rdk-cat__name {
  font-size:   14px;
  font-weight: 700;
  color:       var(--text);
  line-height: 1.3;
}
.rdk-cat__count {
  font-size: 11.5px;
  color:     var(--text-3);
}
.rdk-cat__arr {
  font-size:   16px;
  color:       #CBD5E1;
  flex-shrink: 0;
  transition:  color .15s, transform .15s;
}
.rdk-cat:hover .rdk-cat__arr { transform: translateX(2px); }

/* ألوان hover لكل قسم — بدون border ملون */
.rdk-cat--occasions:hover  .rdk-cat__arr { color:#D97706 }
.rdk-cat--feelings:hover   .rdk-cat__arr { color:#DC2626 }
.rdk-cat--people:hover     .rdk-cat__arr { color:#1D4ED8 }
.rdk-cat--religion:hover   .rdk-cat__arr { color:#059669 }
.rdk-cat--motivation:hover .rdk-cat__arr { color:#B45309 }
.rdk-cat--status:hover     .rdk-cat__arr { color:#6D28D9 }
.rdk-cat--poetry:hover     .rdk-cat__arr { color:#7C3AED }
.rdk-cat--wisdom:hover     .rdk-cat__arr { color:#15803D }

/* جوال: عمود واحد */
@media(max-width:640px) {
  .rdk-cats { grid-template-columns: 1fr; }
  .rdk-cat:last-child:nth-child(odd) { grid-column: 1; }
}

/* ================================================================
   نسخ سريع
   ================================================================ */
.rdk-quick {
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding:       24px;
  margin-bottom: 24px;
}
.rdk-quick__label {
  font-size:     11px;
  font-weight:   700;
  color:         var(--blue);
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-bottom: 8px;
}
.rdk-quick__title {
  font-size:   16px;
  font-weight: 700;
  color:       var(--text);
  margin-bottom:12px;
}
.rdk-quick__reply {
  font-size:   17px;
  font-weight: 600;
  color:       var(--text);
  line-height: 1.9;
  padding:     16px;
  background:  var(--blue-xl);
  border-right:3px solid var(--blue);
  border-radius:0 var(--r) var(--r) 0;
  margin-bottom:16px;
  direction:   rtl;
  white-space: pre-wrap;
}
.rdk-quick__actions {
  display: flex;
  gap:     12px;
  flex-wrap:wrap;
}
.rdk-btn {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       10px 24px;
  border-radius: var(--r);
  font-family:   var(--f);
  font-size:     14px;
  font-weight:   700;
  transition:    .15s;
  border:        none;
}
.rdk-btn--primary {
  background: var(--blue);
  color:      var(--white);
}
.rdk-btn--primary:hover { background:var(--blue-d) }
.rdk-btn--outline {
  background: var(--white);
  color:      var(--blue);
  border:     1.5px solid var(--blue);
}
.rdk-btn--outline:hover { background:var(--blue-l) }

/* ================================================================
   صفحة الموقف — single
   ================================================================ */
.rdk-single { max-width:780px; margin:0 auto; padding:16px 0 60px }

/* بطاقة الموقف */
.rdk-question {
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding:       24px;
  margin-bottom: 20px;
}
.rdk-question__cat {
  font-size:     12px;
  font-weight:   700;
  color:         var(--blue);
  text-transform:uppercase;
  letter-spacing:.3px;
  margin-bottom: 10px;
}
.rdk-question__title {
  font-size:   24px;
  font-weight: 900;
  color:       var(--text);
  line-height: 1.5;
  margin-bottom:14px;
  direction:   rtl;
}
.rdk-question__meta {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         16px;
  font-size:   13px;
  color:       var(--text-3);
  border-top:  1px solid var(--border-l);
  padding-top: 14px;
}
.rdk-question__author { font-weight:600; color:var(--text-2) }
.rdk-question__author a { color:var(--blue); text-decoration:none }
.rdk-question__dot { color:var(--border) }

/* قسم الإجابات */
.rdk-answers {
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow:      hidden;
}
.rdk-answers__head {
  display:         flex;
  align-items:     center;
  gap:             10px;
  padding:         16px 24px;
  border-bottom:   2px solid var(--border-l);
  background:      var(--white);
}
.rdk-answers__title {
  font-size:   18px;
  font-weight: 800;
  color:       var(--text);
  margin:      0;
}
.rdk-answers__count {
  background:    var(--blue);
  color:         var(--white);
  font-size:     12px;
  font-weight:   700;
  padding:       3px 10px;
  border-radius: 20px;
}

/* الإجابة المختارة */
.rdk-answer--chosen {
  padding: 24px;
  border-bottom: 2px solid var(--border-l);
}
.rdk-answer__chosen-label {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  background:    var(--blue);
  color:         var(--white);
  font-size:     11px;
  font-weight:   700;
  padding:       5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing:.5px;
  text-transform: uppercase;
}
.rdk-answer__body {
  font-size:     18px;
  font-weight:   600;
  line-height:   2;
  color:         var(--text);
  direction:     rtl;
  white-space:   pre-wrap;
  padding:       24px 24px 20px;
  background:    #f0f4f8;
  border-right:  5px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 20px;
  min-height:    80px;
}
.rdk-answer__copy-main {
  display:       inline-flex;
  align-items:   center;
  gap:           10px;
  padding:       13px 32px;
  background:    var(--blue);
  color:         var(--white);
  border:        none;
  border-radius: var(--r);
  font-family:   var(--f);
  font-size:     15px;
  font-weight:   700;
  cursor:        pointer;
  transition:    .2s;
  min-height:    48px;
}
.rdk-answer__copy-main:hover { background:var(--blue-d) }

/* الإجابات الأخرى */
.rdk-answers__others { padding:20px 24px }
.rdk-answers__divider {
  display:     flex;
  align-items: center;
  gap:         12px;
  margin-bottom:20px;
}
.rdk-answers__divider-line {
  flex:       1;
  height:     1px;
  background: var(--border-l);
}
.rdk-answers__divider-text {
  font-size:     12px;
  font-weight:   700;
  color:         var(--text-3);
  letter-spacing:.5px;
  white-space:   nowrap;
}

/* بطاقة إجابة أخرى */
.rdk-answer-card {
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow:      hidden;
  margin-bottom: 12px;
  transition:    border-color .15s;
}
.rdk-answer-card:last-child { margin-bottom:0 }
.rdk-answer-card:hover { border-color:var(--blue) }
.rdk-answer-card__num {
  padding:       6px 16px;
  background:    var(--blue);
  border-bottom: none;
  font-size:     11px;
  font-weight:   700;
  color:         rgba(255,255,255,.9);
  letter-spacing:.8px;
  text-transform: uppercase;
}
.rdk-answer-card__body {
  padding:     18px 20px 14px;
  font-size:   16px;
  font-weight: 600;
  line-height: 1.85;
  color:       #1a1a2e;
  direction:   rtl;
  white-space: pre-wrap;
  min-height:  60px;
}
.rdk-answer-card__foot {
  padding:         6px 16px 14px;
  display:         flex;
  justify-content: flex-end;
}
.rdk-answer-card__copy {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  padding:       7px 18px;
  background:    var(--white);
  color:         var(--blue);
  border:        1.5px solid var(--blue);
  border-radius: var(--r);
  font-family:   var(--f);
  font-size:     13px;
  font-weight:   700;
  cursor:        pointer;
  transition:    .15s;
  min-height:    40px;
}
.rdk-answer-card__copy:hover {
  background:   var(--blue);
  color:        var(--white);
  border-color: var(--blue);
}

/* Toast */
.rdk-toast {
  position:   fixed;
  bottom:     28px; left:50%;
  transform:  translateX(-50%) translateY(20px);
  background: var(--blue);
  color:      var(--white);
  padding:    12px 28px;
  border-radius:var(--r-lg);
  font-size:  14px;
  font-weight:700;
  z-index:    9999;
  font-family:var(--f);
  direction:  rtl;
  opacity:    0;
  transition: all .3s;
  pointer-events:none;
  white-space:nowrap;
  box-shadow: var(--shadow-m);
}
.rdk-toast.show {
  opacity:   1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================================
   صفحة التصنيف
   ================================================================ */
.rdk-cat-hero {
  background:    var(--blue);
  text-align:    center;
  padding:       56px 24px 48px;
  direction:     rtl;
  margin-bottom: 32px;
}
/* classes المستخدمة في template-parts/page-all-replies.php */
.rdk-cat-hero-inner {
  display:        flex;
  align-items:    center;
  gap:            24px;
  justify-content: center;
  flex-direction: row-reverse;
}
.rdk-cat-hero-icon {
  width:         80px; height:80px;
  background:    rgba(255,255,255,.12);
  border-radius: 18px;
  display:       flex; align-items:center; justify-content:center;
  flex-shrink:   0;
}
.rdk-cat-hero-body { flex:1; min-width:0; text-align:center; }
.rdk-cat-hero-title {
  font-size:   clamp(28px,3.5vw,36px);
  font-weight: 900;
  color:       var(--white);
  margin:      0 0 10px;
}
.rdk-cat-hero-desc {
  font-size:   15px;
  color:       rgba(255,255,255,.75);
  max-width:   520px;
  margin:      0 auto;
  line-height: 1.7;
}
/* classes القديمة — للتوافق */
.rdk-cat-hero__icon {
  width:         72px; height:72px;
  background:    rgba(255,255,255,.12);
  border-radius: 16px;
  display:       flex; align-items:center; justify-content:center;
  font-size:     36px;
  margin:        0 auto 16px;
}
.rdk-cat-hero__name {
  font-size:   32px;
  font-weight: 900;
  color:       var(--white);
  margin-bottom:10px;
  letter-spacing:-.02em;
}
.rdk-cat-hero__desc {
  font-size:   15px;
  color:       rgba(255,255,255,.75);
  max-width:   520px;
  margin:      0 auto 16px;
  line-height: 1.7;
}
.rdk-cat-hero__badge {
  display:       inline-block;
  background:    rgba(255,255,255,.15);
  color:         rgba(255,255,255,.9);
  padding:       6px 18px;
  border-radius: 20px;
  font-size:     13px;
  font-weight:   700;
  border:        1px solid rgba(255,255,255,.2);
}

/* فلاتر التصنيف */
.rdk-cat-filters {
  display:     flex;
  gap:         8px;
  flex-wrap:   wrap;
  margin-bottom:24px;
}
.rdk-cat-filter {
  padding:       7px 18px;
  border-radius: 20px;
  border:        1.5px solid var(--border);
  background:    var(--white);
  color:         var(--text-2);
  font-family:   var(--f);
  font-size:     13px;
  font-weight:   600;
  cursor:        pointer;
  transition:    .15s;
  text-decoration:none;
}
.rdk-cat-filter:hover, .rdk-cat-filter.active {
  background:   var(--blue);
  border-color: var(--blue);
  color:        var(--white);
}

/* ================================================================
   صفحة البحث
   ================================================================ */
.rdk-search-head {
  padding:       24px 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-l);
}
.rdk-search-head h1 {
  font-size:   22px;
  font-weight: 900;
  color:       var(--text);
  margin-bottom:4px;
}
.rdk-search-head h1 span { color:var(--blue) }
.rdk-search-head p { font-size:14px; color:var(--text-3) }

/* لا نتائج */
.rdk-no-results {
  text-align:  center;
  padding:     60px 24px;
  color:       var(--text-3);
}
.rdk-no-results__icon { font-size:48px; margin-bottom:12px }
.rdk-no-results h2 { font-size:18px; font-weight:700; color:var(--text); margin-bottom:8px }
.rdk-no-results p  { font-size:14px; margin-bottom:20px }
.rdk-no-results__cats { display:flex; gap:8px; justify-content:center; flex-wrap:wrap }
.rdk-no-results__cats a {
  display:       flex; align-items:center; gap:6px;
  padding:       8px 16px;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  font-size:     14px; font-weight:600;
  color:         var(--text-2);
  transition:    .15s;
}
.rdk-no-results__cats a:hover { border-color:var(--blue); color:var(--blue) }

/* ================================================================
   صفحة 404
   ================================================================ */
.rdk-404 {
  text-align: center;
  padding:    80px 24px;
  max-width:  500px;
  margin:     0 auto;
}
.rdk-404__icon  { font-size:64px; margin-bottom:16px }
.rdk-404 h1     { font-size:22px; font-weight:900; color:var(--text); margin-bottom:8px }
.rdk-404 p      { font-size:15px; color:var(--text-3); margin-bottom:28px }
.rdk-404__form  {
  display:       flex;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  overflow:      hidden;
  background:    var(--white);
  margin-bottom: 28px;
}
.rdk-404__form input {
  flex:      1; height:48px;
  padding:   0 16px;
  border:    none; outline:none;
  font-size: 15px; direction:rtl;
  font-family:var(--f);
}
.rdk-404__form button {
  width:36px; height:48px;
  background:var(--blue); border:none;
  color:var(--white); flex-shrink:0;
}
.rdk-404__cats { display:flex; gap:8px; justify-content:center; flex-wrap:wrap }
.rdk-404__cats a {
  padding:       8px 14px;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  font-size:     20px;
  transition:    .15s;
}
.rdk-404__cats a:hover { border-color:var(--blue) }

/* ================================================================
   SIDEBAR & WIDGETS
   ================================================================ */
.rdk-art-layout {
  display:               grid;
  grid-template-columns: minmax(0,1fr) 260px;
  gap:                   24px;
  align-items:           start;
}
.rdk-art-layout:not(:has(.rdk-sidebar)) {
  grid-template-columns: minmax(0,1fr);
}
.rdk-sidebar { display:flex; flex-direction:column; gap:16px }
.wgt {
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding:       20px;
}
.wgt h3 {
  font-size:     15px;
  font-weight:   800;
  color:         var(--text);
  margin-bottom: 14px;
  padding-bottom:10px;
  border-bottom: 2px solid var(--border-l);
}
.wgt a {
  display:       flex; justify-content:space-between; align-items:center;
  padding:       10px 0;
  font-size:     14px; font-weight:500;
  color:         var(--text-2);
  border-bottom: 1px solid var(--border-l);
  transition:    .15s;
}
.wgt a:last-child { border-bottom:none }
.wgt a:hover { color:var(--blue) }
.wgt a span  { font-size:12px; color:var(--text-3); font-weight:600 }

/* Home Widgets */
.rdk-hw { margin-bottom:24px }
.rdk-hw:last-child { margin-bottom:0 }

/* ================================================================
   PAGINATION
   ================================================================ */
.rdk-pagination {
  display:         flex;
  justify-content: center;
  gap:             6px;
  margin-top:      32px;
  flex-wrap:       wrap;
}
.rdk-pagination a,
.rdk-pagination span {
  width:         36px; height:36px;
  display:       flex; align-items:center; justify-content:center;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  font-size:     13px; font-weight:600;
  color:         var(--text-2);
  transition:    .15s;
}
.rdk-pagination a:hover { border-color:var(--blue); color:var(--blue) }
.rdk-pagination .current { background:var(--blue); color:var(--white); border-color:var(--blue) }
.rdk-pagination .dots { border:none; width:auto; padding:0 4px; color:var(--text-3) }

/* ================================================================
   FOOTER
   ================================================================ */
.rdk-footer {
  background:  #111827;
  color:       var(--white);
  padding-top: 48px;
  margin-top:  48px;
}
.rdk-footer-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   32px;
  padding-bottom:        40px;
}
.rdk-footer-brand p {
  font-size:   14px;
  color:       rgba(255,255,255,.65);
  margin-top:  12px;
  line-height: 1.7;
}
.rdk-footer h2 { font-size:14px; font-weight:700; color:rgba(255,255,255,.8); margin-bottom:16px }
.rdk-footer ul li { margin-bottom:10px }
.rdk-footer ul a  { font-size:14px; color:rgba(255,255,255,.6); transition:.15s }
.rdk-footer ul a:hover { color:var(--white) }
.rdk-footer-social { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px }
.rdk-footer-social a {
  width:34px; height:34px;
  background:    rgba(255,255,255,.1);
  border-radius: var(--r);
  display:       flex; align-items:center; justify-content:center;
  color:         rgba(255,255,255,.6);
  transition:    .15s;
}
.rdk-footer-social a:hover { background:rgba(255,255,255,.2); color:var(--white) }
.rdk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding:    20px 0;
  text-align: center;
  font-size:  13px;
  color:      rgba(255,255,255,.5);
}

/* Logo sizes */
.rdk-logo-img    { max-height:38px; width:auto }
.rdk-footer .rdk-logo__icon { width:46px; height:46px; border-radius:12px }
.rdk-footer .rdk-logo__icon svg { width:26px; height:26px }
.rdk-footer .rdk-logo__text { font-size:20px; color:var(--white) }

/* ================================================================
   MISC
   ================================================================ */
/* Tags */
.rdk-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:16px }
.rdk-tags a {
  padding:       3px 10px;
  border:        1px solid var(--border);
  border-radius: 5px;
  font-size:     12px;
  color:         var(--text-2);
  transition:    .15s;
}
.rdk-tags a:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-l) }

/* Article body */
.rdk-content { direction:rtl; text-align:right }
.rdk-content h2 { font-size:20px; font-weight:800; color:var(--text); margin:28px 0 16px }
.rdk-content p  { margin-bottom:14px; color:var(--text-2); line-height:1.9 }
.rdk-content ul,
.rdk-content ol { padding-right:20px; margin:12px 0 }
.rdk-content li { margin-bottom:6px; color:var(--text-2); line-height:1.8 }
.rdk-content a  { color:var(--blue); text-decoration:none }
.rdk-content blockquote {
  border-right: 4px solid var(--blue);
  background:   var(--blue-l);
  padding:      14px 18px;
  margin:       16px 0;
  border-radius:0 var(--r) var(--r) 0;
  font-size:    14px; line-height:1.8;
  color:        var(--text-2);
}

/* WordPress nav fixes */
.rdk-nav ul { list-style:none; display:flex; gap:2px; padding:0; margin:0 }
.rdk-nav li { list-style:none; display:flex; align-items:center }
.rdk-nav li::marker { content:none }
.rdk-footer ul { list-style:none }


/* ══ ويدجت الأقسام في الرئيسية — دائماً 4 أعمدة ══ */
.ebr-hw .rdk-cats,
.widget .rdk-cats,
#home-widgets .rdk-cats {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 600px) {
  .ebr-hw .rdk-cats,
  .widget .rdk-cats,
  #home-widgets .rdk-cats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ══ كرت المقتطف ══ */



/* ── ذات صلة — عمودان مثل الـ grid الرئيسي ── */
.ebr-related-grid {
  grid-template-columns: 1fr 1fr !important;
}
@media (max-width:768px) {
  .ebr-related-grid { grid-template-columns: 1fr !important; }
}
/* ── كرت المقتطف داخل الويدجت ── */
.card-box .ebr-card-snippet {
  margin-bottom: 0;
}
/* ── Related Widget Wrap (snippet type) ── */
.ebr-related-wrap {
  margin-bottom: 24px;
}
.rdk-grid .ebr-card-snippet,
.ebr-card-snippet {
  display:         flex;
  align-items:     flex-start;
  gap:             12px;
  padding:         16px 18px;
  background:      #F8FAFC;
  border:          1.5px solid #E2E8F0;
  border-radius:   12px;
  text-decoration: none;
  color:           inherit;
  transition:      border-color .15s, background .15s, box-shadow .15s;
  width:           100%;
  min-width:       0;
  box-sizing:      border-box;
}
.ebr-card-snippet:hover {
  background:   #fff;
  box-shadow:   0 4px 16px rgba(0,59,142,.10);
}

/* أيقونة الاقتباس — مربع ملون بلون القسم */
.ebr-card-snippet__icon {
  width:        36px;
  height:       36px;
  border-radius: 9px;
  display:      flex;
  align-items:  center;
  justify-content: center;
  flex-shrink:  0;
  margin-top:   1px;
  user-select:  none;
}

/* المحتوى */
.ebr-card-snippet__main {
  flex:      1;
  min-width: 0;
}
.ebr-card-snippet__title {
  font-size:      14.5px;
  font-weight:    700;
  color:          #0F172A;
  line-height:    1.45;
  margin-bottom:  4px;
  white-space:    nowrap;
  overflow:       hidden;
  text-overflow:  ellipsis;
  transition:     color .15s;
}
.ebr-card-snippet:hover .ebr-card-snippet__title { color: var(--blue); }
.ebr-card-snippet__text {
  font-size:      12.5px;
  color:          #64748B;
  line-height:    1.55;
  white-space:    nowrap;
  overflow:       hidden;
  text-overflow:  ellipsis;
}

/* الميتا: تاريخ · قسم */
.ebr-card-snippet__meta {
  display:     flex;
  align-items: center;
  gap:         5px;
  margin-top:  7px;
}
.ebr-card-snippet__date { font-size:11px; color:#94A3B8; }
.ebr-card-snippet__sep  { font-size:11px; color:#D1D5DB; }
.ebr-card-snippet__cat  { font-size:11px; color:#94A3B8; font-weight:500; }

/* السهم */
.ebr-card-snippet__arr {
  font-size:   16px;
  color:       #E2E8F0;
  flex-shrink: 0;
  transition:  color .15s, transform .15s;
}
.ebr-card-snippet:hover .ebr-card-snippet__arr {
  color:     var(--blue);
  transform: translateX(-2px);
}

/* ── Grid: عمودان على الديسكتوب ── */
.rdk-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   10px;
  background:            transparent;
  border-radius:         0;
  border:                none;
  box-shadow:            none;
  overflow:              visible;
}
.rdk-grid .ebr-card-snippet { border: 1.5px solid #E2E8F0; }
.rdk-grid .ebr-card-snippet:nth-last-child(1),
.rdk-grid .ebr-card-snippet:nth-last-child(2) { border-bottom: 1.5px solid #E2E8F0; }

/* card-box مع grid — العنوان داخله والـ grid يلتصق بالحواف */
.card-box .ebr-card-snippet {  }

.card-box:has(.rdk-grid),
.card-box:has(.g3) {
  padding: 20px;
  
}

/* العنوان sh داخل card-box له padding خاص */
.card-box:has(.rdk-grid) .sh,
.card-box:has(.g3) .sh {
  
  
  
}

/* الـ grid يلتصق بالحواف بدون border-radius خاص به */
.card-box .rdk-grid,
.card-box .g3 {
  border-radius: 0;
  border:        none;
  box-shadow:    none;
}

/* لو card-box بدون sh — الـ grid هو الـ container كاملاً */
.card-box:not(:has(.sh)) .rdk-grid,
.card-box:not(:has(.sh)) .g3 {
  
  
  
}

/* زر عرض المزيد داخل card-box */
.card-box .rdk-more-wrap {
  padding: 16px 24px;
}
@media (max-width:1024px) {
  .rdk-cats { grid-template-columns:repeat(4,1fr) !important }
  .rdk-footer-grid { grid-template-columns:1fr 1fr }
  .rdk-art-layout { grid-template-columns:minmax(0,1fr) }
  .rdk-sidebar { order:2 }
}

@media (max-width:768px) {
  .rdk-nav { display:none }
  .rdk-hamburger { display:flex }
  .rdk-header-search { max-width:none; flex:1 }
  .rdk-hero { padding:40px 0 32px }
  .rdk-hero__eyebrow { font-size:11px; }
  .rdk-hero__inner { min-height: auto; }
  .rdk-hero__title { font-size:28px }
  .rdk-hero__form  { margin-bottom:16px }
  /* grid عمود واحد على الجوال */
  .rdk-grid { grid-template-columns: 1fr; }
  .rdk-grid .ebr-card-snippet { border: 1.5px solid #E2E8F0; }
  .rdk-grid .ebr-card-snippet:nth-last-child(2) { border-bottom: 1px solid #F1F5F9; }
  .rdk-cats { grid-template-columns:repeat(2,1fr); gap:8px }
  .rdk-footer-grid { grid-template-columns:1fr; gap:24px }
  .rdk-footer { padding-top:32px }
  .rdk-single { padding:12px 0 48px }
  .rdk-question__title { font-size:20px }
  .rdk-answer__body { font-size:16px; padding:16px }
  .rdk-answer__copy-main { width:100%; justify-content:center }
  .rdk-cat-hero { padding:40px 24px 36px }
  .rdk-cat-hero__name { font-size:26px }
  .w { padding:0 16px }
}

@media (max-width:480px) {
  .rdk-cats { grid-template-columns:repeat(2,1fr) }
  .rdk-hero__title { font-size:24px }
  .rdk-quick__actions { flex-direction:column }
  .rdk-btn { width:100%; justify-content:center }
}

/* ================================================================
   CARD BOX (backward compat)
   ================================================================ */
.card-box {
  background:    var(--white);
  border:        1.5px solid #E2E8F0;
  border-radius: var(--r-lg);
  padding:       24px;
  margin-bottom: 24px;
}
.sh { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px }
.sh h2 { font-size:20px; font-weight:800; color:var(--text) }
.sh a  { font-size:13px; color:var(--text-3); transition:.15s }
.sh a:hover { color:var(--blue) }

/* ================================================================
   LEGACY CLASSES — header.php / footer.php
   تُبقي التوافق مع header.php وfooter.php الأصليين
   ================================================================ */

/* Header */
.hdr {
  position:     fixed;
  top:          0; right:0; left:0;
  height:       64px;
  background:   var(--white);
  border-bottom:1px solid var(--border);
  z-index:      1000;
  box-shadow:   var(--shadow);
}
.hdr .w {
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
}

/* Logo */
.logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-ic {
  width:         40px; height:40px;
  background:    var(--blue);
  border-radius: 10px;
  display:       flex; align-items:center; justify-content:center;
  flex-shrink:   0;
}
.logo-ic svg { width:22px; height:22px }
.logo-tx {
  font-size:   18px;
  font-weight: 800;
  color:       var(--text);
  white-space: nowrap;
}
.logo-tx small {
  display:     block;
  font-size:   10px;
  font-weight: 500;
  color:       var(--text-3);
}
.logo-custom { max-height:38px; width:auto }

/* Desktop Nav */
.nav { display:flex; gap:2px; list-style:none; padding:0; margin:0 }
.nav li { list-style:none; display:flex; align-items:center }
.nav li::marker { content:none }
.nav ul { list-style:none; display:flex; gap:2px; padding:0; margin:0 }
.nav a {
  padding:       6px 14px;
  border-radius: var(--r);
  font-size:     14px; font-weight:500;
  color:         var(--text-2);
  transition:    .15s;
  text-decoration:none;
}
.nav a:hover,
.nav a.current,
.nav li.current-menu-item > a,
.nav li.current_page_item > a,
.nav li.current-menu-parent > a,
.nav li.current-cat > a {
  color:var(--blue) !important;
  background:var(--blue-l) !important;
}

/* Header Search */
/* ══ البحث الذكي — مطابق لسهلها ══ */
.hdr-search {
  position:   relative;
  flex:       1;
  max-width:  300px;
}
.hdr-search-box {
  display:       flex;
  align-items:   center;
  gap:           8px;
  height:        40px;
  padding:       0 10px 0 12px;
  background:    #f9fafb;
  border:        1.5px solid #e5e7eb;
  border-radius: 10px;
  transition:    border-color .18s, box-shadow .18s;
  cursor:        text;
  width:         100%;
}
.hdr-search-box:hover { border-color:#d1d5db }
.hdr-search-box:focus-within {
  background:    #fff;
  border-color:  var(--blue);
  box-shadow:    0 0 0 3px rgba(0,51,102,.08);
}
.hdr-search-ic { color:#9ca3af; flex-shrink:0 }
.hdr-search-box input {
  flex:1;border:none !important;outline:none !important;
  box-shadow:none !important;background:transparent;
  font-size:13.5px;font-family:var(--f);color:var(--text);
  min-width:0;direction:rtl;
  -webkit-appearance:none;appearance:none;
}
.hdr-search-box input::placeholder { color:#9ca3af }
.hdr-kbd {
  font-size:10px;font-family:var(--f);color:#9ca3af;
  background:#fff;border:1px solid #e5e7eb;border-radius:5px;
  padding:2px 6px;white-space:nowrap;flex-shrink:0;pointer-events:none;
}
/* نتائج البحث */
.hdr-results {
  display:none;position:absolute;
  top:calc(100% + 8px);right:0;left:0;
  background:#fff;border:1px solid #e5e7eb;
  border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.13);
  z-index:9999;
  overflow-y:auto;
  max-height:min(70vh,460px);
  overscroll-behavior:contain;
  padding:6px;
}
.hdr-results .sr-item {
  display:flex !important;flex-direction:row !important;
  align-items:center;gap:8px;padding:8px 10px;
  border-radius:8px;text-decoration:none;color:var(--text);
  transition:background .1s;width:100%;box-sizing:border-box;
}
.hdr-results .sr-item:hover,
.hdr-results .sr-item.sr-active { background:#f3f5f8; }
.hdr-results .sr-item.sr-active .sr-arr { color:var(--blue); }
.hdr-results .sr-icon {
  width:30px;height:30px;min-width:30px;
  border-radius:7px;background:#f3f5f8;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;flex-shrink:0;line-height:1;
}
.hdr-results .sr-title {
  font-size:13px;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;
}
.hdr-results .sr-count {
  font-size:11px;color:#6b7280;background:#f3f5f8;
  padding:2px 7px;border-radius:20px;white-space:nowrap;flex-shrink:0;
}
.hdr-results .sr-arr { font-size:11px;color:#d1d5db;flex-shrink:0 }
.hdr-results .sr-item:hover .sr-arr { color:var(--blue) }
.hdr-results .sr-empty { padding:20px;text-align:center;font-size:13px;color:#9ca3af }
/* أزرار اليمين */
.hdr-r { display:flex;align-items:center;gap:8px;flex-shrink:0 }
.hdr-search-btn {
  display:       none;
  width:         38px; height:38px;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  background:    var(--white);
  align-items:   center; justify-content:center;
  color:         var(--text-2);
  transition:    .15s;
  flex-shrink:   0;
  touch-action:  manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor:        pointer;
}
.hdr-search-btn:hover { border-color:var(--blue); color:var(--blue); }
/* بحث الجوال */
.hdr-mobile-search {
  display:none;position:fixed;
  top:var(--hdr-h,64px);right:0;left:0;
  background:#fff;border-bottom:1px solid #e5e7eb;
  box-shadow:0 4px 16px rgba(0,0,0,.1);z-index:1300;padding:10px 16px;
}
.hdr-mobile-search.on { display:block }
.hdr-mobile-search-inner {
  display:flex;align-items:center;gap:8px;
  background:#f9fafb;border:1.5px solid #e5e7eb;
  border-radius:10px;padding:0 12px;
}
.hdr-mobile-search-inner svg { color:#9ca3af;flex-shrink:0 }
.hdr-mobile-search-inner input {
  flex:1;border:none;outline:none;background:transparent;
  font-size:16px;font-family:var(--f);padding:12px 0;
  color:var(--text);direction:rtl;
}
.hdr-mobile-search-close {
  background:none;border:none;color:#9ca3af;
  font-size:16px;cursor:pointer;padding:4px;
}
@media(max-width:768px){
  .hdr-search { display:none !important }
  .hdr-search-btn { display:flex !important }
  .hdr-r { gap:6px; flex-shrink:0; margin-inline-start:auto }
  .hdr .w { gap:0 }
  .logo { flex-shrink:0 }
}
.admin-bar .hdr-mobile-search { top:calc(64px + 32px); --hdr-h:calc(64px + 32px); }
@media(max-width:782px){ .admin-bar .hdr-mobile-search { top:calc(64px + 46px); --hdr-h:calc(64px + 46px); } }

/* Header Results */
.hdr-results {
  display:       none;
  position:      absolute;
  top:           calc(100% + 6px);
  right:0; left:0;
  background:    var(--white);
  border:        1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow:    var(--shadow-m);
  z-index:       200;
  max-height:    320px;
  overflow-y:    auto;
}
.hdr-results.active { display:block }
.hdr-results a {
  display:     block;
  padding:     11px 16px;
  font-size:   13px; font-weight:500;
  color:       var(--text);
  border-bottom:1px solid var(--border-l);
  transition:  .1s;
  text-decoration:none;
}
.hdr-results a:last-child { border-bottom:none }
.hdr-results a:hover { background:var(--blue-l); color:var(--blue) }
.hdr-results .no-res {
  padding:    16px; text-align:center;
  font-size:  12px; color:var(--text-3);
}

/* Hamburger */
.mmb {
  display:       none;
  width:         38px; height:38px;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  background:    var(--white);
  align-items:   center; justify-content:center;
  color:         var(--text-2);
  transition:    .15s;
  flex-shrink:   0;
  touch-action:  manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor:        pointer;
}
.mmb:hover { border-color:var(--blue); color:var(--blue) }
.hdr-b { cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }

/* Mobile Overlay */
.mov {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,.4);
  z-index:    1100;
  backdrop-filter: blur(2px);
}
.mov.on { display:block }

/* Mobile Menu — مطابق لـ sahelha */
.mmn {
  position:   fixed;
  top:0; right:-320px;
  width:      320px; height:100%;
  background: var(--white);
  z-index:    1200;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  padding:    0;
}
.mmn.on { right:0 }

/* Header القائمة — تدرج */
.mmh {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         22px;
  background:      linear-gradient(155deg,#1a4a8a,#003B8E 65%,#002266);
  position:        relative;
  overflow:        hidden;
}
.mmh::before {
  content:'';position:absolute;
  width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.08),transparent 70%);
  top:-120px;left:-60px;pointer-events:none;
}
.mmh span {
  font-size:18px;font-weight:800;color:#fff;
  letter-spacing:-.3px;position:relative;z-index:2;
}
.mmx {
  width:38px;height:38px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.1);
  border-radius:11px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:#fff;transition:.2s;position:relative;z-index:2;
}
.mmx svg{width:18px;height:18px;}
.mmx:hover{background:rgba(255,255,255,.2);transform:rotate(90deg);}

/* عناصر القائمة */
.mmn nav { padding:18px 14px; }
.mmn nav a {
  display:         flex;
  align-items:     center;
  gap:             13px;
  padding:         12px;
  border-radius:   14px;
  font-size:       15.5px;
  font-weight:     700;
  color:           #111827;
  text-decoration: none;
  transition:      background .16s, transform .16s;
  margin-bottom:   3px;
}
.mmn nav a:hover {
  background: #F7F9FC;
  transform:  translateX(-4px);
}
.mmn nav a .mm-icon {
  width:44px;height:44px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;flex-shrink:0;transition:transform .16s;
}
.mmn nav a:hover .mm-icon { transform:scale(1.06); }
.mmn nav a .mm-label { flex:1; }
.mmn nav a .mm-arrow {
  color:#D2D8E0;display:flex;transition:.16s;
}
.mmn nav a:hover .mm-arrow {
  color:#003B8E;transform:translateX(-4px);
}
/* animation على دخول القائمة */
.mmn.on nav a {
  opacity:0;transform:translateY(8px);
  animation:mmRise .45s ease forwards;
}
.mmn.on nav a:nth-child(1){animation-delay:.03s}
.mmn.on nav a:nth-child(2){animation-delay:.06s}
.mmn.on nav a:nth-child(3){animation-delay:.09s}
.mmn.on nav a:nth-child(4){animation-delay:.12s}
.mmn.on nav a:nth-child(5){animation-delay:.15s}
.mmn.on nav a:nth-child(6){animation-delay:.18s}
.mmn.on nav a:nth-child(7){animation-delay:.21s}
@keyframes mmRise {
  to { opacity:1; transform:translateY(0); }
}

/* Footer */
.ftr {
  background:  #0d1117;
  color:       var(--white);
  padding-top: 56px;
  margin-top:  56px;
  border-top:  3px solid var(--blue);
}
.ftr-g {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   40px;
  padding-bottom:        48px;
}
.ftr-brand p {
  font-size:   14px;
  color:       rgba(255,255,255,.6);
  margin-top:  12px;
  line-height: 1.75;
  max-width:   280px;
}
.ftr-domain {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   13px;
  color:       rgba(255,255,255,.4);
  margin-top:  10px;
  margin-bottom: 4px;
  font-family: monospace;
}
.ftr-domain svg { opacity:.5 }
.ftr-email {
  display:     flex;
  align-items: center;
  gap:         7px;
  font-size:   13px;
  color:       rgba(255,255,255,.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition:  .15s;
}
.ftr-email:hover { color: var(--white) }
.ftr-contact-desc {
  font-size:   13px;
  color:       rgba(255,255,255,.45);
  line-height: 1.6;
  margin-top:  6px;
}
.ftr h2 {
  font-size:     13px;
  font-weight:   700;
  color:         rgba(255,255,255,.9);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 10px;
  border-bottom:  1px solid rgba(255,255,255,.08);
}
.ftr ul { list-style:none; padding:0; margin:0 }
.ftr ul li { margin-bottom:10px }
.ftr ul a {
  font-size:   14px;
  color:       rgba(255,255,255,.55);
  transition:  .15s;
  text-decoration: none;
  display:     flex;
  align-items: center;
  gap:         6px;
}
.ftr ul a:hover { color:var(--white); padding-right:4px }
.ftr .logo-ic {
  width: 48px; height:48px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.1);
}
.ftr .logo-ic svg { width:26px; height:26px }
.ftr .logo-tx {
  font-size:   22px;
  color:       var(--white);
  font-weight: 800;
  letter-spacing: -.02em;
}
.ftr .logo-custom { max-height:48px }
.ftr-social { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px }
.ftr-social-link {
  width:34px; height:34px;
  background:    rgba(255,255,255,.1);
  border-radius: var(--r);
  display:       flex; align-items:center; justify-content:center;
  color:         rgba(255,255,255,.6);
  transition:    .15s;
}
.ftr-social-link:hover { background:rgba(255,255,255,.2); color:var(--white) }
.ftr-bt {
  border-top: 1px solid rgba(255,255,255,.1);
  padding:    20px 0;
  text-align: center;
  font-size:  13px;
  color:      rgba(255,255,255,.5);
}

/* Breadcrumb */
.bc {
  padding:    8px 0;
  font-size:  13px;
  color:      var(--text-3);
  display:    flex;
  align-items:center;
  gap:        6px;
  flex-wrap:  wrap;
}
.bc a { color:var(--text-2); transition:.15s; text-decoration:none }
.bc a:hover { color:var(--blue) }
.bc .s { color:var(--border); font-size:11px }
.bc .c { color:var(--text); font-weight:600 }
.bc-wrap {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--r);
  padding:       0 16px;
  margin:        10px 0;
}

/* Section head */
.sh { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px }
.sh h2 { font-size:20px; font-weight:800; color:var(--text) }
.sh a  { font-size:13px; color:var(--text-3); transition:.15s; text-decoration:none }
.sh a:hover { color:var(--blue) }

/* Social icons */
.ftr-social { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px }

/* fa_pagination */
.pgn {
  display:         flex;
  justify-content: center;
  gap:             6px;
  margin:          24px 0;
}
.pgn a, .pgn span {
  width:         34px; height:34px;
  display:       flex; align-items:center; justify-content:center;
  border:        1.5px solid var(--border);
  border-radius: var(--r);
  font-size:     13px; font-weight:600;
  color:         var(--text-2);
  transition:    .15s;
  text-decoration:none;
}
.pgn a:hover { border-color:var(--blue); color:var(--blue) }
.pgn .current { background:var(--blue); color:var(--white); border-color:var(--blue) }

/* Ads */
.fa-ad { width:100%; margin:16px 0; text-align:center }

/* Responsive legacy */
@media(max-width:1024px) {
  .ftr-g { grid-template-columns:1fr 1fr }
}
@media(max-width:768px) {
  .nav { display:none }
  .mmb { display:flex }
  .hdr-search { display:none !important }
  .hdr .w { gap:0 }
  .logo { flex-shrink:0 }
  .hdr-r { flex-shrink:0; margin-inline-start:auto; gap:6px }
  .ftr-g { grid-template-columns:1fr; gap:24px }
  .ftr { padding-top:32px }
}

/* ══ صفحات الموقع (page.php) ══ */
.pg-hd { padding:8px 0 16px }
.pg-hd h1 {
  font-size:28px;font-weight:900;color:#0d1117;
  margin-bottom:6px;line-height:1.4;letter-spacing:-.01em;
}
.pg-hd .sub { font-size:13px;color:var(--text-2) }
.pg-bd {
  padding:8px 0;font-size:16px;
  line-height:1.9;color:#2d3748;
}
.pg-bd h2 {
  font-size:20px;font-weight:800;color:#111827;
  margin:28px 0 12px;
}
.pg-bd h2:first-child { margin-top:0 }
.pg-bd h3 { font-size:17px;font-weight:700;color:#111827;margin:20px 0 8px }
.pg-bd p { margin-bottom:16px;color:#2d3748;line-height:1.9 }
.pg-bd ul,.pg-bd ol {
  margin:10px 0;padding-right:20px;
}
.pg-bd ul { list-style:disc }
.pg-bd ol { list-style:decimal }
.pg-bd li { margin-bottom:6px;color:#2d3748;line-height:1.8;list-style:inherit }
.pg-bd a { color:var(--blue);text-decoration:none;transition:.15s }
.pg-bd a:hover { color:var(--blue-d) }
.pg-bd strong { color:#111827;font-weight:700 }
.pg-bd blockquote {
  border-right:4px solid var(--blue);
  background:var(--blue-l);
  padding:14px 18px;margin:16px 0;
  border-radius:0 var(--r) var(--r) 0;
  font-size:15px;line-height:1.8;color:var(--text-2);
}
.pg-bd img { max-width:100%;border-radius:var(--r);margin:8px 0 }
.entry-content { direction:rtl;text-align:right }

/* ══ أزرار المشاركة العائمة ══ */
.rdk-share-float {
  position:fixed;
  left:16px;top:50%;
  transform:translateY(-50%);
  display:flex;flex-direction:column;gap:8px;
  z-index:200;
}
.rdk-share-float-btn {
  width:42px;height:42px;
  background:#fff;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 12px rgba(0,0,0,.12);
  text-decoration:none;
  transition:.15s;
  border:1px solid #e5e7eb;
  cursor:pointer;
  font-size:18px;
  color:#374151;
}
.rdk-share-float-btn:hover {
  transform:translateX(-3px);
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
.rdk-share-float-btn.wa  { color:#25d366 }
.rdk-share-float-btn.tg  { color:#2aabee }
.rdk-share-float-btn.fb  { color:#1877f2 }
.rdk-share-float-btn.x   { color:#000 }
.rdk-share-float-btn.cp  { color:var(--blue) }
@media(max-width:768px){ .rdk-share-float { display:none } }

/* g3 grid defined in main styles */

/* 2. Pagination .pg */
.pg {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         28px 0 12px;
  flex-wrap:       wrap;
}
.pg a,
.pg span,
.pg .page-numbers {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       38px;
  height:          38px;
  padding:         0 10px;
  border:          1px solid var(--border);
  border-radius:   8px;
  font-size:       14px;
  font-weight:     600;
  color:           var(--text);
  text-decoration: none;
  transition:      border-color .15s, color .15s, background .15s;
  background:      #fff;
}
.pg a:hover, .pg .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pg span.on,
.pg span.current,
.pg .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pg .dots       { border: none; background: none; color: var(--text-3); }

/* 3. إصلاح أيقونة صفحة التصنيف — تبقى داخل البطاقة */
.rdk-cat-hero-icon {
  flex-shrink: 0 !important;
  align-self: flex-start !important;
}

/* ══ Hero بطاقة — مطابق لـ sahelha ══ */
.sa-cat-hero {
  padding:16px 8px;margin-bottom:0;
}
.sa-cat-hero-inner {
  display:flex;flex-direction:row;align-items:center;gap:24px;
}
.sa-cat-hero-body { flex:1;min-width:0; }
.sa-cat-hero-icon { flex-shrink:0; }
.sa-cat-hero-icon {
  width:88px;height:88px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  font-size:40px;line-height:1;flex-shrink:0;overflow:hidden;
}
.sa-cat-hero-body { min-width:0; }
.sa-cat-hero-title {
  font-size:clamp(24px,3.5vw,32px);font-weight:900;color:#0d1117;
  margin:0 0 12px;line-height:1.25;
}
.sa-cat-hero-desc { font-size:14.5px;line-height:1.9;color:#6b7280;margin:0; }
.sa-cat-stats { display:flex;gap:8px;margin-top:16px; }
.sa-cat-stat {
  display:inline-flex;align-items:center;gap:8px;padding:8px 14px;
  background:#FAFBFC;border:1px solid var(--border);border-radius:10px;
  font-size:13px;font-weight:600;
}
.sa-cat-stat-num   { color:var(--sc,var(--blue));font-weight:900;font-size:15px; }
.sa-cat-stat-icon  { color:var(--sc,var(--blue));display:flex;align-items:center; }
.sa-cat-stat-label { color:#6b7280; }
@media(max-width:720px){
  .sa-cat-hero{padding:24px 20px;}
  .sa-cat-hero-inner{grid-template-columns:1fr;gap:16px;}
  .sa-cat-hero-icon{width:64px;height:64px;font-size:30px;}
}

/* ══ Grid الكروت ══ */
.g3 {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   10px;
  background:            transparent;
  border-radius:         0;
  border:                none;
  box-shadow:            none;
  overflow:              visible;
}
@media(max-width:900px) { .g3 { grid-template-columns: 1fr; } }
@media(max-width:540px) { .g3 { grid-template-columns: 1fr; } }
.g3 .ebr-card-snippet { background: #F8FAFC; }
.g3 .ebr-card-snippet { border: 1.5px solid #E2E8F0; }
.g3 .ebr-card-snippet:nth-last-child(1),
.g3 .ebr-card-snippet:nth-last-child(2) { border-bottom: 1.5px solid #E2E8F0; }

/* ── اسم الكاتب في المقال ── */
.rp-meta a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.rp-meta a:hover { color: var(--blue); }
/* اسم الكاتب في صفحة المقال */
.au-name { font-size:22px; font-weight:900; color:var(--text); }

/* ══ sa-allsrv — نموذج كل الردود ══ */
.sa-allsrv-section {
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(0,51,102,.04);
}
.sa-allsrv-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #EEF1F5;
}
.sa-allsrv-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0;
}
.sa-allsrv-title {
  font-size: 19px; font-weight: 800; color: #0d1117; margin: 0;
}
.sa-allsrv-count {
  margin-inline-start: auto;
  font-size: 12.5px; font-weight: 700; color: #6b7280;
  background: #F7F9FC; padding: 4px 12px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.sa-allsrv-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.sa-allsrv-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 6px; text-decoration: none;
  border-bottom: 1px solid #F4F6F9;
  transition: background .12s, padding .12s;
  border-radius: 8px;
}
.sa-allsrv-link:hover { background: #F7F9FC; padding-inline-start: 12px; }
.sa-allsrv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sc, var(--blue)); flex-shrink: 0;
}
.sa-allsrv-name {
  font-size: 14.5px; font-weight: 600; color: #374151;
  line-height: 1.5; transition: color .12s;
}
.sa-allsrv-link:hover .sa-allsrv-name { color: var(--blue); }
@media (max-width: 600px) {
  .sa-allsrv-section { padding: 16px; }
  .sa-allsrv-index   { grid-template-columns: 1fr; }
  .sa-allsrv-icon    { width: 38px; height: 38px; font-size: 18px; }
  .sa-allsrv-title   { font-size: 17px; }
}

/* ══ Hero mobile fixes ══ */
@media (max-width: 768px) {
  .rdk-hero { min-height: auto !important; padding: 40px 0 32px; }
  .rdk-hero__eyebrow { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rdk-hero__title { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rdk-hero__desc  { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rdk-hero__card  { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ══ Mobile search keyboard fix ══ */
@media (max-width: 768px) {
  .hdr-mobile-search {
    position: fixed;
    top: var(--hdr-h, 64px);
    /* iOS: يبقى فوق الكيبورد */
    transition: none;
  }
  .hdr-mobile-search.on {
    display: block;
  }
  /* منع انكماش الـ viewport عند ظهور الكيبورد */
  .hdr-mobile-search-inner input {
    font-size: 16px; /* iOS لا يزوم عند 16px+ */
  }
}

/* ══ زر عرض المزيد في الويدجت ══ */
.rdk-more-wrap {
  text-align: center;
  margin-top: 24px;
  width: 100%;
}
.rdk-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 40px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.rdk-more-btn:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.rdk-more-btn:disabled { opacity: .6; cursor: wait; }

/* ── Anchor text inside post content ── */
.rp-content a { color: var(--blue) !important; text-decoration: none !important; }
.rp-content a:hover { color: var(--blue-d) !important; }

/* ================================================================
   EBARATAK — Hero Styles
   ================================================================ */
.ebr-hero {
  background: linear-gradient(160deg,#001133 0%,#002266 55%,#003B8E 100%);
  padding:    52px 0 0;
  text-align: center;
  direction:  rtl;
  position:   relative;
  overflow:   hidden;
}
.ebr-hero__deco {
  position:absolute;border-radius:50%;pointer-events:none;
}
.ebr-hero__deco-1 {
  width:480px;height:480px;left:-160px;top:-180px;
  background:rgba(255,255,255,.04);
}
.ebr-hero__deco-2 {
  width:280px;height:280px;right:-70px;bottom:50px;
  background:rgba(255,255,255,.03);
}
.ebr-hero__inner {
  max-width:  640px;
  margin:     0 auto;
  padding:    0 24px 44px;
  position:   relative;
  display:    flex;
  flex-direction: column;
  align-items: center;
}
.ebr-hero__eyebrow {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  font-size:     11px;
  font-weight:   600;
  color:         rgba(255,255,255,.65);
  letter-spacing:.04em;
  margin-bottom: 18px;
  background:    rgba(255,255,255,.07);
  border:        1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding:       5px 14px;
}
.ebr-hero__eyebrow-dot {
  width:6px;height:6px;border-radius:50%;
  background:#60A5FA;flex-shrink:0;
  animation:ebr-pulse 2s infinite;
}
@keyframes ebr-pulse {
  0%,100%{opacity:1}50%{opacity:.35}
}
.ebr-hero__title {
  font-size:   clamp(24px,4vw,32px);
  font-weight: 800;
  color:       #fff;
  line-height: 1.3;
  margin:      0 0 10px;
}
.ebr-hero__title span {
  color:   #FCD34D;
  display: block;
  font-size: clamp(20px,3.2vw,26px);
}
.ebr-hero__desc {
  font-size:   13px;
  color:       rgba(255,255,255,.62);
  line-height: 1.75;
  max-width:   420px;
  margin-bottom: 22px;
}
.ebr-hero__form {
  display:       flex;
  gap:           0;
  width:         100%;
  max-width:     480px;
  background:    #fff;
  border-radius: var(--r);
  overflow:      hidden;
  box-shadow:    0 4px 20px rgba(0,0,0,.2);
  margin-bottom: 18px;
}
.ebr-hero__input {
  flex:       1;
  padding:    12px 16px;
  border:     none;
  font-size:  16px;
  direction:  rtl;
  outline:    none;
  font-family:var(--f);
  color:      var(--text);
  background: transparent;
}
.ebr-hero__btn {
  padding:    12px 18px;
  background: var(--blue);
  border:     none;
  color:      #fff;
  cursor:     pointer;
  transition: .15s;
  display:    flex;
  align-items:center;
  flex-shrink:0;
}
.ebr-hero__btn:hover { background:var(--blue-d) }
.ebr-hero__chips {
  display:     flex;
  flex-wrap:   wrap;
  gap:         7px;
  justify-content: center;
}
.ebr-hero__chips-label {
  font-size:  11px;
  color:      rgba(255,255,255,.5);
  align-self: center;
}
.ebr-hero__chip {
  padding:    4px 13px;
  background: rgba(255,255,255,.1);
  border:     1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  font-size:  12px;
  color:      rgba(255,255,255,.88);
  cursor:     pointer;
  transition: .15s;
  text-decoration: none;
}
.ebr-hero__chip:hover { background:rgba(255,255,255,.2) }

/* ── Logo ── */
.logo-ic {
  width:40px;height:40px;
  background:var(--blue);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.logo-tx {
  font-size:18px;font-weight:800;color:var(--text);
}

/* ── أحدث العبارات — قائمة الويدجت ── */
.ebr-latest-list {
  display:        flex;
  flex-direction: column;
  gap:            1px;
  background:     var(--border);
  border-radius:  0 0 var(--r-lg) var(--r-lg);
  overflow:       hidden;
}

@media(max-width:600px){
  .ebr-hero__form { max-width:100% }
}

/* ══ Mobile Drawer ══ */
.mm {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.mm.on { transform: translateX(0); }
.mo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.mo.on { opacity: 1; pointer-events: auto; }
.mm-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: var(--blue, #003B8E);
  color: #fff;
}
.mm-title { font-weight: 700; font-size: 16px; }
.mm-c {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.mm-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li a {
  display: block;
  padding: 13px 20px;
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.mm-list li a:hover {
  background: #EEF4FF;
  color: var(--blue, #003B8E);
}
.mm-list li.current-menu-item > a,
.mm-list li.current-menu-ancestor > a {
  color: var(--blue, #003B8E);
  background: #EEF4FF;
}
.mm-list ul { padding-right: 16px; }

/* ── Mobile Walker Menu Items ── */
.mmn nav .mm-items { list-style:none; margin:0; padding:0; }
.mmn nav .mm-items li { display:block; }
.mmn nav .mm-items li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #1a1a2e;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
}
.mmn nav .mm-items li a:hover { background:#EEF4FF; color:#003B8E; }
.mmn nav .mm-items li.current-menu-item > a { color:#003B8E; background:#EEF4FF; }
