/* ============ DESIGN TOKENS ============ */
:root {
  --navy: #0A1A2F;
  --navy-2: #0F2440;
  --gold: #C6A85A;
  --gold-soft: #d8be7a;
  --silver: #B0B0B0;
  --ink: #3E4651;
  --ivory: #F4F1EA;
  --white: #FFFFFF;

  --max: 1400px;
  --sidebar-w: 260px;
  --topbar-h: 64px;

  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-med:  320ms cubic-bezier(.2,.7,.3,1);

  --shadow: 0 12px 40px rgba(10,26,47,.12);
  --shadow-strong: 0 20px 60px rgba(10,26,47,.22);

  --font-ar: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", "Cairo", serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body, html[lang="tr"] body, html[lang="es"] body {
  font-family: var(--font-en);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; color: var(--navy); }

/* ============ TOPBAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(10,26,47,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198,168,90,0.25);
}
.topbar__inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
html[dir="rtl"] .brand { font-family: var(--font-display), var(--font-ar); }
.brand__mark { width: 32px; height: 32px; }

.lang-switcher {
  display: flex; gap: 6px;
  padding: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,168,90,0.3);
  border-radius: 999px;
  justify-self: center;
}
.lang-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver);
  border-radius: 999px;
  transition: all var(--t-fast);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active {
  background: var(--gold);
  color: var(--navy);
}

.menu-toggle { display: none; justify-self: end; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 4px 0;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* ============ LAYOUT ============ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
}
html[dir="rtl"] .layout { direction: rtl; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  align-self: start;
  height: calc(100vh - var(--topbar-h));
  background: var(--navy);
  color: var(--white);
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-inline-end: 1px solid rgba(198,168,90,0.15);
}
.sidenav { display: flex; flex-direction: column; padding: 0 8px; }
.sidenav__link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  transition: all var(--t-fast);
}
.sidenav__num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
  min-width: 22px;
}
.sidenav__link:hover {
  color: var(--white);
  background: rgba(198,168,90,0.08);
}
.sidenav__link.is-active {
  color: var(--white);
  background: rgba(198,168,90,0.12);
}
.sidenav__link.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 25%; bottom: 25%;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.sidenav__link--accent {
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(198,168,90,0.12), rgba(198,168,90,0.04));
  border: 1px solid rgba(198,168,90,0.3);
}
.sidenav__link--accent .sidenav__num { color: var(--gold-soft); }

.sidebar__footer { padding: 0 26px; }
.sidebar__copyright {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ============ MAIN ============ */
.main { min-width: 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: clamp(440px, 70vh, 640px);
  overflow: hidden;
  background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; }
/* Hero image: person stays visually on the right of the hero, dark empty area on the left -- regardless of text direction */
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Dark gradient from LEFT (empty navy area) fading to clear on the RIGHT (where person is). 
     Always physical left-to-right; independent of RTL/LTR. */
  background: linear-gradient(
    to right,
    rgba(10,26,47,0.99) 0%,
    rgba(10,26,47,0.985) 42%,
    rgba(10,26,47,0.88) 54%,
    rgba(10,26,47,0.5) 64%,
    rgba(10,26,47,0.15) 74%,
    rgba(10,26,47,0) 86%
  );
}

/* Hero text always pinned to the LEFT physical side of the hero (over the empty navy area).
   Uses absolute physical positioning so RTL doesn't flip it onto the photo. */
.hero__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(28px, 6vw, 72px);
  transform: translateY(-50%);
  width: min(40%, 480px);
  color: var(--white);
  text-align: left;
  direction: ltr;
}
html[dir="rtl"] .hero__content {
  direction: rtl;
  text-align: right; /* AR text reads RTL within the left-anchored block */
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  justify-content: flex-start;
}
html[dir="rtl"] .hero__eyebrow { flex-direction: row-reverse; justify-content: flex-start; }
.hero__line {
  width: 36px; height: 1px;
  background: var(--gold);
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(10,26,47,0.6);
}
html[dir="rtl"] .hero__name {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: 0;
}
.hero__title {
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.45;
  text-shadow: 0 2px 20px rgba(10,26,47,0.7);
}
.hero__subtitle {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--silver);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(10,26,47,0.7);
}
.hero__divider {
  width: 80px; height: 2px;
  background: var(--gold);
  margin: 24px 0;
}
html[dir="rtl"] .hero__divider { margin-inline-start: auto; margin-inline-end: 0; }
.hero__socials { display: flex; gap: 14px; justify-content: flex-start; }
html[dir="rtl"] .hero__socials { justify-content: flex-end; }
.hero__socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(198,168,90,0.4);
  border-radius: 50%;
  color: var(--gold);
  transition: all var(--t-fast);
}
.hero__socials a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.hero__socials svg { width: 17px; height: 17px; }

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  color: var(--white);
  border-block: 1px solid rgba(198,168,90,0.2);
}
.stat {
  padding: 28px 20px;
  text-align: center;
  border-inline-end: 1px solid rgba(255,255,255,0.06);
}
.stat:last-child { border-inline-end: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 12.5px;
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(60px, 8vw, 96px) clamp(28px, 5vw, 64px);
  background: var(--ivory);
}
.section--alt { background: var(--white); }
.section--monitors {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.section--contact { background: var(--navy); color: var(--white); }
.section--monitors h2, .section--contact h2 { color: var(--white); }

.section__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
.section__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.section__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.005em;
}
html[dir="rtl"] .section__title { font-family: var(--font-ar); }
html[dir="ltr"] .section__title { font-family: var(--font-display); font-weight: 600; }
.section__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}
html[dir="rtl"] .section__rule { background: linear-gradient(270deg, var(--gold) 0%, transparent 100%); }
.section--monitors .section__rule, .section--contact .section__rule {
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.5;
}
.section__intro {
  font-size: 16px;
  color: inherit;
  max-width: 700px;
  margin-bottom: 36px;
  opacity: 0.85;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.about-grid__lead p {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.8;
  color: var(--ink);
  max-width: 820px;
  font-weight: 400;
}
.about-grid__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}
.section--alt .card { background: var(--ivory); }
.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(198,168,90,0.3);
  display: flex; align-items: center; gap: 8px;
}
.card h3::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.card ul li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
html[dir="rtl"] .card ul li { padding: 6px 18px 6px 0; }
.card ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  width: 6px; height: 1px;
  background: var(--gold);
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(10,26,47,0.08);
  align-items: start;
}
.timeline li::before { display: none; }
.timeline li:last-child { border-bottom: 0; }
.timeline__date {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-top: 1px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(198,168,90,0.12);
  color: var(--navy);
  border: 1px solid rgba(198,168,90,0.3);
  border-radius: 999px;
}

/* ============ ELECTORAL PROGRAM — PILLARS GRID ============ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  background: var(--ivory);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 12px;
  text-align: start;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  font-family: inherit;
  color: inherit;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-med);
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198,168,90,0.5);
  box-shadow: var(--shadow);
}
.pillar-card:hover::before { transform: scaleY(1); }
.pillar-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.pillar-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(198,168,90,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(198,168,90,0.25);
}
.pillar-card__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.1);
  border-radius: 10px;
  flex-shrink: 0;
}
.pillar-card__icon svg { width: 22px; height: 22px; }
.pillar-card:hover .pillar-card__icon {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.pillar-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}
.pillar-card__tagline {
  font-size: 13.5px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}
.pillar-card__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(10,26,47,0.12);
  font-size: 12px;
  color: var(--ink);
}
.pillar-card__counts span { display: flex; align-items: baseline; gap: 6px; }
.pillar-card__counts strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  font-weight: 700;
}
.pillar-card__cta {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 6px;
  align-self: start;
  opacity: 0.9;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.pillar-card:hover .pillar-card__cta {
  opacity: 1;
  transform: translateX(2px);
}
html[dir="rtl"] .pillar-card:hover .pillar-card__cta { transform: translateX(-2px); }

/* ============ PILLAR DETAIL PANEL ============ */
.pillar-detail {
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pillar-detail::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}
.pillar-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  padding: 8px 16px;
  border: 1px solid rgba(198,168,90,0.4);
  border-radius: 999px;
  margin-bottom: 28px;
  transition: all var(--t-fast);
  cursor: pointer;
}
.pillar-detail__back:hover {
  background: var(--gold);
  color: var(--navy);
}
.pillar-detail__head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(198,168,90,0.3);
}
.pillar-detail__icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  color: var(--gold);
  background: var(--navy);
  border-radius: 14px;
}
.pillar-detail__icon svg { width: 34px; height: 34px; }
.pillar-detail__num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.pillar-detail__title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.25;
}
.pillar-detail__tagline {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  opacity: 0.85;
}

.pillar-block {
  margin-bottom: 28px;
}
.pillar-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--gold);
}
.pillar-block p {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.85;
  margin: 0 0 12px;
}
.pillar-block--summary p:first-of-type {
  font-size: 16.5px;
  color: var(--navy);
  font-weight: 500;
}
.pillar-block--vision {
  background: linear-gradient(135deg, rgba(198,168,90,0.08), rgba(198,168,90,0.02));
  border: 1px solid rgba(198,168,90,0.25);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 32px;
}
.pillar-block--vision h4 {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.pillar-block--vision p {
  font-size: 15px;
  font-style: italic;
  margin: 0;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 6px 22px;
}
.pillar-block--tracks .pillar-list,
.pillar-block--summary .pillar-list { grid-template-columns: 1fr 1fr; }
.pillar-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  border-bottom: 1px dashed rgba(10,26,47,0.08);
}
html[dir="rtl"] .pillar-list li { padding: 7px 20px 7px 0; }
.pillar-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  width: 8px; height: 1px;
  background: var(--gold);
}
.pillar-list li:last-child { border-bottom: 0; }

/* Files grid: laws / visions / plans columns */
.pillar-files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.pillar-file {
  background: var(--ivory);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 12px;
  padding: 22px 24px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pillar-file:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pillar-file header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(198,168,90,0.3);
}
.pillar-file__tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.pillar-file__count {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.pillar-file .pillar-list { grid-template-columns: 1fr; gap: 0; }
.pillar-file .pillar-list li {
  font-size: 13.5px;
  padding: 8px 0 8px 18px;
}
html[dir="rtl"] .pillar-file .pillar-list li { padding: 8px 18px 8px 0; }
.pillar-file--laws { border-top: 3px solid #8E5B3F; }
.pillar-file--visions { border-top: 3px solid var(--gold); }
.pillar-file--plans { border-top: 3px solid #4A6B8A; }

@media (max-width: 720px) {
  .pillar-block--tracks .pillar-list,
  .pillar-block--summary .pillar-list { grid-template-columns: 1fr; }
  .pillar-detail__head { flex-direction: column; gap: 14px; }
  .pillar-detail { padding: 24px 20px; }
}

/* ============ RESEARCH ============ */
.research-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(10,26,47,0.1);
}
.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.research-list { display: grid; gap: 18px; }
.research-item {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-inline-start: 3px solid var(--gold);
  border-radius: 4px;
  transition: all var(--t-fast);
}
.research-item:hover {
  background: var(--ivory);
  transform: translateX(0);
}
.research-item__meta {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.research-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.research-item p {
  font-size: 14px;
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

/* ============ ARTICLES ============ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.article-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 10px;
  transition: all var(--t-fast);
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card__date {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 16px; margin-bottom: 8px; }
.article-card p { font-size: 13.5px; color: var(--ink); margin: 0; }

/* ============ MEDIA ============ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.media-card {
  padding: 22px;
  background: var(--ivory);
  border: 1px solid rgba(198,168,90,0.25);
  border-radius: 10px;
  transition: all var(--t-fast);
}
.media-card:hover {
  background: var(--white);
  border-color: var(--gold);
}
.media-card__type {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.media-card h3 {
  font-size: 15.5px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.media-card__date {
  font-size: 12px;
  color: var(--silver);
  font-family: var(--font-display);
}

/* ============ MONITORS ============ */
.mn-intro {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 760px;
  margin: 0 0 28px;
  line-height: 1.75;
}

.mn-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
  max-width: 720px;
}
.mn-summary__item {
  padding: 18px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(198,168,90,0.25);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.mn-summary__item:hover { border-color: var(--gold); }
.mn-summary__num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.mn-summary__label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.mn-summary__item--live .mn-summary__num { color: #6FCF97; }
.mn-summary__item--stats .mn-summary__num { color: var(--gold); }
.mn-summary__item--soon .mn-summary__num { color: var(--silver); }

.mn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.mn-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(198,168,90,0.25);
  border-radius: 14px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
  text-decoration: none;
}
.mn-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0; inset-inline-start: 0;
  inline-size: 100%; block-size: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.55;
}
html[dir="rtl"] .mn-card::before {
  background: linear-gradient(270deg, var(--gold) 0%, transparent 100%);
}
.mn-card--live::before {
  background: linear-gradient(90deg, #6FCF97 0%, var(--gold) 100%);
  opacity: 0.85;
}
html[dir="rtl"] .mn-card--live::before {
  background: linear-gradient(270deg, #6FCF97 0%, var(--gold) 100%);
}
.mn-card--stats::before { opacity: 0.65; }
.mn-card--soon::before { opacity: 0.35; }

.mn-card[href]:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(198,168,90,0.08);
}

.mn-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mn-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.mn-card__category {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  text-transform: none;
}
.mn-card--live .mn-card__category { color: #6FCF97; border-color: rgba(111,207,151,0.4); }
.mn-card--stats .mn-card__category { color: var(--gold-soft); border-color: rgba(216,190,122,0.4); }
.mn-card--soon .mn-card__category { color: var(--silver); }

.mn-card__icon {
  inline-size: 48px; block-size: 48px;
  display: grid; place-items: center;
  background: rgba(198,168,90,0.14);
  color: var(--gold);
  border-radius: 12px;
  margin-block-end: 14px;
}
.mn-card__icon svg { inline-size: 28px; block-size: 28px; }
.mn-card--live .mn-card__icon {
  background: rgba(111,207,151,0.12);
  color: #6FCF97;
}

.mn-card__status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-block-end: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.mn-card__dot {
  inline-size: 8px; block-size: 8px;
  border-radius: 50%;
  background: var(--silver);
}
.mn-card--live .mn-card__dot {
  background: #6FCF97;
  box-shadow: 0 0 0 0 rgba(111,207,151,0.6);
  animation: mnPulse 2.2s ease-out infinite;
}
.mn-card--live .mn-card__status-text { color: #6FCF97; font-weight: 600; }
.mn-card--stats .mn-card__dot { background: var(--gold); }
.mn-card--stats .mn-card__status-text { color: var(--gold-soft); }

@keyframes mnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(111,207,151,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(111,207,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,207,151,0); }
}

.mn-card__title {
  font-size: 18px;
  color: var(--white);
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.35;
}
html[dir="rtl"] .mn-card__title { font-family: var(--font-ar); }
html[dir="ltr"] .mn-card__title { font-family: var(--font-display); font-weight: 600; }

.mn-card__tagline {
  font-size: 13.5px;
  color: var(--gold-soft);
  margin: 0 0 12px;
  line-height: 1.55;
  font-style: italic;
  opacity: 0.85;
}
.mn-card__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0 0 16px;
}

.mn-card__metrics {
  margin-block: 4px 18px;
  padding: 14px 14px 12px;
  background: rgba(10,26,47,0.5);
  border: 1px solid rgba(198,168,90,0.15);
  border-radius: 10px;
}
.mn-card__metrics-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-block-end: 10px;
}
html[dir="rtl"] .mn-card__metrics-label { letter-spacing: 0.02em; text-transform: none; font-size: 12px; }
.mn-card__metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.mn-metric {
  display: flex; flex-direction: column; gap: 2px;
}
.mn-metric__value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.mn-metric__label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}

.mn-card__cta {
  margin-block-start: auto;
  padding-block-start: 12px;
  border-block-start: 1px dashed rgba(198,168,90,0.2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mn-card__cta--active { color: var(--gold); }
.mn-card__cta--muted  { color: rgba(255,255,255,0.45); font-style: italic; font-weight: 500; }

@media (max-width: 720px) {
  .mn-summary { grid-template-columns: 1fr; max-width: 100%; }
  .mn-card__metrics-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ CONTACT ============ */
.contact-grid { color: var(--white); }
.contact-lead {
  font-size: 16px;
  color: var(--silver);
  margin-bottom: 12px;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
}
.contact-email:hover { color: var(--gold-soft); }
.contact-socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 760px;
}
.contact-socials a {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(198,168,90,0.25);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--silver);
  transition: all var(--t-fast);
}
.contact-socials a:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(198,168,90,0.08);
}

/* ============ FOOTER ============ */
.footer {
  padding: 24px;
  text-align: center;
  background: #06121f;
  color: rgba(255,255,255,0.5);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .hero__content { max-width: 70%; }
  .about-grid__cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - var(--topbar-h));
    transform: translateX(-105%);
    transition: transform var(--t-med);
    z-index: 90;
    box-shadow: var(--shadow-strong);
  }
  html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    transform: translateX(105%);
  }
  .sidebar.is-open { transform: translateX(0) !important; }
  .topbar__inner {
    grid-template-columns: auto 1fr auto;
    direction: ltr;
  }
  html[dir="rtl"] .topbar__inner { direction: rtl; }
  .menu-toggle { display: block; }
  .hero { height: 62vh; min-height: 460px; }
  .hero__content {
    position: absolute;
    top: auto;
    bottom: 28px;
    left: 24px;
    right: 24px;
    transform: none;
    max-width: none;
  }
  .hero__bg img { object-position: top center; }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(10,26,47,0.45) 0%, rgba(10,26,47,0.92) 65%, rgba(10,26,47,0.97) 100%);
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .topbar__inner { grid-template-columns: auto 1fr auto; }
  .lang-switcher { padding: 3px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .hero__name { font-size: 44px; }
  .section { padding: 56px 22px; }
  .section__head { gap: 10px; }
}

/* ============================================================
   CV (About section) — rich résumé block
   ============================================================ */
.cv {
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header — navy banner */
.cv__head {
  background: linear-gradient(135deg, #0a1a2f 0%, #11243f 100%);
  color: var(--white);
  padding: 32px 36px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 4px solid var(--gold);
  position: relative;
}
.cv__head::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--gold);
}
.cv__name {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  color: var(--white);
}
.cv__role {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0;
}

/* Contact strip inside header */
.cv__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  align-items: flex-end;
}
html[dir="ltr"] .cv__contact { align-items: flex-start; }
.cv__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: color var(--t-fast);
}
.cv__contact-item:hover { color: var(--gold); }
.cv__contact-item--static { cursor: default; }
.cv__contact-icon {
  width: 18px; height: 18px;
  color: var(--gold);
  display: inline-flex;
  flex-shrink: 0;
}
.cv__contact-icon svg { width: 100%; height: 100%; }

/* Sections inside CV */
.cv-section {
  padding: 28px 36px;
  border-bottom: 1px solid rgba(10,26,47,0.08);
}
.cv-section:last-child { border-bottom: none; }
.cv-section__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  letter-spacing: 0.3px;
}
.cv-section__body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 12px;
}
.cv-section__body p:last-child { margin-bottom: 0; }

/* Civic / career entries */
.cv-entries {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cv-entry {
  background: var(--ivory);
  border-radius: 10px;
  padding: 18px 22px;
  border-inline-start: 3px solid var(--navy);
}
.cv-entry__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cv-entry__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.cv-entry__date {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.6px;
  background: rgba(198,168,90,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-entry__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv-entry__points li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  text-align: justify;
}
.cv-entry__marker {
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

/* Training grid */
.cv-training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cv-train {
  background: var(--ivory);
  padding: 12px 16px;
  border-inline-end: 3px solid var(--navy);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cv-train:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cv-train__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.cv-train__org {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Section lead intro */
.section__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink);
  opacity: 0.8;
  margin: 0 0 28px;
  max-width: 760px;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 820px) {
  .cv__head {
    grid-template-columns: 1fr;
    padding: 26px 22px 22px;
    gap: 18px;
  }
  .cv__contact { align-items: flex-start; }
  html[dir="rtl"] .cv__contact { align-items: flex-end; }
  .cv-section { padding: 22px; }
  .cv-training-grid { grid-template-columns: 1fr; }
  .cv-entry { padding: 16px 18px; }
  .cv-entry__head { gap: 8px; }
}

/* ============================================================
   RESEARCH & STUDIES — axes, papers, summary strip
   ============================================================ */
.rs-intro {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 22px;
  max-width: 820px;
  line-height: 1.7;
}

/* Summary strip */
.rs-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.rs-summary__item {
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.rs-summary__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.rs-summary__item--total::before { background: var(--navy); }
.rs-summary__item--done::before { background: var(--gold); }
.rs-summary__item--wip::before { background: #B0B0B0; }
.rs-summary__num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display, inherit);
  line-height: 1;
}
.rs-summary__label {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.75;
  letter-spacing: 0.4px;
}

/* Axes */
.rs-axes {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rs-axis {
  background: var(--white);
  border: 1px solid rgba(10,26,47,0.08);
  border-radius: 14px;
  padding: 24px 26px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.rs-axis::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(198,168,90,0.2));
}
.rs-axis__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(10,26,47,0.08);
}
.rs-axis__head-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}
.rs-axis__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
}
.rs-axis__icon svg { width: 24px; height: 24px; }
.rs-axis__num {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.rs-axis__title {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}
.rs-axis__tagline {
  font-size: 13.5px;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}
.rs-axis__count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.7;
  background: var(--ivory);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Papers grid inside axis */
.rs-axis__papers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.rs-paper {
  background: var(--ivory);
  border-radius: 10px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.rs-paper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(198,168,90,0.4);
}
.rs-paper__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.rs-paper__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.rs-paper--done .rs-paper__status { color: var(--gold); }
.rs-paper--done .rs-paper__dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,168,90,0.18);
}
.rs-paper--wip .rs-paper__status { color: #8b8b8b; }
.rs-paper--wip .rs-paper__dot {
  background: #B0B0B0;
}
.rs-paper--done {
  background: #fff;
  border-color: rgba(198,168,90,0.3);
}
.rs-paper__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.45;
}
.rs-paper__subtitle {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.78;
  margin: 0;
  line-height: 1.65;
  text-align: justify;
}
.rs-paper__cta {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-top: 10px;
  border-top: 1px dashed rgba(10,26,47,0.1);
}
.rs-paper--done .rs-paper__cta {
  color: var(--gold);
  cursor: pointer;
}
.rs-paper--wip .rs-paper__cta {
  color: #9c9c9c;
}

/* Responsive */
@media (max-width: 720px) {
  .rs-summary { grid-template-columns: 1fr; }
  .rs-axis { padding: 20px; }
  .rs-axis__head { gap: 12px; }
  .rs-axis__papers { grid-template-columns: 1fr; }
  .rs-axis__icon { width: 38px; height: 38px; }
  .rs-axis__icon svg { width: 20px; height: 20px; }
}

/* ============================================================
   RESEARCH — clickable paper buttons + summary modal
   ============================================================ */

/* When a paper has a summary, render it as a real button */
button.rs-paper--clickable {
  font-family: inherit;
  color: inherit;
  text-align: inherit;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.1);
  width: 100%;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  border-radius: 12px;
}
html[dir="rtl"] button.rs-paper--clickable { text-align: right; }
html[dir="ltr"] button.rs-paper--clickable { text-align: left; }

button.rs-paper--clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(10, 26, 47, 0.32);
  border-color: rgba(198, 168, 90, 0.55);
}
button.rs-paper--clickable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button.rs-paper--clickable .rs-paper__cta {
  margin-top: auto;
}

/* ----- Modal ----- */
.rs-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: stretch;
  justify-content: center;
}
.rs-modal.is-open {
  display: flex;
  animation: rs-fade-in 0.18s ease-out;
}
@keyframes rs-fade-in { from { opacity: 0; } to { opacity: 1; } }

.rs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 47, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.rs-modal-open {
  overflow: hidden;
}

.rs-modal__panel {
  position: relative;
  z-index: 1;
  margin: 4vh auto;
  width: min(880px, calc(100% - 32px));
  max-height: 92vh;
  overflow-y: auto;
  background: #fffdf7;
  color: var(--navy);
  border-radius: 14px;
  border: 1px solid rgba(198, 168, 90, 0.32);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  padding: 36px 44px 40px;
  animation: rs-slide-up 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes rs-slide-up { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.rs-modal__close {
  position: sticky;
  top: 0;
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 26, 47, 0.06);
  border: 1px solid rgba(10, 26, 47, 0.1);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
  flex: 0 0 auto;
  z-index: 2;
}
.rs-modal__close:hover {
  background: var(--navy);
  color: #fff;
  transform: rotate(90deg);
}
.rs-modal__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rs-modal__head {
  margin-top: -38px; /* pull title up since close button takes space */
  padding-top: 14px;
  padding-inline-end: 50px; /* avoid overlap with close button */
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(10, 26, 47, 0.08);
  margin-bottom: 24px;
}
html[dir="rtl"] .rs-modal__head { padding-inline-end: 50px; padding-inline-start: 0; }

.rs-modal__tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(198, 168, 90, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.rs-modal__title {
  font-family: 'Playfair Display', 'Cairo', serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--navy);
}
html[lang="ar"] .rs-modal__title { font-family: 'Cairo', sans-serif; }
.rs-modal__subtitle {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(10, 26, 47, 0.7);
  margin: 0;
}

.rs-modal__sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rs-modal__section {
  position: relative;
}

.rs-modal__h3 {
  font-family: 'Playfair Display', 'Cairo', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(198, 168, 90, 0.4);
}
html[lang="ar"] .rs-modal__h3 { font-family: 'Cairo', sans-serif; font-size: 18px; }
.rs-modal__num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(198, 168, 90, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.rs-modal__p {
  font-size: 15px;
  line-height: 1.92;
  color: rgba(10, 26, 47, 0.85);
  margin: 0;
  text-align: justify;
}
html[lang="ar"] .rs-modal__p { font-size: 15.5px; line-height: 1.95; }

.rs-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rs-modal__list li {
  position: relative;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(10, 26, 47, 0.85);
  padding-inline-start: 22px;
}
html[lang="ar"] .rs-modal__list li { font-size: 15px; line-height: 1.9; }
.rs-modal__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.rs-modal__section--rec {
  background: linear-gradient(180deg, rgba(198, 168, 90, 0.07), rgba(198, 168, 90, 0.02));
  padding: 22px 24px 24px;
  border-radius: 10px;
  border-inline-start: 3px solid var(--gold);
}
.rs-modal__section--rec .rs-modal__h3 {
  border-bottom: none;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .rs-modal__panel {
    margin: 0 auto;
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    padding: 24px 18px 28px;
  }
  .rs-modal__head {
    margin-top: -34px;
    padding-inline-end: 48px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
  .rs-modal__sections { gap: 22px; }
  .rs-modal__h3 { font-size: 15.5px; }
  .rs-modal__p { font-size: 14.5px; line-height: 1.85; }
}
