/* =========================
   Font
========================= */
@font-face{
  font-family: 'Cairo';
  src: url(../../fonts/Cairo-Regular.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Tokens
========================= */
:root{
  /* Layout */
  --container: 1320px;

  /* Backgrounds */
  --bg: #f7f7f7;
  --bg-soft: #ffffff;

  /* Cards */
  --card: #ffffff;

  /* Text */
  --text: #1f1f1f;
  --muted: #6b6b6b;

  /* Brand */
  --brand: #9b0d0d;       /* صوت الوطن */
  --brand-soft: #c62828;

  /* Lines */
  --line: rgba(0,0,0,.08);

  /* Effects */
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --shadow2: 0 8px 22px rgba(0,0,0,.12);
  --radius: 16px;

  /* Focus */
  --focus: rgba(155,13,13,.25);

  /* Magazine Nav */
  --nav-bg: #111111;
  --nav-bg2:#161616;
  --nav-text:#ffffff;
  --nav-muted: rgba(255,255,255,.72);
  --nav-line: rgba(255,255,255,.10);

  /* Typography scale (أصغر شوية) */
  --fs-base: 14.5px;
  --fs-small: 12px;
  --fs-xs: 11px;

  /* Sticky offsets */
  --ticker-h: 44px; /* لو لقيت الهيدر لازق/داخل زودها لـ 48 */
}

/* =========================
   Reset / Base
========================= */
*{ box-sizing:border-box; }
html, body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family:'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);

  background: var(--bg);
  line-height: 1.6;
}

a{ color:inherit; text-decoration:none; }

.container{
  width: min(var(--container), 94%);
  margin: 0 auto;
  padding: 18px 0;
}

.muted{ color: var(--muted); }
.small{ font-size: var(--fs-small); }
.center{ text-align:center; padding:40px 0; }

/* Focus styles */
.input:focus,
.btn:focus,
.nav-link:focus{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* =========================
   Top Ticker (White bar)
========================= */
.top-ticker{
  background:#fff;
  border-bottom:1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 70; /* أعلى من الهيدر */
}

.top-ticker-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items:center;
  padding: 6px 0;
min-height: var(--ticker-h);
}

.top-ticker-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 900;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
}

.top-ticker-track{
  overflow:hidden;
  position:relative;
}

.top-ticker-items{
  display:flex;
  gap: 20px;
  align-items:center;
  white-space:nowrap;
  will-change: transform;
  animation: ticker-move 28s linear infinite;
}

.top-ticker-item{
  color: var(--text);
  font-weight: 800;
  font-size: 12.5px; /* أصغر */
  opacity:.92;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: .18s ease;
}
.top-ticker-item:hover{
  color: var(--brand);
  border-bottom-color: rgba(155,13,13,.35);
  opacity: 1;
}

.top-ticker-actions{
  display:inline-flex;
  gap: 8px;
}

.top-ticker-btn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:#fff;
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
  transition: .18s ease;
}
.top-ticker-btn:hover{
  border-color: rgba(155,13,13,.25);
  background: rgba(155,13,13,.05);
  color: var(--brand);
}

.top-ticker:hover .top-ticker-items{ animation-play-state: paused; }

@keyframes ticker-move{
  from{ transform: translateX(0); }
  to{ transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce){
  .top-ticker-items{ animation: none !important; }
}

@media (max-width: 560px){
  .top-ticker-inner{ grid-template-columns: auto 1fr; }
  .top-ticker-actions{ display:none; }
  .top-ticker-items{ animation-duration: 36s; }
}

/* =========================
   Header (Dark Magazine)
========================= */
.site-header{
  position: sticky;
  top: var(--ticker-h); /* مهم: تحت التكر */
  z-index: 60;

  background: linear-gradient(180deg, var(--nav-bg), var(--nav-bg2));
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* لو في صفحات مفيهاش تكر */
body.no-ticker .site-header{ top: 0; }

.header-inner{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 12px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
}

.logo-badge{
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  border: 1px solid rgba(255,255,255,.12);
}

.logo-text{
  font-size: 18px; /* أصغر */
  letter-spacing: .2px;
  color: var(--nav-text);
}

/* Nav */
.nav{
  display:flex;
  gap: 6px;
  flex: 1;
  overflow: auto;
  padding: 6px;

  scrollbar-width: thin;
}
.nav::-webkit-scrollbar{ height: 6px; }
.nav::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.nav-link{
  padding: 10px 12px;     /* أصغر */
  border-radius: 0;
  color: var(--nav-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 800;
  font-size: 13px;        /* أصغر */
  letter-spacing: .15px;
  transition: .18s ease;
  background: transparent;
}
.nav-link:hover{
  color: var(--nav-text);
  background: rgba(255,255,255,.06);
}
.nav-link.active{
  color: var(--nav-text);
  border-bottom-color: var(--brand);
  background: rgba(155, 13, 13, .10);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  padding: 9px 12px;      /* أصغر */
  border-radius: 14px;

  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  font-size: 13px;        /* أصغر */
  color:#fff;

  transition: .18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--ghost{
  background: transparent;
  color:#fff;
  border-color: rgba(255,255,255,.18);
}
.btn--ghost:hover{ background: rgba(255,255,255,.08); }

.btn--danger{
  background: rgba(239,68,68,.12);
  color:#fff;
  border-color: rgba(239,68,68,.30);
}

.w-full{ width:100%; }

/* =========================
   Hero (Simple)
========================= */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
  padding: 18px 0;
}

.hero h1{
  margin:0;
  font-size: 40px; /* أصغر */
  line-height: 1.05;
  letter-spacing: -.4px;
}
.hero p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px; /* أصغر */
}

/* =========================
   Cards (General)
========================= */
.card{
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: .18s ease;

  will-change: transform;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.card--glass{
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}

.card-body{ padding: 14px; }

.card-media{ display:block; }
.card-media img{
  width:100%;
  height: 170px; /* سنة أصغر */
  object-fit:cover;
  display:block;
  background: rgba(0,0,0,.04);
}

.card-title{
  margin: 8px 0 6px;
  font-size: 16px;  /* أصغر */
  line-height: 1.3;
  color: var(--text);
  transition: .18s ease;
}
.card-title:hover{ color: var(--brand); }

.card-excerpt{
  margin:0;
  color: var(--muted);
  font-size: 13px; /* أصغر */
  line-height: 1.65;
  min-height: 40px;
}

/* Layout grids */
.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid--compact{ grid-template-columns: repeat(4, 1fr); }
.grid--2{ grid-template-columns: 1fr 1fr; }

.section{ padding: 10px 0 26px; }
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap: 12px;
  margin: 6px 0 12px;
}
.section-head h2,
.section-head h1{
  margin:0;
  letter-spacing: -.3px;
  font-weight: 950;
}

/* Pills */
.pill-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  color: var(--muted);
  font-size: 11.5px; /* أصغر */
  background: rgba(255,255,255,.9);
  transition: .18s ease;
}
.pill:hover{
  color: var(--text);
  border-color: rgba(155,13,13,.22);
  background: rgba(155,13,13,.06);
}

/* =========================
   Footer
========================= */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 28px;
  background: rgba(255,255,255,.9);
}
.footer-inner{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  justify-content:space-between;
  padding: 18px 0;
}
.footer-links{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.footer-links a{ color: var(--muted); font-size: 13px; }
.footer-links a:hover{ color: var(--brand); }

/* =========================
   Article
========================= */
.article{ padding: 12px 0 24px; }

.article-head h1{
  margin: 10px 0 6px;
  font-size: 30px; /* أصغر */
  letter-spacing: -.35px;
  font-weight: 950;
}

.article-hero img{
  width:100%;
  max-height: 420px;
  object-fit:cover;
  display:block;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-excerpt{
  color: var(--muted);
  font-size: 14px; /* أصغر */
  line-height: 1.85;
}

/* WYSIWYG */
.wysiwyg{ line-height: 1.95; font-size: 14px; } /* أصغر */
.wysiwyg h2, .wysiwyg h3{ margin: 18px 0 10px; }
.wysiwyg p{ margin: 10px 0; }

.wysiwyg img{
  max-width:100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wysiwyg blockquote{
  margin: 12px 0;
  padding: 12px 14px;
  border-right: 3px solid rgba(155,13,13,.75);
  background: rgba(155,13,13,.06);
  border-radius: 14px;
  color: rgba(15,23,42,.92);
}

/* =========================
   News-like Homepage Layout
========================= */
.home{ padding: 14px 0 26px; }

.topgrid{
  display:grid;
  grid-template-columns: 1.65fr .85fr;
  gap: 16px;
  align-items: stretch;
}

/* Lead */
.lead{ overflow:hidden; }
.lead__media{
  position:relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow:hidden;
}
.lead__media img{
  width:100%;
  height:100%;
  min-height: 420px;
  object-fit:cover;
  display:block;
  transform: scale(1.01);
}
.lead__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.28) 40%,
    rgba(0,0,0,.72) 100%);
}
.lead__meta{
  position:absolute;
  left: 18px; right: 18px; bottom: 16px;
  color:#fff;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.lead__title{
  margin:0;
  font-size: clamp(24px, 2.2vw, 40px); /* أصغر */
  line-height: 1.05;
  letter-spacing: -.35px;
}
.lead__excerpt{
  margin:0;
  max-width: 70ch;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  font-size: 13.5px; /* أصغر */
}

/* Tags */
.tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  color: var(--text);
  background: rgba(255,255,255,.85);
  font-size: 11.5px; /* أصغر */
  font-weight: 950;
  transition: .18s ease;
}
.tag:hover{ border-color: rgba(155,13,13,.25); color: var(--brand); }

.tag--solid{
  border-color: rgba(255,255,255,.18);
  background: rgba(155,13,13,.92);
  color:#fff;
}

.date{
  font-size: 11.5px; /* أصغر */
  font-weight: 900;
  color: rgba(255,255,255,.86);
}

/* Rail */
.rail{
  padding: 12px;
  border-radius: var(--radius);
}
.rail__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.rail__head h2{
  margin:0;
  font-size: 16px; /* أصغر */
  font-weight: 950;
  letter-spacing: -.2px;
}
.rail__list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
}
.rail__item{ border-bottom: 1px solid rgba(0,0,0,.06); }
.rail__item:last-child{ border-bottom:0; }

.rail__link{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 10px 2px;
}
.rail__title{
  font-weight: 950;
  font-size: 13.5px; /* أصغر */
  line-height: 1.35;
  color: var(--text);
}
.rail__meta{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 11.5px; /* أصغر */
  color: var(--muted);
}
.rail__cat{ color: rgba(155,13,13,.92); font-weight: 950; }
.rail__dot{ opacity:.6; }

.rail__link:hover .rail__title{ color: var(--brand); }

.rail__more{
  display:block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-weight: 950;
  font-size: 13px;
}

/* Mid grid */
.midgrid{
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 16px;
  margin-top: 16px;
}
.block__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
  margin-top: -250px;
}
@media screen and (max-width:700px) {
  .block__head{ margin-top: 0; }
}
.block__head h2{
  margin:0;
  font-size: 18px; /* أصغر */
  font-weight: 950;
  letter-spacing: -.2px;
}

/* 2-col stories */
.cards-2col{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.story{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px;
}
.story__media img{
  width:150px;
  height:110px;
  border-radius: 14px;
  object-fit:cover;
  display:block;
  border: 1px solid rgba(0,0,0,.06);
}
.story__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.story__title{
  margin: 0 0 6px;
  font-size: 14.5px; /* أصغر */
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -.2px;
}
.story__title a:hover{ color: var(--brand); }

.story__excerpt{
  margin:0;
  color: var(--muted);
  font-size: 12.5px; /* أصغر */
  line-height: 1.7;
}

/* Most read */
.most{ padding: 12px; }
.most__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.most__head h2{ margin:0; font-size: 16px; font-weight: 950; }

.most__list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset: x;
}
.most__item{
  display:grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.most__item:last-child{ border-bottom:0; }

.most__num{
  width:26px; height:26px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(155,13,13,.10);
  color: var(--brand);
  font-weight: 950;
  font-size: 12px;
}
.most__link{
  font-weight: 950;
  font-size: 13.5px; /* أصغر */
  line-height: 1.35;
}
.most__link:hover{ color: var(--brand); }

/* Picks strip */
.strip{ margin-top: 18px; }
.strip__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.strip__head h2{ margin:0; font-size: 18px; font-weight: 950; }

.strip__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mini__media img{
  width:100%;
  height: 140px; /* أصغر */
  object-fit:cover;
  display:block;
}
.mini__body{ padding: 12px; }

.mini__title{
  margin: 8px 0 0;
  font-size: 13.5px; /* أصغر */
  line-height: 1.35;
  font-weight: 950;
}
.mini__title a:hover{ color: var(--brand); }

/* =========================
   Responsive
========================= */
@media (max-width: 1100px){
  .topgrid{ grid-template-columns: 1.45fr 1fr; }
  .strip__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .grid--compact{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ flex-direction: column; }

  .topgrid{ grid-template-columns: 1fr; }
  .midgrid{ grid-template-columns: 1fr; }
  .cards-2col{ grid-template-columns: 1fr; }
  .story{ grid-template-columns: 140px 1fr; }
  .strip__grid{ grid-template-columns: repeat(2, 1fr); }
  .lead__media img{ min-height: 360px; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .strip__grid{ grid-template-columns: 1fr; }
  .story{ grid-template-columns: 120px 1fr; }
  .story__media img{ width:120px; height:90px; }
  .lead__meta{ left:12px; right:12px; }
}


/* =========================
   Home Slider (Hero)
========================= */
.heroSlider{ position: relative; overflow: hidden; border-radius: 22px; }
.heroSlider__track{ display: flex; width: 100%; transform: translateX(0); transition: transform .35s ease; }
.heroSlide{ position: relative; flex: 0 0 100%; display: block; color: inherit; text-decoration: none; }
.heroSlide img{ width:100%; height: clamp(260px, 34vw, 520px); object-fit: cover; display:block; }
.heroNav{
  position:absolute; top:50%; transform:translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color:#fff; font-size: 28px; line-height: 42px;
  cursor:pointer; z-index: 4;
  backdrop-filter: blur(10px);
}
.heroNav--prev{ left: 12px; }
.heroNav--next{ right: 12px; }
.heroNav:hover{ background: rgba(0,0,0,.5); }

.heroDots{
  position:absolute; left: 0; right:0; bottom: 10px;
  display:flex; justify-content:center; gap:8px; z-index: 4;
}
.heroDot{
  width: 8px; height: 8px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.45);
  cursor: pointer;
}
.heroDot.is-active{ background: rgba(255,255,255,.95); width: 18px; }

/* =========================
   Category blocks
========================= */
.catBlocks{ display: grid; gap: 16px; margin-top: 16px; }
.catBlock{ padding: 14px; }
.catBlock__head{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  margin-bottom: 10px;
}
.catBlock__title{ margin:0; font-size: 16px; font-weight: 950; }
.catBlock__title a{ color: inherit; text-decoration:none; }
.catBlock__more{ color: var(--brand); text-decoration:none; font-weight: 900; }
.catBlock__more:hover{ text-decoration: underline; }

.catBlock__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.catItem{
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.7);
  box-shadow: 0 16px 38px rgba(0,0,0,.06);
}
.catItem__media img{ width:100%; height: 160px; object-fit: cover; display:block; }
.catItem__body{ padding: 12px; }
.catItem__title{ margin:0; font-size: 14px; line-height:1.6; font-weight: 900; }
.catItem__title a{ color: inherit; text-decoration:none; }
.catItem__title a:hover{ color: var(--brand); }

.catItem--big{ grid-row: span 2; }
.catItem--big .catItem__media img{ height: 360px; }

@media (max-width: 980px){
  .catBlock__grid{ grid-template-columns: 1fr 1fr; }
  .catItem--big{ grid-row: auto; }
  .catItem--big .catItem__media img{ height: 220px; }
}
@media (max-width: 560px){
  .catBlock__grid{ grid-template-columns: 1fr; }
  .heroNav{ display:none; }
}
@media (max-width: 1023px) {
  .sw-wysiwyg img,
  .sw-wpCap img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
  }
}


/* =========================================================
   GLOBAL PAGES + FIX SLIDER (append at end)
========================================================= */

/* =========================
   Generic page layout
========================= */
.page,
.latest,
.category,
.searchPage,
.article,
.home{
  padding: 14px 0 28px;
}

.page-head,
.section-head{
  align-items: center;
  gap: 10px;
}

.page-title,
.section-head h1,
.section-head h2{
  font-weight: 950;
}

.page-subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* breadcrumbs (اختياري) */
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--brand); }

/* =========================
   Buttons / Inputs (للصفحات كلها)
========================= */
.input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: .18s ease;
}

.input:focus,
input:focus,
select:focus,
textarea:focus{
  border-color: rgba(155,13,13,.35);
  box-shadow: 0 0 0 4px rgba(155,13,13,.10);
}

.input::placeholder,
input::placeholder,
textarea::placeholder{
  color: rgba(107,107,107,.75);
}

.btn{
  cursor: pointer;
  user-select: none;
  border: 0;
}
.btn[disabled]{ opacity:.65; cursor:not-allowed; transform:none !important; }

.btn--soft{
  background: rgba(155,13,13,.08);
  border: 1px solid rgba(155,13,13,.18);
  color: var(--brand);
}
.btn--soft:hover{
  background: rgba(155,13,13,.12);
}

/* =========================
   Alerts / Empty states
========================= */
.alert{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.alert--danger{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
}
.empty{
  padding: 22px 16px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
  color: var(--muted);
  text-align:center;
}

/* =========================
   Latest page grid
========================= */
.latest-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .latest-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .latest-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Category page header (لو عايز شكل أجمل)
========================= */
.section-head{
  padding: 10px 0 6px;
}
.section-head .muted{
  font-size: 13px;
}

/* =========================
   Tables (لو عندك صفحات Admin)
========================= */
.tableWrap{
  overflow:auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
table{
  width:100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-align: right;
  white-space: nowrap;
}
th{
  font-weight: 950;
  color: var(--text);
  background: rgba(0,0,0,.02);
}
tr:hover td{ background: rgba(155,13,13,.03); }

/* =========================
   Pagination (اختياري)
========================= */
.pager{
  display:flex;
  gap: 10px;
  justify-content:center;
  align-items:center;
  margin-top: 16px;
  flex-wrap:wrap;
}
.pager a, .pager button{
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  font-weight: 900;
  font-size: 13px;
}
.pager a:hover, .pager button:hover{
  border-color: rgba(155,13,13,.22);
  background: rgba(155,13,13,.05);
  color: var(--brand);
}

/* =========================================================
   SLIDER FIXES (المهم 🔥)
   المشكلة غالبًا RTL + translateX
========================================================= */

/* خلي السلايدر LTR عشان translateX يبقى منطقي */
.heroSlider{
  direction: ltr;
  position: relative;
  border-radius: var(--radius);
}

/* رجّع النص RTL داخل الشريحة */
.heroSlide,
.lead__meta{
  direction: rtl;
}

/* ثبّت أبعاد السلايدر بشكل أنضف */
.heroSlider__track{
  display:flex;
  gap: 0;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.heroSlide{
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

/* مهم: على صفحات فيها card hover، امنع jitter */
.lead.card{ transform: none !important;
max-height: fit-content;
}
.lead.card:hover{ transform: none !important; }

/* الصورة */
.heroSlide img{
  width:100%;
  height: clamp(280px, 38vw, 560px);
  object-fit: cover;
  display:block;
}

/* الـ overlay + meta (تأكد إنهم فوق الصورة) */
.lead__overlay{
  z-index: 1;
}
.lead__meta{
  z-index: 2;
  bottom: 18px;
  padding-bottom: 8px;
}

/* أزرار التنقل */
.heroNav{
  z-index: 5;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.40);
}
.heroNav:hover{ background: rgba(0,0,0,.58); }

/* dots متبقاش داخل النص */
.heroDots{
  z-index: 6;
  bottom: 12px;
}

/* على الموبايل: ارتفاع أنسب + dots أوضح */
@media (max-width: 560px){
  .heroSlide img{ height: 320px; }
  .lead__title{ font-size: 22px; line-height: 1.15; }
  .lead__excerpt{ display:none; } /* عشان ما يبقاش زحمة */
  .heroDots{ bottom: 10px; }
}

/* لو المستخدم مقلّل الحركة */
@media (prefers-reduced-motion: reduce){
  .heroSlider__track{ transition: none !important; }
}

/* =========================
   Mobile image height hard-fix (للمقال)
========================= */
@media (max-width: 1023px){
  .sw-wysiwyg img,
  .sw-wpCap img,
  .wysiwyg img{
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
  }
}

/* =========================
   Footer (Professional)
========================= */
.site-footer{
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(155,13,13,.07), transparent 60%),
    rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
}

.footer-brand{ max-width: 60ch; }
.footer-logo{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.footer-col{ padding-top: 4px; }

.footer-title{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-links{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a{
  color: rgba(31,31,31,.92);
  font-weight: 850;
  font-size: 13px;
  transition: .18s ease;
  display:inline-flex;
  width: fit-content;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.footer-links a:hover{
  color: var(--brand);
  border-bottom-color: rgba(155,13,13,.25);
}

.footer-meta{ display:flex; flex-direction: column; gap: 10px; }

.footer-dev{
  font-size: 13px;
}
.footer-devLink{
  font-weight: 950;
  color: var(--brand);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(155,13,13,.18);
}
.footer-devLink:hover{
  box-shadow: inset 0 -2px 0 rgba(155,13,13,.35);
}

.footer-social{
  display:flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-socialBtn{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  font-weight: 950;
  color: var(--text);
  transition: .18s ease;
}
.footer-socialBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(155,13,13,.22);
  background: rgba(155,13,13,.05);
  color: var(--brand);
}

.footer-bottom{
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.75);
}
.footer-bottomInner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 12px 0;
}

.footer-toTop{
  font-weight: 950;
  color: var(--brand);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(155,13,13,.18);
  background: rgba(155,13,13,.06);
  transition: .18s ease;
}
.footer-toTop:hover{
  background: rgba(155,13,13,.10);
}

@media (max-width: 980px){
  .footer-inner{
    grid-template-columns: 1fr;
  }
  .footer-bottomInner{
    flex-direction: column;
    align-items: flex-start;
  }
}
footer .logo-text{
  font-size: 26px;
  font-weight: 900;
  color: var(--brand);
}

.auth-card{
  padding: 12px 20px;
}

.auth-card button{
  margin-top: 12px;
}

.auth-card .label{
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.auth-card input{
  margin-bottom: 10px;
}