/* ==========================================================================
   Dr. Humera Fatima — CV
   ========================================================================== */

/* ---------- Theme tokens (light) ---------- */
:root {
  --navy-900: #071526;
  --navy-800: #0b1f33;
  --navy-700: #12304d;
  --navy-600: #1b4267;
  --gold-500: #c19a5b;
  --gold-400: #d4b37a;
  --gold-300: #e6cfa3;

  --bg: #fbf9f5;
  --tint: #f3efe7;
  --surface: #ffffff;
  --chip-bg: #fbf9f5;
  --input-bg: #fbf9f5;
  --title: #0b1f33;
  --ink: #14202e;
  --ink-soft: #46546a;
  --ink-mute: #7a8698;
  --line: #e4ded2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent-soft: #f6eedf;
  --accent-strong: #9a7638;
  --teal: #2a7f86;
  --danger: #b5483d;
  --success: #2f7d5b;
  --success-bg: #eef6f1;
  --success-line: #cfe5d8;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06), 0 2px 8px rgba(11, 31, 51, 0.04);
  --shadow: 0 10px 30px -12px rgba(11, 31, 51, 0.18), 0 2px 6px rgba(11, 31, 51, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(7, 21, 38, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
  --pager-h: 112px;
}

/* ---------- Theme tokens (dark) ---------- */
:root[data-theme="dark"] {
  --bg: #060f1b;
  --tint: #091626;
  --surface: #0e1e31;
  --chip-bg: #0a1828;
  --input-bg: #0a1626;
  --title: #f4f0e8;
  --ink: #e3e8ef;
  --ink-soft: #a7b3c3;
  --ink-mute: #7e8ba0;
  --line: rgba(255, 255, 255, 0.09);
  --accent-soft: rgba(212, 179, 122, 0.12);
  --accent-strong: #e6cfa3;
  --teal: #6cc0c6;
  --danger: #ef8a7e;
  --success: #7fd1a9;
  --success-bg: rgba(127, 209, 169, 0.08);
  --success-line: rgba(127, 209, 169, 0.25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

/* Without JavaScript, follow the system setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #060f1b;
    --tint: #091626;
    --surface: #0e1e31;
    --chip-bg: #0a1828;
    --input-bg: #0a1626;
    --title: #f4f0e8;
    --ink: #e3e8ef;
    --ink-soft: #a7b3c3;
    --ink-mute: #7e8ba0;
    --line: rgba(255, 255, 255, 0.09);
    --accent-soft: rgba(212, 179, 122, 0.12);
    --accent-strong: #e6cfa3;
    --teal: #6cc0c6;
  }
}

/* Smooth cross-fade while switching theme */
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease) !important;
}

[hidden] { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--gold-300); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--gold-400); }
.eyebrow--small { font-size: 11px; margin-bottom: 8px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--title);
}
.section__title { text-wrap: balance; }
.section__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-500);
}
.section__sub {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ink-soft);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.45;
  color: var(--title);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(193, 154, 91, 0.7);
}
.btn--gold:hover { box-shadow: 0 16px 30px -12px rgba(193, 154, 91, 0.85); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn--outline {
  border-color: var(--title);
  color: var(--title);
  background: transparent;
}
.btn--outline:hover { background: var(--navy-800); color: #fff; }

.btn--block { width: 100%; padding: 17px 26px; font-size: 15px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 21, 38, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--gold-300);
}
.brand__text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav__menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav__menu a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__menu a:hover,
.nav__menu a[aria-current="page"] { color: #fff; }
.nav__menu a:hover::after,
.nav__menu a[aria-current="page"]::after { transform: scaleX(1); }

.nav__menu .nav__cta {
  padding: 10px 20px;
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  color: var(--gold-300);
}
.nav__menu .nav__cta::after { display: none; }
.nav__menu .nav__cta:hover { background: var(--gold-400); color: var(--navy-900); }

.nav__menu .nav__cta[aria-current="page"] { background: var(--gold-400); color: var(--navy-900); }

.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 22px; }
.theme-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(212, 179, 122, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-300);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.theme-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
.theme-btn:hover { background: rgba(212, 179, 122, 0.15); border-color: var(--gold-400); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 0;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(42, 127, 134, 0.32), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(193, 154, 91, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 40px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(212, 179, 122, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(212, 179, 122, 0.035), 0 0 0 140px rgba(212, 179, 122, 0.02);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 64px;
  padding-bottom: 72px;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(50px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__name em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 60%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero__creds span { white-space: nowrap; }
.hero__creds span:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--gold-400);
}
.hero__lede {
  max-width: 600px;
  margin: 24px 0 22px;
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.hero__lede strong { font-weight: 500; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__portrait {
  position: relative;
  justify-self: center;
  margin: 0;
}
.portrait {
  position: relative;
  width: 310px;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 26px 26px;
  padding: 10px;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-500) 45%, rgba(193, 154, 91, 0.2));
  box-shadow: var(--shadow-lg);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(212, 179, 122, 0.3);
  border-radius: 999px 999px 36px 36px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 999px 999px 18px 18px;
  background: #091a2c;
}
.portrait__badge {
  position: absolute;
  left: -46px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--title);
}
.portrait__badge-k {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}
.portrait__badge-v {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-dark);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 30px 24px 36px;
  border-right: 1px solid var(--line-dark);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  color: var(--gold-300);
}
.stat dt {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 120px 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark {
  color: #fff;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(42, 127, 134, 0.22), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(193, 154, 91, 0.12), transparent 60%),
    var(--navy-800);
}
.section--dark .section__title { color: #fff; }
.section--dark .section__title em { color: var(--gold-400); }

.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.about .section__head { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; }
.about__body p:not(.lead) { color: var(--ink-soft); }
.about__body .lead { margin-bottom: 1.1em; }
.about__facts {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.about__facts li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.about__facts span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  padding-top: 3px;
}

/* ---------- Expertise cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 36px 32px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--gold-300);
  color: var(--title);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  color: var(--title);
  margin-bottom: 10px;
}
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-left: 4px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 200px;
  width: 1px;
  background: linear-gradient(var(--gold-400), var(--line) 30%, var(--line));
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 0 0 38px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 195px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold-500);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.tl--major::before {
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(193, 154, 91, 0.18);
}
.tl:hover::before { transform: scale(1.25); background: var(--gold-500); }
.tl__date {
  padding-top: 1px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  padding-right: 8px;
}
.tl__body h3 {
  font-family: var(--font-display);
  font-size: 25px;
  color: var(--title);
}
.tl__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(193, 154, 91, 0.45);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent-strong);
}
.tl__org {
  margin: 4px 0 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--teal);
}
.tl__body p:not(.tl__org) {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
}

.subpanel {
  margin-top: 40px;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.subpanel__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--title);
  margin-bottom: 28px;
}
.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 40px;
}
.eng { padding-left: 18px; border-left: 2px solid var(--gold-300); }
.eng__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.eng h4 { font-size: 16px; margin: 4px 0 6px; color: var(--title); }
.eng p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Education ---------- */
.edu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.edu__item {
  grid-column: span 2;
  position: relative;
  padding: 34px 30px 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.edu__item:nth-child(4),
.edu__item:nth-child(5) { grid-column: span 3; }
.edu__item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 179, 122, 0.45);
}
.edu__item--highlight {
  background: linear-gradient(160deg, rgba(212, 179, 122, 0.2), rgba(212, 179, 122, 0.04));
  border-color: rgba(212, 179, 122, 0.45);
}
.edu__year {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid rgba(212, 179, 122, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-300);
}
.edu__item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 10px;
}
.edu__inst { font-size: 15px; color: rgba(255, 255, 255, 0.86); margin-bottom: 10px; }
.edu__note { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.58); }
.edu__note--thesis {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}
.edu__note strong { color: var(--gold-300); font-weight: 600; }

/* ---------- Skills ---------- */
.skills {
  columns: 2;
  column-gap: 24px;
}
.skillset {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.skillset h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--title);
}
.skillset h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.chips li:hover { border-color: var(--gold-400); background: var(--accent-soft); color: var(--title); }
.skills-notes {
  margin-top: 24px;
  padding: 26px 32px;
  border-left: 3px solid var(--gold-500);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.skills-notes p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Academics ---------- */
.acad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.acad__col {
  padding: 44px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.acad__title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--title);
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.acad__title--spaced { margin-top: 36px; }
.pub { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.pub:last-child { border-bottom: 0; padding-bottom: 0; }
.pub__meta {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.pub h4 {
  font-family: var(--font-display);
  font-size: 20.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.pub__role { margin: 6px 0 0; font-size: 13px; font-style: italic; color: var(--ink-mute); }

.pres li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.pres li:last-child { border-bottom: 0; padding-bottom: 0; }
.pres strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--title);
}
.pres__tag {
  align-self: start;
  justify-self: start;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(42, 127, 134, 0.1);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pres__tag--gold { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- Training ---------- */
.training {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tr-year {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tr-year h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 18px;
}
.tr-year li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tr-year li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-500);
}
.tr-year--more { display: none; }
.training.is-expanded .tr-year--more { display: block; }
.training__more { margin-top: 36px; text-align: center; }

/* ---------- Memberships / strengths ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.split .section__title { margin-bottom: 32px; }
.members {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.members li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.members abbr {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}
.strengths li {
  position: relative;
  padding: 0 0 16px 34px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.strengths li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--gold-300);
}
.interests {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.interests p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.contact__intro > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.74); margin-top: 22px; }
.contact__points { margin: 36px 0 28px; }
.contact__points li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}
.contact__points a { color: #fff; border-bottom: 1px solid rgba(212, 179, 122, 0.45); transition: color 0.25s, border-color 0.25s; }
.contact__points a:hover { color: var(--gold-300); border-color: var(--gold-300); }
.contact__points strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 179, 122, 0.4);
  color: var(--gold-300);
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.form {
  overflow: hidden;
  padding: 44px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--teal));
}

.channel { border: 0; margin: 0 0 26px; padding: 0; }
.channel legend,
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--title);
}
.channel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.channel legend { grid-column: 1 / -1; float: left; width: 100%; }
.channel__opt { position: relative; cursor: pointer; }
.channel__opt input { position: absolute; opacity: 0; pointer-events: none; }
.channel__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--input-bg);
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.channel__card svg { width: 24px; height: 24px; }
.channel__opt:hover .channel__card { border-color: var(--gold-300); }
.channel__opt input:checked + .channel__card {
  border-color: var(--gold-500);
  background: var(--accent-soft);
  color: var(--title);
  box-shadow: 0 6px 18px -10px rgba(193, 154, 91, 0.8);
}
.channel__opt input:focus-visible + .channel__card { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-mute); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  font: 400 15px/1.5 var(--font-body);
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(193, 154, 91, 0.15);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); }
.field__error { min-height: 0; margin: 6px 0 0; font-size: 12.5px; color: var(--danger); }
.field__error:empty { margin: 0; }
.field__meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 6px; }
.field__meta .field__error { margin: 0; }
.counter { margin-left: auto; font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.form__status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: var(--success);
  font-size: 14px;
}
.form__status p { margin: 0 0 8px; }
.form__status p:last-child { margin: 0; }
.form__status button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--title);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 56px 0 40px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__name { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; }
.footer__creds { margin: 0; font-size: 12.5px; letter-spacing: 0.06em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer__links a:hover { color: var(--gold-300); }
.footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid rgba(212, 179, 122, 0.5);
  color: var(--gold-300);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s;
}
.to-top { padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.to-top svg { width: 20px; height: 20px; stroke-width: 2; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(0.94); }
/* Hover colours only where a real pointer can hover, so taps never leave it stuck */
@media (hover: hover) {
  .to-top:hover { background: var(--gold-500); color: var(--navy-900); }
}

/* ==========================================================================
   Affiliations & social links
   ========================================================================== */
/* Hero: current hospitals */
.hero__affil { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 32px; }
.hero__affil-label { flex-basis: 100%; }
.hero__affil-label {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.chip-h {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(212, 179, 122, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.chip-h svg { width: 16px; height: 16px; color: var(--gold-300); }

/* Round icon buttons (hero and footer) */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social--hero { margin-top: 26px; }
.social__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 179, 122, 0.45);
  border-radius: 50%;
  color: var(--gold-300);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social__btn svg { width: 19px; height: 19px; }
.social__btn:hover,
.social__btn:focus-visible {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-color: transparent;
  color: var(--navy-900);
  transform: translateY(-2px);
}
.social--footer .social__btn { width: 38px; height: 38px; }
.social--footer .social__btn svg { width: 17px; height: 17px; }

/* About: hospital cards */
.affils { margin-top: 40px; }
.section__head .affils__grid { grid-template-columns: 1fr; max-width: 420px; }
.affils__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.affil-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.affil-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--teal));
}
.affil-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(193, 154, 91, 0.4);
  color: var(--accent-strong);
}
.affil-card__icon svg { width: 22px; height: 22px; }
.affil-card__body { display: flex; flex-direction: column; gap: 2px; }
.affil-card__body strong { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.2; color: var(--title); }
.affil-card__body span { font-size: 13.5px; color: var(--ink-soft); }
.affil-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}
.affil-card__cta svg { width: 15px; height: 15px; stroke-width: 2; transition: transform 0.3s var(--ease); }
a.affil-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(193, 154, 91, 0.55); }
a.affil-card:hover .affil-card__cta svg { transform: translate(2px, -2px); }

/* Contact: connect panel */
.connect { margin: 4px 0 26px; }
.connect__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.connect__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.connect__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.connect__item:hover,
.connect__item:focus-visible {
  border-color: rgba(212, 179, 122, 0.6);
  background: rgba(212, 179, 122, 0.1);
  transform: translateY(-2px);
}
.connect__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}
.connect__icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.connect__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.connect__text strong { font-size: 14px; font-weight: 600; }
.connect__text small { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.connect__go { margin-left: auto; color: var(--gold-300); opacity: 0.75; transition: transform 0.3s var(--ease), opacity 0.3s; }
.connect__go svg { width: 16px; height: 16px; stroke-width: 2; }
.connect__item:hover .connect__go { opacity: 1; transform: translate(2px, -2px); }

/* ==========================================================================
   Consultation hours, phone and WhatsApp
   ========================================================================== */
.chip-h em {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(212, 179, 122, 0.35);
  font-style: normal;
  font-weight: 600;
  color: var(--gold-300);
  white-space: nowrap;
}

.clinics {
  margin-top: 6px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.clinics__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 22px;
}
.clinics__head .eyebrow { margin-bottom: 8px; }
.clinics__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  color: #fff;
}
.clinics__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.02em;
  color: #fff;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pill-btn svg { width: 17px; height: 17px; stroke-width: 1.8; }
.pill-btn:hover { transform: translateY(-2px); border-color: var(--gold-400); color: var(--gold-300); }
.pill-btn--gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(193, 154, 91, 0.7);
}
.pill-btn--gold:hover { color: var(--navy-900); box-shadow: 0 16px 30px -12px rgba(193, 154, 91, 0.85); }

.clinics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.clinic {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon body" "time time" "link link";
  align-items: center;
  gap: 16px 16px;
  padding: 24px 26px 22px;
  border: 1px solid rgba(212, 179, 122, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.clinic:hover { transform: translateY(-3px); border-color: rgba(212, 179, 122, 0.5); }
.clinic__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}
.clinic__icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.clinic__body { grid-area: body; }
.clinic__body h3 { margin: 0; font-family: var(--font-display); font-size: 26px; color: #fff; }
.clinic__body p { margin: 2px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }
.clinic__time {
  grid-area: time;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(7, 21, 38, 0.55);
}
.clinic__time svg { width: 24px; height: 24px; flex: none; color: var(--gold-300); }
.clinic__time span {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-300);
}
.clinic__time i { margin: 0 6px; font-style: normal; color: rgba(255, 255, 255, 0.45); }
.clinic__link {
  grid-area: link;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.clinic__link svg { width: 15px; height: 15px; stroke-width: 2; }
.clinic__link:hover { color: var(--gold-300); }
.clinics__note { margin: 16px 0 0; font-size: 13px; font-style: italic; color: rgba(255, 255, 255, 0.55); }

/* WhatsApp feature banner (home) */
.wa-feature {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 60px;
  padding: 22px 26px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(37, 211, 102, 0.16), rgba(212, 179, 122, 0.1));
  color: #fff;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-feature:hover { transform: translateY(-3px); border-color: rgba(37, 211, 102, 0.65); box-shadow: 0 20px 40px -24px rgba(37, 211, 102, 0.55); }
.wa-feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 0 7px rgba(37, 211, 102, 0.15);
}
.wa-feature__icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.wa-feature__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wa-feature__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #7ee2a8; }
.wa-feature__text strong { font-family: var(--font-display); font-size: 27px; font-weight: 600; line-height: 1.15; }
.wa-feature__text > span:last-child { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.wa-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
  padding: 13px 22px;
  border-radius: 999px;
  background: #25d366;
  font: 600 14px/1 var(--font-body);
  color: #052e16;
}
.wa-feature__cta svg { width: 16px; height: 16px; stroke-width: 2; }

/* About cards and Contact page */
.affil-card__body .affil-card__time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent-strong);
}
.affil-card__time svg { width: 15px; height: 15px; }
.hours { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 2px 0; }
.hours b { font-weight: 600; color: #fff; white-space: nowrap; }
.connect__item--feature {
  grid-column: 1 / -1;
  border-color: rgba(37, 211, 102, 0.45);
  background: linear-gradient(120deg, rgba(37, 211, 102, 0.16), rgba(255, 255, 255, 0.03));
}
.connect__item--feature:hover,
.connect__item--feature:focus-visible { border-color: rgba(37, 211, 102, 0.75); background: linear-gradient(120deg, rgba(37, 211, 102, 0.24), rgba(255, 255, 255, 0.05)); }
.connect__item--feature .connect__icon { background: #25d366; color: #fff; }

/* ==========================================================================
   Pages — one section at a time
   ========================================================================== */
.page { min-height: calc(100vh - var(--pager-h)); }
.page.section { padding: calc(var(--nav-h) + 64px) 0 96px; }
.js .page.is-leaving { animation: page-out 0.28s cubic-bezier(0.5, 0, 0.75, 0) both; }
.js .page.is-entering { animation: page-in 0.65s var(--ease) both; }
.js main[data-dir="prev"] .page.is-leaving { animation-name: page-out-prev; }
.js main[data-dir="prev"] .page.is-entering { animation-name: page-in-prev; }
@keyframes page-out { to { opacity: 0; transform: translate3d(-3%, 0, 0) scale(0.98); } }
@keyframes page-out-prev { to { opacity: 0; transform: translate3d(3%, 0, 0) scale(0.98); } }
@keyframes page-in { from { opacity: 0; transform: translate3d(4%, 12px, 0) scale(0.985); } }
@keyframes page-in-prev { from { opacity: 0; transform: translate3d(-4%, 12px, 0) scale(0.985); } }

.pager {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.pager__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--pager-h);
  padding-top: 20px;
  padding-bottom: 20px;
}
.pager__link { display: inline-flex; align-items: center; gap: 16px; min-width: 210px; }
.pager__link--next { justify-content: flex-end; text-align: right; }
.pager__text { display: flex; flex-direction: column; line-height: 1.2; }
.pager__text small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pager__text b {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--title);
  transition: color 0.3s var(--ease);
}
.pager__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-500);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pager__arrow svg { width: 20px; height: 20px; stroke-width: 1.8; }
.pager__link:hover .pager__arrow {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-color: transparent;
  color: var(--navy-900);
}
.pager__link:hover b { color: var(--gold-500); }
.pager__link--next:hover .pager__arrow { transform: translateX(4px); }
.pager__link--prev:hover .pager__arrow { transform: translateX(-4px); }
.pager__dots { display: flex; align-items: center; gap: 8px; }
.pager__dots a {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.45s var(--ease), background 0.3s var(--ease);
}
:root[data-theme="dark"] .pager__dots a { background: rgba(255, 255, 255, 0.16); }
.pager__dots a::after { content: ""; position: absolute; inset: -8px -4px; }
.pager__dots a:hover { background: var(--gold-300); }
.pager__dots a[aria-current="page"] { width: 28px; background: var(--gold-500); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .page.is-leaving,
  .js main[data-dir="prev"] .page.is-leaving { animation: fade-out 0.15s linear both !important; }
  .js .page.is-entering,
  .js main[data-dir="prev"] .page.is-entering { animation: fade-in 0.15s linear both !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav__menu { gap: 18px; }
  .nav__menu a { font-size: 13.5px; }
  .nav__menu .nav__cta { padding: 9px 16px; }
}

/* Collapse the menu before the nine links get crowded */
@media (max-width: 1100px) {
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 12px 24px 28px;
    background: rgba(7, 21, 38, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__menu a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
  .nav__menu a::after { display: none; }
  .nav__menu a[aria-current="page"] { color: var(--gold-300); }
  .nav__menu .nav__cta { margin-top: 18px; padding: 12px 20px; text-align: center; border-bottom: 1px solid var(--gold-400); }
  .nav__menu .nav__cta[aria-current="page"] { color: var(--navy-900); }
  .nav.is-open { background: rgba(7, 21, 38, 0.97); }
}
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .training { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: repeat(2, 1fr); }
  .edu__item,
  .edu__item:nth-child(4),
  .edu__item:nth-child(5) { grid-column: span 1; }
  .edu__item--highlight { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; --pager-h: 96px; }

  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; text-align: center; padding-bottom: 56px; }
  .hero__copy { order: 2; }
  .hero__portrait { order: 1; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__affil { justify-content: center; }
  .hero__affil-label { margin: 0; }
  .section__head .affils__grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .social--hero { justify-content: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .eyebrow::before { display: none; }
  .hero__creds { justify-content: center; }
  .portrait { width: 250px; }
  .portrait__badge { left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; text-align: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 20px; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(n + 3) { border-bottom: 0; }

  .section { padding: 88px 0; }
  .page.section { padding: calc(var(--nav-h) + 44px) 0 72px; }
  .about,
  .split,
  .contact__inner,
  .acad { grid-template-columns: 1fr; gap: 40px; }
  .skills { columns: 1; }
  .about .section__head { position: static; }

  .timeline::before { left: 5px; }
  .tl { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .tl::before { left: 0; }
  .tl__date { text-align: left; padding-right: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand__text { font-size: 19px; }
  .cards,
  .training,
  .edu { grid-template-columns: 1fr; }
  .card,
  .skillset,
  .tr-year,
  .edu__item { padding: 28px 24px; }
  .subpanel,
  .acad__col,
  .form { padding: 32px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .about__facts li { grid-template-columns: 1fr; gap: 2px; }
  .engagements { grid-template-columns: 1fr; }
  .pres li { grid-template-columns: 1fr; gap: 8px; }
  .members li { grid-template-columns: 70px 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .affils__grid,
  .section__head .affils__grid,
  .connect__grid,
  .clinics__grid { grid-template-columns: 1fr; }
  .clinic { padding: 20px; }
  .wa-feature { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
  .wa-feature__cta { margin-left: 0; }
  .wa-feature__text strong { font-size: 24px; }
  .hero__creds { font-size: 11.5px; letter-spacing: 0.08em; }
  .channel__card { font-size: 13px; padding: 14px 4px; }
  .pager__dots { display: none; }
  .pager__link { min-width: 0; gap: 12px; }
  .pager__text b { font-size: 20px; }
  .pager__arrow { width: 44px; height: 44px; }
}

/* ==========================================================================
   Print — the CV is not printable; only a notice is printed
   ========================================================================== */
@media print {
  @page { margin: 20mm; }
  html, body { background: #fff !important; }
  body > * { display: none !important; }
  body::before {
    content: "This CV is not available for printing. Please contact Dr. Humera Fatima through her website to request a copy.";
    display: block;
    padding-top: 40mm;
    font: 15pt/1.5 Georgia, serif;
    text-align: center;
    color: #000;
  }
}
