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

/* ================================
   متغيرات أساسية وهوية الموقع
   ================================ */
: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.45rem;
  --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;}

/* صندوق العنوان (فوق الصورة في تصميم overlay) */
body.post-header-design-overlay .primary-header-inner-2{
  margin-bottom:calc(var(--glob-gap)*-1)!important;
  padding:1.2rem;
  background-color:#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:clamp(1.7rem,2.3vw + 1rem,2.6rem);
  line-height:1.35;
  margin:.3rem 0 .7rem;
  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:clamp(1.9rem,1.3rem + 2vw,2.8rem);}
}
.primary-header .glob-container{border-top:2px solid var(--site-color);}

/* الميتا */
.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
   ================================ */
/* إخفاء صورة الهيدر لجميع الأجهزة */
.entry-header-outer,
.entry-header-outer .entry-image{display:none!important;}

/* إخفاء الـbreadcrumbs على الموبايل */
@media(max-width:767.98px){
  .breadcrumbs{display:none!important;}
}

/* ================================
   المحتوى والطباعة
   ================================ */
.entry-content{text-align:justify;}
.entry-content h1:not(.unstyled),
.entry-content h2:not(.unstyled),
.entry-content h3:not(.unstyled){
  border:none;position:relative;border-radius:0;
  background:radial-gradient(farthest-side at 100% 0,var(--body-bg-color),transparent);
}
.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,.entry-caption{display:none;}
@media print{body{display:none;}}

/* ================================
   الودجات/السايدبار/القوائم
   (تم الإبقاء على cstyle1 + cstyle3 فقط)
   ================================ */
body.home .sidebarX,.entry-outer .sidebarX{background-color:#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;}

/* === cstyle1 (نحتاجها للقوائم البسيطة) === */
.widget.cstyle1 .posts-loop .post-thumb{flex-basis:35%;align-items:flex-start;}

/* === cstyle3 (شبكة مربعات بحدود خفيفة) === */
.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;
}
@media(min-width:992px){
  .widget.cstyle3 .posts-headings .post-excerpt{display:block;}
}

/* إزالة كل أنماط cstyle2 و cstyle4 و cstyle5 لتخفيف الحجم */

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

/* ================================
   البحث
   ================================ */
.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){#news-ticker{display:none;}}
#site>#news-ticker,#news-ticker,.entry-outer:not(:last-of-type)#news-ticker,.news-ticker-close{display:none;}
.news-ticker-inner{font-family:initial;}
#scroll-top{display:none!important;}

/* منطقة وسط المقال */
#sidebar-post_middle{background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee;}

/* ================================
   تحسين CLS للإعلانات (CSS فقط)
   ================================ */
.adsbygoogle,.ad-slot{min-height:280px;display:block;}

/* ================================
   تحسينات خفيفة للمسافات والحواف
   ================================ */
#site-footer .content-layout-row{border-top:none;}
.container{padding-inline:12px;}
.entry-tags-inner a,.share-links-inner a{transition:transform .15s ease;}
.entry-tags-inner a:hover,.share-links-inner a:hover{transform:translateY(-2px);}