:root{
  --saudi:#0B6B3A;
  --saudi2:#0A5E34;
  --sand:#F6F0E6;
  --sand2:#EFE6D7;
  --ink:#0F172A;
  --muted:#5B6576;
  --gold:#B98A2A;

  --card:#FFFFFF;
  --border: rgba(15,23,42,.10);
  --shadow: 0 12px 30px rgba(15,23,42,.10);
  --radius: 18px;

  --max: 1200px;
}

/* ===================== FONT (LOCAL) ===================== */
/* style.css داخل assets/ لذلك مسار الخط الصحيح: fonts/... */
@font-face{
  font-family:"ReadexProLocal";
  src:url("fonts/ReadexPro-VariableFont_wght.woff2") format("woff2");
  font-weight:160 700;
  font-style:normal;
  font-display:swap;
}

/* إجبار الخط على كل شيء */
html, body, input, button, select, textarea, a, p, span, div,
h1,h2,h3,h4,h5,h6{
  font-family:"ReadexProLocal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial !important;
}

/* ===================== BASE ===================== */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-optical-sizing: auto;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color:var(--ink);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(11,107,58,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(185,138,42,.12), transparent 55%),
    linear-gradient(180deg, var(--sand), #fff 45%, var(--sand));
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(var(--max), calc(100% - 32px)); margin-inline:auto; }

/* ===================== PATTERN ===================== */
.pattern{
  position:fixed; inset:0; pointer-events:none; z-index:-1; opacity:.10;
  background-image:
    linear-gradient(45deg, rgba(11,107,58,.22) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(11,107,58,.22) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(11,107,58,.22) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(11,107,58,.22) 75%);
  background-size: 34px 34px;
  background-position: 0 0, 0 17px, 17px -17px, -17px 0px;
  filter: blur(.2px);
  mask-image: radial-gradient(closest-side at 50% 10%, rgba(0,0,0,.9), transparent 70%);
}

/* ===================== HEADER ===================== */
.topbar{
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position:sticky; top:0; z-index:50;
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}

/* الشعار الدائري */
.logo{
  width:48px;
  height:48px;
  border-radius:50%;
  background:
    radial-gradient(circle at 28% 28%, #f7e7a5 0%, #d4a941 45%, #9c7420 100%);
  display:grid;
  place-items:center;
  box-shadow:
    0 6px 20px rgba(0,0,0,.25),
    inset 0 0 0 2px rgba(255,255,255,.4),
    inset 0 -6px 10px rgba(0,0,0,.25);
  position:relative;
  font-family:"Amiri","Scheherazade New","Traditional Arabic",serif;
}

/* حرف ع */
.logo::before{
  content:"ع";
  font-size:34px;
  line-height:1;
  font-weight:700;
  color:#3a2a00;
  text-shadow:
    0 1px 0 rgba(255,255,255,.8),
    0 2px 6px rgba(0,0,0,.45);
  transform: translateY(-1px);
}

/* إطار داخلي زخرفي */
.logo::after{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:50%;
  border:1px solid rgba(60,40,0,.45);
  box-shadow: inset 0 0 6px rgba(255,255,255,.25);
  pointer-events:none;
}

.brand-title{ display:flex; flex-direction:column; line-height:1.05; }
.brand-title b{ font-size:16px; letter-spacing:.1px; }
.brand-title span{ font-size:12px; color:var(--muted); }

.nav{
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav a{
  padding:8px 10px;
  border-radius:12px;
  color:rgba(15,23,42,.85);
  font-weight:700;
  font-size:13px;
}
.nav a:hover{ background: rgba(11,107,58,.08); }

.actions{
  display:flex; align-items:center; gap:10px;
  min-width: 220px;
  justify-content:flex-end;
}
.search{
  display:flex; align-items:center; gap:8px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 14px;
  padding:8px 10px;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
  width: 280px;
  max-width: 45vw;
}
.search input{
  border:0; outline:0; width:100%;
  font-size:13px;
  background:transparent;
}
.search button{
  border:0; cursor:pointer;
  background: linear-gradient(135deg, var(--saudi), var(--saudi2));
  color:#fff;
  padding:8px 10px;
  border-radius:12px;
  font-weight:700;
}
.menuBtn{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  white-space:nowrap;
}

/* ===================== HERO ===================== */
.hero{ padding: 22px 0 8px; }
.hero-card{
  position:relative;
  background: linear-gradient(135deg, rgba(11,107,58,.10), rgba(185,138,42,.10));
  border: 1px solid rgba(11,107,58,.12);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-40px -40px auto auto;
  width:260px; height:260px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(185,138,42,.32), transparent 65%);
  filter: blur(2px);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  padding: 20px;
  align-items:stretch;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.70);
  border:1px solid rgba(11,107,58,.14);
  color: rgba(11,107,58,.95);
  font-weight:800;
  font-size:12px;
  width:max-content;
}
.dot{ width:8px; height:8px; background: var(--gold); border-radius:50%; }

.hero h1{
  margin:10px 0 8px;
  font-size: 28px;
  line-height:1.25;
  letter-spacing:.1px;
  font-weight:700;
}
.hero p{
  margin:0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height:1.8;
  max-width: 58ch;
  font-weight:400;
}

.cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 10px; }
.btn{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:10px;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.btn.primary{
  border:0;
  color:#fff;
  background: linear-gradient(135deg, var(--saudi), var(--saudi2));
}
.btn:hover{ transform: translateY(-1px); transition: .15s ease; }

/* ✅ اعتمد آخر شيء: فورس صورة الـHero */
.hero-media{
  border-radius: calc(var(--radius) + 8px);
  background-image: url("../images/1.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255,255,255,.55);
  overflow:hidden;
  position:relative;
  min-height: 230px;

  background-color: transparent !important;
  filter: none !important;
}
.hero-media::after{ display:none !important; }

/* ===================== SECTIONS ===================== */
.section{ padding: 18px 0; margin-top: 14px !important; }
.section-head{
  display:flex; align-items:end; justify-content:space-between;
  gap:10px;
  margin-bottom: 10px !important;
}
.section-head h2{ margin:0; font-size: 18px; }
.section-head a{ color: var(--saudi); font-weight:800; font-size:13px; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.tile{
  grid-column: span 3;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  padding: 14px;
  display:flex; gap:12px; align-items:center;
  min-height: 86px;
}
.icon{
  width:44px; height:44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,107,58,.14), rgba(185,138,42,.14));
  border:1px solid rgba(11,107,58,.12);
  display:grid; place-items:center;
  font-weight:900;
  color: rgba(11,107,58,.95);
}
.tile b{ display:block; font-size:14px; }
.tile span{ display:block; color:var(--muted); font-size:12px; margin-top:4px; }

.cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.card{
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  min-height: 330px;
}
.thumb{
  height: 170px;
  background:
    linear-gradient(135deg, rgba(11,107,58,.18), rgba(185,138,42,.10)),
    var(--thumb-img, var(--hero-img, url("../images/1.webp")));
  background-size: cover;
  background-position: center;
}
.card-body{
  padding: 14px;
  display:flex; flex-direction:column; gap:10px;
  flex:1;
}
.meta{
  display:flex; gap:8px; flex-wrap:wrap;
  color: rgba(15,23,42,.70);
  font-size:12px;
  font-weight:700;
}
.chip{
  background: rgba(11,107,58,.08);
  color: rgba(11,107,58,.95);
  border:1px solid rgba(11,107,58,.12);
  padding:6px 10px;
  border-radius:999px;
}
.card h3{ margin:0; font-size: 15px; line-height:1.6; }
.card p{ margin:0; color: var(--muted); font-size: 13px; line-height:1.85; flex:1; }
.card-actions{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.link{ font-weight:900; color: var(--saudi); font-size: 13px; }

/* ===================== FOOTER ===================== */
footer{
  margin-top: 26px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
}
.footer-inner{
  padding: 18px 0;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  align-items:start;
}
.footer-inner p{ margin:8px 0 0; color: var(--muted); font-size: 12px; line-height:1.9; }
.footer-links{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:flex-end;
}
.footer-links a{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
  font-size:12px;
}

/* ===================== MOBILE ===================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ min-height: 210px; }
  .tile{ grid-column: span 6; }
  .card{ grid-column: span 6; }
  .search{ width: 240px; }
}
@media (max-width: 640px){
  .topbar-inner{ align-items:flex-start; }
  .brand{ min-width:auto; }
  .actions{ min-width:auto; }
  .search{ max-width: 100%; width: 100%; }
  .menuBtn{ display:inline-flex; }
  .nav{
    display:none;
    width:100%;
    margin-top:10px;
    padding:10px;
    border-radius: 16px;
    background:#fff;
    border:1px solid var(--border);
  }
  .nav.open{ display:flex; }
  .nav a{ width:100%; }
  .tile{ grid-column: span 12; }
  .card{ grid-column: span 12; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-links{ justify-content:flex-start; }
  .hero h1{ font-size: 22px; }
}

/* ===================== ABOUT ===================== */
.aboutBox{
  background:linear-gradient(135deg, rgba(11,107,58,.06), rgba(185,138,42,.06));
  border:1px solid rgba(11,107,58,.10);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  line-height:1.95;
}

/* ===================== POEM NAV ===================== */
.poem-nav{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}
.poem-nav-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  font-weight:700;
  color:rgba(15,23,42,.92);
  white-space:nowrap;
}
.poem-nav-btn .nav-ico{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(11,107,58,.12), rgba(185,138,42,.10));
  border:1px solid rgba(11,107,58,.14);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.poem-nav-btn .nav-ico svg{ width:18px; height:18px; }
.poem-nav-btn:hover{ background: rgba(11,107,58,.06); }
.poem-nav-btn.disabled{ opacity:.45; pointer-events:none; }
.poem-nav-btn svg{ width:18px; height:18px; }
.poem-nav-btn.prev .nav-ico svg{ transform: rotate(180deg); }

/* ===================== LETTERS PAGE ===================== */
.letters-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.letter-tile{
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height: 92px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.letter-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
}
.letter-char{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:22px;
  color: rgba(11,107,58,.95);
  background: linear-gradient(135deg, rgba(11,107,58,.12), rgba(185,138,42,.10));
  border:1px solid rgba(11,107,58,.12);
}
.letter-meta{
  font-weight:800;
  font-size:12px;
  color: var(--muted);
}
@media (max-width: 980px){ .letter-tile{ grid-column: span 3; } }
@media (max-width: 640px){ .letter-tile{ grid-column: span 4; } }

/* ===================== Letter page ===================== */
.crumb-hero{
  max-width: var(--max, 1200px);
  margin: 14px auto 0;
  padding: 0 16px;
  color: var(--muted, #5B6576);
  font-size: 14px;
}
.crumb-hero a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15,23,42,.22);
}
.crumb-hero a:hover{ opacity:.85; }

.panel.letters-hero{
  max-width: var(--max, 1200px);
  margin: 10px auto 0;
  padding: 18px 18px;
  border-radius: var(--radius, 18px);
  background: linear-gradient(135deg, rgba(11,107,58,.10), rgba(185,138,42,.08));
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow, 0 12px 30px rgba(15,23,42,.10));
}
.letters-hero .h1{
  display:flex;
  align-items:center;
  gap:10px;
}
.letters-hero .badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
}

.panel.letter-wrap{
  max-width: var(--max, 1200px);
  margin: 12px auto 18px;
  padding: 16px;
  border-radius: var(--radius, 18px);
  background: var(--card, #fff);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow, 0 12px 30px rgba(15,23,42,.10));
}

/* grid that fills space */
.poets-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.poet-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,240,230,.60));
  text-decoration:none;
  color: var(--ink, #0F172A);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 86px;
}
.poet-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
  border-color: rgba(11,107,58,.22);
}
.poet-name{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
}
.poet-sub{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 13px;
  color: var(--muted, #5B6576);
}
.poet-sub::after{
  content:"←";
  font-size: 14px;
  opacity:.8;
}

/* pager */
.pager{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  justify-content:center;
  align-items:center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.pager-btn,
.pager-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: var(--ink, #0F172A);
  text-decoration:none;
  font-size: 14px;
}
.pager-num{ min-width: 38px; padding: 0 10px; }
.pager-num.active{
  background: rgba(11,107,58,.12);
  border-color: rgba(11,107,58,.28);
  font-weight: 800;
}
.pager-btn.disabled{ opacity:.45; cursor:not-allowed; }
.pager-dots{ padding: 0 6px; color: var(--muted, #5B6576); }
@media (max-width: 520px){
  .poets-grid{ grid-template-columns: 1fr; }
  .poet-card{ min-height: auto; }
}

/* ===================== POET BIO (اعتمد آخر شيء) ===================== */
.card.poet-bio-card{
  padding:16px !important;
  overflow:hidden;
  min-height: unset !important;
  height:auto !important;
  border-radius: 22px;
}
.bio-topbar{
  height: 84px;
  margin: -16px -16px 12px;
  border-radius: 22px 22px 16px 16px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(11,107,58,.24), rgba(185,138,42,.20)),
    radial-gradient(circle at 18% 30%, rgba(185,138,42,.34), transparent 55%),
    radial-gradient(circle at 86% 12%, rgba(11,107,58,.32), transparent 60%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.bio-topbar-title{
  position:absolute;
  right:18px;
  top:18px;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink,#0F172A);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.bio-inner{ padding: 0; }
.bio-chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.poet-bio-text{
  margin: 10px 0 0;
  color: var(--muted,#5B6576);
  line-height: 1.95;
  font-size: 18px;
}
.clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.poet-bio-more{
  margin-top: 8px;
  border:0;
  background:transparent;
  color: var(--saudi,#0B6B3A);
  font-weight:900;
  cursor:pointer;
  padding:0;
}
.poet-bio-more:hover{ opacity:.85; }

/* ===================== POEMS GRID + CARDS (اعتمد آخر شيء) ===================== */
.poems-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.poems-grid.tight{ gap: 10px; }

.card.poem-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: unset !important;
  height:auto !important;
}

.poem-art{
  height: 76px;
  background:
    linear-gradient(135deg, rgba(11,107,58,.18), rgba(185,138,42,.14)),
    radial-gradient(circle at 15% 25%, rgba(185,138,42,.26), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(11,107,58,.22), transparent 60%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.poem-title{ margin: 10px 0 6px; line-height: 1.6; }
.poem-desc{ margin: 0 0 14px; color: var(--muted, #5B6576); }

/* موبايل */
@media (max-width: 520px){
  .bio-topbar-title{ font-size: 20px; top: 22px; }
  .poems-grid{ grid-template-columns: 1fr; }
}
/* ===== poet topline ===== */
.poet-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
}
.poet-title{
  font-size: 26px;
  font-weight: 900;
  color: var(--ink,#0F172A);
}

/* ===== poet bio card ===== */
.card.poet-bio-card{
  padding:16px !important;
  overflow:hidden;
  border-radius: 22px;
  min-height: unset !important;
  height:auto !important;
}

/* شريط علوي (قصير) */
.bio-topbar{
  height: 70px;                  /* ✅ قصير */
  margin: -16px -16px 12px;
  border-radius: 22px 22px 16px 16px;
  background:
    linear-gradient(135deg, rgba(11,107,58,.24), rgba(185,138,42,.20)),
    radial-gradient(circle at 18% 30%, rgba(185,138,42,.34), transparent 55%),
    radial-gradient(circle at 86% 12%, rgba(11,107,58,.32), transparent 60%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

/* chips */
.bio-chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* bio text */
.poet-bio-text{
  margin: 10px 0 0;
  color: var(--muted,#5B6576);
  line-height: 1.95;
  font-size: 18px;
}
.clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.poet-bio-more{
  margin-top: 8px;
  border:0;
  background:transparent;
  color: var(--saudi,#0B6B3A);
  font-weight:900;
  cursor:pointer;
  padding:0;
}
.poet-bio-more:hover{ opacity:.85; }

/* ===== reduce general spacing ===== */
.section{ margin-top: 14px !important; }
.section-head.tight-head{ margin-bottom: 10px !important; }

/* ===== poems grid (tight & adjacent) ===== */
.poems-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;                      /* ✅ تقليل المسافة */
}

/* poem card */
.card.poem-card{
  overflow:hidden;
  border-radius: 22px;
  min-height: unset !important;   /* ✅ يمنع الفراغات */
  height:auto !important;
}

/* ✅ هذا هو أهم سطر لعلاج الفراغ: خفّض ارتفاع الشريط */
.poem-art{
  height: 64px;                   /* ✅ كان كبير ويسبب مساحة */
  background:
    linear-gradient(135deg, rgba(11,107,58,.18), rgba(185,138,42,.14)),
    radial-gradient(circle at 15% 25%, rgba(185,138,42,.26), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(11,107,58,.22), transparent 60%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

/* body inside poem */
.poem-body{
  padding-top: 12px !important;
}
.poem-title{ margin: 8px 0 6px; line-height: 1.6; }
.poem-desc{ margin: 0 0 12px; color: var(--muted,#5B6576); }

/* mobile */
@media (max-width: 520px){
  .poet-title{ font-size: 20px; }
  .poems-grid{ grid-template-columns: 1fr; }
}
.poet-topline{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; margin:0 0 10px;
}
.poet-title{ font-size:26px; font-weight:900; }

.card.poet-bio-card{ padding:16px !important; overflow:hidden; border-radius:22px; }
.bio-topbar{
  height:70px; margin:-16px -16px 12px; border-radius:22px 22px 16px 16px;
  background:linear-gradient(135deg, rgba(11,107,58,.24), rgba(185,138,42,.20));
  border-bottom:1px solid rgba(15,23,42,.08);
}
.bio-chips{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.poet-bio-text{ font-size:18px; line-height:1.95; color:var(--muted); margin:10px 0 0; }
.clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.poet-bio-more{ margin-top:8px; border:0; background:transparent; color:var(--saudi); font-weight:900; cursor:pointer; padding:0; }

.poems-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.card.poem-card{ overflow:hidden; border-radius:22px; min-height:unset !important; height:auto !important; }
.poem-art{ height:64px; background:linear-gradient(135deg, rgba(11,107,58,.18), rgba(185,138,42,.14)); border-bottom:1px solid rgba(15,23,42,.08); }
.poem-body{ padding-top:12px !important; }
/* ===================== POET PAGE: fix huge gaps ===================== */

/* لا تستخدم .cards هنا، لكن لو ظهر بالغلط نعالجه */
.cards{ padding:0 !important; margin:0 !important; }

/* Grid متجاور */
.poems-grid{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 10px !important;                 /* ✅ تجميع */
  align-items: start !important;        /* ✅ يمنع تمدد العناصر */
}

/* كرت القصيدة: امنع أي تمدد قسري */
.card.poem-card{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  height:auto !important;
  min-height: 0 !important;
  overflow:hidden !important;
  border-radius: 22px !important;
}

/* أهم سطرين: يمنع تمدد محتوى الكرت */
.card.poem-card *{
  min-height: 0 !important;
}

/* الشريط العلوي صغير ومميز */
.poem-art{
  height: 56px !important;              /* ✅ كان يسبب فراغ */
  background:
    linear-gradient(135deg, rgba(11,107,58,.18), rgba(185,138,42,.14)),
    radial-gradient(circle at 15% 25%, rgba(185,138,42,.22), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(11,107,58,.20), transparent 60%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

/* جسم الكرت بدون فراغات داخلية مبالغ فيها */
.card-body.poem-body{
  padding: 14px 16px !important;
}

/* قلّل المسافات داخل النص */
.poem-title{ margin: 8px 0 6px !important; line-height: 1.6; }
.poem-desc{ margin: 0 0 10px !important; color: var(--muted,#5B6576); }

/* عنوان القسم نفسه لا يأخذ مساحة كبيرة */
.section{ margin-top: 12px !important; }
.section-head{ margin-bottom: 8px !important; }

/* موبايل */
@media (max-width: 520px){
  .poems-grid{ grid-template-columns: 1fr !important; }
}



/* ===== Fix Hero layout + Clickability ===== */
.poemHero{ position:relative; }
.poemHero-bg{
  pointer-events:none !important;
  z-index:0 !important;
}
.poemHero-inner{
  position:relative;
  z-index:2;                 /* فوق الخلفية */
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding-inline: 10px;
  text-align:right;
}

/* اجعل العنوان يمين وثابت */
.poemHero-title{
  text-align:right;
  margin: 0 0 6px 0;
}

/* صف الشرائح (الشاعر/النوع/القافية/النسخ...) */
.poemHero-meta{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  justify-content:flex-end !important; /* يمين */
  align-items:center !important;
  margin-top:10px !important;
  position:relative;
  z-index:3; /* فوق أي طبقة */
}

/* لا تخلي الشيب تتمدد بشكل غريب */
.poemHero-meta .chip{
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* زر النسخ لازم يكون قابل للنقر بوضوح */
.chip-copy{
  border:1px solid rgba(11,107,58,.25) !important;
  cursor:pointer !important;
  user-select:none !important;
  pointer-events:auto !important;
  background: rgba(11,107,58,.08) !important;
}
.chip-copy:hover{
  transform: translateY(-1px);
  border-color: rgba(185,138,42,.40) !important;
  box-shadow: 0 12px 22px rgba(15,23,42,.08);
}


.poemHero-bg{ pointer-events:none !important; }
.poemHero-inner{ position:relative; z-index:5; }
.poemHero-meta{ position:relative; z-index:6; }
.chip-copy{ pointer-events:auto !important; cursor:pointer !important; }

.list{
  margin-top:12px;
}

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  margin-bottom:10px;
  transition:.2s;
}

.item:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

.item .title{
  font-size:18px;
  font-weight:600;
  color:var(--saudi);
}

.item .meta{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}

.item .chev{
  font-size:20px;
  color:var(--gold);
}
