/* Public pages — editorial design system (matches Home) */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600&display=swap');

:root {
  --deep: #030a1f;
  --navy: #0c2160;
  --steel: #4a6fb5;
  --mist: #b9c9ee;
  --gold: #c8a24a;
  --paper: #f4f6fb;
  --card: #fff;
  --text: #0c1630;
  --muted: #5a6b8a;
  --line: rgba(12, 33, 96, .12);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' fill='none' stroke='%23b9c9ee' stroke-opacity='.16'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3C/svg%3E");
}

.pub-page {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.8;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -1.5rem;
  margin-bottom: -1.5rem;
  padding-bottom: 48px;
  overflow-x: clip;
}
.pub-page a { color: inherit; text-decoration: none; }
.pub-page :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pub-page h1, .pub-page h2, .pub-page h3, .pub-page h4, .pub-page .serif {
  font-family: 'Amiri', 'Times New Roman', serif;
  font-weight: 700;
}
.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* page hero */
.pub-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 18% 15%, #16367f 0%, transparent 60%),
    linear-gradient(160deg, var(--deep), var(--navy) 120%);
  color: #fff;
  padding: 56px 0 64px;
  margin-bottom: 0;
}
.pub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--star);
  opacity: .85;
  pointer-events: none;
}
.pub-hero .pub-wrap { position: relative; }
.pub-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(200, 162, 74, .55);
  color: var(--gold);
  padding: 4px 16px;
  border-radius: 99px;
  font-size: .85rem;
  margin-bottom: 14px;
}
.pub-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.3;
  margin: 0 0 8px;
  color: #fff;
}
.pub-hero .lead {
  color: #d4def5;
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}
.pub-hero .en {
  color: var(--mist);
  opacity: .85;
  direction: ltr;
  text-align: right;
  margin-bottom: 10px;
}
[dir="ltr"] .pub-hero .en { text-align: left; }
.pub-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: .88rem;
  color: var(--mist);
}
.pub-crumbs a { color: #fff; border-bottom: 1px solid rgba(200,162,74,.5); }
.pub-crumbs a:hover { color: var(--gold); }
.pub-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pub-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(185,201,238,.25);
  font-size: .88rem;
  color: #fff;
}

/* buttons */
.pub-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 11px 24px;
  border-radius: 99px;
  font-weight: 600;
  transition: .3s;
  border: 1px solid transparent;
  font-size: .95rem;
}
.pub-btn.gold { background: var(--gold); color: var(--deep) !important; }
.pub-btn.gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(200,162,74,.4);
  color: var(--deep) !important;
}
.pub-btn.ghost { border-color: rgba(255,255,255,.35); color: #fff !important; }
.pub-btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.pub-btn.navy {
  background: linear-gradient(150deg, var(--navy), var(--deep));
  color: #fff !important;
  border: 1px solid rgba(185,201,238,.25);
}
.pub-btn.navy:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(3,10,31,.28);
  color: #fff !important;
}
.pub-btn.outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--navy) !important;
}
.pub-btn.outline:hover {
  border-color: var(--gold);
  color: var(--deep) !important;
  transform: translateY(-2px);
}
.pub-btn.pdf {
  background: linear-gradient(135deg, #b4232e, #dc3545);
  color: #fff !important;
}
.pub-btn.pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220,53,69,.3);
  color: #fff !important;
}
.pub-btn.ok {
  background: linear-gradient(135deg, #1e7a45, #28a745);
  color: #fff !important;
}

.pub-more {
  color: var(--navy) !important;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}
.pub-more:hover { color: var(--deep) !important; }

/* section head */
.pub-section { padding: 48px 0 0; }
.pub-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pub-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.pub-head p { color: var(--muted); max-width: 420px; margin: 0; }

/* cards / grids */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pub-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.pub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(3,10,31,.14);
}
.pub-thumb {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(135deg, var(--navy), var(--deep));
  overflow: hidden;
  font-size: 2rem;
}
.pub-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--star);
  background-size: 90px;
  transition: transform .8s;
}
.pub-card:hover .pub-thumb::before { transform: scale(1.2) rotate(6deg); }
.pub-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.pub-thumb > i, .pub-thumb > span { position: relative; z-index: 1; }
.pub-cb { padding: 22px; flex: 1; }
.pub-cb h3 {
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0 0 8px;
  color: var(--text);
}
.pub-cb p {
  color: var(--muted);
  font-size: .93rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-cf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
  gap: 10px;
}
.pub-cf a { color: var(--navy) !important; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* activity date strip */
.pub-act { flex-direction: row; }
.pub-date {
  width: 84px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  flex: none;
}
.pub-date b {
  font-family: Amiri, serif;
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
}
.pub-date span { font-size: .78rem; color: var(--gold); }

/* issue books */
.pub-issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 20px;
  perspective: 900px;
}
.pub-issue { text-align: center; }
.pub-book {
  width: 170px;
  height: 230px;
  margin: 0 auto 18px;
  border-radius: 5px 12px 12px 5px;
  border-inline-start: 7px solid var(--gold);
  background: linear-gradient(155deg, #1a3f8f, #071a52 75%);
  color: #fff;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  position: relative;
  box-shadow: 0 18px 36px rgba(3,10,31,.3);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
  transform-origin: center right;
  overflow: hidden;
}
[dir="ltr"] .pub-book {
  text-align: left;
  transform-origin: center left;
  border-inline-start: none;
  border-inline-end: 7px solid var(--gold);
}
.pub-book::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200,162,74,.4);
  border-radius: 3px 8px 8px 3px;
  pointer-events: none;
}
.pub-book img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.pub-book > * { position: relative; z-index: 1; }
.pub-issue:hover .pub-book {
  transform: rotateY(-18deg) translateY(-6px);
  box-shadow: -14px 26px 44px rgba(3,10,31,.38);
}
[dir="ltr"] .pub-issue:hover .pub-book {
  transform: rotateY(18deg) translateY(-6px);
  box-shadow: 14px 26px 44px rgba(3,10,31,.38);
}
.pub-book .n {
  font-family: Amiri, serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  direction: ltr;
}
.pub-book small { font-size: .74rem; color: var(--mist); line-height: 1.5; }
.pub-issue h3 { font-size: 1.15rem; margin: 0 0 4px; color: var(--text); }
.pub-issue p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }

/* panels / content cards */
.pub-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: 0 14px 36px rgba(3,10,31,.06);
}
.pub-panel h2, .pub-panel h3, .pub-panel h4 {
  color: var(--navy);
  margin-top: 0;
}
.pub-item {
  background: rgba(12,33,96,.03);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--navy);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: .3s;
}
.pub-item:hover {
  border-color: rgba(200,162,74,.45);
  transform: translateX(-4px);
  box-shadow: 0 10px 28px rgba(3,10,31,.08);
}
[dir="ltr"] .pub-item:hover { transform: translateX(4px); }
.pub-item h5 {
  font-family: Amiri, serif;
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text);
}
.pub-item p, .pub-item li { color: var(--muted); margin: 0; }
.pub-item ul { margin: 8px 0 0; padding-inline-start: 1.2rem; }
.pub-item li::marker { color: var(--gold); }

.pub-empty {
  background: rgba(12,33,96,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
}

/* layout with sidebar */
.pub-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding-top: 36px;
}
.pub-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pub-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(3,10,31,.06);
}
.pub-widget h4 {
  font-size: 1.1rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pub-side-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(12,33,96,.03);
  border: 1px solid transparent;
  margin-bottom: 8px;
  transition: .25s;
}
.pub-side-link:hover {
  border-color: rgba(200,162,74,.4);
  transform: translateX(-3px);
}
.pub-side-link strong {
  display: block;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.45;
}
.pub-side-link span { font-size: .78rem; color: var(--muted); }

/* article list rows */
.pub-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  transition: .3s;
}
.pub-article:hover {
  transform: translateY(-4px);
  border-color: rgba(200,162,74,.4);
  box-shadow: 0 16px 36px rgba(3,10,31,.1);
}
.pub-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--deep));
  color: var(--gold);
  font-family: Amiri, serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.pub-article h3 {
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0 0 8px;
  color: var(--text);
}
.pub-article h3 a:hover { color: var(--navy); }
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.pub-meta a { color: var(--navy); font-weight: 600; }
.pub-abstract {
  color: var(--muted);
  font-size: .93rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.pub-issue-word {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: 0 14px 36px rgba(3,10,31,.07);
  border-inline-start: 5px solid var(--gold);
}
.pub-issue-word h2 {
  font-family: Amiri, 'Times New Roman', serif;
  font-size: 1.85rem;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.35;
}
.pub-issue-word-body {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.95;
  white-space: pre-wrap;
}
.pub-kw {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(12,33,96,.06);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  margin: 2px;
}

/* detail content */
.pub-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 16px 40px rgba(3,10,31,.07);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.pub-content img.cover {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
}
.pub-body {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--text);
}
.pub-body h2, .pub-body h3 { color: var(--navy); margin-top: 1.4em; }
.pub-info {
  background: rgba(12,33,96,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.pub-info strong { color: var(--navy); display: block; margin-bottom: 4px; }

.pub-abstract-box {
  background: linear-gradient(150deg, rgba(12,33,96,.04), rgba(200,162,74,.06));
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--navy);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
}
.pub-abstract-box h5 {
  font-family: Amiri, serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 12px;
}

.pub-cta {
  margin-top: 48px;
  border-radius: 26px;
  padding: 42px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--navy), var(--deep));
  position: relative;
  overflow: hidden;
}
.pub-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--star);
  background-size: 110px;
}
.pub-cta > * { position: relative; }
.pub-cta h2 { color: #fff; margin: 0 0 8px; font-size: 2rem; }
.pub-cta p { color: #cdd8f2; margin-bottom: 20px; }
.pub-cta .pub-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* editorial board roster */
.board-list { margin-top: 8px; }
.board-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: 0; padding-bottom: 0; }
.board-person { min-width: 0; }
.board-person h5 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--text);
}
.board-aff { color: var(--muted); font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; font-size: .95rem; font-weight: 500; }
.board-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(12, 33, 96, .45);
  min-width: 24px;
  transform: translateY(-6px);
}
.board-role {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .board-row { flex-wrap: wrap; gap: 4px 10px; }
  .board-dots { display: none; }
  .board-role { width: 100%; color: var(--gold); }
}

/* reveal */
.pub-rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s, transform .75s cubic-bezier(.2,.7,.2,1);
}
.pub-rv.in { opacity: 1; transform: none; }

@media (max-width: 992px) {
  .pub-layout { grid-template-columns: 1fr; }
  .pub-grid, .pub-issues { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pub-grid, .pub-grid-2, .pub-issues { grid-template-columns: 1fr; }
  .pub-hero { padding: 40px 0 48px; }
  .pub-content { padding: 24px 18px; }
  .pub-cta { padding: 32px 20px; }
  .pub-article { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-page *, .pub-page *::before, .pub-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .pub-rv { opacity: 1; transform: none; }
}
