/* ============================================
   NEC Education Consultants — Design Tokens
   Concept: the visa/document journey.
   Palette: deep forest ink, aged brass, parchment.
   Signature: stamped "approved" marks, ticket-perforation
   edges, dashed flight-path connectors.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0F2A20;
  --forest: #1B4332;
  --forest-light: #2D5F49;
  --brass: #C9A227;
  --brass-light: #E0BF52;
  --stamp-red: #A8442E;
  --parchment: #F5F0E6;
  --parchment-dark: #EBE3D2;
  --paper: #FCFAF5;
  --slate: #4A5568;
  --slate-light: #8B96A3;
  --line: rgba(15, 42, 32, 0.14);
  --white: #ffffff;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

/* ============ Focus & motion baseline ============ */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1.5px solid var(--brass);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--slate-light);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--forest); }

.nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 18px;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-gold { background: var(--brass); color: var(--ink); }
.btn-gold:hover { background: var(--brass-light); }

/* ============ Hero (document / approval-letter styled) ============ */
.hero {
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

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

.hero-ref {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--forest);
}

.hero p.lede {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--forest);
}

.stat span {
  font-size: 0.82rem;
  color: var(--slate-light);
}

/* The "stamp" — signature visual element */
.stamp-panel {
  background: var(--forest);
  border-radius: 8px;
  padding: 40px 34px;
  position: relative;
  color: var(--parchment);
  min-height: 340px;
}

.stamp-panel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(224, 191, 82, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

.stamp-badge {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-11deg);
  background: rgba(201, 162, 39, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-light);
  line-height: 1.3;
}

.stamp-panel h3 {
  color: var(--parchment);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.route-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.12);
  font-size: 0.9rem;
}

.route-step:last-child { border-bottom: none; }

.route-num {
  font-family: var(--font-mono);
  color: var(--brass-light);
  font-size: 0.78rem;
  min-width: 20px;
}

/* ============ Section scaffolding ============ */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 10px;
}

.section-head p {
  color: var(--slate);
  margin-top: 14px;
  font-size: 1.03rem;
}

.section-alt { background: var(--parchment); }

/* ============ Journey timeline (flight-path style) ============ */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 20px;
}

.journey::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 40px;
  right: 40px;
  height: 1px;
  background-image: linear-gradient(to right, var(--brass) 50%, transparent 50%);
  background-size: 12px 1px;
}

@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { display: none; }
}

.journey-item { position: relative; padding-right: 16px; }

.journey-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--forest);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.journey-item h4 { font-size: 1.02rem; margin-bottom: 8px; }
.journey-item p { font-size: 0.88rem; color: var(--slate); }

/* ============ Ticket-style cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
}

.ticket::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 58px;
  border-bottom: 1px dashed var(--line);
}

.ticket-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--parchment-dark);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ticket h3 { font-size: 1.08rem; margin-bottom: 10px; }
.ticket p { font-size: 0.92rem; color: var(--slate); margin-bottom: 22px; }

.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-light);
  letter-spacing: 0.04em;
}

/* ============ Testimonials ============ */
.testimony {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
}

.testimony p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.testimony-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.who-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.who-name { font-weight: 600; font-size: 0.9rem; }
.who-detail { font-size: 0.78rem; color: var(--slate-light); }

/* ============ CTA band ============ */
.cta-band {
  background: var(--forest);
  color: var(--parchment);
  border-radius: 8px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--paper); font-size: 1.7rem; }
.cta-band p { color: rgba(245,240,230,0.8); margin-top: 8px; }

/* ============ Footer ============ */
footer {
  background: var(--ink);
  color: rgba(245, 240, 230, 0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

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

footer h4 {
  color: var(--brass-light);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 16px;
}

footer a, footer p { font-size: 0.88rem; color: rgba(245,240,230,0.72); }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a:hover { color: var(--brass-light); }

.footer-bottom {
  border-top: 1px solid rgba(245,240,230,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(245,240,230,0.5);
}

/* ============ Page header (interior pages) ============ */
.page-header {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
}

.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-header p { color: var(--slate); margin-top: 14px; max-width: 60ch; }

/* ============ Forms ============ */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
}

@media (max-width: 640px) {
  .form-panel { padding: 26px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest);
  outline: none;
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: 10px;
}

.form-success {
  display: none;
  background: rgba(27, 67, 50, 0.07);
  border: 1px solid var(--forest);
  border-radius: 6px;
  padding: 20px;
  margin-top: 20px;
}

.form-success.show { display: block; }
.form-success strong { color: var(--forest); }

/* ============ Two column layout ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ Info list with stamp numerals ============ */
.info-list { list-style: none; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }

.info-num {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.8rem;
  min-width: 24px;
  padding-top: 3px;
}

.info-list h4 { font-size: 0.98rem; margin-bottom: 5px; }
.info-list p { font-size: 0.88rem; color: var(--slate); }

/* ============ Destination cards ============ */
.dest-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}

.dest-flag {
  height: 6px;
  background: var(--forest);
}

.dest-body { padding: 24px; }
.dest-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.dest-body p { font-size: 0.9rem; color: var(--slate); margin-bottom: 16px; }

.dest-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dest-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  background: var(--parchment-dark);
  color: var(--forest);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ============ Portal ============ */
.portal-wrap {
  min-height: calc(100vh - 76px - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  background: var(--parchment);
}

.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px 36px;
  position: relative;
}

.portal-card .stamp-badge {
  top: -20px;
  right: 24px;
  background: var(--forest);
  border-color: var(--brass);
}

.portal-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.portal-card p.sub { color: var(--slate); font-size: 0.9rem; margin-bottom: 30px; }

.portal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--parchment-dark);
  border-radius: 6px;
  padding: 4px;
}

.portal-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate);
  border: none;
  background: none;
  font-family: var(--font-body);
}

.portal-tab.active { background: var(--paper); color: var(--forest); }

.portal-panel { display: none; }
.portal-panel.active { display: block; }

.portal-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--slate-light);
  text-align: center;
}

.portal-note {
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--ink);
  margin-top: 20px;
}

/* ============ Destination hub (two big country panels) ============ */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

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

.hub-card {
  background: var(--forest);
  color: var(--parchment);
  border-radius: 8px;
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.hub-card:hover { transform: translateY(-2px); }

.hub-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(224, 191, 82, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.hub-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 14px;
}

.hub-card h2 { color: var(--paper); font-size: 1.8rem; margin-bottom: 12px; }
.hub-card p { color: rgba(245,240,230,0.8); margin-bottom: 26px; font-size: 0.95rem; }

.hub-card .btn-gold { position: relative; z-index: 2; }

/* ============ University search/filter bar ============ */
.uni-filter {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.uni-filter input, .uni-filter select {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.uni-filter input { flex: 1; min-width: 200px; }

/* ============ University accordion card ============ */
.uni-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  margin-bottom: 16px;
  overflow: hidden;
}

.uni-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  flex-wrap: wrap;
}

.uni-head-left { display: flex; align-items: center; gap: 16px; }

.uni-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--parchment-dark);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.uni-head h3 { font-size: 1.05rem; margin-bottom: 3px; }
.uni-head .uni-city { font-size: 0.82rem; color: var(--slate-light); }

.uni-head-right { display: flex; align-items: center; gap: 18px; }

.uni-tuition { font-family: var(--font-mono); font-size: 0.78rem; color: var(--forest); text-align: right; }
.uni-tuition span { display: block; font-size: 0.68rem; color: var(--slate-light); }

.uni-chevron {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.uni-card.open .uni-chevron { transform: rotate(45deg); }

.uni-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--line);
}

.uni-card.open .uni-body { max-height: 600px; }

.uni-body-inner { padding: 24px 26px 28px; }

.uni-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.uni-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .uni-detail-grid { grid-template-columns: 1fr; }
}

.uni-detail-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 10px;
}

.uni-detail-grid ul { list-style: none; }
.uni-detail-grid li {
  font-size: 0.9rem;
  color: var(--ink);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}
.uni-detail-grid li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brass);
}

.uni-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-light);
}

/* ============ Newsletter / updates capture ============ */
.updates-box {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  margin-bottom: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.updates-box p { font-size: 0.9rem; color: var(--slate); flex: 1; min-width: 200px; }
.updates-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.updates-box input {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 220px;
}

/* ============ Mega menu ============ */
.has-mega { position: relative; }

.mega-panel {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15,42,32,0.14);
  padding: 22px;
  display: none;
  gap: 10px;
  min-width: 260px;
  z-index: 200;
}

.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel { display: flex; flex-direction: column; }

.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mega-item:hover { background: var(--parchment); }

.mega-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--parchment-dark);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.mega-item h5 { font-size: 0.9rem; margin-bottom: 2px; }
.mega-item p { font-size: 0.76rem; color: var(--slate-light); }

.nav-links a.has-mega-label { display: flex; align-items: center; gap: 4px; }
.caret { font-size: 0.6rem; margin-top: 2px; }

@media (max-width: 860px) {
  .mega-panel { position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; display: none; }
  .has-mega.mega-open .mega-panel { display: flex; }
}

/* ============ Photo hero ============ */
.photo-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.photo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,42,32,0.92) 0%, rgba(15,42,32,0.78) 42%, rgba(15,42,32,0.35) 75%, rgba(15,42,32,0.1) 100%);
}

.photo-hero .wrap { position: relative; z-index: 2; }

.photo-hero-content { max-width: 620px; }

.photo-hero .eyebrow { color: var(--brass-light); }

.photo-hero h1 {
  color: var(--paper);
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  margin: 16px 0 20px;
}

.photo-hero h1 em { color: var(--brass-light); font-style: italic; }

.photo-hero p.lede { color: rgba(245,240,230,0.88); font-size: 1.1rem; max-width: 46ch; margin-bottom: 32px; }

.photo-hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.photo-hero-stats .stat b { color: var(--paper); }
.photo-hero-stats .stat span { color: rgba(245,240,230,0.65); }

/* ============ Photo cards (courses/services style) ============ */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .photo-card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .photo-card-grid { grid-template-columns: 1fr; } }

.photo-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15,42,32,0.1); }

.photo-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.photo-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 20px;
  text-transform: uppercase;
}

.photo-card-body { padding: 22px 22px 26px; }
.photo-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.photo-card-body p { font-size: 0.88rem; color: var(--slate); margin-bottom: 18px; }
.photo-card-body a.card-link { font-size: 0.85rem; font-weight: 600; color: var(--forest); }
.photo-card-body a.card-link:hover { color: var(--brass); }

/* ============ Numbered service icon grid (photo-backed) ============ */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 28px;
}

@media (max-width: 900px) { .numbered-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .numbered-grid { grid-template-columns: 1fr; } }

.numbered-item { position: relative; padding-left: 4px; }

.numbered-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }

.numbered-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass);
  font-weight: 600;
  min-width: 34px;
}

.numbered-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.numbered-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.numbered-item p { font-size: 0.88rem; color: var(--slate); }

/* ============ Why choose us (photo split) ============ */
.why-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  align-items: stretch;
}

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

.why-photo {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}

.why-content { background: var(--forest); color: var(--parchment); padding: 48px 44px; }
.why-content .eyebrow { color: var(--brass-light); }
.why-content h2 { color: var(--paper); margin: 10px 0 28px; font-size: 1.7rem; }

.why-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(245,240,230,0.14); }
.why-row:last-child { border-bottom: none; }

.why-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(201,162,39,0.16); border: 1px solid var(--brass);
  color: var(--brass-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}

.why-row h4 { color: var(--paper); font-size: 0.98rem; margin-bottom: 6px; }
.why-row p { color: rgba(245,240,230,0.75); font-size: 0.88rem; }

/* ============ About split (photo + text) ============ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; gap: 32px; } }

.about-photo {
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  position: relative;
}

.about-photo-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 12px 28px rgba(15,42,32,0.14);
}

.about-photo-badge b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); }
.about-photo-badge span { font-size: 0.78rem; color: var(--slate-light); }

/* ============ Floating CTA (mobile apply style) ============ */
.floating-cta {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  background: var(--forest);
  color: var(--parchment);
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(15,42,32,0.3);
  transition: transform 0.15s ease;
}

.floating-cta:hover { transform: translateY(-2px); background: var(--ink); }

@media (max-width: 640px) {
  .floating-cta { padding: 12px 18px; font-size: 0.82rem; bottom: 16px; right: 16px; }
}

/* ============ Footer newsletter subscribe ============ */
.footer-subscribe {
  background: rgba(245,240,230,0.06);
  border: 1px solid rgba(245,240,230,0.14);
  border-radius: 8px;
  padding: 28px 30px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-subscribe h4 { color: var(--brass-light); margin-bottom: 6px; }
.footer-subscribe p { color: rgba(245,240,230,0.65); font-size: 0.86rem; }
.footer-subscribe form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-subscribe input {
  padding: 12px 16px;
  border: 1.5px solid rgba(245,240,230,0.25);
  border-radius: var(--radius);
  background: rgba(245,240,230,0.06);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 240px;
}
.footer-subscribe input::placeholder { color: rgba(245,240,230,0.45); }

/* ============ University detail: course-page-style sections ============ */
.uni-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.uni-jumpnav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--parchment-dark);
  padding: 7px 12px;
  border-radius: 20px;
  transition: background 0.15s ease;
}

.uni-jumpnav a:hover { background: var(--brass); color: var(--ink); }

.uni-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.uni-section:last-child { border-bottom: none; padding-bottom: 0; }

.uni-section h4 {
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.uni-section p { font-size: 0.9rem; color: var(--slate); }

.uni-section ul { list-style: none; margin-top: 4px; }
.uni-section li {
  font-size: 0.9rem;
  color: var(--ink);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}
.uni-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ============ Form: collapsible "add more details" section ============ */
.form-more {
  margin: 4px 0 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.form-more summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  padding: 14px 0;
  list-style: none;
}

.form-more summary::-webkit-details-marker { display: none; }

.form-more summary:hover { color: var(--brass); }

.form-more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.form-more-inner { padding: 16px 0 8px; }

/* ============ Utility ============ */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
