/* GlobalEd 2 — shared stylesheet */

:root {
  --navy-950: #0B1B2E;
  --navy-900: #0F2540;
  --navy-800: #12294a;
  --blue-700: #2D67B2;
  --blue-500: #2384C6;
  --green-400: #A9CF38;
  --ink-000: #F4F7FB;
  --ink-300: #C4D0E0;
  --ink-500: #8AA0BC;
  --border-soft: rgba(244, 247, 251, 0.12);
  --glass-bg: rgba(244, 247, 251, 0.05);
  --shadow-glow: 0 0 40px rgba(35, 132, 198, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max-width: 1140px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--navy-950);
  color: var(--ink-000);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px circle at 15% -10%, rgba(35, 132, 198, 0.25), transparent 60%),
    radial-gradient(700px circle at 100% 10%, rgba(169, 207, 56, 0.12), transparent 55%),
    var(--navy-950);
}

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

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

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.3rem; }

p { color: var(--ink-300); margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 0 rgba(169, 207, 56, 0.6);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(169, 207, 56, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(169, 207, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 207, 56, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 8px 24px rgba(35, 132, 198, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(35, 132, 198, 0.45); }

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--border-soft);
  color: var(--ink-000);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--green-400); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 27, 46, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand img { height: 34px; width: auto; }
.brand .accent { color: var(--green-400); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-300);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { color: var(--ink-000); background: var(--glass-bg); }
.nav-links a.active { color: var(--navy-950); background: var(--green-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink-000);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

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

.hero-content { max-width: 760px; }

.hero-logo {
  width: clamp(220px, 26vw, 320px);
  margin-bottom: 28px;
  filter: drop-shadow(0 0 30px rgba(35, 132, 198, 0.45)) drop-shadow(0 0 60px rgba(169, 207, 56, 0.2));
  animation: hero-logo-in 1s ease both;
}

@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--ink-300);
  max-width: 600px;
}

.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(244, 247, 251, 0.06);
  border: 1px solid var(--border-soft);
  max-width: 900px;
}

.status-banner strong { color: var(--ink-000); }
.status-banner p { margin: 0; color: var(--ink-300); font-size: 0.94rem; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0a83c;
  flex: none;
  box-shadow: 0 0 0 0 rgba(224, 168, 60, 0.6);
  animation: pulse-dot-amber 2.2s infinite;
}
@keyframes pulse-dot-amber {
  0% { box-shadow: 0 0 0 0 rgba(224, 168, 60, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(224, 168, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 168, 60, 0); }
}

/* ---------- Sections ---------- */
section { padding: 70px 0; position: relative; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-400), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { font-size: 0.88rem; color: var(--ink-500); margin-top: 6px; }

/* ---------- Feature / info cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.06), rgba(244, 247, 251, 0.02));
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(169, 207, 56, 0.5);
  box-shadow: var(--shadow-glow);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--green-400));
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.timeline-item {
  flex: 1 0 150px;
  position: relative;
  padding: 24px 18px 8px;
  border-top: 3px solid var(--border-soft);
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-400);
}
.timeline-year { font-weight: 800; color: var(--ink-000); }
.timeline-item p { font-size: 0.85rem; margin: 4px 0 0; }

/* ---------- Benefits list ---------- */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.benefits-list li {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  color: var(--ink-300);
}
.benefits-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Phase steps (About) ---------- */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.phase-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  position: relative;
}
.phase-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-950);
  background: var(--green-400);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

/* ---------- Institution / team cards ---------- */
.institution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.institution-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
}
.institution-card img { width: 76px; height: 76px; flex: none; }

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.leader-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.06), rgba(244, 247, 251, 0.02));
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.leader-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 8px;
}
.leader-org { color: var(--ink-500); font-size: 0.85rem; margin: 0 0 4px; }
.leader-org:last-of-type { margin-bottom: 18px; }
.leader-card .btn { margin-top: 4px; padding: 9px 20px; font-size: 0.85rem; }

.roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.roster-pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  font-size: 0.86rem;
  color: var(--ink-300);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.roster-pill:hover { border-color: var(--green-400); color: var(--ink-000); transform: translateY(-2px); }

/* ---------- Publications ---------- */
.pub-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}
.pub-search {
  flex: 1 1 260px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  color: var(--ink-000);
  font-size: 0.95rem;
}
.pub-search::placeholder { color: var(--ink-500); }
.pub-search:focus { outline: 2px solid var(--green-400); outline-offset: 2px; }

.pub-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--ink-300);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pub-filter-btn.active,
.pub-filter-btn:hover {
  background: var(--green-400);
  border-color: var(--green-400);
  color: var(--navy-950);
}

.pub-count { color: var(--ink-500); font-size: 0.86rem; margin: -14px 0 24px; }

.pub-group { margin-bottom: 44px; }
.pub-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-000);
}
.pub-group h3 .tag {
  font-size: 0.7rem;
  color: var(--navy-950);
  background: var(--blue-500);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.pub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pub-item {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  color: var(--ink-300);
  font-size: 0.94rem;
  line-height: 1.55;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pub-item:hover { border-color: rgba(35, 132, 198, 0.5); background: rgba(244,247,251,0.08); }
.pub-item.hidden { display: none; }
.pub-item strong { color: var(--ink-000); }
.pub-empty { color: var(--ink-500); padding: 20px 0; display: none; }
.pub-empty.show { display: block; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}
.featured-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, rgba(35,132,198,0.14), rgba(169,207,56,0.06));
}
.featured-card .file-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-950);
  background: var(--green-400);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.featured-card a.dl {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-weight: 700;
  color: var(--blue-500);
}
.featured-card a.dl:hover { color: var(--green-400); }

/* ---------- Funding callout ---------- */
.funding-box {
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  font-size: 0.92rem;
  color: var(--ink-300);
}
.funding-box strong { color: var(--ink-000); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; margin-bottom: 12px; }
.footer-brand img { height: 30px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink-300); font-size: 0.92rem; }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 27, 46, 0.97);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 24px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .institution-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 50px 0; }
}
