/*
 Theme Name:   Astra Child - NextWay
 Template:     astra
 Version:      13.0.0
*/
@import url("../astra/style.css");
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --nw-header:   #1b2f38;
  --nw-sidebar:  #1b2f38;
  --nw-primary:  #112230;
  --nw-accent:   #1a7a4a;
  --nw-accent2:  #2d9e6b;
  --nw-tg:       #0077b6;
  --nw-bg:       #e8ece9;
  --nw-bg2:      #dde2dd;
  --nw-card:     #ffffff;
  --nw-border:   #d0d5cf;
  --nw-border2:  #b8bdb6;
  --nw-text:     #18211a;
  --nw-muted:    #637068;
  --nw-sh:    0 1px 4px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --nw-sh-lg: 0 6px 24px rgba(27,47,56,.12), 0 10px 28px rgba(0,0,0,.07);
  --nw-r:     10px;
  --nw-r-sm:  8px;
  --tag-co:      #dbeafe; --tag-co-t:  #1d4ed8;
  --tag-tamheer: #dcfce7; --tag-ta-t:  #15803d;
  --tag-grad:    #f3e8ff; --tag-gr-t:  #7e22ce;
  --tag-course:  #fef3c7; --tag-cu-t:  #b45309;
  --tag-ib:      #ffedd5; --tag-ib-t:  #c2410c;
  --tag-def:     #f1f5f9; --tag-def-t: #475569;
}

html, body {
  width:100%!important; max-width:100%!important;
  overflow-x:hidden!important;
  margin:0!important; padding:0!important;
  box-sizing:border-box!important;
}
body {
  background:var(--nw-bg)!important;
  font-family:'Tajawal',sans-serif!important;
  color:var(--nw-text)!important;
}
*,*::before,*::after { box-sizing:border-box; }

/* ══ بدون max-width:100% هنا حتى لا يتعارض مع الـ desktop ══ */
#page,.site,.ast-container,
.site-content,#content,#primary,#secondary,
.ast-separate-container,.ast-row,.site-main,.content-area {
  width:100%!important;
  margin-left:0!important; margin-right:0!important;
  padding-left:0!important; padding-right:0!important;
  box-sizing:border-box!important;
}
.ast-container { padding:0!important; }
.site-footer { margin-top:0!important; }
.pagination,.nav-links,.posts-navigation,
.page-numbers,a.page-numbers,span.page-numbers { all:unset; }
.site-logo img,.custom-logo,.site-branding img,
a[href="https://nextwaysa.com/"] img {
  border-radius:unset!important; width:unset!important;
  height:unset!important; border:none!important;
  box-shadow:none!important; transform:none!important;
}

/* إخفاء هيدر Astra */
.main-header-bar-wrap .ast-builder-grid-row,
.main-header-bar-wrap .ast-header-html-1,
.main-header-bar-wrap .ast-header-html-2,
.main-header-bar-wrap .site-logo-img,
.main-header-bar-wrap .ast-site-identity,
.main-header-bar-wrap .main-navigation,
.main-header-bar-wrap .ast-mobile-menu-trigger,
.main-header-bar-wrap .custom-logo-link,
.main-header-bar-wrap .ast-flex,
.main-header-bar-wrap .ast-container > * { display:none!important; }
.main-header-bar-wrap { padding:0!important;margin:0!important;height:0!important;overflow:hidden!important; }

.ast-archive-description,.archive .page-header,.category .page-header,
.page-header,.page-header .page-title,h1.page-title,
.taxonomy-description,.ast-breadcrumbs-wrapper { display:none!important; }
.ast-archive-entry-banner[data-post-type="post"] { display:none!important; }
.search .ast-archive-entry-banner,
.search .ast-archive-description,
.search .page-header { display:none!important; }
.ast-separate-container .site-main>.ast-row { display:none!important; }

.no-results .search-form,
.no-results form.search-form,
.no-results .search-field,
.no-results .ast-search-form,
.error404 .search-form,
.search-no-results .search-form,
.not-found .search-form,
.page-content .search-form,
.content-none .search-form { display:none!important; }

/* HEADER */
#nw-hdr-wrap {
  display:block!important;
  position:sticky!important; top:0!important; z-index:500!important;
  background:linear-gradient(90deg,#112230 0%,#1b2f38 100%)!important;
  box-shadow:0 2px 16px rgba(0,0,0,.28)!important;
  border-bottom:2px solid rgba(110,231,183,.35)!important;
  width:100%!important;
}
#nw-hdr-inner {
  display:flex!important; align-items:center!important;
  justify-content:space-between!important;
  padding:0 14px!important; height:52px!important;
}
#nw-hdr-logo { display:flex;align-items:center;gap:9px;text-decoration:none; }
#nw-hdr-logo img {
  width:32px!important; height:32px!important;
  border-radius:8px!important; background:#fff!important;
  padding:3px!important; object-fit:contain!important;
  border:none!important; box-shadow:none!important; display:block!important;
}
.nw-logo-name { font-size:15px;font-weight:800;color:#ffffff;display:block;line-height:1.2; }
.nw-logo-sub  { font-size:10px;color:#6ee7b7;font-weight:500;display:block;line-height:1; }
#nw-hdr-btn {
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);
  color:#fff;width:36px;height:36px;border-radius:8px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  transition:background .2s;
}
#nw-hdr-btn:hover { background:rgba(255,255,255,.2); }
#nw-hdr-btn span { display:block;width:16px;height:2px;background:#fff;border-radius:2px; }

/* OVERLAY + SIDEBAR */
#nw-overlay { display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:900;backdrop-filter:blur(4px); }
#nw-overlay.open { display:block; }
#nw-sidebar {
  position:fixed;top:0;right:-292px;width:282px;height:100vh;
  background:#1b2f38;z-index:1000;
  transition:right .3s cubic-bezier(.34,1.2,.64,1);
  display:flex;flex-direction:column;overflow-y:auto;
}
#nw-sidebar.open { right:0; }
.nw-sb-head { display:flex;align-items:center;justify-content:space-between;padding:18px 16px 14px;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0; }
.nw-sb-logo { display:flex;align-items:center;gap:9px; }
.nw-sb-logo img { width:32px;height:32px;border-radius:8px;background:#fff;padding:3px;object-fit:contain; }
.nw-sb-logo .s-name { font-size:15px;font-weight:800;color:#fff;display:block; }
.nw-sb-logo .s-sub  { font-size:10px;color:#6ee7b7;font-weight:500;display:block; }
.nw-sb-close { background:rgba(255,255,255,.1);border:none;color:#fff;width:30px;height:30px;border-radius:8px;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center; }
.nw-sb-section { padding:12px 16px 6px; }
.nw-sb-title { font-size:10px;font-weight:700;color:#6ee7b7;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px; }
.nw-sb-nav { display:flex;flex-direction:column;gap:2px; }
.nw-sb-nav a { display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:9px;color:rgba(255,255,255,.75);text-decoration:none;font-size:13px;font-weight:600;transition:all .18s; }
.nw-sb-nav a:hover,.nw-sb-nav a.active { background:rgba(255,255,255,.1);color:#fff; }
.nw-sb-nav .sb-icon { width:32px;height:32px;border-radius:9px;flex-shrink:0;display:flex;align-items:center;justify-content:center; }
.nw-sb-divider { height:1px;background:rgba(255,255,255,.07);margin:8px 16px; }
.nw-sb-cta { display:flex;align-items:center;gap:9px;margin:5px 16px;padding:11px 13px;border-radius:10px;text-decoration:none;font-size:13px;font-weight:700;color:#fff!important;transition:all .18s;width:calc(100% - 32px); }
.nw-sb-cta.tg { background:var(--nw-tg); }
.nw-sb-cta.tg:hover { background:#005f99; }
.nw-sb-cta.cv { background:linear-gradient(135deg,#1a7a4a,#0a3528); }
.nw-sb-cta.cv:hover { opacity:.88; }
.nw-sb-cta .ca { margin-right:auto; }
.nw-sb-socials { padding:12px 16px;display:flex;gap:8px; }
.nw-sb-social { width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;text-decoration:none;transition:all .18s; }
.nw-sb-social:hover { background:rgba(255,255,255,.18);color:#fff; }
.nw-sb-footer { margin-top:auto;padding:12px 16px;font-size:11px;color:rgba(255,255,255,.25);text-align:center; }

.ast-separate-container #primary,
.ast-separate-container .content-area,
.ast-separate-container .site-content,
#content { background:var(--nw-bg)!important;padding:0!important; }

/* صورة المقالة */
header.entry-header:not(.related-entry-header) .post-thumb,
.ast-single-post-featured-section .post-thumb {
  width:160px!important; height:160px!important;
  margin:20px auto 16px!important;
  border-radius:12px!important;
  overflow:hidden!important; display:block!important;
}
header.entry-header:not(.related-entry-header) .post-thumb img,
.ast-single-post-featured-section .post-thumb img {
  width:100%!important; height:100%!important; object-fit:cover!important;
  border-radius:12px!important; display:block!important;
  margin:0!important; max-width:100%!important;
}

/* HERO */
#nw-hero {
  background:
    radial-gradient(ellipse at 88% 10%, rgba(45,158,107,.32) 0%, transparent 50%),
    radial-gradient(ellipse at 5%  90%, rgba(17,34,48,.7)    0%, transparent 50%),
    linear-gradient(158deg, #0e1f28 0%, #1b2f38 50%, #19303a 100%);
  padding:28px 18px 24px;
  position:relative; overflow:hidden;
  text-align:center; width:100%;
}
#nw-hero::before { display:none; }
#nw-hero::after {
  content:''; position:absolute;
  top:-70px; right:-50px; width:280px; height:280px;
  background:radial-gradient(circle,rgba(45,158,107,.2) 0%,transparent 65%);
  border-radius:50%; pointer-events:none;
}
#nw-hero .nw-hero-line {
  position:absolute; bottom:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,transparent,#2d9e6b 50%,transparent);
  pointer-events:none;
}
.nw-hero-title {
  font-size:22px;font-weight:900;line-height:1.38;margin-bottom:8px;
  color:#f0f9f4;text-shadow:0 2px 16px rgba(0,0,0,.35);
  position:relative;z-index:1;
}
.nw-hero-desc {
  font-size:13px;color:rgba(220,240,230,.78);line-height:1.65;margin-bottom:14px;
  position:relative;z-index:1;
}
.nw-hero-badge {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:rgba(45,158,107,.18);border:1px solid rgba(45,158,107,.4);
  backdrop-filter:blur(8px);padding:5px 16px;border-radius:50px;
  font-size:11px;color:#6ee7b7;font-weight:700;
  position:relative;z-index:1;letter-spacing:.3px;margin-top:4px;
}

/* SEARCH */
#nw-search-bar { padding:14px 10px 10px; }
#nw-search-form { margin:0 0 10px; }
.nw-search-wrap {
  display:flex;align-items:center;background:#fff;border-radius:14px;
  border:1.5px solid var(--nw-border);box-shadow:0 1px 6px rgba(0,0,0,.07);
  padding:5px;gap:6px;transition:border-color .2s,box-shadow .2s;
}
.nw-search-wrap:focus-within { border-color:#1a7a4a;box-shadow:0 2px 12px rgba(26,122,74,.14); }
.nw-live-search {
  flex:1;border:none;outline:none;padding:8px 10px;
  font-family:'Tajawal',sans-serif;font-size:14px;
  color:var(--nw-text);background:transparent;
  text-align:right;direction:rtl;min-width:0;
}
.nw-live-search::placeholder { color:#9aab9e; }
.nw-search-submit-btn {
  flex-shrink:0;width:40px;height:40px;background:#1b2f38;
  border:none;cursor:pointer;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  transition:background .18s;position:relative;
}
.nw-search-submit-btn:hover { background:#1a7a4a; }
.nw-search-submit-btn::before {
  content:'';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);width:22px;height:22px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size:contain;background-repeat:no-repeat;background-position:center;
  display:block;pointer-events:none;
}
.nw-search-submit-btn svg { display:none!important; }
.nw-filters { display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px; }
.nw-filters::-webkit-scrollbar { display:none; }
.nw-filter-btn {
  flex-shrink:0;padding:6px 14px;border-radius:50px;
  border:1.5px solid var(--nw-border2);background:#fff;
  color:var(--nw-muted);font-family:'Tajawal',sans-serif;
  font-size:12px;font-weight:600;cursor:pointer;
  transition:all .18s;white-space:nowrap;text-decoration:none;display:inline-block;
}
.nw-filter-btn.active { background:#1b2f38;border-color:#1b2f38;color:#fff; }
.nw-filter-btn:hover:not(.active) { border-color:#1a7a4a;color:#1a7a4a; }

/* CARDS */
#nw-cards-list { display:flex;flex-direction:column;gap:7px;padding:10px 3px; }
.nw-wp-card {
  display:flex;align-items:stretch;background:#fff;
  border-radius:var(--nw-r);overflow:hidden;box-shadow:var(--nw-sh);
  border:1px solid var(--nw-border);text-decoration:none;color:inherit;
  transition:all .22s cubic-bezier(.34,1.2,.64,1);
  width:calc(100% - 24px);margin:0 12px;
}
.nw-wp-card:hover { transform:translateY(-2px);box-shadow:var(--nw-sh-lg);border-color:var(--nw-accent2); }
.nw-card-thumb {
  width:56px!important;min-width:56px!important;max-width:56px!important;
  height:56px!important;min-height:56px!important;max-height:56px!important;
  flex-shrink:0!important;overflow:hidden!important;background:#d4dfd7;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--nw-border);border-radius:var(--nw-r-sm);
  align-self:center;margin:6px 6px 6px 8px;
}
.nw-card-thumb img {
  width:56px!important;height:56px!important;
  object-fit:cover!important;object-position:center!important;
  display:block!important;flex-shrink:0!important;transition:transform .3s;
  border-radius:calc(var(--nw-r-sm) - 1px);
}
.nw-wp-card:hover .nw-card-thumb img { transform:scale(1.08); }
.nw-thumb-fallback {
  width:56px;height:56px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#c8ddd2,#a4c4b4);
  font-size:9px;font-weight:800;color:#0a3528;text-align:center;padding:4px;line-height:1.3;
}
.nw-card-body {
  flex:1;padding:7px 10px 7px;display:flex;flex-direction:column;
  justify-content:space-between;min-width:0;
}
.nw-card-title {
  font-size:12.5px;font-weight:700;line-height:1.5;color:var(--nw-text);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  font-family:'Tajawal',sans-serif;flex:1;padding-bottom:0;border-bottom:none;margin-bottom:0;
}
.nw-card-divider { display:none!important; }
.nw-card-bottom {
  display:flex;align-items:center;gap:4px;flex-wrap:wrap;
  flex-shrink:0;padding-top:6px;margin-top:6px;
  border-top:1px solid #d0d5cc;
}
.nw-card-date {
  font-size:9px;color:var(--nw-muted);
  display:flex;align-items:center;gap:2px;
  font-family:'Tajawal',sans-serif;flex-shrink:0;
}
.nw-tag {
  display:inline-flex;align-items:center;gap:3px;
  padding:2px 7px;border-radius:50px;
  font-size:8.5px;font-weight:700;white-space:nowrap;flex-shrink:0;
  font-family:'Tajawal',sans-serif;
}
.nw-tag-co      { background:var(--tag-co);     color:var(--tag-co-t); }
.nw-tag-tamheer { background:var(--tag-tamheer); color:var(--tag-ta-t); }
.nw-tag-grad    { background:var(--tag-grad);    color:var(--tag-gr-t); }
.nw-tag-course  { background:var(--tag-course);  color:var(--tag-cu-t); }
.nw-tag-ib      { background:var(--tag-ib);      color:var(--tag-ib-t); }
.nw-tag-default { background:var(--tag-def);     color:var(--tag-def-t); }

/* PAGINATION */
.ast-pagination,.page-links,nav.navigation.pagination,
.ast-separate-container .ast-pagination { display:none!important; }
#nw-pagination { display:flex;align-items:center;justify-content:center;gap:5px;padding:14px;flex-wrap:wrap; }
.nw-page-btn { min-width:36px;height:36px;border-radius:9px;border:1.5px solid var(--nw-border);background:#fff;color:var(--nw-muted);font-family:'Tajawal',sans-serif;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:all .18s;padding:0 10px; }
.nw-page-btn:hover { border-color:var(--nw-accent);color:var(--nw-accent); }
.nw-page-btn.active { background:#1b2f38;border-color:#1b2f38;color:#fff;pointer-events:none; }
.nw-page-btn.nav { background:#1b2f38;border-color:#1b2f38;color:#fff!important;padding:0 14px; }
.nw-page-btn.nav:hover { background:var(--nw-accent);border-color:var(--nw-accent); }
.nw-page-dots { color:var(--nw-muted);font-size:13px;padding:0 2px; }

/* SCROLL TOP */
#nw-scroll-top-left,#nw-scroll-top { display:none!important; }
.go-to-top,#go-to-top,.ast-scroll-to-top,
[class*="scroll-to-top"],[id*="scroll-to-top"],
.back-to-top,#back-to-top {
  width:40px!important;height:40px!important;border-radius:10px!important;
  background:#1b2f38!important;color:#fff!important;border:none!important;
  box-shadow:0 4px 14px rgba(27,47,56,.4)!important;
  align-items:center!important;justify-content:center!important;
  font-size:16px!important;
  position:fixed!important;bottom:18px!important;right:16px!important;
  z-index:399!important;
  opacity:0!important;visibility:hidden!important;
  pointer-events:none!important;transform:translateY(12px)!important;
  transition:opacity .3s ease,transform .3s ease,visibility .3s ease,background .2s!important;
}
body.nw-scrolled .go-to-top,body.nw-scrolled #go-to-top,
body.nw-scrolled .ast-scroll-to-top,body.nw-scrolled [class*="scroll-to-top"],
body.nw-scrolled [id*="scroll-to-top"],body.nw-scrolled .back-to-top,
body.nw-scrolled #back-to-top {
  opacity:1!important;visibility:visible!important;
  pointer-events:auto!important;transform:translateY(0)!important;
}
.go-to-top:hover,#go-to-top:hover,.ast-scroll-to-top:hover,
[class*="scroll-to-top"]:hover,[id*="scroll-to-top"]:hover,
.back-to-top:hover,#back-to-top:hover {
  background:var(--nw-accent)!important;transform:translateY(-3px)!important;
  opacity:1!important;visibility:visible!important;
}

/* CTAs + Features */
#nw-ctas { padding:0 12px; }
.nw-tg-cta {
  display:flex;align-items:center;gap:12px;padding:14px;margin:0 0 8px;
  background:linear-gradient(135deg,#0077b6,#0ea5e9);
  border-radius:var(--nw-r);color:#fff!important;text-decoration:none;
  transition:transform .2s,box-shadow .2s;box-shadow:0 4px 14px rgba(0,119,182,.2);
}
.nw-tg-cta:hover { transform:scale(1.01);box-shadow:0 6px 20px rgba(0,119,182,.3);color:#fff!important; }
.nw-tg-cta * { color:#fff!important; }
.nw-tg-icon { width:42px;height:42px;background:rgba(255,255,255,.18);border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.nw-tg-text h3 { font-size:13px;font-weight:800;margin:0 0 2px;font-family:'Tajawal',sans-serif;color:#fff!important; }
.nw-tg-text p  { font-size:11px;opacity:.88;margin:0;font-family:'Tajawal',sans-serif;color:#fff!important; }
.nw-tg-arrow { margin-right:auto;font-size:18px;opacity:.6; }
.nw-cv-cta {
  display:flex;align-items:center;gap:12px;padding:14px;margin:0 0 12px;
  background:#fff;border-radius:var(--nw-r);text-decoration:none;color:var(--nw-text);
  border:1.5px solid var(--nw-border);transition:all .2s;box-shadow:var(--nw-sh);
}
.nw-cv-cta:hover { border-color:var(--nw-accent);box-shadow:0 4px 18px rgba(26,122,74,.14);transform:translateY(-2px); }
.nw-cv-icon { width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,#1a7a4a,#0a3528);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0; }
.nw-cv-text h3 { font-size:13px;font-weight:800;margin:0 0 2px;font-family:'Tajawal',sans-serif; }
.nw-cv-text p  { font-size:11px;color:var(--nw-muted);margin:0;font-family:'Tajawal',sans-serif; }
.nw-features { display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:16px; }
.nw-feat { background:#fff;border-radius:var(--nw-r-sm);padding:12px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid var(--nw-border);gap:5px; }
.nw-feat-icon { width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px; }
.nw-feat h4 { font-size:11px;font-weight:700;color:var(--nw-text);margin:0;font-family:'Tajawal',sans-serif; }
.nw-feat p  { font-size:10px;color:var(--nw-muted);margin:0;font-family:'Tajawal',sans-serif; }

/* FOLLOW */
#nw-follow-section { padding:0 12px 14px; }
.nw-follow-box { background:#fff;border-radius:var(--nw-r);border:1px solid var(--nw-border);padding:14px;box-shadow:var(--nw-sh); }
.nw-follow-title { font-size:12px;font-weight:800;color:var(--nw-text);margin:0 0 12px;display:flex;align-items:center;gap:6px;font-family:'Tajawal',sans-serif; }
.nw-follow-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:8px; }
.nw-follow-item { display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 6px;border-radius:11px;text-decoration:none;transition:all .2s;border:1px solid transparent; }
.nw-follow-item:hover { transform:scale(1.05); }
.nw-follow-icon { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.nw-follow-icon svg { width:17px;height:17px;fill:#fff; }
.nw-follow-label { font-size:10px;font-weight:600;font-family:'Tajawal',sans-serif;color:var(--nw-muted); }

/* FOOTER */
.site-footer,footer.site-footer { display:none!important; }
#nw-footer { background:#112230;padding:32px 18px 0;font-family:'Tajawal',sans-serif;color:rgba(255,255,255,.65); }
.nw-ft-top { display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px; }
.nw-ft-brand-row { display:flex;align-items:center;gap:12px; }
.nw-ft-logo { width:46px;height:46px;border-radius:12px;background:#fff;padding:5px;object-fit:contain;flex-shrink:0;display:block;box-shadow:0 3px 10px rgba(0,0,0,.3); }
.nw-ft-brand-text .f-name { font-size:26px;font-weight:900;color:#ffffff;display:block;letter-spacing:-.5px;line-height:1.1; }
.nw-ft-brand-text .f-sub { font-size:13px;color:#6ee7b7;font-weight:700;display:block;letter-spacing:.2px;margin-top:3px; }
.nw-ft-suggest-btn { display:inline-flex;align-items:center;gap:7px;background:linear-gradient(135deg,#1a7a4a,#0f4c35);border:none;color:#fff;font-family:'Tajawal',sans-serif;font-size:13px;font-weight:800;padding:10px 16px;border-radius:50px;text-decoration:none;transition:all .2s;white-space:nowrap;flex-shrink:0;box-shadow:0 3px 12px rgba(26,122,74,.35); }
.nw-ft-suggest-btn:hover { background:linear-gradient(135deg,#25a86a,#1a7a4a);transform:translateY(-2px);box-shadow:0 5px 16px rgba(26,122,74,.45);color:#fff; }
.nw-ft-suggest-btn::before { content:'';display:inline-block;width:16px;height:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:center;vertical-align:middle; }
.nw-ft-desc { font-size:15px;color:rgba(255,255,255,.48);margin:0 0 22px;max-width:100%;line-height:1.9; }
.nw-ft-soc-wrap { margin-bottom:22px; }
.nw-ft-soc-label { font-size:13px;font-weight:800;color:rgba(255,255,255,.65);text-transform:uppercase;letter-spacing:.8px;margin-bottom:12px;display:block; }
.nw-ft-soc { display:flex;gap:9px;flex-wrap:wrap; }
.nw-ft-si { width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;font-size:18px;text-decoration:none;transition:all .2s; }
.nw-ft-si:hover { background:rgba(110,231,183,.15);border-color:rgba(110,231,183,.3);color:#6ee7b7; }
.nw-ft-cols { display:flex;gap:0;justify-content:space-between;margin-bottom:22px; }
.nw-ft-col { flex:1; }
.nw-ft-col h4 { font-size:15px;font-weight:900;color:rgba(255,255,255,.95);margin:0 0 14px;padding-bottom:9px;border-bottom:1px solid rgba(110,231,183,.25);display:block; }
.nw-ft-col a { display:block;color:rgba(255,255,255,.6);text-decoration:none;font-size:16px;font-weight:500;margin-bottom:12px;transition:color .2s,padding-right .2s;line-height:1.4; }
.nw-ft-col a:hover { color:#6ee7b7;padding-right:5px; }
.nw-ft-div { height:1px;background:rgba(255,255,255,.09);margin:0; }
.nw-ft-bot { display:flex;align-items:center;justify-content:space-between;padding:16px 0 22px;gap:10px;flex-wrap:wrap; }
.nw-ft-copy { font-size:15px;color:rgba(255,255,255,.35);font-weight:400; }

/* SINGLE POST */
.ast-separate-container .ast-article-single:not(.ast-related-post) {
  background:var(--nw-card)!important;border-radius:var(--nw-r)!important;
  box-shadow:var(--nw-sh)!important;border:1px solid var(--nw-border)!important;
  padding:16px!important;margin:12px 12px!important;
  width:auto!important;max-width:none!important;box-sizing:border-box!important;
  display:block!important;float:none!important;position:relative!important;
  right:auto!important;left:auto!important;
}
.ast-separate-container .content-area,
.ast-separate-container #primary { padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important; }
h1.entry-title { background:linear-gradient(135deg,#1b2f38,#1a7a4a);padding:1rem;color:#fff;text-align:center;font-size:18px!important;border-radius:var(--nw-r);margin-bottom:1.2rem; }
.entry-content img,.post-content img { max-width:85%!important;height:auto!important;border-radius:8px!important;display:block!important;margin:12px auto!important; }

/* أزرار المقالة */
.nw-post-btns { display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px;padding:0 2px; }
.nw-post-btn { display:flex;align-items:center;justify-content:center;gap:7px;padding:13px 12px;font-size:13px;font-weight:700;border-radius:10px;text-decoration:none!important;color:#fff!important;min-height:46px;transition:all .2s;font-family:'Tajawal',sans-serif;line-height:1; }
.nw-post-btn:hover,.nw-post-btn:visited,.nw-post-btn:focus { text-decoration:none!important;color:#fff!important; }
.nw-post-btn.tg { background:linear-gradient(135deg,#0077b6,#0ea5e9); }
.nw-post-btn.tg:hover { transform:translateY(-2px); }
.nw-post-btn.tg svg { width:18px!important;height:18px!important;flex-shrink:0;display:inline-block;vertical-align:middle; }
.nw-post-btn.cv { background:linear-gradient(135deg,#1a7a4a,#0a3528);position:relative; }
.nw-post-btn.cv:hover { transform:translateY(-2px); }
.nw-post-btn.cv svg,.nw-post-btn.cv img,.nw-post-btn.cv i { display:none!important; }
.nw-post-btn.cv::before { content:'';display:inline-block;width:18px;height:18px;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:center;vertical-align:middle; }

/* RELATED POSTS */
.ast-related-posts-wrapper,.ast-related-posts-title-section { display:none!important; }
.ast-related-posts-section { padding:0 10px 14px!important;display:block!important; }
.nw-related-title { font-size:13px;font-weight:800;color:#fff;margin:0 0 10px;padding:9px 14px;background:linear-gradient(135deg,#1b2f38,#1a7a4a);border-radius:9px;display:flex;align-items:center;gap:8px;box-shadow:0 3px 10px rgba(27,47,56,.2); }
.nw-related-title::before { content:'🎯';font-size:15px; }
#nw-related-list { display:flex;flex-direction:column;gap:7px; }
.nw-related-card { display:flex;align-items:stretch;background:#fff;border-radius:var(--nw-r);overflow:hidden;box-shadow:var(--nw-sh);border:1px solid var(--nw-border);text-decoration:none;color:inherit;transition:all .2s cubic-bezier(.34,1.2,.64,1);width:100%; }
.nw-related-card:hover { transform:translateY(-2px);box-shadow:var(--nw-sh-lg);border-color:var(--nw-accent2); }
.nw-related-card .nw-card-thumb { width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;flex-shrink:0;background:#d4dfd7;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid var(--nw-border);border-radius:var(--nw-r-sm);align-self:center;margin:6px 6px 6px 8px; }
.nw-related-card .nw-card-thumb img { width:56px!important;height:56px!important;object-fit:cover!important;object-position:center!important;transition:transform .3s; }
.nw-related-card:hover .nw-card-thumb img { transform:scale(1.08); }
.nw-related-card .nw-card-body { flex:1;padding:7px 10px;display:flex;flex-direction:column;justify-content:space-between;min-width:0; }
.nw-related-card .nw-card-title { font-size:13px;font-weight:700;line-height:1.5;color:var(--nw-text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;padding-bottom:0;margin-bottom:0;border-bottom:none;font-family:'Tajawal',sans-serif;flex:1; }
.nw-related-card .nw-card-bottom { display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-top:1px solid #d0d5cc;padding-top:5px;margin-top:5px;flex-shrink:0; }
.nw-related-card .nw-card-date { font-size:10px;color:var(--nw-muted);display:flex;align-items:center;gap:3px;font-family:'Tajawal',sans-serif; }
.nw-related-card .nw-card-arrow { width:20px;height:20px;border-radius:6px;background:var(--nw-bg);display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--nw-accent);transition:all .2s;flex-shrink:0;margin-right:auto; }
.nw-related-card:hover .nw-card-arrow { background:var(--nw-accent);color:#fff; }
.ast-related-posts { padding:0!important; }
.post-navigation,.navigation.post-navigation,.ast-post-navigation,
.nav-links .nav-previous,.nav-links .nav-next,.nav-previous,.nav-next,
[class*="post-nav"],.entry-navigation { display:none!important; }

/* أزرار قديمة */
.telegram-button { background:linear-gradient(135deg,#0077b6,#0ea5e9)!important;border-radius:10px!important;padding:14px 16px!important;margin:16px auto!important;max-width:600px!important;text-align:center!important;box-shadow:0 4px 14px rgba(0,119,182,.22)!important;transition:all .3s ease!important;display:block!important; }
.telegram-button a { color:#fff!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;gap:8px!important; }
.telegram-button:hover { transform:translateY(-2px)!important; }
.cv-button { background:linear-gradient(135deg,#1a7a4a,#0a3528)!important;border-radius:10px!important;padding:14px 16px!important;margin:16px auto!important;max-width:600px!important;text-align:center!important;box-shadow:0 4px 14px rgba(26,122,74,.22)!important;transition:all .3s ease!important;display:block!important; }
.cv-button a { color:#fff!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;gap:8px!important; }
.cv-button:hover { transform:translateY(-2px)!important; }

/* MISC */
::selection { background:#1b2f38;color:#fff; }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--nw-bg); }
::-webkit-scrollbar-thumb { background:linear-gradient(#1b2f38,#1a7a4a);border-radius:5px; }

/* ══════════════════════════════════
   MOBILE max-width: 767px
══════════════════════════════════ */
@media (max-width:767px) {
  #nw-cards-list { padding:8px 6px; }
  #nw-ctas { padding:0 9px; }
  #nw-follow-section { padding:0 9px 14px; }
  #nw-search-bar { padding:12px 9px 8px; }
  #nw-footer { padding:22px 12px 0; }
  .ast-related-posts-section { padding:0 9px 12px!important; }
  .ast-separate-container .ast-article-single:not(.ast-related-post) { margin:10px 9px!important; }
  .nw-ft-cols { flex-direction:row!important;width:100%!important;justify-content:space-between!important; }
  .nw-ft-col { flex:1!important; }
}
@media (max-width:480px) {
  #nw-cards-list { padding:7px 5px; }
  .nw-hero-title { font-size:20px; }
  .nw-ft-top { flex-wrap:wrap;gap:10px; }
  .nw-ft-cols { flex-direction:row!important;gap:0!important;width:100%!important;justify-content:space-between!important; }
  .nw-ft-col { flex:1!important; }
  #nw-pagination { gap:4px;padding:10px; }
  .nw-page-btn { min-width:32px;height:32px;font-size:12px; }
  .nw-page-btn.nav { padding:0 10px; }
  .ast-separate-container .ast-article-single:not(.ast-related-post) { margin:8px 8px!important;padding:12px!important; }
  header.entry-header:not(.related-entry-header) .post-thumb,
  .ast-single-post-featured-section .post-thumb { width:130px!important;height:130px!important; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important;transition-duration:.01ms!important; }
}

/* ══════════════════════════════════
   DESKTOP min-width: 768px
   الإصلاح الجذري
══════════════════════════════════ */
@media (min-width: 768px) {

  body { overflow-x:hidden!important; }

  #nw-hdr-inner {
    max-width:700px!important;
    margin:0 auto!important;
    padding:0 20px!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  #nw-hero {
    padding:40px 24px 32px!important;
    width:100%!important;
    display:block!important;
    box-sizing:border-box!important;
  }
  .nw-hero-title { font-size:28px; }
  .nw-hero-desc  { font-size:15px;max-width:520px;margin-left:auto;margin-right:auto; }

  #nw-search-bar {
    max-width:700px!important;
    margin:0 auto!important;
    padding:18px 20px 14px!important;
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  #nw-cards-list {
    max-width:700px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    padding:12px 0!important;
    width:100%!important;
    box-sizing:border-box!important;
  }
  .nw-wp-card { width:100%!important; margin:0!important; }
  .nw-card-title { font-size:13px; }

  #nw-pagination {
    max-width:700px!important;
    margin:0 auto!important;
    width:100%!important;
  }

  #nw-ctas {
    max-width:700px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    padding:0!important;
    width:100%!important;
    box-sizing:border-box!important;
  }
  .nw-tg-cta { margin:0!important; width:100%!important; }
  .nw-cv-cta  { margin:0!important; width:100%!important; }

  .nw-features {
    max-width:700px!important;
    margin:0 auto 16px!important;
    grid-template-columns:repeat(3,1fr)!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  #nw-follow-section {
    max-width:700px!important;
    margin:0 auto!important;
    width:100%!important;
  }

  .ast-separate-container .ast-article-single:not(.ast-related-post) {
    max-width:700px!important;
    margin:12px auto!important;
  }
  .ast-related-posts-section {
    max-width:700px!important;
    margin:0 auto!important;
    padding:0 0 14px!important;
  }

  #nw-footer { padding:36px 24px 0!important; }
  .nw-ft-top      { max-width:700px!important; margin:0 auto 22px!important; width:100%!important; box-sizing:border-box!important; }
  .nw-ft-desc     { max-width:700px!important; margin:0 auto 22px!important; width:100%!important; }
  .nw-ft-soc-wrap { max-width:700px!important; margin:0 auto 22px!important; width:100%!important; }
  .nw-ft-cols     { max-width:700px!important; margin:0 auto 22px!important; width:100%!important; }
  .nw-ft-div      { max-width:700px!important; margin:0 auto!important; width:100%!important; }
  .nw-ft-bot      { max-width:700px!important; margin:0 auto!important; width:100%!important; }
}

@media (min-width: 1024px) {
  #nw-hdr-inner,
  #nw-search-bar,
  #nw-cards-list,
  #nw-pagination,
  #nw-ctas,
  .nw-features,
  #nw-follow-section,
  .nw-ft-top,
  .nw-ft-desc,
  .nw-ft-soc-wrap,
  .nw-ft-cols,
  .nw-ft-div,
  .nw-ft-bot { max-width:880px!important; }

  .ast-separate-container .ast-article-single:not(.ast-related-post) { max-width:880px!important; }
  .ast-related-posts-section { max-width:880px!important; }

  #nw-hero { padding:48px 30px 36px!important; }
  .nw-hero-title { font-size:32px; }
  #nw-cards-list { grid-template-columns:1fr 1fr!important; }
}

/* ══ إصلاح نهائي: منع الـ flex container من تصطيف العناصر أفقياً ══ */
.ast-container {
  flex-wrap:wrap!important;
  flex-direction:column!important;
}
#nw-hero,
#nw-search-bar {
  width:100%!important;
  max-width:100%!important;
  flex-basis:100%!important;
  flex-shrink:0!important;
}
/* ══ إخفاء الـ sticky slider نهائياً ══ */
.nw-sticky-wrap,
.nw-sticky-box,
.nw-sticky-slider,
[id*="sticky"],
[class*="sticky-box"],
[class*="sticky-slide"],
[class*="sticky-btn"] {
  display:none!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
  position:absolute!important;
  pointer-events:none!important;
}

/* ══ إجبار الهيرو على كامل العرض ══ */
#nw-hero {
  width:100vw!important;
  max-width:100vw!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
