/* =========================================================
   Elshorfa / Markaz Al-Arab Library — Design System
   RTL Arabic library website
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Cairo:wght@600;700;800;900&display=swap');

/* ---------- Tokens ---------- */
:root {
  --navy-950: #080d20;
  --navy-900: #0c1330;
  --navy-800: #101a3d;
  --navy-700: #16224d;
  --navy-600: #1d2c5e;

  --royal: #24347e;
  --royal-600: #2b3d92;
  --royal-700: #1e2c6e;

  --gold: #c9973b;
  --gold-2: #e6bd5b;
  --gold-grad: linear-gradient(135deg, #e9c163 0%, #c68a2e 100%);

  --ink: #1a2033;
  --body: #4b5266;
  --muted: #8a90a2;
  --line: #e7e9f0;
  --line-2: #eef0f6;

  --surface: #ffffff;
  --surface-2: #f5f6fb;
  --surface-3: #eef1f8;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(16, 26, 61, .06);
  --shadow: 0 12px 30px rgba(16, 26, 61, .10);
  --shadow-lg: 0 24px 60px rgba(12, 19, 48, .18);

  --container: 1200px;
  --font: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-display: 'Cairo', 'Tajawal', sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.35; font-weight: 800; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.center { text-align: center; }

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.eyebrow::after { content: "◂"; font-size: .8rem; }

.section-head { max-width: 720px; margin-inline: auto; margin-bottom: 40px; }
.section-head--start { margin-inline: 0; text-align: right; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; }
.section-sub { color: var(--muted); margin-top: 10px; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: #2a1e05; box-shadow: 0 10px 22px rgba(198, 138, 46, .35); }
.btn-royal { background: var(--royal); color: #fff; }
.btn-royal:hover { background: var(--royal-600); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-outline-dark { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost { color: var(--ink); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.stuck { background: rgba(10, 16, 40, .95); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 6px 14px 6px 18px; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(8,13,32,.18);
}
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-grad);
  display: grid; place-items: center; font-size: 1.25rem; color: #2a1e05;
}
.brand__logo { height: 48px; width: auto; display: block; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: .5px; color: var(--navy-900); }
.brand__name small { display: block; font-size: .58rem; font-weight: 700; color: var(--gold); letter-spacing: 3px; }
/* dark-footer variant keeps the old look */
.site-footer .brand { background: transparent; padding: 0; box-shadow: none; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name small { color: var(--gold-2); }

.nav__menu {
  display: flex; align-items: center; gap: 2px;
  background: #fff; padding: 6px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(8,13,32,.18);
}
.nav__menu a {
  color: #3d4460; padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; transition: .2s;
}
.nav__menu a:hover { color: var(--navy-900); background: var(--surface-2); }
.nav__menu a.active { background: var(--royal); color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: #1E236D; border: 2px solid rgba(255,255,255,.85);
  transition: .2s;
}
.icon-btn svg { display: block; }
.icon-btn:hover { background: var(--royal); }
#search-toggle svg { width: 18px; height: 18px; }        /* slightly smaller magnifier */
.nav__toggle { display: none; }
.nav__toggle svg { width: 24px; height: 24px; }          /* burger lines fill the circle, perfectly centred */

/* ---------- Hero (generic dark) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,13,32,.96) 0%, rgba(8,13,32,.82) 45%, rgba(8,13,32,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; }

/* Placeholder image utility (gradient tiles) */
.ph {
  background: linear-gradient(135deg, #1b2b57, #0f1a3d);
  position: relative; overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.6); font-size: .8rem; text-align: center; padding: 10px;
  font-family: var(--font-display); font-weight: 700;
}
.ph-book { background: linear-gradient(160deg, #2b4a7e 0%, #16264d 60%, #0e1a38 100%); }
.ph-photo { background: linear-gradient(135deg, #35507e, #1a2748); }
.ph-cover { background: linear-gradient(160deg, #3a5a8c, #1d2f57); }

/* =========================================================
   HOME
   ========================================================= */
.home-hero { min-height: 640px; display: flex; align-items: center; padding-top: 110px; padding-bottom: 40px; }
.home-hero .hero__bg { background: #0a1230; }
/* darker on the right (behind the text), lighter on the left (where the books show) */
.home-hero .hero__overlay { background: linear-gradient(90deg, rgba(8,13,32,.5) 0%, rgba(8,13,32,.82) 55%, rgba(8,13,32,.96) 100%); }
.home-hero .hero__bg .collage {
  position: absolute; inset: 0; opacity: .55;
  background: url('/assets/images/hero-collage.png') center/cover no-repeat;
  transform: scaleX(-1);   /* mirror the collage so the books read from the left */
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,151,59,.16); color: var(--gold-2);
  border: 1px solid rgba(201,151,59,.35);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 22px;
}
.home-hero h1 {
  color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.3;
  max-width: 640px;
}
.home-hero h1 .accent { color: var(--gold-2); }
.home-hero p.lead { color: rgba(255,255,255,.78); max-width: 560px; margin-top: 20px; font-size: 1.05rem; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 52px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; font-weight: 900; }
.stat span { color: rgba(255,255,255,.6); font-size: .85rem; }

/* Author spotlight — text on the right, photo composition on the left */
.spotlight { background: #fff; }
.spotlight__grid { display: grid; grid-template-columns: 1fr 460px; gap: 70px; align-items: center; }

/* --- media (screen-left) --- */
.spotlight__media { position: relative; width: 420px; height: 590px; margin-inline: auto; }
.spotlight__photo {
  position: absolute; top: 0; left: 0; width: 350px; height: 480px;
  border-radius: 24px; box-shadow: 0 24px 55px rgba(12,19,48,.22); z-index: 2; overflow: hidden; border: none;
  background: url('/assets/images/thinker-bg.png') center/cover no-repeat;
}
.spotlight__photo.ph-photo { background: radial-gradient(120% 100% at 50% 0%, #2a4d88 0%, #17284e 55%, #0e1a38 100%); }
.spotlight__frame {
  position: absolute; left: 92px; top: 82px; width: 328px; height: 470px;
  background: #eef0f9; border: 1.5px solid #dcdff0; border-radius: 24px; z-index: 1;
}
.spotlight__plate {
  position: absolute; bottom: 78px; left: 112px; width: 290px; z-index: 3;
  background: #fff; border-radius: 16px; padding: 16px 22px; text-align: right;
  box-shadow: 0 18px 44px rgba(16,26,61,.14);
}
.spotlight__plate b { display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.spotlight__plate span { color: var(--muted); font-size: .88rem; }
.spotlight__accent {
  position: absolute; bottom: 8px; left: 96px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--navy-900);
  display: grid; place-items: center; background: #fff;
}
.spotlight__accent::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--navy-900); }
.spotlight__accent::after {
  content: ""; position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 300px; height: 2px; background: var(--navy-900); pointer-events: none;
}

/* --- text (screen-right) --- */
.spotlight__text h2 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 900; margin: 20px 0 18px; color: #232d55; white-space: nowrap; }
.chip-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.chip-badge .ic { color: var(--gold); }
.spotlight__lead { color: var(--body); font-size: 1.05rem; line-height: 2.1; text-align: justify; }
.quote-box {
  position: relative; background: #f6f7fa; border-radius: 14px;
  padding: 28px 40px 24px 32px; margin: 28px 0; text-align: right;
}
.quote-box::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; border-radius: 0 14px 14px 0; background: var(--gold); }
.quote-box p { color: #232d55; font-weight: 600; font-size: 1.02rem; line-height: 2; }
.quote-box cite { display: block; margin-top: 12px; color: var(--gold); font-weight: 700; font-style: normal; font-size: .88rem; }
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.attr {
  display: flex; align-items: center; gap: 12px; background: #fff;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line);
  font-size: .92rem; color: var(--ink); box-shadow: var(--shadow-sm);
}
.attr .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.attr span { flex: 1; text-align: right; }
.link-more { color: var(--royal); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.link-gold { color: var(--gold); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }

/* Filter tabs (bordered rounded rectangles, like the Figma) */
.tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.tabs--end { justify-content: flex-end; }
.tabs--start { justify-content: flex-start; }
.tab {
  padding: 11px 26px; border-radius: 10px; background: #fff;
  color: #3d4460; font-weight: 700; font-size: .92rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: .2s;
}
.tab:hover { border-color: var(--royal); color: var(--royal); }
.tab.active { background: var(--royal); border-color: var(--royal); color: #fff; }

/* Section header with action */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }

/* Magazines — two equal-height columns:
   right = header + tabs + featured card, left = view-all + 6-mag grid */
.mag-layout { display: grid; grid-template-columns: 560px 1fr; gap: 60px; align-items: stretch; }
.mag-col { display: flex; flex-direction: column; }
.mag-col--grid .section-head--start { margin-bottom: 20px; }
.mag-col--grid .tabs { margin-bottom: 30px; }
.mag-col__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mag-col--grid .mag-grid { flex: 1; align-content: space-between; }
.mag-col--grid .mag-card__cover { aspect-ratio: 3/4.25; }
/* featured card: light rounded card with corner ribbon, stretches to column bottom */
.mag-feature__info {
  position: relative; overflow: hidden; text-align: center;
  background: #f3f5fa; border-radius: 20px; padding: 48px 44px 28px;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
}
.mag-feature__info .dots { margin-top: auto; padding-top: 18px; }
.ribbon {
  position: absolute; top: 36px; left: -46px; z-index: 2;
  transform: rotate(-45deg); width: 200px; text-align: center;
  background: var(--royal); color: #fff; letter-spacing: 1px;
  padding: 8px 0; font-size: .8rem; font-weight: 800; box-shadow: 0 4px 12px rgba(12,19,48,.25);
}
.mag-feature__coverwrap {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.mag-feature__cover {
  height: 100%; min-height: 420px; max-height: 620px;
  aspect-ratio: 3/4.2; width: auto; max-width: 100%;
  border-radius: 10px; box-shadow: var(--shadow);
}
.mag-feature__info h3 { font-size: 1.4rem; margin-top: 22px; }
.mag-feature__meta { color: var(--body); font-weight: 600; font-size: .95rem; margin-top: 4px; }
.mag-feature__desc { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.mag-feature__actions { display: flex; gap: 14px; margin-top: 20px; }
.mag-feature__actions .btn { flex: 1; border-radius: 10px; padding-block: 14px; }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.mag-card { background: transparent; }
.mag-card__cover { aspect-ratio: 3/4.25; height: auto !important; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: .2s; }
.mag-card:hover .mag-card__cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mag-card__body { padding: 10px 2px 0; text-align: center; }
.mag-card__title { font-weight: 700; color: var(--ink); font-size: .88rem; line-height: 1.65; }
.mag-card__meta { display: flex; gap: 8px; justify-content: center; color: var(--muted); font-size: .76rem; margin-top: 5px; }

/* Books carousel — white section like the Figma */
.books-section { background: #fff; }
.carousel { position: relative; }
.carousel__track { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 24px; scrollbar-width: none; justify-content: flex-start; }
.carousel.is-static .carousel__track { justify-content: center; }
.carousel__track::-webkit-scrollbar { display: none; }
.arrows[hidden] { display: none; }
.book-cover {
  flex: none; width: 190px;
}
.book-cover .cover {
  aspect-ratio: 3/4.3; border-radius: 8px; box-shadow: var(--shadow-lg);
  transform: perspective(800px) rotateY(6deg); transition: .3s;
}
.book-cover:hover .cover { transform: perspective(800px) rotateY(0); }
.carousel__nav { position: absolute; top: 40%; display: flex; width: 100%; justify-content: space-between; pointer-events: none; }
.carousel__nav button {
  pointer-events: all; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow);
}

/* Authors grid (dark) */
.authors-section { background: var(--navy-900); color: #fff; }
.authors-section .section-title { color: #fff; }
.authors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.author-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 22px 14px; text-align: center; transition: .2s;
}
.author-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.author-card .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; }
.author-card h4 { color: #fff; font-size: 1rem; }
.author-card span { color: rgba(255,255,255,.55); font-size: .8rem; }

/* Seminars — header right + tabs left on one row, two equal-height columns */
.seminars-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; margin-bottom: 44px;
}
.seminars-head .section-head--start { margin: 0; max-width: 640px; }
.seminars-head .tabs { margin: 0; }
.seminars__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: stretch; }
.seminar-list { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.seminar-item {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm);
}
.seminar-item .thumb { position: relative; aspect-ratio: 4/3.1; border-radius: 10px; overflow: hidden; }
.seminar-item .tag { color: var(--gold); font-weight: 700; font-size: .78rem; }
.seminar-item h4 { color: var(--ink); font-size: 1rem; margin: 4px 0; }
.seminar-item p { font-size: .82rem; color: var(--muted); }
.seminar-video {
  position: relative; border-radius: 18px; overflow: hidden;
  height: 100%; min-height: 540px; box-shadow: var(--shadow);
}
.play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold-grad); display: grid; place-items: center; color: #2a1e05; font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 2;
}
.mini-play {
  position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-grad); display: grid; place-items: center; color: #2a1e05; font-size: .7rem; z-index: 2;
}
.time-badge {
  position: absolute; bottom: 12px; inset-inline-start: 14px; z-index: 2;
  background: rgba(9,14,32,.78); color: #fff; padding: 3px 12px; border-radius: 7px;
  font-size: .75rem; font-weight: 600;
}
/* caption overlay on the featured video (keeps column heights untouched) */
.seminar-video .time-badge { bottom: auto; top: 16px; }
.video-caption {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 90px 30px 26px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,11,26,.55) 40%, rgba(7,11,26,.92) 100%);
}
.video-caption .tag { color: var(--gold-2); font-weight: 700; font-size: .8rem; }
.video-caption h4 { color: #fff; font-size: 1.2rem; margin: 8px 0 8px; line-height: 1.7; }
.video-caption p { color: rgba(255,255,255,.72); font-size: .88rem; max-width: 560px; line-height: 1.9; }
.seminar-item .thumb .time-badge { bottom: 8px; inset-inline-start: 8px; padding: 2px 8px; font-size: .66rem; }

/* Testimonials */
.testimonials { background: var(--paper); }
.testi-track { padding-bottom: 44px; }        /* room for the overhanging avatar */
.testi-card {
  flex: 0 0 calc((100% - 2 * 26px) / 3); max-width: calc((100% - 2 * 26px) / 3);
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 30px 30px 26px;
  box-shadow: 0 10px 30px rgba(20,30,70,.06); position: relative; margin: 0;
}
.testi-card .qmark { color: var(--gold); opacity: .5; font-size: 2.6rem; line-height: .6; font-family: Georgia, serif; display: block; margin-bottom: 8px; }
.testi-card blockquote { color: var(--muted); margin: 0; line-height: 2; font-size: .95rem; }
.testi-author { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; }
.testi-meta b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 1px; }
.testi-meta span { color: var(--muted); font-size: .82rem; }
.testi-avatar {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--navy-800); box-shadow: 0 6px 18px rgba(20,30,70,.18);
  margin-bottom: -46px;              /* hang below the card edge, like the Figma */
}
.testi-avatar--ph { display: grid; place-items: center; background: var(--navy-800); color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; }
@media (max-width: 992px) { .testi-card { flex-basis: calc((100% - 26px) / 2); max-width: calc((100% - 26px) / 2); } }
@media (max-width: 640px) { .testi-card { flex-basis: 88%; max-width: 88%; } }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: .2s; font-size: 1.1rem; }
.arrows button:hover:not(.is-off) { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.arrows button.is-off { opacity: .35; }

/* News & articles — featured dark card left + 2x2 small cards right */
.news-layout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: stretch; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__img { position: relative; aspect-ratio: 16/8.6; }
.cat-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  background: var(--royal); color: #fff; padding: 4px 12px; border-radius: 7px;
  font-size: .7rem; font-weight: 700;
}
.news-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card__body h4 { color: #232d55; font-size: .98rem; line-height: 1.7; }
.news-card__body p { color: var(--muted); font-size: .8rem; line-height: 1.8; margin-top: 8px; }
.news-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .74rem; margin-top: auto; padding-top: 12px; }

.news-featured {
  position: relative; background: linear-gradient(180deg, #1d2a5e 0%, #131c42 60%, #0e1533 100%);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; color: #fff;
}
.news-featured__img { flex: 1; min-height: 260px; }
.news-featured__body { padding: 26px 28px 24px; display: flex; flex-direction: column; }
.cat-pill {
  align-self: flex-start; background: var(--royal); color: #fff;
  padding: 5px 14px; border-radius: 8px; font-size: .74rem; font-weight: 700; margin-bottom: 14px;
}
.news-featured__body h3 { color: #fff; font-size: 1.45rem; line-height: 1.75; font-weight: 900; }
.news-featured__body p { color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.9; margin-top: 12px; }
.news-featured .news-meta { color: rgba(255,255,255,.55); padding-top: 20px; }

/* Single post (blog) & single video — design-system derived */
.detail-hero.post-hero { padding-top: 130px; padding-bottom: 160px; }
.post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 18px;
}
.post-meta .sep { opacity: .5; }
.overlap-up { position: relative; z-index: 5; margin-top: -90px; }
.post-cover { border-radius: 20px; aspect-ratio: 16/7; box-shadow: var(--shadow-lg); }
.prose { max-width: 800px; margin-inline: auto; }
.prose p { margin-bottom: 20px; line-height: 2.15; color: var(--body); text-align: justify; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 14px; color: #232d55; }
.prose .check-list { margin-bottom: 20px; }
.post-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-pill--light {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  padding: 5px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.post-foot {
  max-width: 800px; margin-inline: auto; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px;
}
.share-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.share-row a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.share-row a:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.video-single {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/8; box-shadow: var(--shadow-lg);
}

/* Event single: highlighted info card overlapping the image bottom */
.event-info-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 980px; margin: -62px auto 0; position: relative; z-index: 5;
  overflow: hidden;
}
.eic-item { display: flex; align-items: center; gap: 14px; padding: 26px 28px; border-inline-start: 1px solid var(--line-2); }
.eic-item:first-child { border-inline-start: none; }
.eic-item .ic {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  background: rgba(201,151,59,.13); color: var(--gold);
  display: grid; place-items: center; font-size: 1.25rem;
}
.eic-item small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 2px; }
.eic-item b { color: #232d55; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; }
@media (max-width: 768px) {
  .event-info-card { margin-top: -30px; }
  .eic-item { border-inline-start: none; border-top: 1px solid var(--line-2); padding: 18px 22px; }
  .eic-item:first-child { border-top: none; }
}
/* Video cards grid (media center + related videos) */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow-sm); transition: .2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; display: block; }
.video-card .tag { color: var(--gold); font-weight: 700; font-size: .78rem; display: block; margin-top: 12px; }
.video-card h4 { color: var(--ink); font-size: 1rem; margin: 4px 0; line-height: 1.7; }
.video-card p { font-size: .82rem; color: var(--muted); line-height: 1.8; }

/* =========================================================
   MAIN FOOTER (unified — العرب بوك design)
   ========================================================= */
.footer-main { background: #160F33; color: rgba(255,255,255,.78); position: relative; }
.footer-main .container { position: relative; z-index: 1; }

/* Subscribe card zone: top half sits on the page's last section,
   bottom half on the footer — exact 50/50 at any card height */
.fm-sub-zone {
  background: linear-gradient(180deg, transparent 50%, #160F33 50%);
  margin-top: 90px;
}
.fm-sub {
  background: #3D3D67; border-radius: 24px; padding: 34px 46px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  position: relative; z-index: 2;
  box-shadow: 0 24px 60px rgba(10, 14, 40, .35);
}
.fm-sub h4 { color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.fm-sub__social { display: flex; flex-direction: column; gap: 18px; }
.fm-socials { display: flex; gap: 14px; }
.fm-socials a {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85); color: #fff;
  display: grid; place-items: center; transition: .2s;
}
.fm-socials a svg { width: 20px; height: 20px; fill: #fff; }
.fm-socials a:hover { background: var(--gold-grad); border-color: transparent; }
.fm-socials a:hover svg { fill: #2a1e05; }
.fm-sub__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.14); }
.fm-sub__news { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.fm-sub__news .hint { color: rgba(255,255,255,.55); font-size: .85rem; margin-top: 6px; }
.fm-form { position: relative; }
.fm-form input {
  width: 100%; border: none; border-radius: 999px;
  background: #eef0f6; padding: 18px 26px; padding-inline-end: 26px; padding-inline-start: 170px;
  font-family: inherit; font-size: .95rem; color: var(--ink); text-align: right;
}
.fm-form input::placeholder { color: #9aa0b5; }
.fm-form button {
  position: absolute; top: 6px; bottom: 6px; inset-inline-start: 6px;
  border-radius: 999px; padding: 0 30px;
  background: var(--gold-grad); color: #2a1e05; font-weight: 800; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px;
}

/* Footer body */
.fm-grid {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 44px;
  padding: 64px 0 48px;
}
.fm-brand__head { display: flex; align-items: center; gap: 16px; }
.fm-brand__logo {
  width: 74px; height: 74px; border-radius: 16px; background: #fff; flex: none;
  display: grid; place-items: center; padding: 9px;
}
.fm-brand__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fm-brand__head b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: #fff; display: block; line-height: 1.3; }
.fm-brand__head small { color: var(--gold-2); font-weight: 700; font-size: .95rem; }
.fm-brand p { margin: 22px 0; font-size: .95rem; line-height: 2; color: rgba(255,255,255,.75); }
.fm-contact { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: #fff; font-size: .95rem; }
.fm-contact .ic { color: var(--gold-2); flex: none; }

.fm-col h5 { color: var(--gold-2); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-bottom: 22px; }
.fm-col a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: rgba(255,255,255,.82); font-size: .95rem; transition: .15s;
}
.fm-col a::before { content: "‹"; color: rgba(255,255,255,.55); font-weight: 700; }
.fm-col a:hover { color: var(--gold-2); }
.fm-col a:hover::before { color: var(--gold-2); }

/* Watermark book line-art */
.fm-watermark {
  position: absolute; bottom: 30px; right: 60px; width: 520px; max-width: 45%;
  opacity: .07; pointer-events: none; z-index: 0;
}
.fm-watermark svg { width: 100%; height: auto; stroke: #fff; }

/* Bottom bar */
.fm-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255,255,255,.65);
}
.fm-bottom .links { display: flex; align-items: center; }
.fm-bottom .links a { color: rgba(255,255,255,.75); padding: 0 18px; border-inline-start: 1px solid rgba(255,255,255,.18); }
.fm-bottom .links a:first-child { border-inline-start: none; }
.fm-bottom .links a:hover { color: var(--gold-2); }

@media (max-width: 1024px) {
  .fm-grid { grid-template-columns: 1fr 1fr; }
  .fm-sub { padding: 28px; }
}
@media (max-width: 640px) {
  .fm-grid { grid-template-columns: 1fr; }
  .fm-sub__divider { display: none; }
  .fm-form input { padding-inline-start: 26px; }
  .fm-form button { position: static; margin-top: 10px; padding: 12px 30px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.site-footer h5 { color: #fff; font-family: var(--font-display); margin-bottom: 18px; font-size: 1.05rem; }
.site-footer a { display: block; padding: 6px 0; color: rgba(255,255,255,.65); font-size: .92rem; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand p { margin: 16px 0; font-size: .92rem; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--gold-grad); color: #2a1e05; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* =========================================================
   LISTING PAGE (Books / Magazines)
   ========================================================= */
.page-hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: flex-end; padding-top: 120px; padding-bottom: 54px; }
.page-hero .hero__bg { background: #0b1330 url('/assets/images/hero-bg.png') center/cover no-repeat; }
.page-hero--books .hero__bg { background-image: url('/assets/images/hero-books.png'); }
.page-hero--magazines .hero__bg { background-image: url('/assets/images/hero-magazines.png'); }
.page-hero--media .hero__bg { background-image: url('/assets/images/hero-media.png'); }
.page-hero--news .hero__bg { background-image: url('/assets/images/hero-news.png'); }
.page-hero .hero__overlay { background: linear-gradient(0deg, rgba(8,13,32,.92) 0%, rgba(8,13,32,.45) 45%, rgba(8,13,32,.25) 100%); }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; width: 100%; }
.page-hero__text { text-align: start; max-width: 640px; order: 1; }   /* text hugs the right edge (aligned with the logo) … */
.page-hero__cta { order: 2; }                                          /* … buttons on the left */
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.15; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 560px; margin-top: 16px; line-height: 1.9; }
.page-hero__cta { display: flex; flex-direction: column; gap: 14px; flex: none; min-width: 260px; }
.page-hero__cta .btn { justify-content: center; }
@media (max-width: 768px) {
  .page-hero { min-height: 480px; text-align: center; }
  .page-hero__row { flex-direction: column; align-items: stretch; }
  .page-hero__text { text-align: center; margin-inline: auto; }
  .page-hero__cta { min-width: 0; }
}

.listing { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm);
  position: sticky; top: 90px;
}
.filters h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.filter-group { border-top: 1px solid var(--line-2); padding: 16px 0; }
.filter-group:first-of-type { border-top: none; }
.filter-group h4 { font-size: .98rem; margin-bottom: 12px; color: var(--ink); }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .9rem; color: var(--body); cursor: pointer; }
.filter-opt input { accent-color: var(--royal); width: 16px; height: 16px; }
.filter-select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--body); font-family: inherit; background: var(--surface-2); }

.listing__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.view-toggle button.active { background: var(--royal); color: #fff; }
.result-count { color: var(--muted); font-size: .9rem; }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-card__cover { aspect-ratio: 3/4.1; height: auto !important; position: relative; background: #f6f6f9; }
.book-card__cover .flag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--royal); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; }
.book-card__body { padding: 14px; }
.book-card__title { font-weight: 700; color: var(--ink); font-size: .95rem; min-height: 2.6em; }
.book-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { color: var(--royal); font-weight: 900; font-family: var(--font-display); }
.price small { color: var(--muted); font-weight: 500; }
.free { color: #1f9d67; font-weight: 800; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.pagination a.active { background: var(--royal); color: #fff; border-color: var(--royal); }

/* =========================================================
   DETAILS PAGES (book paid / book free / magazine)
   ========================================================= */
.detail-hero { position: relative; color: #fff; padding-top: 120px; padding-bottom: 56px; }
.detail-hero .hero__bg { background: #0a1230 url('/assets/images/hero-bg.png') center/cover no-repeat; }
.detail-hero__grid { display: grid; grid-template-columns: 330px 1fr; gap: 60px; align-items: center; }
.detail-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; }
.detail-hero .lead { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 2; max-width: 620px; margin-top: 14px; }
.issue-meta { color: var(--gold-2); font-weight: 700; font-size: .95rem; margin-top: 10px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag-pill {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.88); padding: 4px 14px; border-radius: 999px;
  font-size: .76rem; font-weight: 700;
}

/* 3D cover with gold panel behind */
.bookcover-3d { position: relative; padding-bottom: 26px; }
.bookcover-3d .gold-panel {
  position: absolute; bottom: 0; inset-inline-end: -22px; width: 82%; height: 46%;
  background: var(--gold-grad); border-radius: 22px; z-index: 0;
}
.bookcover-3d .cover {
  position: relative; z-index: 1; aspect-ratio: 3/4.1;
  border-radius: 14px; border: 1px solid rgba(230,189,91,.5); box-shadow: var(--shadow-lg);
}

.hero-split { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 20px 0; }
.detail-hero .author-line { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.85); }
.detail-hero .author-line .avatar,
img.avatar { width: 50px; height: 50px; min-width: 50px; max-width: 50px; min-height: 50px; max-height: 50px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); object-fit: cover; object-position: top; }
.detail-hero .author-line b { color: #fff; font-family: var(--font-display); font-size: 1.02rem; display: block; }
.detail-hero .author-line small { color: rgba(255,255,255,.6); }

.hero-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: stretch; }
.hero-bottom__side { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }

.buy-card {
  background: rgba(9,14,36,.62); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 20px; text-align: center; backdrop-filter: blur(8px);
}
.buy-card h3 { color: #fff; font-size: 1.05rem; letter-spacing: 1px; }
.buy-card .note { color: rgba(255,255,255,.6); font-size: .78rem; margin: 6px 0 14px; }
.buy-card .price-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 9px; color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; margin-bottom: 12px;
}
.buy-card .price-pill small { font-size: .85rem; color: var(--gold-2); }
.buy-card .btn { width: 100%; margin-bottom: 10px; }
.buy-card .btn:last-of-type { margin-bottom: 0; }
.card-links {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 14px; padding-top: 12px;
  font-size: .76rem; color: rgba(255,255,255,.7);
}
.card-links a:hover { color: var(--gold-2); }

.stat-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-pill {
  flex: 1; min-width: 100px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 12px 10px; text-align: center;
}
.stat-pill b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.stat-pill.gold b { color: var(--gold-2); }
.stat-pill span { color: rgba(255,255,255,.55); font-size: .7rem; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-links { display: flex; gap: 20px; margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.7); }
.hero-links a:hover { color: var(--gold-2); }

/* ---- Journey (chapters + preview) ---- */
.journey-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.col-title { font-size: 1.15rem; margin-bottom: 14px; }
.col-title--center { text-align: center; }
.toc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: .93rem;
}
.toc-num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--navy-800); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
}
.toc-more { margin-top: 18px; text-align: left; }
/* ── About page ── */
.about-intro { display: grid; grid-template-columns: 1fr 430px; gap: 70px; align-items: center; }
.about-intro__media { position: relative; margin-inline-end: 18px; }
.about-intro__frame {
  position: absolute; inset: -18px 18px 18px -18px; border: 2px solid var(--gold);
  border-radius: 26px; opacity: .55; pointer-events: none;
}
.about-intro__img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); display: block; position: relative; }
.about-intro__badge {
  position: absolute; bottom: -22px; inset-inline-start: -22px;
  background: #fff; border-radius: 18px; padding: 14px 20px; box-shadow: var(--shadow-lg);
}
.about-intro__badge img { height: 54px; display: block; }
.about-intro__years {
  position: absolute; top: 26px; inset-inline-end: -14px;
  background: var(--navy-800); color: #fff; border-radius: 14px; padding: 12px 20px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.about-intro__years b { display: block; font-family: var(--font-display); color: var(--gold); font-size: 1.35rem; line-height: 1.2; }
.about-intro__years span { font-size: .72rem; color: rgba(255,255,255,.75); }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 32px 28px 28px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: attr(data-num); position: absolute; top: 20px; inset-inline-end: 28px; inset-inline-start: auto;
  z-index: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--gold); opacity: .32; transition: .3s;
}
.about-card:hover::before { opacity: .5; }
.about-card .ac-icon, .about-card h3, .about-card p { position: relative; z-index: 1; }
.about-card::after {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), #e6c37a);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about-card:hover::after { transform: scaleX(1); }
.about-card .ac-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(201,151,59,.13); color: var(--gold);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
  transition: background .3s, transform .3s;
}
.about-card:hover .ac-icon { background: linear-gradient(135deg, #a87c2a, var(--gold)); transform: scale(1.06); }
.about-card h3 { font-family: var(--font-display); color: var(--ink); font-size: 1.12rem; margin-bottom: 10px; }
.about-card p { color: var(--muted); font-size: .9rem; line-height: 1.95; margin: 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm-card { background: var(--navy-800); color: #fff; border-radius: 20px; padding: 42px 40px; position: relative; overflow: hidden; }
.vm-card::before {
  content: '❝'; position: absolute; bottom: -34px; inset-inline-start: 14px;
  font-size: 9rem; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none;
}
.vm-card::after {
  content: ''; position: absolute; top: -60px; inset-inline-end: -60px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 70%); pointer-events: none;
}
.vm-card--gold { background: linear-gradient(135deg, #a87c2a, var(--gold)); }
.vm-card .vm-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.14);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px;
}
.vm-card h3 { font-family: var(--font-display); color: #fff; font-size: 1.4rem; margin-bottom: 12px; position: relative; padding-bottom: 12px; z-index: 1; }
.vm-card .vm-icon, .vm-card p { position: relative; z-index: 1; }
.vm-card h3::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--gold); }
.vm-card--gold h3::after { background: #fff; }
.vm-card p { color: rgba(255,255,255,.9); line-height: 2.05; margin: 0; font-size: .95rem; position: relative; }
.values-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 900px; margin-inline: auto; }
.value-pill {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 13px 26px; font-weight: 700; color: var(--ink); font-size: .92rem; box-shadow: var(--shadow);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.value-pill:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); transform: translateY(-3px); }
.value-pill .ok { color: var(--gold); }
.about-closing {
  background: var(--navy-800); color: #fff; border-radius: 22px; padding: 52px 56px; text-align: center;
  position: relative; overflow: hidden;
}
.about-closing::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/hero-collage.png') center/cover no-repeat; opacity: .12;
}
.about-closing p { position: relative; max-width: 820px; margin-inline: auto; font-size: 1.12rem; line-height: 2.1; color: rgba(255,255,255,.92); }
.about-closing strong { color: var(--gold); }
.about-closing .hero-actions { position: relative; }
@media (max-width: 992px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .about-cards { grid-template-columns: 1fr; } .about-closing { padding: 36px 24px; } }

/* ── Search overlay ── */
.search-overlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(10,15,38,.82);
  backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 18vh 20px 0;
}
.search-overlay[hidden] { display: none; }
.search-overlay__box { width: 100%; max-width: 640px; animation: searchDrop .25s ease; }
@keyframes searchDrop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.search-overlay__form {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px;
  padding: 10px 10px 10px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  flex-direction: row-reverse;
}
.search-overlay__form input {
  flex: 1; border: none; outline: none; font-family: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; padding: 10px 4px;
}
.search-overlay__hint { text-align: center; color: rgba(255,255,255,.55); font-size: .8rem; margin-top: 14px; }
/* live search dropdown */
.search-live { margin-top: 14px; }
.search-live.open { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.search-live .ls-loading, .search-live .ls-empty { padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.search-live .ls-list { max-height: 52vh; overflow-y: auto; }
.search-live .ls-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); transition: background .15s; }
.search-live .ls-item:hover { background: var(--paper); }
.search-live .ls-item img, .search-live .ls-item .ls-ph { width: 42px; height: 52px; object-fit: cover; border-radius: 7px; flex: none; }
.search-live .ls-item .ls-ph { display: grid; place-items: center; background: var(--paper); font-size: 1.2rem; }
.search-live .ls-txt b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.4; }
.search-live .ls-txt small { color: var(--gold); font-size: .74rem; }
.search-live .ls-all { display: block; text-align: center; padding: 13px; font-weight: 700; color: var(--royal); background: var(--paper); }
.search-live .ls-all:hover { background: #eef0f6; }

/* ── Search page ── */
.search-page-form {
  display: flex; gap: 12px; max-width: 560px; margin: 26px auto 0; background: #fff;
  border-radius: 14px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-lg); flex-direction: row-reverse;
}
.search-page-form input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 1rem; color: var(--ink); background: transparent; text-align: start; }
.search-empty { text-align: center; max-width: 520px; margin-inline: auto; padding: 30px 0 10px; }
.search-empty .se-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.search-empty h2 { font-family: var(--font-display); color: var(--ink); margin-bottom: 10px; }
.search-empty p { color: var(--muted); line-height: 1.9; }
.search-group { margin-bottom: 40px; }
.sg-title { font-family: var(--font-display); color: var(--ink); font-size: 1.2rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sg-title small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg-item {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 14px; padding: 14px 18px; color: inherit; transition: .25s; box-shadow: var(--shadow);
}
.sg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.sg-item img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.sg-item .sg-ph { width: 56px; height: 72px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.sg-item b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.sg-item p { color: var(--muted); font-size: .8rem; line-height: 1.7; margin: 0; }
.sg-item .sg-arrow { margin-inline-start: auto; color: var(--gold); font-weight: 700; flex: none; }
@media (max-width: 768px) { .sg-grid { grid-template-columns: 1fr; } }

/* ── Clickable category badges + related-carousel tabs ── */
a.tag-pill--link { text-decoration: none; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
a.tag-pill--link:hover { background: var(--gold); color: #2a1e05; border-color: var(--gold); }
.rel-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; }
.rel-tab {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 8px 20px; font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: .2s;
}
.rel-tab:hover { border-color: var(--gold); color: var(--gold); }
.rel-tab.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.carousel__track { transition: opacity .2s; }
.carousel-empty { padding: 40px 10px; color: var(--muted); text-align: center; width: 100%; }

/* ── Section separator ── */
.section-sep { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 0 0 44px; }

/* ── 404 page ── */
.nf-code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); margin-bottom: 6px; position: relative;
}
.nf-links { margin-top: 30px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.nf-links span { color: rgba(255,255,255,.5); font-size: .85rem; }
.nf-links a { color: rgba(255,255,255,.85); font-size: .88rem; border-bottom: 1px dashed rgba(255,255,255,.35); padding-bottom: 2px; }
.nf-links a:hover { color: var(--gold); border-color: var(--gold); }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform-field { display: flex; flex-direction: column; gap: 7px; }
.cform-field label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.cform-field label .req { color: var(--gold); }
.cform-field label .opt { color: var(--muted); font-weight: 400; font-size: .78rem; }
.cform-field input, .cform-field textarea {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px;
  font-family: inherit; font-size: .92rem; color: var(--ink); background: #fafafa;
  transition: border-color .2s, background .2s;
}
.cform-field input:focus, .cform-field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.cform-field textarea { resize: vertical; min-height: 130px; }
.form-note { border-radius: 10px; padding: 14px 18px; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.form-note--ok  { background: #ecf8ef; color: #1d7a3a; border: 1px solid #bfe5c9; }
.form-note--err { background: #fdeeee; color: #b3261e; border: 1px solid #f2c4c1; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-info-box { background: var(--navy-800); color: #fff; border-radius: 18px; padding: 26px; }
.contact-info-box h4 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.ci-item { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); }
.ci-item .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(201,151,59,.18); color: var(--gold); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.ci-item small { display: block; color: rgba(255,255,255,.55); font-size: .74rem; }
.ci-item b { font-size: .92rem; }
.contact-hint { background: rgba(201,151,59,.09); border: 1px dashed var(--gold); border-radius: 14px; padding: 18px 20px; }
.contact-hint p { color: var(--muted); font-size: .85rem; line-height: 1.9; margin: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .cform-row { grid-template-columns: 1fr; } }

/* ── Legal pages ── */
.legal-prose { max-width: 820px; margin-inline: auto; }
.legal-prose h2 { margin-top: 34px; }
.legal-prose ul { padding-inline-start: 22px; }
.legal-prose li { margin-bottom: 8px; line-height: 1.9; }

.preview-book { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.preview-slider { position: relative; background: var(--navy-800); }
.preview-slider .pv-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; }
.preview-slider .pv-slide.is-on { opacity: 1; }
.pv-count { position: absolute; bottom: 12px; inset-inline-start: 14px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pager .nav-btn:disabled { opacity: .35; cursor: default; }
a.pill { text-decoration: none; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; }
.pager .nav-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.pager .pill {
  flex: 1; max-width: 320px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px; text-align: center; color: var(--ink); font-weight: 700; font-size: .88rem;
}

/* ---- About author band ---- */
.author-band {
  background: var(--surface-2); border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: 260px 1fr;
}
.author-band__photo { min-height: 260px; }
.author-band__body { padding: 32px 40px; }
.author-band__body h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.author-band__body p { font-size: .95rem; max-width: 560px; }
.author-band__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.ab-stat { text-align: center; border-inline-start: 1px solid var(--line); }
.ab-stat:first-child { border-inline-start: none; }
.ab-stat b { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-900); display: block; }
.ab-stat span { font-size: .76rem; color: var(--muted); }

/* ---- Related carousel header (right-aligned with arrows left) ---- */
.related-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }

/* ---- Team (magazine) ---- */
.team-section { background: var(--navy-900); color: #fff; }
.team-section .section-title { color: #fff; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dots span.on { background: var(--gold-2); width: 18px; border-radius: 4px; }
.dots--light span { background: #d6dae8; }
.dots--light span.on { background: var(--royal); }

/* ---- Subscribe bar ---- */
.subscribe-wrap { padding-block: 40px; }
.subscribe-bar {
  background: linear-gradient(120deg, #10193b, #1c2a55); border-radius: 18px;
  padding: 24px 32px; display: flex; gap: 28px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; color: #fff; box-shadow: var(--shadow);
}
.subscribe-bar h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.subscribe-bar .hint { color: rgba(255,255,255,.6); font-size: .78rem; }
.social-side { display: flex; align-items: center; gap: 14px; }
.social-side .socials { margin-top: 0; }
.subscribe-form { display: flex; gap: 10px; flex: 1; max-width: 500px; min-width: 260px; }
.subscribe-form input {
  flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); padding: 11px 18px; color: #fff; font-family: inherit; font-size: .88rem;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.45); }

/* ---- Light footer (inner pages) ---- */
.footer-light { background: #fff; border-top: 1px solid var(--line); padding-top: 56px; color: var(--body); }
.footer-light .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-light h5 { color: var(--ink); font-family: var(--font-display); margin-bottom: 16px; font-size: 1.02rem; }
.footer-light a { display: block; padding: 5px 0; color: var(--body); font-size: .9rem; }
.footer-light a:hover { color: var(--gold); }
.footer-light .brandline { display: flex; align-items: center; gap: 12px; }
.footer-light .brandline .mark {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gold-grad);
  display: grid; place-items: center; font-size: 1.6rem; color: #2a1e05;
}
.footer-light .brandline b { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900); display: block; }
.footer-light .brandline small { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.footer-light .about { margin: 16px 0; font-size: .9rem; max-width: 330px; }
.footer-light .contact-row { display: flex; gap: 10px; align-items: center; padding: 4px 0; font-size: .9rem; color: var(--ink); }
.footer-light .footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 0; display: flex; gap: 18px;
  justify-content: space-between; align-items: center; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
}
.footer-light .footer-bottom .links { display: flex; gap: 18px; }
.footer-light .footer-bottom a { display: inline; padding: 0; font-size: .82rem; }

.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 16px; }
.check-list li { display: flex; gap: 10px; padding: 8px 0; color: var(--ink); }
.check-list .ok { color: #1f9d67; flex: none; }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.info-box h3 { font-size: 1.2rem; margin-bottom: 16px; text-align: right; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); }
.info-row .v { color: var(--ink); font-weight: 600; text-align: left; }

/* =========================================================
   EVENTS
   ========================================================= */
.events-hero { position: relative; color: #fff; min-height: 460px; display: flex; align-items: center; padding-top: 100px; padding-bottom: 40px; }
.events-hero .hero__bg { background: #0a1230 url('/assets/images/hero-bg.png') center/cover no-repeat; }
.events-hero__grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: center; }
.calendar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar__grid span, .calendar__grid a.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .82rem; color: rgba(255,255,255,.7); }
.calendar__grid span.dow { color: var(--gold-2); font-weight: 700; font-size: .72rem; }
.calendar__grid a.cal-day:hover { background: rgba(255,255,255,.1); color: #fff; }
.calendar__grid .today { background: var(--gold-grad); color: #2a1e05 !important; font-weight: 800; box-shadow: 0 4px 14px rgba(201,151,59,.45); }
.calendar__grid a.has-event:not(.today) { color: var(--gold-2); font-weight: 700; }
.cal-dot { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); }
.calendar__grid span.muted { color: rgba(255,255,255,.25); }

.event-feature {
  position: relative; color: #fff; border-radius: 20px; overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg);
}
.event-feature .hero__bg { background: linear-gradient(120deg, #14264f, #24406f); }
.event-feature .content { position: relative; z-index: 2; padding: 34px; width: 100%; }
.event-feature h3 { color: #fff; font-size: 1.8rem; margin: 8px 0; }
.event-feature .meta { display: flex; gap: 22px; flex-wrap: wrap; color: rgba(255,255,255,.82); font-size: .9rem; margin: 14px 0 18px; }
.event-feature .meta span { display: flex; align-items: center; gap: 6px; }
.pill-gold { background: var(--gold-grad); color: #2a1e05; padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; }

.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card__media { position: relative; aspect-ratio: 16/10; }
.event-card__date { position: absolute; top: 12px; inset-inline-start: 12px; background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 12px; text-align: center; box-shadow: var(--shadow-sm); line-height: 1.1; }
.event-card__date b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--royal); }
.event-card__date span { font-size: .72rem; color: var(--muted); }
.event-card__body { padding: 16px; }
.event-card__body h4 { color: var(--ink); font-size: 1.02rem; }
.event-card__body p { font-size: .85rem; color: var(--muted); margin: 6px 0 12px; }
.event-card__foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .82rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .authors-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid, .events-grid { grid-template-columns: repeat(3, 1fr); }
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 240px 1fr; }
  .spotlight__grid, .mag-layout, .seminars__grid, .detail-hero__grid, .about-grid, .events-hero__grid, .journey-grid, .hero-bottom, .news-layout { grid-template-columns: 1fr; }
  .news-featured { min-height: 480px; }
  .author-band { grid-template-columns: 1fr; }
  .bookcover-3d { max-width: 300px; }
  .footer-light .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero__cover, .mag-feature__cover { max-width: 320px; }
  .spotlight__grid { justify-items: center; }
  .spotlight__text h2 { white-space: normal; }
}

/* =========================================================
   Mobile / tablet overhaul  (≤ 900px, ≤ 600px)
   ========================================================= */
@media (max-width: 900px) {
  /* never let anything push the page wider than the screen */
  html, body { overflow-x: hidden; max-width: 100%; }
  * { min-width: 0; }

  .section { padding-block: 52px; }
  .container { padding-inline: 18px; }

  /* ---- Header / burger ---- */
  .nav { gap: 12px; padding-block: 12px; }
  .brand { padding: 5px 12px; }
  .brand__logo { height: 38px; }
  .nav__toggle { display: grid; }
  .nav__menu {
    display: none; position: absolute; top: 68px; inset-inline: 12px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(8,13,32,.28);
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { width: 100%; color: var(--ink); font-size: .98rem; padding: 12px 16px; border-radius: 12px; }
  .nav__menu a:hover { background: var(--surface-2); }
  .nav__menu a.active { background: var(--royal); color: #fff; }

  /* ---- Generic grids → single / dual column ---- */
  .book-grid, .events-grid, .authors-grid, .mag-grid, .news-grid,
  .about-cards, .vm-grid, .sg-grid, .fm-grid { grid-template-columns: 1fr !important; }
  .values-grid { gap: 10px; }

  /* ---- Two-column layouts → stack ---- */
  .spotlight__grid, .mag-layout, .seminars__grid, .detail-hero__grid,
  .about-grid, .events-hero__grid, .journey-grid, .hero-bottom, .news-layout,
  .contact-grid, .about-intro, .page-hero__row { grid-template-columns: 1fr !important; }

  /* ---- Home hero ---- */
  .home-hero { min-height: auto; }
  .home-hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.3; }
  .hero__inner { text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__stats { justify-content: center; gap: 20px 32px; margin-top: 34px; }

  /* ---- Page heroes (books/mags/media/news/about/contact) ---- */
  .page-hero { min-height: auto; padding-top: 96px; padding-bottom: 40px; text-align: center; }
  .page-hero__row { gap: 22px; }
  .page-hero__text { text-align: center; margin-inline: auto; order: 1; }   /* title + description first … */
  .page-hero__cta { min-width: 0; order: 2; }                                /* … then the buttons */
  .page-hero__cta .btn, .page-hero .btn { width: 100%; justify-content: center; }

  /* ---- Author spotlight (home) — keep the desktop composition, scaled ---- */
  .spotlight__media { width: 100%; max-width: 300px; height: auto; aspect-ratio: 300/430; margin-inline: auto; padding-bottom: 30px; }
  .spotlight__photo { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: calc(100% - 30px); }
  .spotlight__frame { display: none; }
  .spotlight__plate {
    position: absolute; left: 50%; right: auto; bottom: 0; transform: translateX(-50%);
    width: min(84%, 300px); text-align: center; margin: 0;
  }
  .spotlight__accent { display: none; }   /* dot + line decoration is desktop-only */
  .spotlight__text h2 { white-space: normal; text-align: center; }
  .spotlight__text { text-align: center; }
  .attr-grid { grid-template-columns: 1fr; }

  /* ---- Magazines (home): section title first, then the featured card, then the grid ---- */
  .magazines .mag-col--grid { display: contents; }        /* let its children order within mag-layout */
  .magazines .mag-col__top { order: 1; }
  .magazines .mag-col--grid .section-head--start { order: 2; }
  .magazines .mag-col--featured { order: 3; }
  .magazines .mag-col--grid .tabs { order: 4; }
  .magazines .mag-col--grid .mag-grid { order: 5; }
  .mag-feature__info { width: 100%; }
  .mag-feature__coverwrap .mag-feature__cover { max-width: 260px; margin-inline: auto; }

  /* ---- Detail hero (book/magazine): title + tags + description first, cover below ---- */
  .detail-hero { text-align: center; }
  .detail-hero__grid { justify-items: center; gap: 26px; }
  .detail-hero__grid .bookcover-3d { order: 2; }         /* push the cover under the text */
  .detail-hero__grid > div:not(.bookcover-3d) { order: 1; }
  .bookcover-3d, .detail-hero__cover, .mag-feature__cover { max-width: 240px; margin-inline: auto; }
  .hero-bottom { gap: 24px; }
  .buy-card { width: 100%; }
  .author-line { justify-content: center; }
  .stat-pills { justify-content: center; }
  .tag-row { justify-content: center; }

  /* ---- Carousels: hide arrows on touch (users swipe) ---- */
  .arrows, .carousel__nav { display: none !important; }

  /* ---- Book journey / preview ---- */
  .journey-grid { gap: 34px; }

  /* ---- Event single info card ---- */
  .event-info-card { grid-template-columns: 1fr 1fr; margin-top: -30px; }

  /* ---- Listing pages: filters on top, results below ---- */
  .listing { grid-template-columns: 1fr; gap: 22px; }
  .filters { position: static; order: -1; }
  .listing__toolbar { flex-wrap: wrap; gap: 10px; }

  /* ---- Testimonials: one per view ---- */
  .testi-card { flex-basis: 86%; max-width: 86%; }

  /* ---- Related head (carousels): arrows below title ---- */
  .related-head { flex-direction: column; align-items: stretch; }
  .related-head .arrows { justify-content: flex-start; }
  .head-row { flex-direction: column; align-items: stretch; gap: 14px; }

  /* ---- Footer ---- */
  .fm-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .fm-brand { align-items: center; }
  .fm-sub { flex-direction: column; text-align: center; gap: 20px; padding: 26px 22px; }
  .fm-sub__divider { display: none; }
  .fm-sub__news form { flex-direction: column; }
  .fm-sub__news .btn, .fm-sub__news input { width: 100%; }
  .fm-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ---- Search overlay ---- */
  .search-overlay { padding-top: 12vh; }
  .search-overlay__form { flex-wrap: wrap; }
  .search-page-form { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .section { padding-block: 40px; }
  h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  .section-title { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
  .hero__stats { gap: 18px 26px; }
  .hero__stats .stat b { font-size: 1.5rem; }
  .about-cards { grid-template-columns: 1fr; }
  .event-info-card { grid-template-columns: 1fr; }
  .eic-item { border-inline-start: none; border-top: 1px solid var(--line-2); }
  .eic-item:first-child { border-top: none; }
  .values-grid { flex-direction: column; align-items: stretch; }
  .value-pill { justify-content: center; }
  .rel-tabs { justify-content: center; }
  .testi-card { flex-basis: 100%; max-width: 100%; }
  .btn { padding: 11px 20px; font-size: .9rem; }
}
