/* ============================================================
   AYN — NATIONAL STUDY ABROAD SUMMIT (css/nsas.css)
   Institutional, globally minded event recap. Extends the shared
   AYN design system; all classes namespaced with .nsas-.
   ============================================================ */

/* ─── Page hero ─── */
.nsas-hero {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: flex-end;
  background: var(--navy-950); color: #fff;
  overflow: hidden;
}
/* hero-drift keyframes are defined in css/home.css, which is only loaded by the
   homepage — restate them here so the NSAS hero animates on its own page. */
@keyframes hero-drift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}
.nsas-hero-media {
  position: absolute; inset: 0;
  background: url('../assets/images/nsas-hall.jpg') center 35% / cover no-repeat;
  transform: scale(1.05);
  animation: hero-drift 24s ease-in-out infinite alternate;
}
.nsas-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; /* scrim above photo, below text */
  background:
    linear-gradient(to top, rgba(6,22,45,.97) 4%, rgba(6,22,45,.82) 42%, rgba(6,22,45,.66) 68%, rgba(6,22,45,.86) 100%);
}
.nsas-hero .container { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(48px, 7vw, 84px); }
.nsas-hero h1 {
  color: #fff; max-width: 18ch; margin: 18px 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  text-shadow: 0 2px 28px rgba(6,22,45,.65);
}
.nsas-hero h1 .accent { font-style: italic; font-weight: 480; color: var(--gold-500); }
.nsas-hero .eyebrow, .nsas-meta span { text-shadow: 0 1px 14px rgba(6,22,45,.8); }
.nsas-meta { display: flex; gap: 26px; flex-wrap: wrap; max-width: 900px; }
.nsas-meta span { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.85); }
.nsas-meta i { color: var(--gold-500); }
.nsas-status {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px; padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(6,22,45,.45); backdrop-filter: blur(6px);
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff;
}
.nsas-status i { color: var(--gold-500); }

/* ─── Intro statement (on dark) ─── */
.nsas-intro { background: var(--navy-950); color: #fff; padding-top: 0; }
.nsas-intro .statement {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(1.4rem, 3.2vw, 2.35rem); line-height: 1.38;
  color: #fff; max-width: 920px;
}
.nsas-intro .statement em { color: var(--gold-500); }
.nsas-intro .statement-note {
  margin-top: 26px; max-width: 760px;
  font-size: .98rem; line-height: 1.75; color: rgba(255,255,255,.72);
  border-left: 2px solid var(--gold); padding-left: 22px;
}
.nsas-intro .kicker-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line-dark); padding-top: 26px; margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.nsas-intro .kicker-row .tag { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.nsas-intro .kicker-row .tag b { color: var(--gold-500); }

/* ─── Key facts band ─── */
.nsas-facts { padding-top: clamp(40px, 5vw, 64px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--sh-sm); }
.fact i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sky-100); color: var(--blue-600); font-size: 1.05rem;
  margin-bottom: 16px;
}
.fact h4 { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px; }
.fact p { font-size: .95rem; }

/* ─── Focus area cards ─── */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.focus-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.focus-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.focus-card i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-100), #fff);
  border: 1px solid var(--line); color: var(--blue-600); font-size: 1.1rem;
  margin-bottom: 18px;
}
.focus-card h4 { font-size: 1.06rem; margin-bottom: 10px; }
.focus-card p { font-size: .9rem; }

/* ─── Partners ─── */
.partner-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.partner-list li {
  padding: 11px 20px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.partner-list li:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }

/* AYN role callout */
.ayn-role {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px;
  background: var(--navy-950); color: #fff;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.ayn-role::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(480px 280px at 90% 0%, rgba(47,155,232,.22), transparent 65%);
}
.ayn-role-text { position: relative; z-index: 1; }
.ayn-role-text h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.ayn-role-text p { color: rgba(255,255,255,.75); max-width: 640px; }
.ayn-role-badge {
  position: relative; z-index: 1;
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,162,39,.16); border: 1px solid rgba(201,162,39,.45);
  color: var(--gold-500); font-size: 1.8rem; flex-shrink: 0;
}

/* ─── Editorial photo story ─── */
.frames { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2.4vw, 28px); }
.frame { position: relative; overflow: hidden; border-radius: var(--r-md); }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.frame:hover img { transform: scale(1.05); }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(6,22,45,.85), transparent);
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.frame:hover figcaption, .frame:focus-within figcaption { opacity: 1; transform: none; }
.frame-hero { grid-column: 1 / 8; aspect-ratio: 16 / 10.4; }
.frame-a { grid-column: 8 / 13; aspect-ratio: 1 / 1.06; align-self: start; margin-top: clamp(20px, 4vw, 64px); }
.frame-b { grid-column: 1 / 7; aspect-ratio: 16 / 10.5; margin-top: clamp(8px, 2vw, 24px); }
.frame-c { grid-column: 7 / 13; aspect-ratio: 16 / 10.5; align-self: start; margin-top: clamp(24px, 5vw, 72px); }

/* ─── Final CTA ─── */
.nsas-cta { background: var(--navy-950); color: #fff; text-align: center; position: relative; overflow: hidden; }
.nsas-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 50% -20%, rgba(201,162,39,.2), transparent 65%);
}
.nsas-cta .container { position: relative; z-index: 1; }
.nsas-cta h2 { color: #fff; }
.nsas-cta p { color: rgba(255,255,255,.72); max-width: 620px; margin: 14px auto 30px; }
.nsas-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-hero { grid-column: 1 / 13; aspect-ratio: 16 / 10; }
  .frame-a { grid-column: 1 / 8; margin-top: 0; }
  .frame-b { grid-column: 8 / 13; margin-top: 0; }
  .frame-c { grid-column: 1 / 13; margin-top: 0; }
  .ayn-role { grid-template-columns: 1fr; }
  .ayn-role-badge { display: none; }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .frame-a, .frame-b { grid-column: 1 / 13; }
  .nsas-cta-actions .btn { width: 100%; }
}
