/*
Template: ultranews
Theme Name: nile4
Version: 19.04
*/

/* ================================
   متغيّرات وهوية الموقع
   ================================ */
:root{
  --site-color: #013521;
  --site-color-rgb: 1,53,33;

  --site-color-lighter-1: #345e4e;
  --site-color-lighter-2: #4e7264;
  --site-color-lighter-3: #67867a;
  --site-color-lighter-m: #e6ebe9;

  --site-color-darker-1: #012b1b;
  --site-color-darker-2: #012618;
  --site-color-darker-3: #012014;
  --site-color-darker-m: #010604;

  --body-bg-color: #edeef3;
  --body-color: #111;
  --glob-shadow-color: rgba(0,0,0,.08);
  --glob-border-radius: 12px;
  --glob-gap: 1rem;

  /* أحجام افتراضية */
  --fz-h1: 1.6rem;   /* كان 1.45 */
  --fz-h1-lg: 2.05rem;
  --fz-h2: 1.3rem;
  --fz-h3: 1.2rem;
  --fz-meta: .9rem;
}

body{
  color: var(--body-color);
  background: var(--body-bg-color);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}
}

/* ================================
   هيدر المقال / الميتا
   ================================ */
body:not(.post-header-design-overlay) .primary-header,
.entry-outer .primary-content,
.sidebar:not(:last-of-type),
#sidebar-post_below,
.comments{border-bottom:0 solid var(--body-bg-color);}

.post-header-design-overlay .primary-header{margin-bottom:calc(var(--glob-gap)*1);}
.post-header-design-overlay .primary-header-inner{min-height:70vh;}

body.post-header-design-overlay .primary-header-inner-2{
  margin-bottom:calc(var(--glob-gap)*-1)!important;
  padding:1.2rem;
  background:#fff!important;
  backdrop-filter: blur(5px);
  color:initial;text-shadow:none;
  border-radius:var(--glob-border-radius);
  --meta-color:var(--body-color);
  --meta-color-hover:var(--body-color);
  box-shadow:0 0 5px var(--glob-shadow-color);
}

.primary-header{ text-align:center; }
.primary-header .glob-links-inner{ justify-content:center; }

.primary-header h1{
  font-size:var(--fz-h1);
  margin:.25rem 0 .6rem;
  background: radial-gradient(var(--site-color), var(--site-color-darker-m));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
@media (min-width: 992px){
  .primary-header h1{ font-size: var(--fz-h1-lg); }
}

.post-meta{ justify-content:center; gap:0; font-size:var(--fz-meta); }
.post-meta .post-meta-item.post-meta-terms .post-meta-item-label{display:none;}
.post-meta .post-meta-item:not(:last-of-type)::after{
  margin-inline-start:10px;content:"|";font-size:.8em;opacity:.7;
}

/* إخفاء breadcrumbs على الموبايل فقط */
@media (max-width: 767.98px){
  .primary-header .glob-links-inner,
  .breadcrumbs,
  .post-breadcrumbs{ display:none !important; }
}

/* ================================
   صور الهيدر/المحتوى
   ================================ */
/* صورة الهيدر: مخفية على الموبايل، ظاهرة على الديسكتوب */
@media (max-width: 767.98px){
  .entry-header-outer{ display:none !important; }
}
@media (min-width: 768px){
  .entry-header-outer{ display:block !important; }
}

/* الصورة التي تُدرجها الدالة بعد الفقرة الأولى (داخل المحتوى):
   تأكيد ظهورها دائمًا وعدم تأثرها بقواعد أخرى */
.entry-content > .entry-image,
.entry-content .entry-image{
  display:block !important;
  margin:1rem 0;
}

/* ================================
   بنية المحتوى والطباعة
   ================================ */
.entry-content{ text-align: justify; }
.entry-content h1:not(.unstyled),
.entry-content h2:not(.unstyled),
.entry-content h3:not(.unstyled){
  border:none; position:relative;
  background: radial-gradient(farthest-side at 100% 0, var(--body-bg-color), transparent);
  border-radius:0;
}
.entry-content h1:not(.unstyled)::before,
.entry-content h2:not(.unstyled)::before,
.entry-content h3:not(.unstyled)::before{
  content:"";position:absolute;inset-inline:0;top:0;height:2px;
  background:linear-gradient(to left,var(--site-color),transparent 50%,transparent);
}
.entry-content h1:not(.unstyled)::after,
.entry-content h2:not(.unstyled)::after,
.entry-content h3:not(.unstyled)::after{
  content:"";position:absolute;inset-block:0;inset-inline-end:0;width:2px;
  background:linear-gradient(to bottom,var(--site-color),transparent 80%,transparent);
}
h2{ font-size:var(--fz-h2); }
h3{ font-size:var(--fz-h3); }
.wp-caption{ max-width:100%; }
.entry-tags .label{ display:none; }
.entry-caption{ display:none; }

@media print{ body{ display:none; } }

/* ================================
   شريط القوائم (الهيدر)
   ================================ */
/* إصلاح شطّة/Underline التصنيف في هيدر الموبايل فقط */
.content-layout[data-layout="header_layout_mobile"] .nav-menu .menu .title::after{
  content:none !important;
}

/* padding لطيف لروابط القائمة حتى بدون bootstrap.rtl */
.nav-menu .menu > li > a{ padding: .75rem 0; }

/* ================================
   الودجات/السايدبار/القوائم
   ================================ */
body.home .sidebarX, .entry-outer .sidebarX{ background:#fff; }
body.home .sidebar .widget-header{ margin:2em 0; }
.widget-header h3{
  font-weight:700; padding-inline-start:1rem;
  border-inline-start:3px solid var(--site-color);
}
.widget-header>*::after, .comments-title::after, .comment-reply-title::after{ display:none; }

/* بوستات عامة */
.post{ --dark-column-thumb-min-height:250px; }
.post .post-content{ box-shadow:none; }
.post .post-content .post-title h3{ font-weight:700; }
.post .post-content .post-excerpt{ margin-top:1em; color:var(--meta-color); display:none; }
.post .post-content .post-date{ margin-top:1em; }
.post .post-content .post-meta-item{ display:inline-flex; color:var(--meta-color); font-size:.9em; }

/* تخطيطات مستخدمة فقط: احتفظ بما يفيدك، أزل الباقي من الودجات إن لم تستعمله */
.widget.cstyle1 .posts-loop .post-thumb{ flex-basis:35%; align-items:flex-start; }

.widget.cstyle3 .posts-headings .post-content{ border:1px solid #eee; }
.widget.cstyle3 .posts-headings .post-content:hover{
  border-color:transparent; box-shadow:0 0 10px var(--glob-shadow-color);
}
.widget.cstyle3 .posts-headings .post-content img{
  border-bottom-left-radius:0!important; border-bottom-right-radius:0!important;
}

/* إن لم تكن تستخدم cstyle2/cstyle4 بكثافة يمكن حذف أقسامها من الودجات نفسها لتخفيف DOM */

/* ================================
   تكييفات موبايل
   ================================ */
@media (max-width: 991.98px){
  .widget.cstyle5 .posts-loop.style-sm-row .post .post-content{ border:1px solid #eee; }
  .widget.cstyle5 .posts-loop.style-sm-row .post .post-content:hover{
    border-color:transparent; box-shadow:0 0 10px var(--glob-shadow-color);
  }
  .posts-loop:not(.theme-dark-sm).posts-loop.style-sm-column .post .post-content{ border:1px solid #eee; }
  .posts-loop:not(.theme-dark-sm).posts-loop.style-sm-column .post .post-content:hover{
    border-color:transparent; box-shadow:0 0 10px var(--glob-shadow-color);
  }
  .posts-loop.style-sm-row .post .post-link{ padding:1em; gap:1em; }
  .posts-loop.style-sm-row .post .post-title{ padding:0; }

  /* شبكة أخبار صغيرة ثلاثية */
  .newsFeed{ align-items:flex-start; }
  .newsFeed a .image{ margin-inline:auto; }
  .newsFeed a p{ text-align:center; }
  .newsFeed a{ width: calc((100% - 30px) / 3); }
  a.google.newsFeedBtn, a.facebook.newsFeedBtn, a.youtube.newsFeedBtn{ display:block; }
}

/* ================================
   تكييفات دِسك توب
   ================================ */
@media (min-width: 992px){
  .widget.cstyle5 .posts-loop.style-lg-row .post .post-content{ border:1px solid #eee; }
  .widget.cstyle5 .posts-loop.style-lg-row .post .post-content:hover{ box-shadow:0 0 10px var(--glob-shadow-color); }

  .posts-loop:not(.theme-dark-lg).style-lg-column .post .post-content{ border:1px solid #eee; }
  .posts-loop:not(.theme-dark-lg).style-lg-column .post .post-content:hover{
    border-color:transparent; box-shadow:0 0 10px var(--glob-shadow-color);
  }
  .posts-loop.style-lg-row .post .post-link{ padding:1em; gap:1em; }
  .posts-loop.style-lg-row .post .post-title{ padding:0; }
}

/* عناوين داخل حاويات headings */
.posts-loop-container .posts-headings .post .post-content .post-title h3{
  font-size: unset !important;
}

/* ================================
   فوتر
   ================================ */
#site-footer .content-layout-row{ border-top:none; }

/* ================================
   البحث
   ================================ */
.search-field,
.search-field:focus{
  box-shadow:none;border:none;background:transparent;border-radius:0;border-bottom:1px solid #ccc;
}
.search-field:focus{ border-bottom-color:#555; }

/* ================================
   المشاركة والوسوم
   ================================ */
.share-links .label{ display:none; }
.share-links-inner a{
  display:inline-flex;align-items:center;gap:.5rem;
  background-color: var(--color) !important;color:#fff !important;
  border-radius:10px;padding:.55rem .8rem;
}
.share-links-inner a .title::before{ content:"شارك على "; }
.share-links-inner a.sl-more{ display:none; }

.entry-tags-inner a{ background:transparent;border-width:2px;border-radius:0; }

/* ================================
   التيكر/الزر العلوي/المساحات
   ================================ */
#site{ padding-bottom:0 !important; }
@media (min-width:576px){ #