footer,footer a {
    display:grid;
    place-items:center;
    color:var(--muted)
}
p.related_links a,p.related_links a:hover {
    color:var(--link)
}
footer a:hover,p.related_links a:hover {
    text-decoration:underline
}
.author-inner,.post-gnews,.post-tags,.sw-post-item,.widget-title-About,footer a,footer p {
    text-align:center
}
.dark-color,.dark-color a {
    color:#fff!important;
    background-color:transparent!important
}
.light-color,.light-color a,.light-color a:focus,.light-color a:hover,a.light-color:focus,a.light-color:hover {
    color:#000!important;
    background-color:transparent!important
}
footer {
    background:var(--primary);
    padding:25px 0;
    margin-top:24px
}
footer a {
    text-decoration:none
}
footer p {
    max-width:900px;
    margin:10px 4px 0;
    font-size:14px
}
.footer-links {
    max-width:1200px;
    margin:auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px
}
.footer-nav {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    padding:0;
    margin:0;
    list-style:none
}
.footer-nav li {
    Margin:5px 0
}
.footer-nav a {
    text-decoration:none;
    color:inherit;
    padding:5px 10px;
    display:inline-block;
    transition:color 0.3s
}
.footer-nav a:hover {
    color:#007bff
}
footer,header {
    border-top:3px solid var(--main-color)
}
header {
    color:var(--primaryText);
    z-index:100;
    border-bottom:3px solid var(--main-color)
}

.widget-title h2::before {
    content:"📖";
    margin-left:8px;
    font-size:.9rem
}

.widget-inner {
    margin:30px 0
}
.widget-title h2 {
    margin:0;
    position:relative
}
.widget-title i {
    vertical-align:middle
}
.widget-header {
    margin-bottom:20px;
    border:2px solid rgba(0,0,0,.05);
    padding:4px 8px;
    border-radius:12px
}
.widget-header .widget-title h2 {
    color:#000;
    font-size:18px
}
.archive-inner a,.widget-area a {
    text-decoration:none!important;
    color:var(--link-color)
}
.widget-link-icon::after {
    font-family:'Font Awesome 5 Free';
    font-weight:700;
    font-size:.7em;
    margin-inline:5px 0;
    content:""
}
.rtl .widget-link-icon::after {
    content:"\f053";
    margin-right:5px
}
.widget-title-About {
    font-size:20px;
    font-weight:600;
    color:#0073aa;
    margin-bottom:15px;
    text-transform:uppercase;
    letter-spacing:1px;
    font-family:Arial,sans-serif
}
.widget-title-About:hover {
    color:#005177;
    transition:color .3s
}
.NewLink a,.author-title h2 a,.gnews-btn,.post-tags-inner a,p.related_links a {
    text-decoration:none
}

.search-popup-box {
  width: 100% !important;
  max-width: 900px !important;
  position: relative !important;
}
.search-popup-overlay {
  background: rgba(220, 220, 220, 0.92);
}

.search-submit {
  display: none !important;
}

.search-popup-close {
  display: none !important;
}

.search-popup-close:hover {
  opacity: 1;
}


.search-popup-form form {
  display: flex;
  align-items: center;
  width: 100%;
  background: #020617;
  border-radius: 14px;
  padding: 4px 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}



.post a
{
  color: #000;
}
/* ===== Single post layout ===== */

.single-grid {
  display: block;
}

@media (min-width: 1024px) {
  .single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }

  .single-content {
    order: 1;
  }

  .single-sidebar {
    order: 2;
    display: block;
    position: sticky;
    top: 30px; /* حسب ارتفاع الهيدر */
  }
}

/* ================= Mobile ================= */
@media (max-width: 1023px) {
  .single-grid {
    display: flex;
    flex-direction: column;
  }

  .single-content {
    order: 1;
  }

  .single-sidebar {
    order: 2;
    display: block;
    position: static;
    margin-top: 24px;
  }
}

/* Sidebar widget spacing */
.single-widget {
  margin-bottom: 20px;
}

    /* ========== SIDEBAR (Latest News) ========== */
 
/* ================= Header ================= */

.sidebar-header {
    background:var(--main-color) ;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  margin: 0;
}

.sidebar-header a {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.9;
}

.sidebar-header a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ================= List ================= */

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================= Item ================= */

.sidebar-item {
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  background: #ffffff;
  flex: 1;
  display: flex;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item a {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  transition: background 0.2s ease;
  color: inherit;
  width: 100%;
  align-items: center;
}

.sidebar-item:hover a {
  background: #f9fafb;            /* gray-50 */
}

/* ================= Number ================= */

.sidebar-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111827;            /* gray-900 */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ================= Content ================= */

.sidebar-content {
  flex: 1;
  min-width: 0;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-time {
  font-size: 11px;
  color: #6b7280;                  /* gray-500 */
  margin-top: 4px;
}




/* ========== HERO SECTION ========== */

    .hero-grid {
      display: grid;
      gap: 20px;
      align-items: stretch;
    }
    
    .hero-main {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      grid-template-rows: 200px 200px 180px;
      gap: 16px;
    }
    @media (max-width: 768px) {
      .hero-main { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
      }
      .hero-card-main,
      .hero-card-small,
      .hero-card-bottom { 
        grid-column: auto !important; 
        grid-row: auto !important; 
      }
    }
    
    .hero-card-main {
      position: relative;
      overflow: hidden;
      background: var(--gray-300);
      grid-column: 2;
      grid-row: 1 / 3;
    }
    
    .hero-card-small {
      position: relative;
      overflow: hidden;
      background: var(--gray-300);
      grid-column: 1;
    }
    
    .hero-card-bottom {
      position: relative;
      overflow: hidden;
      background: var(--gray-300);
      grid-column: 1 / 3;
      grid-row: 3;
    }
    
    .hero-card-main img,
    .hero-card-small img,
    .hero-card-bottom img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .hero-card-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 20px;
      background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
      color: var(--white);
    }
    .hero-card-cat {
      position: absolute;
      top: 15px;
      right: 15px;
      background: #910606;
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      z-index: 5;
    }
    .hero-card-title {
      font-size: 15px;
      font-weight: 700;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
			  color: #fff;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }
    .hero-card-main .hero-card-title {
      font-size: 22px;
      -webkit-line-clamp: 3;
    }
    .hero-card-main .hero-card-overlay {
      padding: 24px;
    }
    
    /* ========== SECTION ========== */
    .section {
      padding: 30px 0;
    }
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .section-title {
      font-size: 20px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .section-title::before {
      content: '';
      width: 5px;
      height: 28px;
      background: var(--primary);
    }
    .section-link {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .section-link:hover { text-decoration: underline; }
    
    /* Section with colored background */
    .section-colored {
      background: var(--secondary);
      padding: 30px 0;
    }
    .section-colored .section-title {
      color: var(--white);
    }
    .section-colored .section-title::before {
      background: var(--primary);
    }
    .section-colored .section-link {
      color: rgba(255,255,255,0.7);
    }
    
    /* ========== ARTICLE CARDS ========== */
    .articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }
    .articles-grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }
    @media (max-width: 1024px) {
      .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .articles-grid-4 { grid-template-columns: 1fr; }
    }
    
    .article-card {
      background: var(--white);
      overflow: hidden;
      transition: all 0.3s;
    }
    .article-card:hover {
      transform: translateY(-4px);
    }


    .article-card-img {
      position: relative;
      height: 180px;
      overflow: hidden;
      background: #000;
    }
    .article-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .article-card-body { 
      padding: 12px 15px;
    }
    .article-card-title {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.6;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
			      color: #000;

    }

    .article-card-cat {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 700;
			
    }
    .article-card-excerpt {
      font-size: 13px;
      color: #000;
      line-height: 1.6;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .article-card-meta {
      font-size: 11px;
      color: var(--gray-500);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .article-card-author {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    /* Horizontal Card */
    .article-card-h {
      display: flex;
      background: var(--white);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .article-card-h-img {
      width: 200px;
      flex-shrink: 0;
      background: var(--gray-200);
    }
    .article-card-h-img img { width: 100%; height: 100%; object-fit: cover; }
    .article-card-h-body { padding: 16px; flex: 1; }
    