/* ============================================================
   Clinical Mentor MD — Full Design System
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --teal:        #2D6E7E;
  --teal-deep:   #265e6c;
  --teal-blue:   #3F7696;
  --rust:        #B5451B;
  --rust-dark:   #9c3a14;
  --slate:       #3D6470;
  --slate-dark:  #345561;
  --page-bg:     #EEF0EE;
  --sage:        #C9D4C5;
  --sage-soft:   #d8e0d5;
  --ink:         #1A1A1A;
  --muted:       #555555;
  --white:       #FFFFFF;
  --line:        rgba(26,26,26,0.08);
  --line-light:  rgba(255,255,255,0.16);
  --card-glass:  rgba(255,255,255,0.66);
  --card-border: rgba(255,255,255,0.6);
  --nav-bg:      rgba(243,245,242,0.82);

  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font:  var(--sans);

  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 36px; --r-pill: 999px;

  --shadow-sm:   0 2px 6px rgba(26,26,26,0.04), 0 10px 24px rgba(45,110,126,0.06);
  --shadow-md:   0 6px 16px rgba(26,26,26,0.06), 0 24px 50px rgba(45,110,126,0.10);
  --shadow-lg:   0 12px 30px rgba(26,26,26,0.08), 0 36px 70px rgba(45,110,126,0.14);
  --shadow-teal: 0 18px 40px rgba(45,110,126,0.28);
  --shadow-rust: 0 10px 26px rgba(181,69,27,0.26);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 78px;

  --body-bg:
    radial-gradient(72% 56% at 82% 4%, rgba(63,118,150,0.30), transparent 60%),
    radial-gradient(56% 50% at 0% 24%, rgba(45,110,126,0.20), transparent 56%),
    linear-gradient(180deg, #EEF2F0 0%, #E2EAE8 100%);
}

[data-theme="dark"] {
  --teal:        #57A6B8;
  --teal-deep:   #4790a1;
  --teal-blue:   #5f9bb8;
  --slate:       #2f5560;
  --slate-dark:  #213d46;
  --page-bg:     #0c181d;
  --sage:        #16282b;
  --sage-soft:   #1b3032;
  --ink:         #E9EFEC;
  --muted:       #9DB2AF;
  --white:       #132228;
  --line:        rgba(255,255,255,0.10);
  --line-light:  rgba(255,255,255,0.12);
  --card-glass:  rgba(255,255,255,0.045);
  --card-border: rgba(255,255,255,0.09);
  --nav-bg:      rgba(12,24,29,0.82);
  --body-bg:
    radial-gradient(72% 56% at 82% 4%, rgba(95,155,184,0.24), transparent 60%),
    radial-gradient(56% 50% at 0% 24%, rgba(45,110,126,0.22), transparent 56%),
    linear-gradient(180deg, #0c181d 0%, #081216 100%);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.32), 0 10px 24px rgba(0,0,0,0.26);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.4),  0 24px 50px rgba(0,0,0,0.32);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.46),0 36px 70px rgba(0,0,0,0.4);
  --shadow-teal: 0 18px 40px rgba(0,0,0,0.45);
  --shadow-rust: 0 10px 26px rgba(181,69,27,0.4);
}

/* Smooth theme swap on interactive surfaces only */
body, .nav, .card, .stat, .footer, .field input, .field textarea,
.subscribe input, .acc-item, .calendar, .cal-cell {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page-bg); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--body-bg);
  background-attachment: fixed;
  background-color: var(--page-bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.55rem); font-weight: 700; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }

.italic-teal {
  font-family: var(--serif);
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-teal { color: var(--teal); }

/* ============================================================
   Pills / badges
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.15em;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.pill::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.9;
}
.pill-teal { color: var(--teal); }
.pill-dark { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.18); box-shadow: none; }
.pill-sage { background: var(--sage); color: var(--teal-deep); box-shadow: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section       { padding-block: clamp(40px, 5.5vw, 80px); }
.section-tight { padding-block: clamp(28px, 3.5vw, 50px); }

.bg-white { background: var(--white); }
.bg-page  { background: transparent; }
.bg-sage  { background: var(--sage); }

.bg-grad {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(63,118,150,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(201,212,197,0.32));
}

.bg-slate {
  background: linear-gradient(140deg, var(--slate-dark) 0%, var(--slate) 42%, var(--teal) 100%);
  color: #fff;
}
.bg-slate h1, .bg-slate h2, .bg-slate h3 { color: #fff; }
.bg-slate .lead { color: rgba(255,255,255,0.8); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.split.text-right .col-text { order: 2; }
.stack-sm > * + * { margin-top: 0.6rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95em 1.8em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--rust); color: #fff; box-shadow: var(--shadow-rust); }
.btn-primary:hover { background: var(--rust-dark); box-shadow: 0 14px 32px rgba(181,69,27,0.34); transform: translateY(-1px); }

.btn-outline { background: var(--card-glass); color: var(--teal); border-color: rgba(45,110,126,0.4); }
.btn-outline:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.btn-outline.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline.on-dark:hover { background: #fff; color: var(--slate); border-color: #fff; }

.btn-lg { padding: 1.1em 2.1em; font-size: 1.05rem; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card-glass);
  backdrop-filter: blur(6px);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.card-white {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.card-teal {
  background: linear-gradient(150deg, var(--slate-dark), var(--slate) 55%, var(--teal));
  border-radius: var(--r-lg);
  color: #fff;
}
.card-teal blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  padding: 0;
  border: none;
  text-wrap: balance;
}

/* ============================================================
   Checklist
   ============================================================ */
.check-list {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.02rem;
  color: var(--ink);
}
.check-list .check {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  border-radius: var(--r-pill);
  background: linear-gradient(140deg, var(--teal), var(--teal-blue));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(45,110,126,0.3);
}
.check-list .check svg { width: 13px; height: 13px; }

/* ============================================================
   About page — bullet label, who-pills, motivation card, leaf
   ============================================================ */
.bullet-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.4rem 0 0.5rem;
}
.bg-slate .bullet-label { color: rgba(255,255,255,0.6); }

.who-pills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.who-pills .btn {
  justify-content: flex-start;
  width: 100%;
  max-width: 360px;
  padding: 1.05em 1.6em;
}

.motivation-card {
  background: linear-gradient(150deg, var(--slate-dark), var(--slate) 50%, var(--teal));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 92px);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: var(--shadow-teal);
}
.motivation-card .quote-mark {
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.3;
  color: #fff;
  opacity: 0.34;
  font-weight: 600;
}
.motivation-card blockquote {
  font-family: var(--serif);
  margin: 1.2rem 0 0;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

.placeholder.leaf { min-height: 460px; }

.bg-slate .check-list li { color: rgba(255,255,255,0.9); }
.bg-slate .check-list .check {
  background: rgba(255,255,255,0.18);
  box-shadow: none;
}

/* ============================================================
   Image placeholder
   ============================================================ */
.placeholder {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(45,110,126,0.22);
  background:
    repeating-linear-gradient(135deg, rgba(45,110,126,0.05) 0 12px, rgba(45,110,126,0) 12px 24px),
    linear-gradient(150deg, rgba(255,255,255,0.7), rgba(201,212,197,0.4));
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  min-height: 320px;
  color: var(--teal);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.placeholder:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.placeholder .ph-inner { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; padding: 1.5rem; }
.placeholder .ph-bolt {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: linear-gradient(140deg, rgba(45,110,126,0.16), rgba(63,118,150,0.12));
}
.placeholder .ph-bolt svg { width: 24px; height: 24px; }
.placeholder .ph-label {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase;
}
.placeholder.on-dark {
  border-color: rgba(255,255,255,0.3);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 24px), rgba(255,255,255,0.05);
  color: #fff; box-shadow: none;
}
.placeholder.on-dark .ph-bolt { background: rgba(255,255,255,0.16); }
.placeholder.on-dark .ph-label { color: rgba(255,255,255,0.72); }

/* ============================================================
   Page banner (inner page header)
   ============================================================ */
.banner {
  background: linear-gradient(140deg, var(--slate-dark), var(--teal) 90%);
  color: #fff;
  text-align: center;
  padding-block: clamp(56px, 8vw, 108px);
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 80% 0%, rgba(63,118,150,0.5), transparent 60%);
  pointer-events: none;
}
.banner h1 { color: #fff; position: relative; }
.banner .eyebrow { position: relative; color: rgba(255,255,255,0.75); }

/* Courses page — centred header with pill badge */
.courses-header {
  text-align: center;
  padding-block: clamp(48px, 6vw, 88px) clamp(8px, 2vw, 24px);
}
.courses-header h1 { margin-bottom: 1rem; }
.courses-header .pill { font-size: 0.9rem; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

/* Brand / Logo */
.brand { display: flex; align-items: center; gap: 0.65rem; flex: none; }
.site-logo { height: 44px; width: auto; display: block; }
.logo-dark  { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }

.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(140deg, var(--teal), var(--slate));
  flex: none; box-shadow: 0 5px 14px rgba(45,110,126,0.32);
}
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wordmark .wm-1 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; color: var(--teal); letter-spacing: -0.02em; }
.brand .wordmark .wm-2 { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

/* Nav links pill container */
.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card-glass);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  box-shadow: 0 2px 14px rgba(26,26,26,0.06), inset 0 0 0 1px var(--card-border);
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links .navbtn {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.5em 0.82em; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: var(--ink); background: none; border: none; cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-links a:hover, .nav-links .navbtn:hover { color: var(--teal); background: rgba(255,255,255,0.7); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links .navbtn:hover { background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--teal); font-weight: 600; background: var(--white); box-shadow: 0 1px 5px rgba(26,26,26,0.12); }
.nav-links .caret { width: 11px; height: 11px; transition: transform .2s ease; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 234px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown:hover .caret,
.dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu a {
  display: block; width: 100%; padding: 0.65em 0.85em;
  font-size: 0.92rem; border-radius: var(--r-sm);
}
.dropdown-menu a:hover { background: var(--page-bg); color: var(--teal); }

/* ============================================================
   Mega Menu — Bento Grid (Option 4)
   Desktop only (>1040px). On mobile the hamburger nav is used.
   ============================================================ */

/* Trigger button — same pill style as other nav links */
.mm-trigger {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.5em 0.82em; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: var(--ink); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.mm-trigger:hover { color: var(--teal); background: rgba(255,255,255,0.7); }
/* Dark mode: tone down the bright white hover bg */
[data-theme="dark"] .mm-trigger:hover         { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .mm-item.open .mm-trigger { background: rgba(255,255,255,0.06); }
.mm-chev { font-size: 14px; transition: transform .25s ease; }

/* Panel hidden by default — display:none is bulletproof */
.mm-panel { display: none; }

/* ---- Desktop-only positioning and behaviour ---- */
@media (min-width: 1041px) {
  /* Make nav-inner the anchor for panels (only on desktop) */
  .nav-inner { position: relative; }
  /* Override the li position:relative so panel anchors to nav-inner, not the trigger li */
  .nav-links > li.mm-item { position: static; }

  .mm-item.open .mm-trigger { color: var(--teal); border-bottom-color: #c44b22; }
  .mm-item.open .mm-chev { transform: rotate(180deg); }

  .mm-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter); /* keep panels off the viewport edge */
    z-index: 400;
    pointer-events: none;
  }
  /* Hover bridge */
  .mm-panel::before {
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  }
  /* Counseling panel: anchor to the right side but keep it off the viewport edge */
  .mm-item[data-key="counseling"] .mm-panel { left: auto; right: var(--gutter); }

  .mm-item.open .mm-panel {
    display: block;
    pointer-events: auto;
    animation: mmPanelIn .28s cubic-bezier(.2,.8,.25,1) forwards;
  }
  @keyframes mmPanelIn {
    from { opacity: 0; transform: translateY(-10px) scale(.97); }
    to   { opacity: 1; transform: none; }
  }

  /* Feature CTA — solid pill button inside the gradient card.
     Prefixed with .nav-links .mm-panel to beat the .nav-links a base rule (specificity 0,3,0 > 0,1,1). */
  .nav-links .mm-panel .feat-cta {
    display: inline-block; margin-top: 20px; align-self: flex-start;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.65); color: #fff;
    border-radius: 999px; padding: 10px 20px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    box-shadow: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
  }
  .nav-links .mm-panel .feat-cta:hover {
    background: #fff; color: var(--fc, var(--teal)); border-color: #fff;
  }

  /* Group label */
  .mm-panel .label {
    font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); font-weight: 600; display: block;
  }

  /* p4 Bento Grid */
  .p4 {
    width: 720px; border-radius: 20px; padding: 18px;
    background: var(--white); border: 1px solid var(--line);
    box-shadow: 0 28px 64px rgba(45,95,107,0.22);
  }
  .p4-grid  { display: grid; grid-template-columns: 2fr 1.05fr; gap: 12px; }
  .p4-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  /* Tile base — prefixed with .nav-links .mm-panel to beat .nav-links a (0,3,0 > 0,1,1).
     This prevents the nav pill's border-radius:999px and background rules from bleeding in. */
  .nav-links .mm-panel .p4-tile {
    background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 15px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
    text-decoration: none; color: var(--ink);
    overflow: hidden; /* contain icon animation */
    box-shadow: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
    /* start hidden for stagger-in */
    opacity: 0;
  }
  /* Stagger fade-in — opacity only, so hover transform works freely */
  .mm-item.open .p4-tile {
    animation: tileIn .32s ease forwards;
    animation-delay: calc(var(--i, 0) * 45ms);
  }
  @keyframes tileIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .p4-ic {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(45,95,107,0.10); color: var(--teal); font-size: 19px; flex-shrink: 0;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .p4-tile b     { font-size: 14px; font-weight: 600; }
  .p4-tile small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
  /* Hover: lift + tint — prefixed for specificity */
  .nav-links .mm-panel .p4-tile:hover {
    border-color: transparent; background: var(--page-bg);
    box-shadow: 0 8px 24px rgba(45,95,107,0.14); transform: translateY(-3px); color: var(--ink);
  }
  .nav-links .mm-panel .p4-tile:hover .p4-ic { background: var(--teal); color: #fff; transform: scale(1.1) rotate(-6deg); }

  .p4-feat {
    --fc: var(--teal);
    background: linear-gradient(160deg, var(--fc), #1b424c); color: #fff;
    border-radius: 16px; padding: 22px; display: flex; flex-direction: column;
    opacity: 0;
  }
  /* Feature card fades in — opacity only */
  .mm-item.open .p4-feat {
    animation: tileIn .38s ease .08s forwards;
  }
  .p4-feat .fic { font-size: 34px; margin-bottom: 14px; line-height: 1; }
  .p4-feat h4   { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: #fff; }
  .p4-feat p    { margin: 0 0 20px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.8); }

  .p4-foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; text-align: center; }
  .p4-foot a {
    display: inline-block; padding: 10px; font-size: 13px; font-weight: 600;
    color: var(--teal); text-decoration: none; transition: color .18s ease;
  }
  .p4-foot a:hover { color: #c44b22; }
}

/* Nav right controls */
.nav-right { display: flex; align-items: center; gap: 0.7rem; flex: none; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--card-border);
  background: var(--card-glass);
  color: var(--teal); cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s ease, transform .3s cubic-bezier(.34,1.56,.64,1), color .18s ease;
}
.theme-toggle:hover { background: var(--white); transform: rotate(-18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none; width: 44px; height: 44px;
  border: none; background: none; cursor: pointer;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.hamburger:hover { background: rgba(45,110,126,0.08); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); position: relative; transition: .25s;
}
.hamburger span::before, .hamburger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--ink); transition: .25s;
}
.hamburger span::before { top: -7px; }
.hamburger span::after  { top: 7px; }
.nav.open .hamburger span { background: transparent; }
.nav.open .hamburger span::before { top: 0; transform: rotate(45deg); }
.nav.open .hamburger span::after  { top: 0; transform: rotate(-45deg); }

.nav-links .login-mobile { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero .split { align-items: center; grid-template-columns: 1.05fr 0.95fr; }
.hero h1 { margin: 1rem 0 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-card {
  position: relative;
  background: linear-gradient(150deg, var(--teal-blue), var(--teal) 60%, var(--slate));
  border-radius: var(--r-xl);
  min-height: clamp(380px, 38vw, 460px);
  overflow: hidden;
  box-shadow: var(--shadow-teal);
}
.hero-frame {
  position: absolute; inset: 22px;
  border: 1.5px solid rgba(255,255,255,0.32);
  border-radius: 22px;
  display: grid; place-items: center;
}
.hero-frame span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); text-align: center; white-space: nowrap;
}
.stat-badge {
  position: absolute; left: 22px; bottom: 22px;
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.stat-badge .num {
  font-family: var(--sans); font-size: 1.7rem; font-weight: 700;
  color: var(--teal); line-height: 1; letter-spacing: -0.02em;
}
.stat-badge .lbl { font-size: 0.82rem; color: var(--muted); max-width: 110px; line-height: 1.3; }
.stat-badge .avatars { display: flex; }
.stat-badge .avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  background: var(--slate); margin-left: -8px;
}
.stat-badge .avatars span:first-child { margin-left: 0; background: var(--teal); }
.stat-badge .avatars span:nth-child(3) { background: var(--rust); }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat {
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 36px);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}
.stat:nth-child(odd)  { background: var(--card-glass); backdrop-filter: blur(6px); }
.stat:nth-child(even) { background: linear-gradient(145deg, var(--teal), var(--teal-blue)); color: #fff; border-color: transparent; box-shadow: var(--shadow-teal); }
.stat .s-num { font-family: var(--sans); font-size: clamp(2.1rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat:nth-child(odd) .s-num  { color: var(--teal); }
.stat .s-lbl { margin-top: 0.6rem; font-size: 0.98rem; font-weight: 500; }
.stat:nth-child(odd) .s-lbl  { color: var(--muted); }
.stat:nth-child(even) .s-lbl { color: rgba(255,255,255,0.85); }

/* ============================================================
   Sessions panel
   ============================================================ */
.sessions-panel {
  background: linear-gradient(140deg, var(--slate-dark) 0%, var(--slate) 45%, var(--teal) 100%);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  color: #fff;
  box-shadow: var(--shadow-teal);
  position: relative; overflow: hidden;
}
.sessions-panel::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 88% 0%, rgba(63,118,150,0.55), transparent 60%);
  pointer-events: none;
}
.sessions-panel > * { position: relative; }
.sessions-head { max-width: 640px; margin-bottom: 2.2rem; }
.sessions-panel h2 { color: #fff; margin: 1rem 0 0.8rem; }
.sessions-panel .lead { color: rgba(255,255,255,0.82); }

.sess-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sess-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-md); padding: 22px;
  transition: background .18s ease, transform .18s ease;
}
.sess-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.sess-card .sc-date {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.74rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.sess-card .sc-title { font-size: 1.12rem; font-weight: 600; margin-top: 0.55rem; color: #fff; }
.sess-card .sc-type  { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.test-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.test-nav { display: flex; gap: 0.6rem; flex: none; }
.test-nav button {
  width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white); cursor: pointer;
  display: grid; place-items: center; color: var(--teal); transition: .18s;
}
.test-nav button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.test-track {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; scrollbar-width: none;
}
.test-track::-webkit-scrollbar { display: none; }

.tcard {
  flex: 0 0 min(420px, 82%);
  scroll-snap-align: start;
  background: linear-gradient(150deg, var(--slate-dark), var(--slate) 55%, var(--teal));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-teal);
}
.tcard .quote-mark { font-family: var(--serif); font-size: 3.4rem; line-height: 0.4; color: rgba(255,255,255,0.34); font-weight: 600; }
.tcard .quote { font-family: var(--sans); font-weight: 500; font-size: 1.16rem; line-height: 1.6; margin: 1rem 0 1.7rem; }
.tcard .who { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); flex: none; overflow: hidden; }
.tcard .who .av img { width: 100%; height: 100%; object-fit: cover; }
.tcard .who .nm { font-weight: 700; }
.tcard .who .rl { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1.1rem; font-weight: 600; color: var(--ink);
  padding: 1.3rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc-head:hover { color: var(--teal); }
.acc-icon { flex: none; width: 26px; height: 26px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; background: var(--teal); transition: .25s;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.acc-icon::before { width: 14px; height: 2px; }
.acc-icon::after  { width: 2px; height: 14px; }
.acc-item.open .acc-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; }

/* ============================================================
   Service sections (counseling / courses)
   ============================================================ */
.svc { padding-block: clamp(48px, 6vw, 88px); }
.svc:nth-child(even) { background: var(--white); }
.svc .placeholder { min-height: 380px; }
.svc h2 { margin: 0.8rem 0 1.2rem; }
.svc .btn { margin-top: 1.4rem; }

/* ============================================================
   Calendar
   ============================================================ */
.cal-page-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.cal-page-head h2 { margin: 1rem 0 0.8rem; }
.cal-wrap { max-width: 1000px; margin: 0 auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.8rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.calendar { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 30px); color: var(--ink); }
.cal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.cal-title { display: flex; flex-direction: column; gap: 0.2rem; }
.cal-month { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--teal); letter-spacing: -0.01em; }
.cal-tz { font-size: 0.78rem; color: var(--muted); }
.cal-nav-btns { display: flex; gap: 0.5rem; align-items: center; }
.cal-nav-btns a, .cal-nav-btns button {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white);
  display: grid; place-items: center; color: var(--teal);
  font-size: 1rem; cursor: pointer; transition: .18s;
}
.cal-nav-btns a:hover, .cal-nav-btns button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { margin-bottom: 6px; }
.cal-dowcell { text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); padding: 6px 0; }
.cal-body { gap: 6px; }
.cal-cell { min-height: 86px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--white); overflow: hidden; }
.cal-cell.cal-muted { background: rgba(238,240,238,0.55); border-color: transparent; } /* fallback */
@supports (background: color-mix(in srgb, white, white)) {
  .cal-cell.cal-muted { background: color-mix(in srgb, var(--white) 60%, var(--page-bg)); }
}
.cal-date { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.cal-today { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.cal-today .cal-date { background: var(--teal); color: #fff; width: 22px; height: 22px; border-radius: var(--r-pill); display: grid; place-items: center; }
.cal-ev { font-size: 0.68rem; line-height: 1.25; font-weight: 600; padding: 3px 5px; border-radius: 6px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-mock     { background: var(--rust); }
.cal-workshop { background: var(--teal); }
.cal-lecture  { background: var(--slate); }
.cal-one      { background: #7a8f6f; }

.cal-upcoming { margin-top: 2.4rem; }
.cal-upcoming h3 { margin-bottom: 1.2rem; }
.cal-upcoming-list { display: flex; flex-direction: column; gap: 0.9rem; }
.cal-upcoming-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--card-glass); border: 1px solid var(--card-border); }
.cal-upcoming-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 5px; }
.cal-upcoming-title { font-weight: 600; font-size: 1rem; }
.cal-upcoming-meta  { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info { background: var(--card-glass); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 44px); box-shadow: var(--shadow-sm); }
.contact-info h3 { margin-bottom: 1.4rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-item-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: linear-gradient(140deg, var(--teal), var(--teal-blue)); color: #fff; display: grid; place-items: center; flex: none; }
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-item-value { font-size: 1rem; font-weight: 500; }
.contact-social { display: flex; gap: 0.7rem; margin-top: 1.6rem; }
.contact-social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card-glass); border: 1px solid var(--card-border);
  color: var(--teal); transition: .18s;
}
.contact-social a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.contact-social svg { width: 18px; height: 18px; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  padding: 0.9em 1.1em; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--white);
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,110,126,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-message {
  margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 500;
}
.form-message.success { background: rgba(45,110,126,0.1); color: var(--teal); border: 1px solid rgba(45,110,126,0.2); }
.form-message.error   { background: rgba(181,69,27,0.1);  color: var(--rust); border: 1px solid rgba(181,69,27,0.2); }

/* ============================================================
   Blog — posts index grid
   ============================================================ */

/* ============================================================
   Case Study Detail Page  (single-cmmd_case_study.php)
   All padding comes from .section — nothing added here.
   ============================================================ */

/* Hero — tighter bottom pad so profile card nestles close */
.cs-hero { padding-block: clamp(40px, 6vw, 80px) clamp(16px, 2.5vw, 28px); }
.cs-hero h1 { max-width: 17ch; margin-bottom: 1.3rem; }
.cs-hero .lead { max-width: 56ch; }
.cs-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* Learner profile */
.profile { padding-block: 0 clamp(32px, 5vw, 60px); }
.profile-card {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(22px, 3vw, 48px);
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px); align-items: stretch;
}
.profile-photo { border-radius: var(--r-lg); min-height: 320px; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-body { display: flex; flex-direction: column; padding: clamp(6px,1.2vw,14px) clamp(6px,1.2vw,18px) clamp(6px,1.2vw,14px) 0; }
.who-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.who-name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; }
.who-sub  { font-size: 0.93rem; color: var(--teal); font-weight: 600; margin-top: 0.35rem; }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin: 1.3rem 0; }
.profile-meta .pm { background: var(--white); padding: 0.8rem 0.95rem; }
.profile-meta .pk { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.profile-meta .pv { font-size: 0.94rem; font-weight: 600; color: var(--ink); margin-top: 0.2rem; line-height: 1.25; }
.profile-body > p { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0; }

/* Challenge cards */
.ch-intro { max-width: 60ch; margin-bottom: 2rem; }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ch-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column;
}
.ch-card .ch-ic {
  width: 48px; height: 48px; border-radius: var(--r-md); flex: none; margin-bottom: 1.1rem;
  display: grid; place-items: center; color: var(--rust);
  background: rgba(181,69,27,0.10);
}
.ch-card .ch-ic svg { width: 22px; height: 22px; }
.ch-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.ch-card p  { font-size: 0.96rem; line-height: 1.65; color: var(--muted); margin: 0; }

/* Journey timeline */
.journey-head { max-width: 56ch; margin-bottom: clamp(28px, 3.5vw, 44px); }
.journey { position: relative; max-width: 760px; margin: 0 auto; }
.journey::before {
  content: ''; position: absolute; left: 27px; top: 20px; bottom: 60px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--teal-blue) 70%, var(--rust));
  border-radius: 2px;
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; padding-bottom: clamp(18px, 2.5vw, 28px); }
.step:last-child { padding-bottom: 0; }
.step-node {
  width: 56px; height: 56px; flex: none; border-radius: 50%; z-index: 1;
  background: var(--white); border: 2px solid var(--teal);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 1.2rem; color: var(--teal);
}
.step-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.2vw, 26px); margin-top: 2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-card .st-phase { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.step-card h3 { font-size: 1.18rem; margin: 0.35rem 0 0.55rem; }
.step-card p  { font-size: 0.96rem; line-height: 1.65; color: var(--muted); margin: 0; }
.step.is-final .step-node { background: linear-gradient(140deg, var(--teal), var(--slate)); border-color: transparent; color: #fff; box-shadow: var(--shadow-teal); }
.step.is-final .step-node svg { width: 24px; height: 24px; }
.step.is-final .step-card { background: var(--sage); border-color: transparent; }
.step.is-final .step-card .st-phase,
.step.is-final .step-card h3  { color: var(--teal-deep); }
.step.is-final .step-card p   { color: var(--teal-deep); opacity: 0.85; }

/* Outcome band */
.outcome-band {
  background: linear-gradient(140deg, var(--slate-dark) 0%, var(--slate) 45%, var(--teal) 100%);
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 60px);
  color: #fff; box-shadow: var(--shadow-teal);
  position: relative; overflow: hidden; text-align: center;
}
.outcome-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(45% 65% at 85% 0%, rgba(63,118,150,0.55), transparent 60%); pointer-events: none; }
.outcome-band > * { position: relative; }
.ob-eyebrow { color: rgba(255,255,255,0.72); }
.outcome-band h2 { color: #fff; max-width: 22ch; margin: 0.8rem auto 0; }
.outcome-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 580px; margin: 2.2rem auto 0; }
.ob-stat { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 28px); }
.ob-stat .obs-k   { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.ob-stat .obs-v   { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-top: 0.5rem; }
.ob-stat .obs-sub { font-size: 0.88rem; color: rgba(255,255,255,0.78); margin-top: 0.35rem; }

/* Pull quote */
.pullquote { max-width: 860px; margin: 0 auto; text-align: center; }
.pullquote .pq-mark { font-family: var(--serif); font-size: 5rem; line-height: 0.4; color: var(--teal); opacity: 0.5; font-weight: 600; }
.pullquote blockquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.42; letter-spacing: -0.01em;
  color: var(--ink); margin: 0.8rem 0 1.8rem; text-wrap: balance;
}
.pullquote .pq-who { display: inline-flex; align-items: center; gap: 0.85rem; }
.pullquote .pq-av { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(140deg, var(--teal), var(--slate)); display: grid; place-items: center; color: #fff; font-weight: 700; box-shadow: 0 5px 14px rgba(45,110,126,0.3); }
.pullquote .pq-nm { font-weight: 700; color: var(--ink); text-align: left; }
.pullquote .pq-rl { font-size: 0.86rem; color: var(--muted); text-align: left; }

/* Key takeaway */
.takeaway-wrap { max-width: 62ch; margin: 0 auto; text-align: center; }
.takeaway-wrap .eyebrow { margin-bottom: 0.9rem; }
.takeaway-wrap p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.72; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-card {
  background: linear-gradient(150deg, var(--teal-blue), var(--teal) 60%, var(--slate));
  border-radius: var(--r-xl); padding: clamp(36px, 5.5vw, 68px);
  color: #fff; box-shadow: var(--shadow-teal);
  position: relative; overflow: hidden;
}
.cta-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 15% 100%, rgba(63,118,150,0.5), transparent 60%); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; max-width: 22ch; margin: 0.8rem auto 1rem; }
.cta-card p  { color: rgba(255,255,255,0.82); max-width: 50ch; margin: 0 auto 1.8rem; font-size: 1.06rem; }

/* Responsive */
@media (max-width: 820px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo { min-height: 240px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .outcome-stats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .journey::before { left: 22px; }
  .step { grid-template-columns: 46px 1fr; }
  .step-node { width: 46px; height: 46px; font-size: 1rem; }
}

/* ============================================================
   Case Studies — .cs-stories (all selectors namespaced, no globals)
   Padding handled by .section — nothing added here.
   ============================================================ */

.cs-stories__head { max-width: 60ch; margin-bottom: clamp(24px, 3.5vw, 40px); }
.cs-stories__head h2 { margin: 0 0 0.9rem; }
.cs-stories__head .lead { margin: 0; }

.cs-stories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 26px);
  align-items: stretch;
}

.cs-stories__card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.2vw, 28px);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cs-stories__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.cs-stories__profile { display: flex; align-items: center; gap: 0.9rem; }
.cs-stories__avatar {
  width: 58px; height: 58px; flex: none;
  border-radius: var(--r-md); min-height: 0;
}
.cs-stories__avatar.placeholder { transition: none; }
.cs-stories__card:hover .cs-stories__avatar.placeholder { transform: none; box-shadow: none; }
.cs-stories__avatar .ph-inner { padding: 0; }
.cs-stories__avatar .ph-bolt { width: 32px; height: 32px; color: var(--teal); }
.cs-stories__avatar .ph-bolt svg { width: 16px; height: 16px; }

.cs-stories__who { min-width: 0; }
.cs-stories__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.cs-stories__bg   { font-size: 0.84rem; line-height: 1.45; color: var(--muted); margin-top: 0.2rem; }

.cs-stories__label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.35rem;
}
.cs-stories__challenge p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink); }

.cs-stories__outcome {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: var(--sage); border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  font-weight: 700; font-size: 0.96rem; line-height: 1.4;
  letter-spacing: -0.01em; color: var(--teal-deep);
  margin-top: auto;
}
.cs-stories__check {
  flex: none; width: 22px; height: 22px;
  border-radius: var(--r-pill); display: grid; place-items: center;
  background: rgba(45,110,126,0.16); color: var(--teal-deep); margin-top: 1px;
}
.cs-stories__check svg { width: 13px; height: 13px; }

.cs-stories__quote {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.05rem; line-height: 1.55; color: var(--slate);
  padding-left: 1rem; border-left: 2px solid var(--teal);
}

.cs-stories__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 600; color: var(--teal);
  text-decoration: none;
  transition: gap .18s ease, color .18s ease;
}
.cs-stories__link svg { transition: transform .18s ease; }
.cs-stories__link:hover { color: var(--teal-deep); gap: 0.65rem; }

@media (max-width: 860px) {
  .cs-stories__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   About Section — "What we do" on home page
   ============================================================ */

.about-section { /* padding handled by .section */ }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Copy column */
.about-copy { display: flex; flex-direction: column; align-items: flex-start; }

.about-heading {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0.4rem 0 1.1rem;
  color: var(--ink);
}

.about-lead {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 1.6rem;
  max-width: 480px;
}

/* Checklist — reuses global .check-list but scoped for spacing */
.about-checklist {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
}
.about-checklist .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(45,110,126,0.28);
}

.about-cta { margin-top: 0.4rem; }

/* Visual column */
.about-visual .placeholder { min-height: 420px; }

/* Mobile */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual { order: -1; }
  .about-visual .placeholder { min-height: 260px; }
}

/* ============================================================
   Blog — posts index grid
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

/* Thumbnail */
.blog-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }

/* Placeholder when no featured image */
.blog-card__thumb--placeholder {
  background: linear-gradient(135deg, var(--sage) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
}
.blog-card__placeholder-icon { font-size: 2.8rem; color: rgba(255,255,255,0.55); }

/* Body */
.blog-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.blog-card__sep { opacity: .5; }
.blog-card__cat {
  background: rgba(45,110,126,0.10); color: var(--teal);
  border-radius: var(--r-pill); padding: 2px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}

.blog-card__title {
  font-size: 1.1rem; font-weight: 700; line-height: 1.3;
  margin: 0 0 10px; letter-spacing: -.02em;
}
.blog-card__title a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
.blog-card__title a:hover { color: var(--teal); }

.blog-card__excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  margin: 0 0 18px; flex: 1;
}

.blog-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--teal);
  text-decoration: none; transition: gap .15s ease, color .15s ease;
}
.blog-card__cta:hover { color: var(--rust); gap: 10px; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; padding: 1rem 0 2rem; }
.blog-pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  background: var(--white);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--teal); color: #fff; border-color: var(--teal);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(45,110,126,0.28), transparent 55%),
    linear-gradient(160deg, #0e2229 0%, #0a191e 100%);
  color: #cdd9d6;
  padding-block: clamp(52px, 6vw, 78px) 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.footer .brand-mark { box-shadow: 0 5px 16px rgba(0,0,0,0.4); }
.footer .wm-1 { color: #fff; }
.footer .wm-2, .footer .f-sub { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 2px; }
.footer .f-about { color: rgba(255,255,255,0.62); font-size: 0.95rem; line-height: 1.65; margin: 1.3rem 0 1.5rem; max-width: 280px; }
.footer .f-heading { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.3rem; }

.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-nav a { color: rgba(255,255,255,0.78); font-weight: 500; font-size: 0.96rem; transition: color .15s ease, padding-left .2s ease; }
.footer-nav a:hover { color: #fff; padding-left: 4px; }

.f-social { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.f-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.f-social a:hover { background: var(--teal); color: #fff; transform: translateY(-3px); border-color: var(--teal); }
.f-social svg { width: 17px; height: 17px; }

.footer .f-news-copy { color: rgba(255,255,255,0.62); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.1rem; max-width: 320px; }
.subscribe {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 5px;
  max-width: 360px; gap: 6px;
}
.subscribe input {
  flex: 1; min-width: 0; border: none; background: transparent;
  color: #fff; font-family: var(--sans); font-size: 0.92rem; padding: 0.6em 0.8em;
}
.subscribe input::placeholder { color: rgba(255,255,255,0.45); }
.subscribe input:focus { outline: none; }
.subscribe .btn { padding: 0.7em 1.3em; font-size: 0.9rem; border-radius: 9px; box-shadow: none; }

.footer .f-fineprint { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.9rem; }
.footer .f-fineprint a { color: rgba(255,255,255,0.6); }
.footer .f-fineprint a:hover { color: #fff; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px);
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
}
.footer-bottom .f-legal { margin-left: auto; display: flex; gap: 1.4rem; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   About page
   ============================================================ */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
.value-card { background: var(--card-glass); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: clamp(24px, 2.8vw, 36px); box-shadow: var(--shadow-sm); }
.value-card .v-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: linear-gradient(140deg, var(--teal), var(--teal-blue)); color: #fff; display: grid; place-items: center; margin-bottom: 1.2rem; }
.value-card .v-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.value-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ============================================================
   404 / Search / Generic page
   ============================================================ */
.page-banner { background: linear-gradient(140deg, var(--slate-dark), var(--teal) 90%); color: #fff; text-align: center; padding-block: clamp(48px, 7vw, 96px); }
.page-banner h1 { color: #fff; }
.page-content { max-width: 820px; margin: 0 auto; padding-block: clamp(48px, 6vw, 80px); }

.search-results-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.search-result { padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--card-glass); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm); }
.search-result h3 { margin-bottom: 0.4rem; }
.search-result h3 a { color: var(--teal); }
.search-result h3 a:hover { color: var(--teal-deep); }
.search-result p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { color: var(--teal-deep); }
.breadcrumb .sep { opacity: 0.4; }

/* ============================================================
   Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.in:nth-child(2) { transition-delay: .09s; }
.reveal.in:nth-child(3) { transition-delay: .18s; }
.reveal.in:nth-child(4) { transition-delay: .27s; }

.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .13s; }
.stagger.in > *:nth-child(3) { transition-delay: .21s; }
.stagger.in > *:nth-child(4) { transition-delay: .29s; }
.stagger.in > *:nth-child(5) { transition-delay: .37s; }

.lift { transition: transform .22s ease, box-shadow .22s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lift:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .nav-links, .nav-right .login-desktop { display: none; }
  .hamburger { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-radius: 0; backdrop-filter: none;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; gap: 0.2rem; box-shadow: var(--shadow-md);
    list-style: none;
  }
  .nav.open .nav-links a, .nav.open .nav-links .navbtn { padding: 0.85em 0.6em; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav.open .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0; }
  .nav.open .login-mobile { display: inline-flex; margin: 1rem 0.6em 0; }
  .about-values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.text-right .col-text { order: 0; }
  .split .col-media { order: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .test-head { flex-direction: column; align-items: flex-start; }
  .about-intro { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (max-width: 680px) {
  .sess-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .footer-bottom .f-legal { margin-left: 0; }
}

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

@media (max-width: 620px) {
  .cal-cell { min-height: 58px; padding: 4px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .cal-date { font-size: 0.72rem; }
}

/* ============================================================
   Utilities & extras
   ============================================================ */

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem;
  width: auto; height: auto; overflow: visible;
  padding: 0.75em 1.4em; border-radius: var(--r-pill);
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-md);
}

/* Focus ring — visible keyboard focus */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* WordPress core alignments */
.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem;  margin-bottom: 1rem; }
.aligncenter { display: block; margin-inline: auto; margin-bottom: 1rem; }
.wp-caption { max-width: 100%; }

/* Pagination */
.page-numbers { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem; flex-wrap: wrap; }
.page-numbers a, .page-numbers .current {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1.5px solid var(--line);
  font-size: 0.9rem; font-weight: 600;
  background: var(--white); color: var(--ink);
  transition: .18s;
}
.page-numbers a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.page-numbers .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* Search form (WP generated) */
.search-form { display: flex; gap: 0.6rem; margin-bottom: 2rem; }
.search-form .search-field {
  flex: 1; padding: 0.9em 1.1em; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white);
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.search-form .search-field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,110,126,0.12); }
.search-form .search-submit { flex: none; }

/* Dark mode: service sections */
[data-theme="dark"] .svc:nth-child(even) { background: rgba(255,255,255,0.03); }

/* Ensure body bg fills short pages */
#main { min-height: 60vh; }

/* Smooth scrolling on the carousel track */
.test-track { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .test-track { scroll-behavior: auto; } }
