/* ============================================================
   Diplomax — Premium Editorial · ThemeWagon-Inspired Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          hsl(38, 22%, 97%);
  --bg-warm:     hsl(38, 30%, 95%);
  --fg:          hsl(220, 25%, 14%);
  --primary:     hsl(220, 55%, 16%);
  --primary-fg:  hsl(38, 22%, 97%);
  --secondary:   hsl(38, 25%, 92%);
  --muted:       hsl(38, 20%, 93%);
  --muted-fg:    hsl(220, 14%, 46%);
  --accent:      hsl(39, 82%, 52%);
  --accent-soft: hsl(39, 82%, 95%);
  --accent-dk:   hsl(39, 80%, 42%);
  --border:      hsl(220, 16%, 88%);
  --border-dk:   hsl(220, 20%, 80%);
  --card:        #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px hsl(220 55% 16% / .05);
  --shadow-sm: 0 2px 8px hsl(220 55% 16% / .07), 0 1px 2px hsl(220 55% 16% / .05);
  --shadow-md: 0 8px 24px hsl(220 55% 16% / .10), 0 2px 8px hsl(220 55% 16% / .06);
  --shadow-lg: 0 24px 56px hsl(220 55% 16% / .18), 0 6px 16px hsl(220 55% 16% / .08);
  --shadow-xl: 0 40px 80px hsl(220 55% 16% / .22), 0 10px 24px hsl(220 55% 16% / .10);
  --shadow-accent: 0 8px 32px hsl(39 82% 52% / .30);

  /* Radii */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Easing */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-in:   cubic-bezier(.55, 0, 1, .45);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography Scale ───────────────────────────────────── */
h1, h2, h3, h4, blockquote {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--primary);
  font-weight: 700;
}

.display {
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: .96;
  font-weight: 800;
  text-wrap: balance;
}
.display em { color: var(--accent); font-style: italic; font-weight: 700; }

.display-md {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--muted-fg);
  display: block;
}
.eyebrow-accent { color: var(--accent); }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 44px; } }
@media (min-width: 1200px) { .container { padding: 0 64px; } }

.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.hairline {
  height: 1px;
  background: var(--border);
  width: 100%;
  margin: 28px 0;
}

/* ── Utility Bar ─────────────────────────────────────────── */
.utility-bar {
  background: var(--primary);
  color: var(--primary-fg);
  border-bottom: 1px solid hsl(38 22% 97% / .10);
  position: relative;
  z-index: 50;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}
.utility-note {
  font-family: var(--font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: hsl(38 22% 97% / .65);
}

/* Social Icons — Utility Bar */
.utility-bar .socials {
  display: flex;
  gap: 4px;
  color: inherit;
}
.utility-bar .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid hsl(38 22% 97% / .18);
  color: hsl(39, 82%, 52%);
  transition: color .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out), transform .22s var(--ease-out);
}
.utility-bar .socials a:hover {
  color: var(--primary);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.utility-bar .socials svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}
/* Force fill on all paths inside utility SVGs */
.utility-bar .socials svg path,
.utility-bar .socials svg rect,
.utility-bar .socials svg circle,
.utility-bar .socials svg polygon {
  fill: currentColor;
  stroke: none;
}
/* Instagram uses stroke — keep it */
.utility-bar .socials svg[stroke] path,
.utility-bar .socials svg[stroke] rect,
.utility-bar .socials svg[stroke] circle {
  fill: none;
  stroke: currentColor;
}

/* Social Icons — Footer */
.socials { display: flex; gap: 6px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: color .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.socials svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  /* SVG paths already carry fill/stroke via attributes — no override needed */
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(38 22% 97% / .94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid hsl(220 16% 88% / .65);
  box-shadow: 0 1px 0 hsl(220 55% 16% / .03), 0 4px 24px hsl(220 55% 16% / .06);
  transition: box-shadow .3s var(--ease-out);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

/* Branch Logos Strip */
.header-logos {
  display: none;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 44px;
  flex-shrink: 0;
}
@media (min-width: 1080px) { .header-logos { display: flex; } }

.header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  opacity: .75;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
  flex-shrink: 0;
}
.header-logo-link:hover { opacity: 1; transform: translateY(-1px); }
.header-logo-link img {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), hsl(220, 55%, 26%));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 4px 16px hsl(220 55% 16% / .22), inset 0 1px 0 hsl(38 22% 97% / .14);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px hsl(220 55% 16% / .28), inset 0 1px 0 hsl(38 22% 97% / .14);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1;
}
.brand-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--muted-fg);
  white-space: nowrap;
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 840px) { .nav { display: flex; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-fg);
  position: relative;
  transition: color .22s var(--ease-out), background .22s var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--primary); background: var(--muted); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 10px; }

/* Mobile CTA */
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
  transition: background .22s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.mobile-cta:hover {
  background: hsl(220, 55%, 12%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
@media (min-width: 840px) { .mobile-cta { display: none; } }
@media (max-width: 420px) {
  .brand-mark { width: 40px; height: 40px; font-size: 22px; }
  .brand-name  { font-size: 19px; }
  .mobile-cta  { padding: 0 14px; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all .28s var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: hsl(38 22% 97% / .08);
  opacity: 0;
  transition: opacity .22s var(--ease-out);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 2px 8px hsl(220 55% 16% / .20), inset 0 1px 0 hsl(38 22% 97% / .10);
}
.btn-primary:hover {
  background: hsl(220, 55%, 12%);
  box-shadow: 0 8px 28px hsl(220 55% 16% / .30), inset 0 1px 0 hsl(38 22% 97% / .10);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-dk);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(540px, 78svh, 720px);
  padding: 80px 0 64px;
  display: flex;
  align-items: flex-end;
  background: var(--primary);
  color: var(--primary-fg);
}

/* Layered gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, hsl(220 55% 14% / .96) 0%, hsl(220 55% 14% / .72) 45%, hsl(220 55% 14% / .18) 100%),
    linear-gradient(0deg, hsl(220 55% 10% / .6) 0%, transparent 45%);
}

/* Subtle decorative element */
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(180deg, hsl(39 82% 52% / .06) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-banner-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.00); }
}

.hero-banner-content {
  display: grid;
  gap: 40px;
  align-items: end;
  width: 100%;
}
@media (min-width: 960px) {
  .hero-banner-content { grid-template-columns: minmax(0, 1fr) auto; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  animation: fadeUp .9s var(--ease-out) both;
}
.hero .eyebrow { color: var(--accent); }
.hero .display { color: var(--primary-fg); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-actions .btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}
.hero-actions .btn-primary:hover {
  background: var(--accent-dk);
  box-shadow: 0 14px 40px hsl(39 82% 52% / .4);
}
.hero-actions .btn-ghost {
  border-color: hsl(38 22% 97% / .35);
  color: var(--primary-fg);
}
.hero-actions .btn-ghost:hover {
  background: hsl(38 22% 97% / .12);
  border-color: hsl(38 22% 97% / .6);
  color: var(--primary-fg);
}

/* Stats bubble */
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px;
  background: hsl(220 55% 10% / .55);
  border: 1px solid hsl(38 22% 97% / .12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px hsl(220 55% 10% / .28);
  animation: fadeUp 1.1s .2s var(--ease-out) both;
}
.stat-num   { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: hsl(38 22% 97% / .76); margin-top: 4px; }

@media (max-width: 640px) {
  .hero { min-height: 560px; padding: 72px 0 48px; }
  .hero-stat { padding: 16px 20px; }
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 96px 0; }

.section-muted {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--primary);
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(39 82% 52% / .06) 0%, transparent 70%);
  pointer-events: none;
}
.section-dark h2,
.section-dark .display-md { color: var(--primary-fg); }
.muted-on-dark { color: hsl(38 22% 97% / .65); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-sub { color: var(--muted-fg); max-width: 26rem; font-size: 15px; line-height: 1.7; }

/* Decorative accent line */
.section-head > div { position: relative; }
.section-head > div .eyebrow { margin-bottom: 12px; }

/* ── Branches Grid ───────────────────────────────────────── */
.grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.grid-branches {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px)  { .grid-branches { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-branches { grid-template-columns: repeat(5, 1fr); } }

.grid-locations {
  grid-template-columns: 1fr;
  margin-top: 28px;
  background: hsl(38 22% 97% / .08);
  border-color: hsl(38 22% 97% / .10);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
}
@media (min-width: 640px)  { .grid-locations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-locations { grid-template-columns: repeat(3, 1fr); } }

.cell {
  background: var(--card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  gap: 28px;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.cell-num {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted-fg);
  font-weight: 700;
}

/* Branch cells */
.branch-cell {
  cursor: pointer;
  position: relative;
}
.branch-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(220 55% 24%) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.branch-cell:hover::before { opacity: 0; }
.branch-cell:hover { color: var(--primary-fg); }
.branch-cell:hover .cell-num,
.branch-cell:hover .branch-country { color: var(--muted-fg); }
.branch-cell:hover .branch-name    { color: var(--primary); }
.branch-cell:hover .arrow          { color: var(--accent); transform: translate(4px, -4px); }

.branch-logo-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  position: relative;
}
.branch-logo-wrap img {
  max-height: 60px;
  max-width: 150px;
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: filter .4s var(--ease-out);
}

.branch-cell--1 .branch-logo-wrap img {
  max-width: 110px;
}

.branch-cell--2 .branch-logo-wrap img {
  max-width: 70px;
}

.branch-cell--3 .branch-logo-wrap img {
  max-width: 70px;
}

.branch-cell--4 .branch-logo-wrap img {
  max-width: 120px;
}

.branch-cell--5 .branch-logo-wrap img {
  max-width: 150px;
  height: 60px;
}
.branch-cell:hover .branch-logo-wrap img {
  filter: brightness(1.08);
}

.branch-info { position: relative; }
.branch-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.branch-country {
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 4px;
  font-weight: 500;
}

.arrow {
  color: var(--border-dk);
  transition: all .32s var(--ease-out);
  display: inline-block;
  font-size: 18px;
  position: relative;
}

/* ── Location Cells ──────────────────────────────────────── */
.location-cell {
  background: hsl(220 55% 16% / .97);
  color: var(--primary-fg);
  min-height: 200px;
  height: 100%;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  transition: background .35s var(--ease-out);
}
.grid-locations {
  align-items: stretch;
}
.grid-locations > * {
  height: auto;
  align-self: stretch;
}
.location-cell-group {
  grid-column: 1 / -1;
  min-height: 0;
  background: hsl(220 55% 12% / .97);
}
.location-cell-group > div { width: 100%; }

/* Show/hide logic for location-cell-group */
.location-cell-group .pin:not(.pin-clean),
.location-cell-group .loc-cta:not(.loc-cta-clean) { display: none; }

.location-cell:hover { background: hsl(220 55% 10%); }
.location-cell-group:hover { background: hsl(220 55% 8%); }

.pin        { color: var(--accent); font-size: 15px; }
.pin-clean  { font-size: 10px; }

.loc-country {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.15;
}
.loc-region {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 6px;
  color: hsl(38 22% 97% / .65);
}
.loc-address {
  font-size: 13px;
  line-height: 1.5;
  opacity: .68;
  margin-top: 6px;
  max-width: 20rem;
}
.loc-cta {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  opacity: .55;
  margin-top: 14px;
  transition: opacity .22s var(--ease-out);
}
.location-cell:hover .loc-cta { opacity: .9; }

.campus-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  margin-top: 20px;
}
.campus-list li {
  border-top: 1px solid hsl(38 22% 97% / .14);
  padding-top: 12px;
  line-height: 1.4;
  transition: border-color .3s var(--ease-out);
}
.location-cell:hover .campus-list li { border-color: hsl(38 22% 97% / .22); }
.campus-list span  { display: block; font-size: 14px; font-weight: 600; }
.campus-list small { display: block; font-size: 11.5px; opacity: .62; margin-top: 3px; }

/* ── President Section ───────────────────────────────────── */
.president-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .president-grid { grid-template-columns: 5fr 7fr; }
}

.president-image {
  position: relative;
}
.president-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .6;
}
.president-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  height: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.president-copy { display: flex; flex-direction: column; gap: 28px; }

.quote {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  font-weight: 600;
  font-style: italic;
  color: var(--primary);
}

.president-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.president-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.president-role {
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 3px;
  font-weight: 500;
}

.readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1.5px solid var(--border-dk);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: all .28s var(--ease-out);
  white-space: nowrap;
}
.readmore:hover {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Map ─────────────────────────────────────────────────── */
.map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(38 22% 97% / .12);
  background: hsl(220 55% 12%);
  box-shadow: 0 4px 32px hsl(220 55% 10% / .4);
}
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.leaflet-popup-content         { font-size: 13px; margin: 14px 18px; }
.leaflet-popup-content strong  { font-family: var(--font-display); font-size: 16px; color: var(--primary); display: block; margin-bottom: 6px; }
.popup-details                 { display: block; color: var(--muted-fg); line-height: 1.5; margin-bottom: 10px; }
.leaflet-popup-content a       { color: var(--accent-dk); font-weight: 600; transition: color .2s; }
.leaflet-popup-content a:hover { color: var(--primary); }
.leaflet-popup-tip-container   { display: none; }

/* ── Read More Page ──────────────────────────────────────── */
.rm-hero {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(220, 55%, 22%) 100%);
  color: var(--primary-fg);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.rm-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsl(39 82% 52% / .12) 0%, transparent 70%);
  pointer-events: none;
}
.rm-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.rm-hero .eyebrow { color: var(--accent); margin-bottom: 4px; }

.rm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: hsl(38 22% 97% / .55);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
  transition: color .22s var(--ease-out);
  width: fit-content;
}
.rm-back:hover { color: var(--accent); }

.rm-title { color: var(--primary-fg); }
.rm-role {
  font-size: 14px;
  color: hsl(38 22% 97% / .6);
  font-weight: 500;
  letter-spacing: .04em;
}

.rm-layout {
  display: grid;
  gap: 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .rm-layout { grid-template-columns: 300px 1fr; }
}

.rm-portrait-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 100px;
}
.rm-portrait-wrap img { width: 100%; height: auto; display: block; }

.rm-sidebar-meta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rm-sidebar-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.rm-sidebar-role { font-size: 13px; color: var(--muted-fg); }
.rm-sidebar-org  {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.rm-sidebar-tag  { font-size: 11px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .1em; }

.rm-pullquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.35;
  font-weight: 600;
  font-style: italic;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 36px;
}

.rm-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  max-width: 68ch;
}
.rm-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 5em;
  font-weight: 800;
  float: left;
  line-height: .8;
  margin: .06em .12em -.02em 0;
  color: var(--primary);
}

.rm-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--fg);
  color: hsl(38 22% 97% / .85);
  border-top: none;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 52px 0 40px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.footer-copy {
  font-size: 12px;
  color: hsl(38 22% 97% / .45);
  line-height: 1.6;
}

/* Footer socials override */
.site-footer .socials a {
  border-color: hsl(38 22% 97% / .14);
  background: hsl(38 22% 97% / .06);
  color: hsl(38 22% 97% / .65);
}
.site-footer .socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal utility — JS optional, CSS fallback */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Focus Styles ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: hsl(39 82% 52% / .22);
  color: var(--primary);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dk); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-fg); }

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .utility-bar, .site-header, .site-footer, .map { display: none; }
  .section { padding: 24px 0; }
}


.branch-cell--5 .branch-logo-wrap img {
  max-height: 60px;
  max-width: 150px;
  height: 60px;
}

.header-logo-link:last-child img {
  height: 40px;
  max-width: 100px;
}

.branch-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}