/* ==========================================================================
   Frankfurt Trading School — Premium Component Layer
   Loaded after style.css; introduces all v2 visual upgrades.
   ========================================================================== */

/* ---------- Icon system ---------- */
.icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  display: inline-block;
  flex-shrink: 0;
  color: var(--navy-900);
}
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 36px; height: 36px; }
.icon-gold { color: var(--gold-500); }
.icon-light { color: var(--gold-400); }

/* Override sprite's default currentColor stroke so features icons show gold on navy */
.feature-icon .icon { color: var(--navy-900); }
.feature-icon .icon .g { stroke: var(--navy-900); }
.feature-icon .icon .d { fill: var(--gold-500); }

/* ---------- Seal row (accreditation) ---------- */
.seal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}
.seal-row .seal {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 6px 14px rgba(10, 30, 63, 0.18));
  transition: transform var(--transition-base), filter var(--transition-base);
}
.seal-row .seal:hover {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 10px 22px rgba(201, 169, 97, 0.28));
}
.seal-row.seals-lg .seal { width: 112px; height: 112px; }
.seal-row.seals-inline {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,97,0.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

/* Hero seal band */
.hero-seals {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}
.hero-seals .seal {
  width: 72px;
  height: 72px;
  opacity: 0.9;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.hero-seals .seal:hover { opacity: 1; transform: translateY(-2px) scale(1.06); }

/* Override legacy .accred-row into a seals-grid layout */
.accred-row {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 2rem !important;
}
.accred-item {
  border: none !important;
  padding: 0.5rem 0.75rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 140px;
  text-align: center;
}
.accred-item .seal {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 6px 14px rgba(10, 30, 63, 0.18));
  transition: transform var(--transition-base);
}
.accred-item:hover .seal { transform: translateY(-4px) scale(1.04); }

/* ---------- Trust ticker (marquee) ---------- */
.trust-ticker {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: tickerSlide 38s linear infinite;
}
.trust-ticker:hover .trust-ticker-track { animation-play-state: paused; }
.trust-pill {
  flex-shrink: 0;
  padding: 0.8rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--grey-700);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(10,30,63,0.04);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.trust-pill:hover {
  color: var(--navy-900);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}
.trust-pill .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
}
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Stock ticker strip (hero) ---------- */
.market-ticker {
  background: linear-gradient(180deg, rgba(10,30,63,0.95), rgba(10,30,63,0.85));
  border-top: 1px solid rgba(201,169,97,0.2);
  border-bottom: 1px solid rgba(201,169,97,0.2);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.market-ticker::before, .market-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.market-ticker::before { left: 0; background: linear-gradient(90deg, var(--navy-900), transparent); }
.market-ticker::after  { right: 0; background: linear-gradient(-90deg, var(--navy-900), transparent); }
.market-ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: tickerSlide 60s linear infinite;
}
.market-ticker:hover .market-ticker-track { animation-play-state: paused; }
.tick {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tick .sym {
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.tick .val { font-weight: 500; }
.tick.up   { color: #7ed79e; }
.tick.down { color: #e59a9a; }
.tick .arr { font-size: 0.75rem; }

/* ---------- Filigree divider ---------- */
.filigree {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 40px;
  margin: 3rem auto;
  color: var(--gold-500);
  opacity: 0.85;
}
.filigree.on-dark { color: var(--gold-400); opacity: 0.95; }

/* ---------- Premium program card overlay ---------- */
.program-card .program-ribbon {
  position: absolute;
  top: 14px; left: -6px;
  z-index: 3;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 0.35rem 0.85rem 0.35rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 4px 10px rgba(201,169,97,0.3);
}
.program-card .program-ribbon::before {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  border: 3px solid var(--navy-800);
  border-color: var(--navy-800) transparent transparent var(--navy-800);
  border-width: 3px 3px 3px 3px;
}
.program-card {
  position: relative;
}
.program-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width 500ms cubic-bezier(0.4,0,0.2,1);
  z-index: 4;
}
.program-card:hover::after { width: 100%; }
.program-card:hover {
  transform: translateY(-8px);
}

.program-meta {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 !important;
  text-align: center;
}
.program-meta span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.25rem;
  border-right: 1px solid var(--gold-300);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.program-meta span:last-child { border-right: none; }
.program-meta strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  text-transform: none;
}

.program-master {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--grey-700);
}
.program-master li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.program-master .icon { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- Faculty: oval portrait frames ---------- */
.faculty-card {
  text-align: center;
}
.faculty-photo {
  aspect-ratio: 3 / 4 !important;
  border-radius: 48% 48% 46% 46% / 50% 50% 48% 48% !important;
  max-width: 260px;
  margin: 0 auto 1.25rem !important;
  position: relative;
  box-shadow: 0 10px 28px rgba(10,30,63,0.18);
  outline: 1px solid var(--gold-300);
  outline-offset: 6px;
}
.faculty-photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 1px solid var(--gold-400);
  opacity: 0.45;
  pointer-events: none;
}
.faculty-name, .faculty-title, .faculty-bio { text-align: center; }
.faculty-bio { max-width: 280px; margin: 0 auto 0.75rem; }

.faculty-card .linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  font-weight: 600;
  margin-top: 0.4rem;
  transition: color var(--transition-fast);
}
.faculty-card .linkedin-link:hover { color: var(--gold-500); }
.faculty-card .linkedin-link .icon { width: 16px; height: 16px; }

.faculty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.faculty-tag {
  font-size: 0.6875rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--gold-300);
  color: var(--gold-500);
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(201,169,97,0.05);
}

/* ---------- Dean feature polish ---------- */
.dean-feature-body blockquote {
  position: relative;
  border-left: none !important;
  padding-left: 2.25rem !important;
  font-size: 1.375rem !important;
}
.dean-feature-body blockquote::before {
  content: '“';
  position: absolute;
  top: -1.25rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.75;
}
.dean-feature-body blockquote::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4rem;
  line-height: 0.85;
  padding: 0.2rem 0.6rem 0 0;
  color: var(--gold-500);
  font-weight: 600;
  font-style: normal;
}

/* ---------- Data viz containers ---------- */
.viz-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}
.viz-block.on-dark {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border-color: rgba(201,169,97,0.15);
}
.viz-block.on-dark h3 { color: var(--white); }

.viz-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.viz-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.viz-caption {
  font-size: 0.8125rem;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  margin-top: 1rem;
}
.viz-block.on-dark .viz-caption { color: rgba(255,255,255,0.6); }

.growth-arc, .viz-svg { width: 100%; height: auto; display: block; }

/* Roadmap scroll container */
.roadmap-scroll {
  overflow-x: auto;
  padding: 1rem 0;
}
.roadmap-scroll svg { min-width: 920px; }

/* Sankey */
.sankey-svg { background: transparent; }
.sankey-svg .flow { transition: opacity var(--transition-fast); }
.sankey-svg .flow:hover { opacity: 1 !important; }

/* Funnel */
.funnel-step {
  transition: transform var(--transition-base);
}
.funnel-wrap:hover .funnel-step { opacity: 0.55; }
.funnel-wrap:hover .funnel-step:hover { opacity: 1; transform: translateX(0); }

/* Horizontal timeline */
.hist-timeline {
  position: relative;
  padding: 3rem 0 4rem;
  overflow-x: auto;
}
.hist-timeline-track {
  position: relative;
  display: flex;
  gap: 0;
  min-width: 1000px;
  padding: 4rem 0;
}
.hist-timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2rem; right: 2rem;
  height: 1px;
  border-top: 1.5px dashed var(--gold-300);
}
.hist-dot {
  position: relative;
  flex: 1;
  text-align: center;
  min-width: 140px;
  cursor: pointer;
}
.hist-dot .bullet {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold-500);
  margin: 0 auto;
  box-shadow: 0 0 0 6px rgba(201,169,97,0.15);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
}
.hist-dot:hover .bullet {
  background: var(--gold-500);
  box-shadow: 0 0 0 10px rgba(201,169,97,0.2);
  transform: scale(1.1);
}
.hist-dot .year {
  position: absolute;
  top: calc(50% - 70px);
  left: 0; right: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy-900);
}
.hist-dot .label {
  position: absolute;
  top: calc(50% + 30px);
  left: 0; right: 0;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--grey-700);
  line-height: 1.4;
}
.hist-dot .tooltip {
  position: absolute;
  top: calc(50% + 70px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-900);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  width: 200px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 5;
}
.hist-dot:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Testimonial hero ---------- */
.tm-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 50%, var(--navy-900));
  color: var(--white);
  padding: 5rem 0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.tm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201,169,97,0.15), transparent 55%);
  pointer-events: none;
}
.tm-hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
}
.tm-quote-marks {
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 0.6;
  color: var(--gold-400);
  opacity: 0.55;
  margin-bottom: 1rem;
}
.tm-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 2rem;
  min-height: 180px;
}
.tm-meta {
  color: var(--gold-400);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
}
.tm-thumbs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.tm-thumb {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}
.tm-thumb .tm-thumb-name {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.tm-thumb:hover, .tm-thumb.active {
  border-color: var(--gold-400);
  transform: translateY(-2px);
}
.tm-thumb.active .tm-thumb-name { color: var(--gold-400); }

/* ---------- Certificate coverflow ---------- */
.coverflow-wrap {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  padding: 4rem 0 5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.coverflow-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201,169,97,0.12), transparent 60%);
}
.coverflow-track {
  position: relative;
  height: 360px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coverflow-card {
  position: absolute;
  width: 280px;
  height: 340px;
  border-radius: 8px;
  background: var(--gold-100);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: transform 500ms cubic-bezier(0.4,0,0.2,1), opacity 500ms;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
}
.coverflow-card svg { width: 100%; height: 100%; display: block; }

.coverflow-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.coverflow-btn {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.coverflow-btn:hover { background: var(--gold-500); color: var(--navy-900); }
.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.coverflow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.coverflow-dot.active { background: var(--gold-400); width: 24px; border-radius: 4px; }

/* ---------- Mega-menu ---------- */
.nav-menu .has-mega { position: static; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 3px solid var(--gold-500);
  box-shadow: 0 20px 40px rgba(10,30,63,0.12);
  padding: 2.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 50;
}
.nav-menu .has-mega:hover .mega-menu,
.nav-menu .has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2.5rem;
}
.mega-col h6 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
  font-weight: 700;
}
.mega-col ul { list-style: none; }
.mega-col li { margin-bottom: 0.5rem; }
.mega-col a {
  color: var(--navy-900);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.mega-col a:hover { color: var(--gold-500); }
.mega-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mega-feature-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--navy-900);
}
.mega-feature-card:hover {
  border-color: var(--gold-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mega-feature-thumb {
  height: 120px;
  background-size: cover;
  background-position: center;
}
.mega-feature-body {
  padding: 0.75rem 1rem;
}
.mega-feature-body strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
  color: var(--navy-900);
}
.mega-feature-body span {
  font-size: 0.75rem;
  color: var(--grey-500);
  letter-spacing: 0.05em;
}
.mega-cta {
  display: block;
  padding: 1.25rem;
  background: var(--gold-100);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 3px solid var(--gold-500);
}
.mega-cta .label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
}
.mega-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 0.25rem 0 0.5rem;
}
.mega-cta a {
  font-size: 0.875rem;
  color: var(--navy-900);
  font-weight: 600;
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
}
.mega-cta a:hover { color: var(--gold-500); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: var(--scroll-progress-top, 0);
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 1100;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ---------- Institutional footer ---------- */
.footer-institutional {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  position: relative;
  padding: 0;
}
.footer-row {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-row.seal-strip {
  background: rgba(255,255,255,0.02);
}
.footer-row.seal-strip .seal-row {
  padding: 1rem 0;
  gap: 2.5rem;
}
.footer-brand-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.footer-logo-inverted { max-height: 88px; width: auto; }
.footer-tagline {
  color: rgba(255,255,255,0.65);
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  max-width: 420px;
}
.footer-newsletter {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,97,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.footer-newsletter label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-newsletter p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.footer-newsletter form {
  display: flex;
  gap: 0.75rem;
  position: relative;
}
.footer-newsletter input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: rgba(10,30,63,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition-base);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(10,30,63,0.8);
  box-shadow: 0 0 0 1px var(--gold-400), 0 0 24px rgba(201,169,97,0.12);
}
.footer-bottom-bar {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-bar a {
  color: rgba(255,255,255,0.55);
  margin: 0 0.75rem;
  font-size: 0.8125rem;
}
.footer-bottom-bar a:hover { color: var(--gold-400); }
.footer-bottom-bar .footer-made {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-400);
  opacity: 0.85;
}
.footer-social-mini {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-social-mini a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}
.footer-social-mini a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}
.footer-social-mini .icon { width: 16px; height: 16px; }

/* ---------- Chatbot concierge ---------- */
.chatbot-trigger {
  position: relative;
}
.chatbot-trigger::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  opacity: 0;
  animation: goldPulse 2.5s infinite;
  pointer-events: none;
}
@keyframes goldPulse {
  0% { opacity: 0.7; transform: scale(1); }
  75% { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

.chatbot-panel {
  width: 400px !important;
  height: 580px !important;
  border: 1px solid rgba(201,169,97,0.3) !important;
  box-shadow: 0 24px 60px rgba(10,30,63,0.35) !important;
  overflow: hidden;
}
.chatbot-header {
  padding: 1.5rem !important;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800)) !important;
  border-bottom: 1px solid rgba(201,169,97,0.2);
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.chatbot-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}
.chatbot-avatar::after {
  content: '';
  width: 10px; height: 10px;
  background: #4ade80;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  position: absolute;
  bottom: -2px; right: -2px;
}
.chatbot-header-text { flex: 1; }
.chatbot-header-text h5 {
  color: var(--white) !important;
  margin: 0 0 0.15rem !important;
  font-size: 1rem !important;
}
.chatbot-header-text span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.chat-intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.chat-intent {
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--navy-900);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chat-intent:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-1px);
}
.chat-message .chat-bot,
.chat-message .chat-user {
  border-radius: 14px !important;
}
.chat-message .chat-user {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)) !important;
  color: var(--gold-100) !important;
}
.chat-message .chat-bot {
  border: 1px solid var(--grey-200);
}
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.6rem 1rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Drop cap & typography polish ---------- */
.page-hero-inner > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4rem;
  line-height: 0.85;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--gold-400);
  font-weight: 600;
}
.section-lead {
  max-width: 62ch !important;
}
.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy-900);
  padding: 2rem 0 2rem 3.5rem;
  margin: 2rem 0;
}
.pull-quote::before {
  content: '“';
  position: absolute;
  top: -0.5rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.7;
}

/* ---------- Cursor spotlight ---------- */
.hero::before, .page-hero::before {
  /* spotlight goes in an after-layer; leaving these untouched */
}
.hero .cursor-spotlight, .page-hero .cursor-spotlight {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.06), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 400ms ease-out;
  mix-blend-mode: screen;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero .cursor-spotlight, .page-hero .cursor-spotlight { display: block; }
}

/* ---------- Reveal cascade ---------- */
.reveal-cascade > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-cascade.active > *:nth-child(1) { transition-delay: 0ms; }
.reveal-cascade.active > *:nth-child(2) { transition-delay: 80ms; }
.reveal-cascade.active > *:nth-child(3) { transition-delay: 160ms; }
.reveal-cascade.active > *:nth-child(4) { transition-delay: 240ms; }
.reveal-cascade.active > *:nth-child(5) { transition-delay: 320ms; }
.reveal-cascade.active > *:nth-child(6) { transition-delay: 400ms; }
.reveal-cascade.active > *:nth-child(7) { transition-delay: 480ms; }
.reveal-cascade.active > *:nth-child(8) { transition-delay: 560ms; }
.reveal-cascade.active > * { opacity: 1; transform: translateY(0); }

/* ---------- Campus cityscape silhouettes ---------- */
.campus-card {
  position: relative;
  isolation: isolate;
}
.campus-card .city-silhouette {
  position: absolute;
  bottom: 0; right: 0;
  width: 65%;
  height: 50%;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.campus-card .campus-flag,
.campus-card .campus-country,
.campus-card .campus-city,
.campus-card .campus-info { position: relative; z-index: 1; }

/* Campus filter sidebar */
.campus-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.campus-filter {
  position: sticky;
  top: 140px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.campus-filter h5 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
  font-weight: 700;
}
.campus-filter ul { list-style: none; }
.campus-filter li {
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  color: var(--navy-900);
  font-size: 0.9375rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  font-weight: 500;
}
.campus-filter li:hover,
.campus-filter li.active {
  color: var(--gold-500);
  padding-left: 0.75rem;
  background: var(--gold-100);
}
.campus-filter li .count {
  float: right;
  font-size: 0.75rem;
  color: var(--grey-500);
  background: var(--grey-100);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

/* Brand header logo swap */
.brand-logo-image {
  height: 44px;
  width: auto;
}

/* Gold hover pulse */
@keyframes subtleShine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Responsive trims ---------- */
@media (max-width: 1100px) {
  .mega-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .campus-layout { grid-template-columns: 1fr; }
  .campus-filter { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .campus-filter ul { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; }
  .campus-filter li { padding: 0.4rem 1rem; border: 1px solid var(--grey-200); }
  .footer-brand-row { grid-template-columns: 1fr; gap: 2rem; }
  .viz-grid.cols-2 { grid-template-columns: 1fr; }
  .mega-menu { display: none !important; }
}
@media (max-width: 900px) {
  .seal-row .seal { width: 72px; height: 72px; }
  .accred-item .seal { width: 92px; height: 92px; }
  .coverflow-card { width: 220px; height: 280px; }
  .tm-hero-inner { padding: 0 1.5rem; }
  .tm-quote-marks { font-size: 6rem; }
  .hist-dot { min-width: 120px; }
}
@media (max-width: 640px) {
  .chatbot-panel { width: calc(100vw - 1.5rem) !important; height: 70vh !important; }
  .seal-row { gap: 1.25rem; }
  .seal-row .seal { width: 64px; height: 64px; }
  .program-meta span { padding: 0.35rem 0.15rem; }
  .program-meta strong { font-size: 1rem; }
  .viz-block { padding: 1.5rem; }
  .tm-hero { padding: 3rem 0; border-radius: 0; }
  .tm-quote { min-height: 220px; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
}

/* ---------- Hero parallax ---------- */
@media (min-width: 900px) and (hover: hover) {
  .hero-bg, .page-hero-bg {
    background-attachment: fixed;
  }
}

/* Focus-visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}
.coverflow-card:focus-visible,
.tm-thumb:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .trust-ticker-track, .market-ticker-track { animation: none; }
  .chatbot-trigger::before { animation: none; }
  .map-dot { animation: none; }
  .reveal, .reveal-cascade > * { transition: none; opacity: 1; transform: none; }
}
