.country-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.country-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 2px;
}

.country-list::-webkit-scrollbar { display: none; }

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-light);
  color: white;
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.18s ease;
}

.country-pill:hover,
.country-pill.active {
  background: rgba(244, 81, 30, 0.16);
  border-color: rgba(244, 81, 30, 0.55);
}

.country-pill img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
}

.country-pill .count {
  color: var(--orange);
  font-weight: 600;
}

.nav-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.18s ease;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
}

.nav-arrow:disabled {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 540px at 76% 16%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #1a4aad 0%, #123a8c 52%, #0c2d70 100%);
}

#map {
  width: 100%;
  height: 100%;
  min-height: 640px;
  display: block;
  overflow: hidden;
}
.home-hero-map #map,
.home-hero-split #map,
.home-network #map {
  height: 100%;
  min-height: 0;
}

#map .land {
  filter: drop-shadow(0 18px 32px rgba(4, 14, 48, 0.38));
}

#map path.country {
  fill: var(--map-fill);
  stroke: rgba(12, 45, 112, 0.34);
  stroke-width: 0.75;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

#map path.country.has-alumni {
  fill: var(--map-hot);
  stroke: rgba(12, 45, 112, 0.28);
}

#map path.country.dim {
  fill: #d7e1f2;
  opacity: 0.9;
}

#map path.country:hover {
  fill: #f4511e;
  stroke: #ffd0c2;
}

#map path.country.selected {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 14px rgba(244, 81, 30, 0.55));
}

#map path.country.hub {
  fill: #f4511e;
  stroke: #ffd0c2;
  filter: drop-shadow(0 0 18px rgba(244, 81, 30, 0.45));
}

.home-network #map path.country.dim {
  fill: #7e9ad0;
  opacity: 0.58;
  stroke: rgba(12, 45, 112, 0.22);
}

.home-network #map path.country.focus,
.home-network #map path.country.has-alumni {
  fill: #f4f7ff;
  opacity: 1;
  stroke: #fff;
  stroke-width: 1.15;
  filter: drop-shadow(0 6px 14px rgba(8, 22, 64, 0.28));
}

.home-network #map path.country.hub {
  fill: #ff7a4d;
  stroke: #fff;
  stroke-width: 1;
  filter: none;
}

.home-network #map .map-label.feat {
  font-size: 11.5px;
  font-weight: 700;
  fill: #0c2d70;
}

.home-network #map .map-label.city {
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
  stroke: #0c2d70;
  stroke-width: 4px;
}

.home-network #map .map-label.hub {
  font-size: 12px;
}

#map .arc-faint {
  fill: none;
  stroke: rgba(244, 81, 30, 0.22);
  stroke-width: 0.8;
  pointer-events: none;
}

#map .arc-strong {
  fill: none;
  stroke: #f4511e;
  stroke-width: 1.6;
  stroke-dasharray: 10 16;
  stroke-linecap: round;
  pointer-events: none;
  animation: dash-flow 2.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(244, 81, 30, 0.65));
}

#map .arc-strong.active {
  stroke: #fff;
  stroke-width: 2.1;
}

#map .arc-particle {
  fill: #fff;
  stroke: #f4511e;
  stroke-width: 1.2;
  pointer-events: none;
  filter: drop-shadow(0 0 8px #f4511e);
}

@keyframes dash-flow {
  to { stroke-dashoffset: -80; }
}

#map .pulse {
  fill: var(--orange);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
  pointer-events: auto;
}

#map .hub-pulse,
#map .city-pulse {
  pointer-events: auto;
}

#map .hub-pulse {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 2;
}

#map .city-pulse {
  fill: var(--orange);
  stroke: #fff;
}

#map .pulse-ring {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.4;
  opacity: 0.7;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s ease-out infinite;
}

#map .hub-ring {
  stroke: #fff;
  stroke-width: 1.8;
}

#map .city-label,
#map .map-label {
  fill: #0c2d7a;
  font-size: 9.5px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 3.4px;
  stroke-linejoin: round;
}

#map .map-label.feat {
  font-size: 10.5px;
  font-weight: 700;
}

#map .map-label.city,
#map .city-label {
  font-size: 11px;
  font-weight: 700;
}

#map .map-label.hub,
#map .hub-label {
  fill: #0f3d9e;
  font-size: 12px;
  font-weight: 700;
}

@keyframes pulse {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.legend {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 14px;
  background: rgba(15, 61, 158, 0.55);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: #d5deee;
  backdrop-filter: blur(10px);
}

.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend .hot { background: #3c7cf0; }
.legend .idle { background: #4f8ff7; border: 1px solid #fff; }
.legend .sel { background: var(--orange); }

.tooltip {
  position: absolute;
  pointer-events: none;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.12s ease;
  z-index: 5;
  min-width: 140px;
}

.tooltip.show { opacity: 1; }

.tooltip b { display: block; font-size: 14px; }
.tooltip span { color: var(--muted); font-size: 12px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 158, 0.12);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 30;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1120px, calc(100% - 40px));
  max-height: min(92vh, 900px);
  background: rgba(12, 32, 90, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  color: white;
  z-index: 40;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.34s ease;
}
.panel-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 82, 0.78) 0%, rgba(12, 32, 90, 0.7) 45%, rgba(10, 24, 70, 0.86) 100%),
    url("../img/photos/grad-caps.jpg") center 40% / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel .panel-bg { position: absolute; z-index: 0; }

.panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.panel .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.panel-head {
  padding: 22px 28px 8px;
}

.panel-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5d4f0;
  margin-bottom: 10px;
}

.panel-kicker img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

.panel-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-right: 44px;
}

.panel-head h2 {
  font-family: "Bricolage Grotesque", Poppins, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.panel-head p {
  margin-top: 8px;
  color: #c9d4e8;
  font-size: 14px;
}

.panel-metrics {
  display: flex;
  gap: 8px;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 72px;
}

.metric b {
  display: block;
  font-size: 20px;
  font-family: "Bricolage Grotesque", Poppins, sans-serif;
}

.metric span { font-size: 11px; color: #c5d4f0; }

.panel-tools {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.panel-tools .chip {
  color: white;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.panel-tools .chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.alumni-stage {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 8px 6px;
  min-height: 0;
  flex: 1;
}

.alumni-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  font-size: 26px;
  background: rgba(15, 61, 158, 0.5);
  backdrop-filter: blur(8px);
}

#alumni-prev { left: 10px; }
#alumni-next { right: 10px; }

.alumni-list {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px 52px 18px;
}

.alumni-list::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  flex: 0 0 260px;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  isolation: isolate;
  animation: rise 0.45s ease both;
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.card-video {
  flex: 0 0 260px;
  height: 320px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(12, 32, 90, 0.1) 8%, rgba(12, 32, 90, 0.88) 100%),
    url("../img/photos/speaker.jpg") 78% 10% / cover no-repeat;
}
.card-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.card-video.playing {
  flex-basis: min(480px, 70vw);
  background: #000;
}
.card-video.playing video {
  opacity: 1;
  pointer-events: auto;
}
.card-video.playing .play-btn,
.card-video.playing .card-shade,
.card-video.playing .card-body {
  opacity: 0;
  pointer-events: none;
}
.play-btn {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 38%;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.play-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  margin-left: 2px;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(244, 81, 30, 0.7);
  z-index: 2;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.card img, .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 42px;
  background: linear-gradient(135deg, #175cd3, #f4511e);
}
.avatar-scene {
  background-size: cover;
  background-position: center;
}
.avatar-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 45, 112, .25), rgba(12, 45, 112, .78));
}
.avatar-scene span { position: relative; z-index: 1; }

.card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 61, 158, 0.04) 28%, rgba(15, 61, 158, 0.82) 100%);
  z-index: 1;
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
}

.card h3 {
  font-family: "Bricolage Grotesque", Poppins, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card .role {
  font-size: 12.5px;
  color: #d7e0f2;
  margin-top: 6px;
  line-height: 1.35;
}

.card .program {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 600;
}

.pill.mba { background: rgba(244, 81, 30, 0.9); }
.pill.cert { background: rgba(23, 92, 211, 0.9); }

.card blockquote {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 13px;
  color: #e8eef8;
  border-left: 2px solid var(--orange);
  padding-left: 10px;
  margin-top: 0;
  line-height: 1.45;
  transition: 0.28s ease;
}

.card:hover blockquote {
  max-height: 90px;
  opacity: 1;
  margin-top: 10px;
}

.empty {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  width: 100%;
  color: white;
}

.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: #c9d4e8; font-size: 14px; line-height: 1.5; }

.panel-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 22px 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 980px) {
  .header-tools .h-formations { display: none !important; }
  .country-pill { padding: 8px 12px 8px 8px; font-size: 13px; }
  .nav-arrow { width: 34px; height: 34px; flex-shrink: 0; }
  .section {
    grid-template-columns: 1fr;
  }

  .copy {
    padding: 28px 20px 8px;
    border-right: 0;
  }

  .copy h1 { font-size: 36px; }

  .lede { max-width: none; }

  #map { min-height: 520px; }
  .home-network #map,
  .home-hero-map #map,
  .home-hero-split #map { min-height: 0; height: 100%; }

  .panel {
    width: calc(100% - 16px);
    max-height: 88vh;
    border-radius: 22px;
  }

  .card {
    flex-basis: 210px;
    height: 300px;
  }
  .card-video {
    flex-basis: 210px;
  }
  .card-video.playing {
    flex-basis: min(420px, 86vw);
  }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .brand-tag, .topbar-note { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .panel-head { padding: 18px 16px 6px; }
  .panel-title-row { padding-right: 36px; }
  .alumni-stage { padding: 4px 8px; }
  .alumni-arrow { width: 32px; height: 32px; }
}
