:root{
      --bg: #F3F6F9;
      --card:#ffffff;
      --text: #0D1B2A;
      --muted: #6B7785;
      --line: #E3E8EF;
      --nav: #0D1B2A;
      --nav2: #132238;
      --accent: #00B8E6;   /* Sahifa-ish orange */
      --danger: #00B8E6;   /* breaking label red */
      --shadow: 0 1px 0 rgba(0,0,0,.02);
      --radius:2px;
      --container: 1040px;
      --sidebar: 300px;
      --gutter: 20px;
      --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    }

    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
      color:var(--text);
      background:var(--bg);
      line-height:1.35;
    }

    a{color:inherit; text-decoration:none}
    img{max-width:100%; display:block}
    .container{
      width:min(var(--container), calc(100% - 24px));
      margin:0 auto;
    }

    /* ===== Topbar ===== */
    .topbar{
      background:#f7f7f7;
      border-bottom:1px solid var(--line);
      font-size:12px;
      color:#555;
    }
    .topbar .inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:6px 0;
    }
    .topbar .left, .topbar .right{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
    .chip{
      padding:2px 8px;
      border:1px solid var(--line);
      background:#fff;
      border-radius:999px;
      font-size:11px;
      color:#666;
    }

    /* ===== Brand row ===== */
    .brandrow{
      background:#fff;
      border-bottom:1px solid var(--line);
    }
    .brandrow .inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      padding:16px 0;
    }
    .logo{
      display:flex;
      align-items:baseline;
      gap:8px;
      font-weight:800;
      letter-spacing:.2px;
    }
    .logo .mark{
      font-size:38px;
      color:#f1a522;
      line-height:1;
    }
    .logo .tag{
      font-size:11px;
      color:#777;
      font-weight:600;
      margin-top:8px;
    }
    .ad-leader{
      margin-left:auto;
      min-width: 520px;
      max-width: 728px;
      height:74px;
      border:1px solid var(--line);
      background:linear-gradient(90deg,#111,#333);
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:10px 12px;
      border-radius:var(--radius);
    }
    .ad-leader .title{
      font-weight:800;
      font-size:18px;
      line-height:1.1;
    }
    .ad-leader .sub{
      font-size:12px;
      opacity:.8;
      margin-top:3px;
    }
    .ad-pill{
      background:#f6c04a;
      color:#111;
      font-weight:800;
      font-size:11px;
      padding:8px 10px;
      border-radius:999px;
      white-space:nowrap;
    }

    /* ===== Main nav ===== */
    .navwrap{
      background:var(--nav);
      border-bottom:3px solid var(--accent);
      box-shadow: var(--shadow);
    }
    .nav{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:0;
      position:relative;
    }
    .nav ul{
      list-style:none; margin:0; padding:0;
      display:flex; gap:0; align-items:center;
    }
    .nav li a{
      display:block;
      padding:12px 14px;
      color:#fff;
      font-size:13px;
      border-right:1px solid rgba(255,255,255,.08);
    }
    .nav li a:hover{background:var(--nav2)}
    .nav .tools{
      display:flex; align-items:center; gap:10px;
      color:#fff; padding-right:6px;
    }
    .iconbtn{
      width:32px; height:32px;
      border:1px solid rgba(255,255,255,.18);
      border-radius:3px;
      display:grid; place-items:center;
      background:rgba(255,255,255,.04);
      cursor:pointer;
      user-select:none;
    }
    .iconbtn:hover{background:rgba(255,255,255,.10)}
    .burger{display:none}

    /* Mobile nav drawer */
    .nav-mobile{
      display:none;
      background:var(--nav2);
      border-top:1px solid rgba(255,255,255,.08);
    }
    .nav-mobile a{
      display:block;
      padding:12px 14px;
      color:#fff;
      border-bottom:1px solid rgba(255,255,255,.08);
      font-size:13px;
    }

    /* ===== Breaking ===== */
    .breaking{
      background:#fff;
      border-bottom:1px solid var(--line);
    }
    .breaking .inner{
      display:flex;
      align-items:center;
      gap:12px;
      padding:8px 0;
      font-size:12px;
    }
    .breaking .label{
      background:var(--danger);
      color:#fff;
      font-weight:800;
      padding:4px 10px;
      border-radius:2px;
      letter-spacing:.3px;
    }
    100%{transform:translateX(-100%)}
    }

    /* ===== Page shell ===== */
    .page{
      padding:18px 0 24px;
    }
    .shell{
      background:#fff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      padding:18px;

      /* ✅ Fix: prevent sidebar spill */
      overflow:hidden;
    }

    /* ===== Hero ===== */
    .hero{
      display:grid;
      grid-template-columns: 1fr;
      gap:14px;
      margin-bottom:16px;
    }
    .hero-card{
      position:relative;
      overflow:hidden;
      border:1px solid var(--line);
      border-radius:var(--radius);
      height: 270px;
      background:#000;
    }
    .hero-card::before{
      content:"";
      position:absolute; inset:0;
      background:url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
      opacity:.90;
      transform:scale(1.02);
    }
    .hero-card::after{
      content:"";
      position:absolute; inset:0;
      background:linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.08) 55%);
    }
    .hero-content{
      position:absolute;
      left:18px; right:18px; bottom:16px;
      color:#fff;
      display:flex;
      flex-direction:column;
      gap:8px;
    }
    .hero-title{
      font-size:20px;
      font-weight:800;
      letter-spacing:.2px;
      display:inline-block;
      background:rgba(0,0,0,.35);
      padding:8px 10px;
      border:1px solid rgba(255,255,255,.22);
      max-width:max-content;
    }
    .hero-meta{font-size:12px; opacity:.9}
    .dots{
      position:absolute;
      bottom:10px; right:12px;
      display:flex; gap:6px;
      opacity:.9;
    }
    .dot{
      width:8px; height:8px;
      border-radius:999px;
      background:rgba(255,255,255,.4);
      border:1px solid rgba(0,0,0,.2);
    }
    .dot.active{background:#fff}

    /* ===== Main grid ===== */
    .main{
      display:grid;

      /* ✅ Fix: allow the left column to shrink so sidebar stays inside */
      grid-template-columns: minmax(0, 1fr) var(--sidebar);

      gap: var(--gutter);
      align-items:start;
    }
    main, aside, .block, .widget{
      /* ✅ Fix: prevent min-content sizing from forcing overflow */
      min-width:0;
    }

    /* ===== Blocks ===== */
    .block{
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:var(--card);
      margin-bottom:14px;
      overflow:hidden;
    }
    .block .head{
      padding:10px 12px;
      border-bottom:1px solid var(--line);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      background:#fafafa;
    }
    .block .head .title{
      font-weight:800;
      text-transform:uppercase;
      font-size:12px;
      letter-spacing:.7px;
      position:relative;
      padding-left:10px;
    }
    .block .head .title::before{
      content:"";
      position:absolute; left:0; top:50%;
      width:4px; height:14px;
      transform:translateY(-50%);
      background:var(--accent);
      border-radius:1px;
    }
    .block .head .more{
      font-size:12px;
      color:#666;
    }
    .block .body{padding:12px}

    /* WORLD-like block */
    .world-grid{
      display:grid;
      grid-template-columns: 1.15fr .85fr;
      gap:12px;
    }
    .post-feature{
      border:1px solid var(--line);
      border-radius:var(--radius);
      overflow:hidden;
      background:#fff;
    }
    .post-feature .thumb{
      height:120px;
      background:url("https://images.unsplash.com/photo-1520975661595-6453be3f7070?auto=format&fit=crop&w=1200&q=70") center/cover no-repeat;
    }
    .post-feature .p{
      padding:10px;
    }
    .post-feature h3{
      margin:0 0 6px;
      font-size:14px;
      font-weight:800;
    }
    .meta{
      font-size:11px;
      color:var(--muted);
      margin-bottom:8px;
    }
    .excerpt{
      font-size:12px;
      color:#444;
      margin:0 0 10px;
    }
    .btn{
      display:inline-block;
      background:var(--accent);
      color:#111;
      font-weight:800;
      font-size:11px;
      padding:7px 10px;
      border-radius:2px;
    }

    .mini-list{display:flex; flex-direction:column; gap:10px}
    .mini-item{
      display:grid;
      grid-template-columns: 64px 1fr;
      gap:10px;
      align-items:center;
      border-bottom:1px solid var(--line);
      padding-bottom:10px;
    }
    .mini-item:last-child{border-bottom:0; padding-bottom:0}
    .mini-thumb{
      height:44px;
      border:1px solid var(--line);
      border-radius:2px;
      background:#ddd url("https://images.unsplash.com/photo-1520975682038-f5b4b3a2f4bd?auto=format&fit=crop&w=300&q=60") center/cover no-repeat;
    }
    .mini-item h4{
      margin:0 0 3px;
      font-size:12px;
      font-weight:800;
    }
    .mini-item .meta{margin:0}

    /* الأحدث posts thumbs row */
    .thumb-row{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:10px;
    }
    .thumbcard{
      border:1px solid var(--line);
      border-radius:var(--radius);
      overflow:hidden;
      background:#fff;
    }
    .thumbcard .t{
      height:82px;
      background:#cfcfcf url("https://images.unsplash.com/photo-1520975681799-33fddbdc6f7f?auto=format&fit=crop&w=600&q=60") center/cover no-repeat;
    }
    .thumbcard .c{
      padding:8px;
      font-size:12px;
      font-weight:800;
    }

    /* Dual column content block */
    .two-col{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:12px;
    }

    /* scrolling box */
    .scrolling{
      display:flex;
      gap:10px;
      overflow:auto;
      padding-bottom:4px;
      scrollbar-width: thin;
    }
    .scroll-item{
      min-width: 160px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      overflow:hidden;
      background:#fff;
      flex:0 0 auto;
    }
    .scroll-item .t{
      height:86px;
      background:#d5d5d5 url("https://images.unsplash.com/photo-1452626038306-9aae5e071dd3?auto=format&fit=crop&w=700&q=60") center/cover no-repeat;
    }
    .scroll-item .c{
      padding:8px;
      font-size:12px;
      font-weight:800;
    }

    /* News in picture grid */
    .picture-grid{
      display:grid;
      grid-template-columns: 1.2fr .8fr;
      gap:12px;
      align-items:stretch;
    }
    .bigpic{
      border:1px solid var(--line);
      border-radius:var(--radius);
      overflow:hidden;
      background:#000;
      display:flex;
      flex-direction:column;
    }
    .bigpic .img{
      flex:1;
      min-height:170px;
      background:url("https://images.unsplash.com/photo-1482192505345-5655af888cc4?auto=format&fit=crop&w=1200&q=70") center/cover no-repeat;
      position:relative;
    }
    .bigpic .cap{
      padding:10px;
      background:#fff;
      border-top:1px solid var(--line);
      font-weight:800;
      font-size:12px;
    }
    .smallpics{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:8px;
    }
    .smallpics .p{
      border:1px solid var(--line);
      border-radius:2px;
      height:54px;
      background:#ddd url("https://images.unsplash.com/photo-1520975682038-f5b4b3a2f4bd?auto=format&fit=crop&w=400&q=60") center/cover no-repeat;
    }

    /* ===== Sidebar ===== */
    .widget{
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:#fff;
      margin-bottom:14px;
      overflow:hidden;
    }
    .widget .head{
      padding:10px 12px;
      border-bottom:1px solid var(--line);
      background:#fafafa;
      font-weight:800;
      font-size:12px;
      text-transform:uppercase;
      letter-spacing:.7px;
      position:relative;
      padding-left:22px;
    }
    .widget .head::before{
      content:"";
      position:absolute; left:12px; top:50%;
      width:4px; height:14px;
      transform:translateY(-50%);
      background:var(--accent);
      border-radius:1px;
    }
    .widget .body{padding:12px}

    /* التواصل counters */
    .social-grid{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:10px;
    }
    .soc{
      border:1px solid var(--line);
      border-radius:2px;
      padding:10px 8px;
      text-align:center;
      background:#fff;
    }
    .soc .n{
      font-weight:900;
      font-size:16px;
      color:#444;
    }
    .soc .l{
      font-size:11px;
      color:#777;
      margin-top:2px;
      text-transform:uppercase;
      letter-spacing:.4px;
    }

    /* Tabs */
    .tabs{
      display:flex;
      border:1px solid var(--line);
      border-radius:2px;
      overflow:hidden;
      margin-bottom:10px;
    }
    .tab{
      flex:1;
      text-align:center;
      padding:8px 6px;
      font-size:11px;
      font-weight:800;
      background:#fff;
      cursor:pointer;
      border-right:1px solid var(--line);
      user-select:none;
    }
    .tab:last-child{border-right:0}
    .tab.active{background:#f7f7f7}
    .tabpanes{display:none}
    .tabpanes.active{display:block}

    /* تسجيل الدخول widget */
    .formrow{
      display:flex;
      flex-direction:column;
      gap:8px;
    }
    .input{
      width:100%;
      padding:9px 10px;
      border:1px solid var(--line);
      border-radius:2px;
      font-size:12px;
    }
    .row2{display:flex; align-items:center; justify-content:space-between; gap:10px}
    .check{font-size:12px; color:#555}
    .btn2{
      background:var(--accent);
      border:0;
      padding:9px 12px;
      font-weight:900;
      font-size:12px;
      border-radius:2px;
      cursor:pointer;
    }

    /* Colored social strip */
    .social-strip{
      display:flex;
      gap:6px;
      flex-wrap:wrap;
    }
    .sbtn{
      width:22px; height:22px;
      border-radius:2px;
      border:1px solid var(--line);
      background:#fff;
      display:grid; place-items:center;
      font-size:12px;
      color:#555;
    }

    /* Footer */
    .footer-ad{
      margin-top:10px;
      background:#2f2f2f;
      border-top:3px solid var(--accent);
      padding:16px 0;
      color:#eee;
    }
    .footer-ad .inner{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
    }
    .footer-main{
      background:#2a2a2a;
      color:#ddd;
      padding:28px 0 14px;
      border-top:1px solid rgba(255,255,255,.06);
    }
    .footer-cols{
      display:grid;
      grid-template-columns: repeat(4, 1fr);
      gap:18px;
      margin-bottom:18px;
    }
    .foot-title{
      font-weight:900;
      font-size:12px;
      text-transform:uppercase;
      letter-spacing:.7px;
      margin:0 0 10px;
      color:#fff;
    }
    .foot-list{
      margin:0; padding:0; list-style:none;
      display:flex; flex-direction:column; gap:8px;
      font-size:12px;
      color:#cfcfcf;
    }
    .foot-list li{
      display:flex; gap:8px; align-items:flex-start;
    }
    .fthumb{
      width:34px; height:24px;
      border:1px solid rgba(255,255,255,.12);
      background:#555 url("https://images.unsplash.com/photo-1520975682038-f5b4b3a2f4bd?auto=format&fit=crop&w=200&q=60") center/cover no-repeat;
      border-radius:2px;
      flex:0 0 auto;
    }
    .footer-bottom{
      border-top:1px solid rgba(255,255,255,.08);
      padding-top:12px;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:10px;
      font-size:12px;
      color:#bbb;
      flex-wrap:wrap;
    }

    /* ===== Responsive ===== */
    @media (max-width: 1020px){
      :root{ --container: 980px; }
      .ad-leader{min-width:420px}
    }
    @media (max-width: 900px){
      .brandrow .inner{flex-direction:column; align-items:flex-start}
      .ad-leader{width:100%; min-width:unset}
      .main{grid-template-columns: 1fr}
      .burger{display:grid}
      .nav ul{display:none}
      .nav-mobile.open{display:block}
      .hero-card{height:240px}
    }
    @media (max-width: 560px){
      .shell{padding:12px}
      .world-grid{grid-template-columns:1fr}
      .thumb-row{grid-template-columns:1fr}
      .two-col{grid-template-columns:1fr}
      .picture-grid{grid-template-columns:1fr}
      .smallpics{grid-template-columns:repeat(3,1fr)}
      .footer-cols{grid-template-columns:1fr 1fr}
    }
    @media (max-width: 380px){
      .footer-cols{grid-template-columns:1fr}
      .logo .mark{font-size:34px}
    }

    /* ===== RTL ===== */

    /* Breaking: label on the right, ticker moves right-to-left */
    .breaking .inner{ flex-direction: row; }
    100%{transform:translateX(-100%)}
    }

    body{ direction: rtl; }
    .topbar .inner{ flex-direction: row-reverse; }
    .topbar .left, .topbar .right{ flex-direction: row-reverse; }
    .brandrow .inner{ flex-direction: row-reverse; }
    .ad-leader{ margin-left: 0; margin-right:auto; }
    .nav{ flex-direction: row-reverse; }
    .nav li a{ border-right:0; border-left:1px solid rgba(255,255,255,.08); }
    .nav .tools{ padding-right:0; padding-left:6px; }
    .breaking .inner{ flex-direction: row-reverse; }
    100%{transform:translateX(100%)}
    }
    .hero-content{ left:18px; right:18px; }
    .dots{ right:auto; left:12px; }
    .block .head .title{ padding-left:0; padding-right:10px; }
    .block .head .title::before{ left:auto; right:0; }
    .widget .head{ padding-left:12px; padding-right:22px; }
    .widget .head::before{ left:auto; right:12px; }
    .mini-item{ grid-template-columns: 1fr 64px; }
    .mini-thumb{ order: 2; }
    .footer-bottom{ flex-direction: row-reverse; }

  
    /* ===== RTL v2 tweaks (requested) ===== */
    .brandrow .inner{ justify-content:center; }
    .logo.logo-stack{
      flex-direction:column !important;
      align-items:center;
      text-align:center;
      gap:6px;
    }
    .logo.logo-stack .tag{ margin-top:0; }

    /* Main nav: menu on the right (start), tools on the left */
    .nav{ justify-content:flex-start; }
    .nav ul{ margin-right:0; }
    .nav .tools{ margin-right:auto; margin-left:0; }

  
    /* ===== Breaking ticker fix (RTL) ===== */
    .breaking .inner{ flex-direction: row-reverse; }
    100%{ transform:translateX(-100%); }
    }

/* ===== WP content basics (keeps design) ===== */
.entry-content{
  font-size: 14px;
  color:#333;
}
.entry-content p{ margin:0 0 12px; }
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4{ margin:16px 0 10px; }
.entry-content ul, .entry-content ol{ padding-right:18px; padding-left:0; margin:0 0 12px; }
.entry-content a{ color: var(--accent); }
.entry-content img{ max-width:100%; height:auto; }
.post-header{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:#fafafa;
}
.post-header h1{
  margin:0 0 6px;
  font-size:18px;
  font-weight:900;
}
.post-meta{
  font-size:12px;
  color:var(--muted);
}
.pagination{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-top:1px solid var(--line);
}
.pagination a{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 10px;
  border-radius:2px;
  font-size:12px;
}
.commentlist{
  list-style:none;
  padding:0;
  margin:0;
}
.commentlist li{
  border:1px solid var(--line);
  border-radius:2px;
  padding:10px;
  margin:0 0 10px;
  background:#fff;
}
.comment-reply-link{
  font-size:12px;
  font-weight:900;
  color:var(--accent);
}
.comment-respond{
  border-top:1px solid var(--line);
  padding-top:12px;
}
.comment-respond label{ font-size:12px; color:#555; display:block; margin-bottom:4px; }
.comment-respond input, .comment-respond textarea{
  width:100%;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:2px;
  font-size:12px;
}
.comment-respond .form-submit input{
  width:auto;
  background:var(--accent);
  border:0;
  padding:9px 12px;
  font-weight:900;
  border-radius:2px;
  cursor:pointer;
}


/* ===== RTL nav align right ===== */
.nav{ justify-content:flex-start; }
.nav ul{
  margin-right:0;
  margin-left:auto;
  justify-content:flex-start;
}


/* ===== Main Navigation force-right (RTL) ===== */
.nav{
  direction: rtl;
}
.nav > ul,
.nav .menu{
  justify-content: flex-end !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}
.nav .tools{
  margin-left: 0 !important;
  margin-right: auto !important;
}


/* ===== Mobile burger next to logo ===== */
.burger-brand{ display:none !important; }
@media (max-width: 900px){
  .brandrow .inner{ position:relative; display:flex; align-items:center; justify-content:center; }
  .burger-brand{
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    right:12px; /* RTL: start side */
    top:50%;
    transform:translateY(-50%);
  }
}

@media (max-width: 900px){ .nav .tools{ display:none; } }


/* ===== Burger size tweak ===== */
@media (max-width: 900px){
  .burger-brand{
    width:44px;
    height:44px;
    font-size:22px;
    line-height:1;
  }
}

@media (max-width: 900px){ .burger-brand{ color:#333; border-color:#ddd; background:#fff; } }


/* ===== Burger placement + size (v11) ===== */
@media (max-width: 900px){
  .burger-brand{
    width:56px !important;
    height:56px !important;
    font-size:36px !important;
    line-height:1 !important;
    left:12px !important;
    right:auto !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    display:grid !important;
    place-items:center !important;
  }
  .nav .tools{ display:none; }
}
}


/* ===== Mobile menu from primary nav ===== */
.nav-mobile .mnav{
  list-style:none;
  padding:10px 0;
  margin:0;
}
.nav-mobile .mnav > li{
  border-bottom:1px solid var(--line);
}
.nav-mobile .mnav a{
  display:block;
  padding:12px 14px;
  font-weight:800;
  font-size:14px;
  color:#222;
  text-decoration:none;
}
.nav-mobile .mnav a:hover{ background:#f7f7f7; }
.nav-mobile .mnav ul{
  list-style:none;
  padding:0;
  margin:0;
}
.nav-mobile .mnav ul a{
  padding-right:22px;
  font-weight:600;
  font-size:13px;
  color:#444;
}
.nav-mobile .mhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#fafafa;
}
.nav-mobile .mhead .mt{ font-weight:900; }


/* ===== Mobile menu colors to match desktop ===== */
.nav-mobile .inner{
  background:#111 !important;
  color:#fff !important;
}
.nav-mobile .mhead{
  background:#111 !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
}
.nav-mobile .mhead .mt{ color:#fff !important; }
.nav-mobile .mnav > li{ border-bottom:1px solid rgba(255,255,255,.12) !important; }
.nav-mobile .mnav a{
  color:#fff !important;
}
.nav-mobile .mnav a:hover{ background:rgba(255,255,255,.08) !important; }
.nav-mobile .iconbtn{ color:#fff !important; border-color:rgba(255,255,255,.2) !important; background:transparent !important; }


/* ===== Typography scale refresh (v14) ===== */
:root{
  --fs-base: 16px;
  --fs-small: 13px;
  --fs-xs: 12px;
  --fs-h1: 30px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-nav: 13px;
  --fs-card-title: 16px;
  --fs-meta: 12px;
}
body{
  font-size: var(--fs-base);
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
p{ font-size: var(--fs-base); }
small,.muted,.meta{ font-size: var(--fs-meta); }

h1{ font-size: var(--fs-h1); line-height:1.25; }
h2{ font-size: var(--fs-h2); line-height:1.35; }
h3{ font-size: var(--fs-h3); line-height:1.4; }

/* Header brand */
.logo .mark{ font-size: 30px; letter-spacing: .2px; }
.logo .tag{ font-size: 13px; }

/* Main navigation */
.nav a{ font-size: var(--fs-nav); font-weight: 800; }

/* Cards / grids */
.card .c .t,
.card .title,
.card-title,
.world-grid .card .t{
  font-size: var(--fs-card-title);
  line-height:1.5;
}

/* Single post title */
.single .post-title,
.entry-title{
  font-size: 28px;
  line-height:1.25;
}

/* Widgets */
.widget-title, .side .title, .block .head .title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
}


/* ===== Typography consistency patch (v15) ===== */
html, body, button, input, select, textarea{
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif !important;
}
a, .nav a, .mnav a{ font-weight: 800; }
.meta, .muted, .sub, .tag, .date, .author, .cats{ font-size: 12px; line-height:1.6; }
.block .head .title{ font-size: 14px; }
.block .head .more{ font-size: 12px; }
.card .c .t, .scroll-item .c, .bigpic .cap{ font-size: 16px; }
.card .c .t{ font-weight: 900; }
.side .wtitle, .widget-title{ font-size: 14px; font-weight: 900; }

.topbar{display:none !important;}

/* ===== Scrolling box: no scroller, fixed 4 items ===== */
.scrollbox .track{
  display:grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  overflow: visible !important;
}
.scrollbox .item{
  min-width: 0 !important;
}
@media (max-width: 900px){
  .scrollbox .track{ grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px){
  .scrollbox .track{ grid-template-columns: 1fr !important; }
}

/* ===== Bigger post titles on homepage ===== */
.home .card .c .t,
.home .card-title,
.home .world-grid .card .t{
  font-size: 18px !important;
  line-height: 1.55;
}

/* ===== Footer widgets layout ===== */
.footer-cols{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px){ .footer-cols{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .footer-cols{ grid-template-columns: 1fr; } }

.footer-top .wtitle{ margin: 0 0 10px; }
.flist{ list-style:none; padding:0; margin:0; }
.flist li{ display:flex; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.flist a{ color:#fff; text-decoration:none; }
.flist a:hover{ text-decoration:underline; }
.fbrand{ margin-top:12px; font-weight:800; }
.fbrand .muted{ font-weight:600; opacity:.85; }
.fabout{ opacity:.9; line-height:1.8; }

/* ===== scrollbox no scrollbar (v17) ===== */
.scrollbox{ overflow:hidden; }
.scrollbox .track{ overflow:hidden !important; }

/* ===== Brand palette links ===== */
a:hover{ color: var(--accent); }
.btn, .btn2{ background: var(--accent) !important; }
.navwrap{ border-bottom-color: var(--accent) !important; }

/* ===== Thumbnails as real images (better LCP) ===== */
.post-feature .thumb-link{ display:block; }
.post-feature .thumb-img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
}
.post-feature .thumb-fallback{
  height:120px;
  background:#D9DEE6;
}


/* ===================================================================
   v20 — Redesign to match "المعرفة نت" brand
   Palette inspired by the uploaded logo:
   Navy: #06388F
   Cyan: #1BA8F8
   Silver: #C9CED6
   Background: #F5F8FB
   =================================================================== */

:root{
  --nav: #06388F;
  --nav2: #0A3176;
  --accent: #1BA8F8;
  --danger: #1BA8F8;
  --bg: #F5F8FB;
  --line: #E2E8F0;
  --text: #0D2E63;
  --muted: #6E7C91;
  --brand-silver: #C9CED6;
  --card-bg: #FFFFFF;
  --soft-accent: rgba(27,168,248,.08);
}

/* Global */
html, body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

body{
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif !important;
}

a{
  color: var(--text);
  transition: .18s ease;
}
a:hover{
  color: var(--accent) !important;
}

.container,
.shell{
  background: transparent;
}

/* Header / Brand row */
.brandrow{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border-bottom: 1px solid var(--line);
}

.brandrow .logo .mark{
  color: var(--nav) !important;
  font-weight: 800;
  letter-spacing: 0;
}

.brandrow .logo .tag{
  color: var(--muted) !important;
  font-weight: 500;
}

/* Main navigation */
.navwrap{
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav2) 100%) !important;
  border-bottom: 3px solid var(--accent) !important;
  box-shadow: 0 6px 18px rgba(6,56,143,.10);
}

.nav{
  background: transparent !important;
}

.nav > ul,
.nav .menu{
  background: transparent !important;
}

.nav a,
.nav .menu > li > a{
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.nav .menu > li > a:hover,
.nav .menu > li.current-menu-item > a,
.nav .menu > li.current-menu-parent > a,
.nav .menu > li.current_page_item > a{
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

.nav .menu > li{
  border-left: 1px solid rgba(255,255,255,.08);
}

.nav .menu > li:first-child{
  border-left: 0;
}

/* Mobile menu */
.nav-mobile .inner{
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav2) 100%) !important;
}
.nav-mobile .mhead{
  background: transparent !important;
}
.nav-mobile .mnav a{
  color: #fff !important;
}
.nav-mobile .mnav > li{
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}
.nav-mobile .mnav a:hover{
  background: rgba(255,255,255,.08) !important;
}

/* Burger */
@media (max-width: 900px){
  .burger-brand{
    color: var(--nav) !important;
    border-color: transparent !important;
    background: transparent !important;
    font-size: 36px !important;
  }
}

/* Sections / blocks */
.block,
.widget,
.post-feature,
.postbox,
.page .main > main > section{
  background: var(--card-bg) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(9,43,101,.05);
  overflow: hidden;
}

.block + .block,
.widget + .widget{
  margin-top: 18px;
}

.block .head,
.widget .head,
.post-header{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border-bottom: 1px solid var(--line) !important;
}

.block .head .title,
.widget .head,
.widget-title,
.wtitle,
.side .title{
  color: var(--nav) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.block .head .title::before,
.widget .head::before{
  background: var(--accent) !important;
  width: 4px;
  border-radius: 10px;
}

.block .head .more{
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 13px !important;
}

/* Home card titles larger & cleaner */
.home .post-feature h3 a,
.home .card .c .t,
.home .card-title,
.home .scroll-item .c,
.home .bigpic .cap{
  color: var(--nav) !important;
  font-size: 20px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}

.post-feature h3 a{
  color: var(--nav) !important;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.meta,
.post-meta,
.excerpt,
.logo .tag,
.fabout,
.fbrand .muted{
  color: var(--muted) !important;
}

/* Buttons */
.btn,
.btn2,
button,
input[type="submit"]{
  background: linear-gradient(180deg, #22B7FF 0%, #149EEB 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 18px rgba(27,168,248,.20);
  font-weight: 700 !important;
}

.btn:hover,
.btn2:hover,
button:hover,
input[type="submit"]:hover{
  filter: brightness(.96);
  transform: translateY(-1px);
}

/* Inputs */
.input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea,
select{
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--text) !important;
}
.input:focus,
input:focus,
textarea:focus,
select:focus{
  outline: none;
  border-color: rgba(27,168,248,.55) !important;
  box-shadow: 0 0 0 3px rgba(27,168,248,.10);
}

/* Thumbnails */
.thumb-img,
.post-feature .thumb-fallback,
.bigpic .img,
.scroll-item .t,
.thumbcard .t{
  border-radius: 10px;
}

.post-feature .thumb-img{
  height: 170px !important;
}

@media (max-width: 900px){
  .post-feature .thumb-img{
    height: 150px !important;
  }
}
@media (max-width: 520px){
  .post-feature .thumb-img{
    height: 135px !important;
  }
}

/* Scrolling box cards */
.scrollbox .track{
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  overflow: hidden !important;
}
.scrollbox .item,
.scroll-item{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(9,43,101,.04);
}

@media (max-width: 900px){
  .scrollbox .track{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px){
  .scrollbox .track{
    grid-template-columns: 1fr !important;
  }
}

/* Sidebar social counters */
.social-grid .soc{
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
}
.social-grid .soc .n{
  color: var(--nav) !important;
  font-weight: 800;
}
.social-grid .soc .l{
  color: var(--muted) !important;
}

/* Footer */
.footer,
.footer-top,
.footer-bottom{
  background: linear-gradient(180deg, #072A62 0%, #051F48 100%) !important;
  color: #fff !important;
}

.footer-top{
  border-top: 4px solid var(--accent) !important;
}

.footer .wtitle,
.footer .fcol .wtitle{
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.footer a,
.footer .flist a{
  color: #F4F8FF !important;
}
.footer a:hover,
.footer .flist a:hover{
  color: #7DD8FF !important;
}

.fsocial .sbtn{
  border-color: rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.04) !important;
}
.fsocial .sbtn:hover{
  background: rgba(27,168,248,.18) !important;
}

.fbrand strong{
  color: #fff;
  font-weight: 800;
}
.fbrand .muted{
  color: #D6E0EC !important;
}

/* Tables / misc */
table{
  border-collapse: collapse;
}
table th,
table td{
  border: 1px solid var(--line);
}

/* Stronger visual consistency */
.post-header h1,
.entry-title{
  color: var(--nav) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.entry-content p{
  color: #334155;
}

/* ===== Pro layout v21 ===== */
.shell-pro{ padding: 18px; }
.brand{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; }
.brand-link{ display:inline-flex; align-items:center; justify-content:center; }
.brand-logo{ max-height:72px; width:auto; }
.brand-tagline{ font-size:13px; color: var(--muted); font-weight:600; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:16px;
  margin-bottom:18px;
}
.hero-card{ position:relative; display:block; border-radius:14px; overflow:hidden; border:1px solid var(--line); background:#fff; }
.hero-card img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-xl{ height:420px; }
.hero-sm{ height:200px; }
.hero-side{ display:grid; grid-template-columns:1fr; gap:16px; }
.hero-overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:16px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%);
  color:#fff;
}
.hero-overlay h2{ margin:0 0 6px; font-size:26px; font-weight:800; line-height:1.25; }
.hero-overlay h3{ margin:0 0 6px; font-size:16px; font-weight:800; line-height:1.3; }
.hero-overlay .meta{ font-size:12px; opacity:.9; }
.kicker{ display:inline-flex; align-self:flex-start; background: rgba(27,168,248,.18); border:1px solid rgba(255,255,255,.18); padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; margin-bottom:8px; }

.layout{ display:grid; grid-template-columns: 1fr 320px; gap:18px; align-items:start; }
.cards-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.section-split{ display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; }
.feat-card{ display:block; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.feat-card img{ width:100%; height:210px; object-fit:cover; display:block; }
.feat-card .txt{ padding:12px; }
.feat-card h3{ margin:0 0 8px; font-size:18px; font-weight:800; color:var(--nav); }
.feat-card p{ margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
.list{ display:flex; flex-direction:column; gap:10px; }
.mini{ border:1px solid var(--line); border-radius:12px; padding:12px; background:#fff; }
.mini .t{ font-weight:800; color:var(--nav); font-size:14px; line-height:1.6; }
.mini .m{ font-size:12px; color:var(--muted); margin-top:6px; }

@media (max-width: 1100px){
  .layout{ grid-template-columns: 1fr 300px; }
  .hero-xl{ height:380px; }
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-xl{ height:320px; }
  .hero-side{ grid-template-columns: repeat(2, 1fr); }
  .layout{ grid-template-columns:1fr; }
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .section-split{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  .hero-side{ grid-template-columns:1fr; }
  .cards-grid{ grid-template-columns: 1fr; }
}


/* ===== Hero image fixes (v1) ===== */
/* Prevent any legacy pseudo background layers from overriding real featured images */
.hero-card::before,
.hero-card::after{
  content:none !important;
  display:none !important;
}
.hero-card{
  background:#fff !important;
}
/* Ensure images always crop nicely and match card height */
.hero-card img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
/* Make side cards less tall and more proportional */
.hero-xl{ height:380px !important; }
.hero-sm{ height:160px !important; }
@media (max-width: 1100px){
  .hero-xl{ height:340px !important; }
  .hero-sm{ height:150px !important; }
}
@media (max-width: 900px){
  .hero-xl{ height:300px !important; }
  .hero-sm{ height:160px !important; }
}


/* ===== Hero proportion + real featured images (v5) ===== */
.hero-card::before,
.hero-card::after{ content:none !important; display:none !important; }

.hero-grid{
  grid-template-columns: 1.4fr .6fr;
}
.hero-xl{ height: 380px !important; }
.hero-side{ display:grid; grid-template-columns: 1fr; gap: 16px; }
.hero-sm{ height: 182px !important; } /* 182*2 + 16 gap = 380 */
.hero-card img{ width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; }
.hero-card{ background:#fff !important; }

@media (max-width: 1100px){
  .hero-xl{ height: 340px !important; }
  .hero-sm{ height: 162px !important; } /* 162*2 + 16 = 340 */
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-xl{ height: 300px !important; }
  .hero-side{ grid-template-columns: repeat(2, 1fr); }
  .hero-sm{ height: 160px !important; }
}
@media (max-width: 520px){
  .hero-side{ grid-template-columns:1fr; }
  .hero-sm{ height: 160px !important; }
}

/* Logo: image only */
.brand-tagline{ display:none !important; }

/* ===== Header: logo only ===== */
.brand-tagline{ display:none !important; }
.brand .custom-logo-link img,
.brand-logo{ max-height:70px; width:auto; }

/* ===== Footer Pro ===== */
.footer-pro{
  background: linear-gradient(180deg, #072A62 0%, #051F48 100%);
  color:#fff;
  border-top: 4px solid var(--accent);
  padding: 28px 0 18px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 26px;
  align-items:start;
}
.fbrand-logo{ max-height:48px; width:auto; }
.fbrand-text{ margin-top:10px; color: #D6E0EC; line-height:1.9; font-size:13px; }
.fhead{
  font-weight:800;
  font-size:14px;
  margin:0 0 12px;
  color:#fff;
}
.ftext{ color:#D6E0EC; line-height:1.9; font-size:13px; }
.flist{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.flist a{ color:#F4F8FF; text-decoration:none; font-weight:600; }
.flist a:hover{ color:#7DD8FF; }
.fsocial{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.sbtn{
  width:34px; height:34px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:#fff; text-decoration:none;
  background: rgba(255,255,255,.04);
  font-weight:800;
}
.sbtn:hover{ background: rgba(27,168,248,.18); border-color: rgba(27,168,248,.35); }

.footer-bottom-pro{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#D6E0EC;
  font-size:12px;
}
.fmenu{ display:flex; gap:12px; flex-wrap:wrap; }
.fmenu a{ color:#D6E0EC; text-decoration:none; }
.fmenu a:hover{ color:#7DD8FF; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* ===== Hide dates sitewide (v7) ===== */
.meta, .post-meta, time, .entry-date, .posted-on, .date, .post-date{ display:none !important; }

/* ===== Remove excerpts on homepage (v7) ===== */
.home .excerpt, .home .feat-card p, .home .post-feature .excerpt{ display:none !important; }
