:root {
  --ff-head: "Libre Baskerville", serif;
  --ff-body: "Inter", "Almarai", sans-serif;

  --bg: #ffffff;
  --fg: #101425;
  --muted: rgba(16, 20, 37, 0.68);
  --surface: #f5f7fb;
  --card: #ffffff;
  --card-border: rgba(16, 20, 37, 0.08);
  --accent: #1154b5;
  --accent-dark: #0d4596;
  --gradient-hero: linear-gradient(135deg, #091739 0%, #0c2f74 45%, #1347c3 100%);
}

[data-theme="dark"] {
  --bg: #05080f;
  --fg: #edf2ff;
  --muted: rgba(224, 231, 255, 0.7);
  --surface: #0e1524;
  --card: #121c30;
  --card-border: rgba(237, 242, 255, 0.08);
  --accent: #5b8dff;
  --accent-dark: #3f6de0;
  --gradient-hero: linear-gradient(135deg, #040915 0%, #0b1a3d 45%, #1f49a5 100%);
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--ff-body); line-height: 1.7; }
h1, h2, h3 { font-family: var(--ff-head); color: var(--fg); }
a { text-decoration: none; color: inherit; }

.container { width: min(1180px, 90%); margin: 0 auto; }

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 22px 44px -34px rgba(17, 84, 181, 0.85); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
[data-theme="dark"] .btn-outline {
  border-color: rgba(91, 141, 255, 0.55);
  color: #dde6ff;
}

.leader-page { background: var(--bg); color: var(--fg); }

/* Hero ------------------------------------------------------ */
.leader-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(5rem, 10vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.leader-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(91, 141, 255, 0.24), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.hero-portrait { justify-self: center; }
.portrait-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 35px 80px -42px rgba(5, 12, 32, 0.85);
  width: min(420px, 70vw);
  aspect-ratio: 4 / 5;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 21, 48, 0) 45%, rgba(6, 14, 35, 0.55) 100%);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-info { display: grid; gap: 1.3rem; }
.hero-role { font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.75; font-weight: 700; }
.hero-info h1 { margin: 0; font-size: clamp(2.4rem, 3vw + 1rem, 3.2rem); line-height: 1.1; }
.hero-summary { margin: 0; font-size: clamp(1.05rem, 1.1vw + 0.95rem, 1.25rem); opacity: 0.92; }

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.hero-meta li { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.95rem; }
.hero-meta strong { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.78; }
.hero-meta span { font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { width: min(360px, 80vw); }
  .btn-outline { justify-content: center; }
}

/* Body ------------------------------------------------------ */
.leader-body { background: var(--surface); padding: clamp(4rem, 7vw, 5.5rem) 0; }
.leader-content-grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.content-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 24px 60px -38px rgba(9, 27, 66, 0.35);
  display: grid;
  gap: 0.9rem;
}
.content-card h2 { margin: 0; font-size: 1.35rem; }
.content-card p { margin: 0; color: var(--muted); }

.bullet-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.bullet-grid li { position: relative; padding-left: 1.8rem; color: var(--muted); }
.bullet-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(17, 84, 181, 0.12);
}

.mini-timeline {
  display: grid;
  gap: 1.2rem;
}
.mini-timeline__item {
  position: relative;
  padding-left: 2.4rem;
}
.mini-timeline__item::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(17, 84, 181, 0.5), rgba(17, 84, 181, 0));
}
.mini-timeline__item:last-child::before { bottom: 1.4rem; }
.mini-year {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.mini-timeline__item h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.mini-timeline__item p { margin: 0; color: var(--muted); }

.content-quote {
  background: var(--gradient-hero);
  color: #fff;
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: 0 30px 70px -38px rgba(5, 12, 32, 0.65);
  position: relative;
  overflow: hidden;
}
.content-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}
.content-quote blockquote { margin: 0; font-size: clamp(1.4rem, 2vw + 1rem, 1.8rem); line-height: 1.4; font-style: italic; }
.content-quote cite { margin-top: 1rem; display: block; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }

/* Related --------------------------------------------------- */
.leader-related { padding: clamp(4rem, 7vw, 5.5rem) 0; }
.leader-related__grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.related-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 24px 60px -38px rgba(9, 27, 66, 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: grid;
}
.related-card:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -38px rgba(9, 27, 66, 0.45); }
.related-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.related-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.related-card:hover img { transform: scale(1.08); }
.related-body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: 0.45rem; }
.related-role { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.related-body h3 { margin: 0; font-size: 1.1rem; }
.related-body p { margin: 0; color: var(--muted); }

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-outline { justify-content: center; }
}

