/* ==========================================================================
   Dr. Sarah AlHumoud — Executive Website
   Shared Design System
   ========================================================================== */

:root {
  /* Brand colors */
  --blue: #1F4ED8;
  --blue-dark: #16389E;
  --orange: #F7941D;
  --orange-dark: #DD7F0C;
  --light-blue: #63C5DA;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --text-dark: #0F172A;
  --text-secondary: #64748B;

  /* Tints */
  --blue-tint: rgba(31, 78, 216, 0.06);
  --blue-tint-strong: rgba(31, 78, 216, 0.1);
  --orange-tint: rgba(247, 148, 29, 0.1);
  --lightblue-tint: rgba(99, 197, 218, 0.12);
  --border: #E6EAF0;
  --border-strong: #D8DEE7;

  /* Typography */
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
  --shadow-portrait: 0 30px 60px -20px rgba(31, 78, 216, 0.22), 0 10px 24px -10px rgba(15, 23, 42, 0.1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Layout */
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

section { position: relative; }

.section-pad {
  padding: 112px 0;
}

@media (max-width: 900px) {
  .section-pad { padding: 80px 0; }
}
@media (max-width: 560px) {
  .section-pad { padding: 64px 0; }
}

.section-pad--tight { padding: 88px 0; }

/* ---------- Section header ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--orange);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-head--split .section-head { margin-bottom: 0; }

@media (max-width: 700px) {
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(247, 148, 29, 0.45);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(247, 148, 29, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-sm { padding: 11px 22px; font-size: 13.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow svg { transition: transform 0.25s ease; width: 16px; height: 16px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
}
.brand-role {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  width: 100%;
}
.nav-menu a.is-active { color: var(--blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 1180px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.is-open a { padding: 12px 0; width: 100%; }
}

@media (max-width: 480px) {
  .nav-actions .btn-primary span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 120px;
  background: var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.hero-name {
  font-size: clamp(38px, 5vw, 58px);
  margin-bottom: 14px;
}

.hero-roles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.hero-roles span {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  font-weight: 500;
}
.hero-roles span:not(:last-child) {
  color: var(--text-dark);
}

.hero-intro {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #EAF1FD 0%, #E4EEFC 100%);
  box-shadow: var(--shadow-portrait);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.portrait-frame .placeholder-icon {
  width: 88px;
  height: 88px;
  color: var(--blue);
  opacity: 0.35;
}

.portrait-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-align: center;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--lightblue-tint);
  top: -30px;
  right: -20px;
  z-index: 1;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--orange);
  opacity: 0.35;
  bottom: -20px;
  left: 0;
  z-index: 1;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-portrait { order: -1; }
  .portrait-frame { max-width: 320px; }
}

/* ---------- Action Cards ---------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.action-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue);
}
.action-icon svg { width: 24px; height: 24px; }

.action-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.action-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

@media (max-width: 980px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .action-grid { grid-template-columns: 1fr; }
}

/* ---------- Highlights ---------- */
.highlights {
  background: var(--text-dark);
  color: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}

.stat-card {
  background: #131E36;
  padding: 40px 28px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 38px);
  color: var(--white);
  margin-bottom: 8px;
}
.stat-number span { color: var(--orange); }

.stat-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}
.role-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light-blue);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Card grids (shared 3-col) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Speaking cards ---------- */
.speaking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.speaking-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  position: relative;
}
.media-placeholder svg { width: 36px; height: 36px; opacity: 0.45; }

.speaking-card .card-body { padding: 24px 24px 28px; }

.org-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.org-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.org-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.speaking-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.meta-row .country { display: flex; align-items: center; gap: 6px; font-weight: 500; }

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Course cards ---------- */
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.course-card .card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.course-card h3 { font-size: 18px; margin-bottom: 10px; }
.course-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; flex-grow: 1; }

/* ---------- Paper cards ---------- */
.paper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.paper-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.paper-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.paper-icon svg { width: 20px; height: 20px; }

.paper-card h3 {
  font-size: 17.5px;
  margin-bottom: 12px;
  flex-grow: 1;
}

.paper-meta {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.paper-meta .pub { color: var(--text-dark); font-weight: 500; }

/* ---------- Blog cards ---------- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card .card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.category-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; flex-grow: 1; }

/* ---------- Contact ---------- */
.contact-section {
  background: var(--bg);
}

.contact-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.contact-copy h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 14px; }
.contact-copy p { color: var(--text-secondary); font-size: 15.5px; max-width: 440px; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--white);
}
.contact-method:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-method .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon svg { width: 19px; height: 19px; }

.contact-method .label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.contact-method .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .contact-panel { grid-template-columns: 1fr; padding: 44px 28px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.footer-brand .brand-name { color: var(--white); font-size: 20px; }
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.footer-social a:hover { border-color: var(--orange); background: rgba(247, 148, 29, 0.1); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Shared Sub-Page Components
   ========================================================================== */

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  background: var(--bg);
  padding: 72px 0 88px;
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero-inner.center {
  margin: 0 auto;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(32px, 4.2vw, 48px);
  margin-bottom: 18px;
}

.page-hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
}

.page-hero-inner.center .page-hero-sub { margin: 0 auto; }

.page-hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-hero-inner.center .page-hero-actions { justify-content: center; }

/* ---------- Two-column profile layout ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-toc a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}
.profile-toc a:hover,
.profile-toc a.is-active {
  color: var(--blue);
  background: var(--blue-tint);
  border-left-color: var(--blue);
}

.profile-content > section + section {
  margin-top: 80px;
}

@media (max-width: 980px) {
  .profile-layout { grid-template-columns: 1fr; gap: 40px; }
  .profile-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------- Expertise / info grids ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 26px;
}
.info-card h4 {
  font-size: 16.5px;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- Timeline (leadership experience) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 40px;
  border-left: 1.5px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6.5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--blue);
}

.timeline-date {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.timeline-item h4 { font-size: 18px; margin-bottom: 4px; }
.timeline-org { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; font-weight: 500; }
.timeline-item p { font-size: 14.5px; color: var(--text-secondary); max-width: 620px; }

/* ---------- Simple list rows (awards, certs, memberships, qualifications) ---------- */
.list-rows {
  display: flex;
  flex-direction: column;
}
.list-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: none; }

.list-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-row-icon svg { width: 18px; height: 18px; }

.list-row-body h4 { font-size: 16px; margin-bottom: 4px; }
.list-row-body .meta { font-size: 13.5px; color: var(--text-secondary); }

/* ---------- Books grid ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.book-card {
  display: flex;
  flex-direction: column;
}
.book-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.book-cover svg { width: 32px; height: 32px; opacity: 0.5; }
.book-card h4 { font-size: 16px; margin-bottom: 6px; }
.book-card p { font-size: 13.5px; color: var(--text-secondary); }

@media (max-width: 700px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ---------- Download CTA banner ---------- */
.cta-banner {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 15px; }
.cta-banner .btn-primary { flex-shrink: 0; }

/* ---------- Topics grid (speaking) ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.topic-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.topic-number {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--light-blue);
  margin-bottom: 14px;
}
.topic-card h4 { font-size: 17.5px; margin-bottom: 10px; }
.topic-card p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  overflow: hidden;
}
.gallery-item svg { width: 28px; height: 28px; opacity: 0.4; }
.gallery-item:nth-child(3n+2) { background: var(--lightblue-tint); }
.gallery-item:nth-child(3n+3) { background: var(--orange-tint); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--light-blue);
  line-height: 1;
  margin-bottom: 10px;
}
.testimonial-card p.quote {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 22px;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author .name { font-size: 14px; font-weight: 600; }
.testimonial-author .role { font-size: 12.5px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .form-panel { padding: 28px 22px; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-submit-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Inquiry type tabs (contact page) ---------- */
.tab-row {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg);
  border-radius: var(--radius-full);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab-btn.is-active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

/* ---------- Filter pills (papers / courses) ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  transition: all 0.2s ease;
}
.filter-pill.is-active,
.filter-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-tint);
}

/* ---------- Publication list rows (papers page) ---------- */
.pub-list {
  display: flex;
  flex-direction: column;
}
.pub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.pub-row:first-child { padding-top: 0; }
.pub-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pub-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.pub-row h4 { font-size: 17px; margin-bottom: 8px; }
.pub-row .pub-meta { font-size: 13.5px; color: var(--text-secondary); }

@media (max-width: 640px) {
  .pub-row { grid-template-columns: 1fr; }
}

/* ---------- Search box (blog) ---------- */
.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto 48px;
}
.search-box input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  font-size: 15px;
  background: var(--white);
}
.search-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.search-box svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

/* ---------- Featured article (blog) ---------- */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 72px;
}
.featured-article .media-placeholder { aspect-ratio: auto; height: 100%; min-height: 320px; }
.featured-article .fa-body { padding: 40px; }
.featured-article h3 { font-size: 26px; margin-bottom: 16px; }
.featured-article p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 24px; }

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .media-placeholder { min-height: 220px; }
}

/* ---------- Category pills row ---------- */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

/* ---------- Newsletter CTA ---------- */
.newsletter-panel {
  background: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.newsletter-panel h3 { color: var(--white); font-size: 26px; margin-bottom: 10px; }
.newsletter-panel p { color: rgba(255,255,255,0.65); font-size: 15px; margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 14.5px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--light-blue); }

/* ---------- Who I help / overview cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card h4 { font-size: 17px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ---------- Service rows (consulting) ---------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-row:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.service-num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
}
.service-row h4 { font-size: 18px; margin-bottom: 8px; }
.service-row p { font-size: 14.5px; color: var(--text-secondary); }

/* ---------- Course category tabs ---------- */
.hidden { display: none !important; }
