/* ── Reset & Tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg2:       #f8fafc;
  --bg3:       #eef0fb;

  --primary:   #0d9488;
  --secondary: #0891b2;
  --pink:      #ec4899;
  --cyan:      #06b6d4;

  --gold:      #0d9488;
  --gold-dim:  #0f766e;
  --amber:     #0891b2;

  --teal:      #0d9488;

  --text:      #0f172a;
  --muted:     #64748b;
  --text-light: #ffffff;

  --border:    rgba(15, 23, 42, .1);

  --card-bg:   rgba(255, 255, 255, .92);

  --gradient-primary:  linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  --gradient-elegant:  linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  --gradient-hero:     #0d1b2e;
  --gradient-dark:     #0a1626;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .1), 0 2px 4px -1px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -2px rgba(15, 23, 42, .05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 10px 10px -5px rgba(15, 23, 42, .04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, .25);

  --serif: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
  --sans:  'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
}

/* ── Dark mode token overrides ─────────────────────────── */
[data-theme="dark"] {
  --bg:        #0f1117;
  --bg2:       #161927;
  --bg3:       #1f2333;

  --primary:   #2dd4bf;
  --secondary: #22d3ee;
  --pink:      #f472b6;
  --cyan:      #22d3ee;

  --gold:      #2dd4bf;
  --gold-dim:  #5eead4;
  --amber:     #22d3ee;

  --teal:      #2dd4bf;

  --text:      #eef0f8;
  --muted:     #9aa2b8;

  --border:    rgba(255, 255, 255, .12);

  --card-bg:   rgba(30, 34, 51, .75);

  --gradient-hero: #060d18;
  --gradient-dark: #050b14;
}

/* theme transition */
body, section, nav, footer, .pillar, .theme-card, .output-card,
.comm-card, .person-card, .partner-cat, .infra-item, .course,
.advisory-note, .rg-faculty-item, .ticker, .contact-inner,
.btn-primary, .btn-outline, .theme-toggle, .tl-item {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 116px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 100px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] nav { background: rgba(15, 17, 23, .8); }
nav.scrolled { box-shadow: var(--shadow-lg); height: 84px; }

/* ── Theme toggle button ─────────────────────────────────── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  margin-left: 20px;
}
.theme-toggle:hover { background: var(--gradient-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 92px; width: auto; transition: transform .3s ease; }
.nav-logo:hover img { transform: scale(1.04); }

.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0; left: 50%;
  background: var(--gradient-primary);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-badge { display: flex; align-items: center; margin-left: auto; }

/* ── Sections ──────────────────────────────────────────── */
section { position: relative; z-index: 1; }

/* clears the fixed navbar on every subpage whose first element isn't #hero
   (#hero already reserves nav height inside its own top padding) */
.page-offset { padding-top: 100px; }
@media (max-width: 900px) {
  .page-offset { padding-top: 76px; }
}

/* ── Hero ──────────────────────────────────────── */
#hero {
  padding: 200px 48px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--text-light);
  border-radius: 0 0 48px 48px;
}
.hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  max-width: 1400px;
  margin: 0 auto;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  z-index: -4;
}
.hero-map {
  position: absolute;
  top: 50%; left: 50%;
  width: 92%;
  max-width: 1300px;
  transform: translate(-50%, -50%);
  z-index: -3;
  opacity: .12;
  mix-blend-mode: screen;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.1) 0%, transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.07) 0%, transparent 45%),
    repeating-linear-gradient(to right, rgba(125,211,252,.08) 0, rgba(125,211,252,.08) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(to bottom, rgba(125,211,252,.08) 0, rgba(125,211,252,.08) 1px, transparent 1px, transparent 56px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center, center, center, center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
          mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
  animation: heroFloat 26s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-chart {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  transition: transform .1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .hero-chart { display: none; }
}

.hero-tag {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 auto 22px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp .9s ease .1s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 44ch;
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(6, 13, 24, .55);
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp .9s ease .25s forwards;
}
.hero-title .line-gold { color: #fff3cc; }
.hero-title .line-dim  { color: rgba(255,255,255,.94); }

.hero-desc {
  max-width: 70ch;
  margin: 26px auto 0;
  font-size: 1.12rem;
  color: #fff;
  line-height: 1.75;
  text-shadow: 0 2px 16px rgba(6, 13, 24, .5);
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp .9s ease .4s forwards;
}
.hero-desc strong { color: #fff; font-weight: 700; }

.hero-cta {
  display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp .9s ease .55s forwards;
}
/* base buttons: styled for light section backgrounds (the common case) */
.btn-primary {
  font-size: .98rem;
  font-weight: 600;
  padding: 1rem 2.2rem;
  background: var(--gradient-primary);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-md);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  letter-spacing: .2px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(13,148,136,.35); }

.btn-outline {
  font-size: .98rem;
  font-weight: 600;
  padding: 1rem 2.2rem;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  letter-spacing: .2px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

/* buttons on dark/gradient backgrounds (hero, contact) need light ink */
#hero .btn-primary, #contact .btn-primary {
  background: rgba(255,255,255,.95);
  color: var(--primary);
  border-color: rgba(255,255,255,.95);
  box-shadow: none;
}
[data-theme="dark"] #hero .btn-primary, [data-theme="dark"] #contact .btn-primary { color: #0f1117; }
#hero .btn-primary:hover, #contact .btn-primary:hover { box-shadow: var(--shadow-xl); }

#hero .btn-outline, #contact .btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
}
#hero .btn-outline:hover, #contact .btn-outline:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }

.hero-stat-bar {
  display: flex; gap: 32px;
  justify-content: center;
  margin-top: 64px;
  padding: 28px 40px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp .9s ease .7s forwards;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.85); text-align: center; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Topic strip ──────────────────────────────────────────── */
.ticker {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 18px 48px;
  overflow: hidden;
  white-space: normal;
}
.ticker-inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  justify-content: center;
  max-width: 1400px; margin: 0 auto;
}
.ticker-item {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 9px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
}
.ticker-item .val {
  color: #fff;
  background: var(--gradient-primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Section wrapper ─────────────────────────────────────── */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 48px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}
.section-label::before, .section-label::after {
  content: '';
  width: 28px; height: 2px;
  background: var(--gradient-primary);
  flex-shrink: 0;
  border-radius: 2px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0 auto 20px;
  max-width: 30ch;
  text-align: center;
  background: var(--gradient-elegant);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 22px;
}
.section-title::after {
  content: '';
  position: absolute;
  width: 64px; height: 4px;
  background: var(--gradient-primary);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 3.25rem;
}
/* section-subs that live inside a two-column grid (paired with a sidebar)
   read as body copy, so they stay left-aligned like the paragraphs below them */
.about-grid .section-sub { text-align: left; margin-left: 0; }

/* ── About ───────────────────────────────────────────────── */
#about { background: var(--bg2); position: relative; overflow: hidden; }
#about::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 8% 15%, rgba(13,148,136,.08) 0%, transparent 45%),
              radial-gradient(circle at 92% 85%, rgba(8,145,178,.06) 0%, transparent 45%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}
.about-body { font-size: 1.1rem; color: var(--text); line-height: 1.85; }
.about-body p + p { margin-top: 18px; }
.about-body strong { color: var(--primary); font-weight: 700; }

.about-pillars { display: flex; flex-direction: column; gap: 1.25rem; }
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-letter {
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pillar-desc { font-size: .96rem; color: var(--muted); line-height: 1.65; }

/* ── Themes ───────────────────────────────────────────────── */
#themes { background: var(--bg); }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.theme-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.theme-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-2xl); }
.theme-letter {
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.theme-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-items { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.theme-items li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}
.theme-items li strong { color: var(--text); font-weight: 700; }

/* ── Outputs ─────────────────────────────────────────────── */
#outputs { background: var(--bg2); }
.outputs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.output-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 28px;
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.output-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.output-num {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.output-body { min-width: 0; }
.output-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.output-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 62ch; }
.output-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(13, 148, 136, .1);
  border: 1px solid rgba(13, 148, 136, .2);
  border-radius: 20px;
  padding: 4px 12px;
  transition: all .3s ease;
}
.tag:hover { background: var(--primary); color: #fff; }

/* ── Education ─────────────────────────────────────────── */
#education { background: var(--bg); }
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.course-list { display: flex; flex-direction: column; gap: .75rem; }
.course {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  padding: 1.1rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.course-name { font-size: 1.02rem; color: var(--text); font-weight: 500; }
.course-hrs { font-size: .86rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.edu-features { display: flex; flex-direction: column; gap: 1.5rem; }
.edu-feat {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.edu-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.edu-feat-title { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; margin-bottom: 6px; color: var(--primary); }
.edu-feat-desc { font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* visible break between the micro-course grid and the credit-course callout */
.section-divider-rule { border-top: 1px solid var(--border); margin: 4rem 0 2.5rem; }

/* ── Credit course callout + instructor mini-list ────────── */
.advisory-note {
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 22px;
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.advisory-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
.advisory-summary::-webkit-details-marker { display: none; }
.advisory-summary::marker { content: ''; }
.advisory-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform .3s ease, background-color .3s ease;
}
.advisory-summary:hover .advisory-chevron { background: var(--bg2); }
details.advisory-note[open] .advisory-chevron { transform: rotate(180deg); }
.advisory-title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.advisory-names { font-size: 1.08rem; color: var(--text); line-height: 1.7; }
.advisory-desc {
  margin-top: 20px;
  max-width: 100%;
}
.advisory-desc p {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.7;
}
.advisory-desc p + p { margin-top: 14px; }
.advisory-desc .instructors-label:first-child { margin-top: 0; }

.instructors-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 12px;
}
.course-instructors { display: flex; flex-wrap: wrap; gap: 32px 44px; }
.course-instructor {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 140px;
  text-decoration: none; color: var(--text);
  text-align: center;
  transition: transform .3s ease;
}
.course-instructor:hover { transform: translateY(-6px); }
.course-instructor .ci-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: var(--muted);
  border: 3px solid transparent;
  background-image: linear-gradient(var(--bg3), var(--bg3)), var(--gradient-primary);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: var(--shadow-md);
}
.course-instructor .ci-avatar img { width: 100%; height: 100%; object-fit: cover; }
.course-instructor .ci-name { font-size: .93rem; font-weight: 600; line-height: 1.35; }
a.course-instructor:hover .ci-name { color: var(--primary); }

.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.schedule-table-wrap {
  overflow-x: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 20px;
}
.schedule-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.schedule-table th {
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-table td {
  font-size: .95rem;
  color: var(--text);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule-table td:last-child, .schedule-table th:last-child { padding-right: 0; }
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table tbody tr:hover td { background: var(--bg2); }
.schedule-table a { color: var(--primary); text-decoration: none; font-weight: 600; }
.schedule-table a:hover { text-decoration: underline; }

/* ── People ────────────────────────────────────────────── */
#people { background: var(--bg2); }
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  justify-content: center;
}
.person-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.person-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-2xl); }
.person-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg3);
  margin: 0 auto 18px;
  box-shadow: var(--shadow-md);
}
.person-avatar:not(:has(img)) { color: transparent; }
.person-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; margin-bottom: 4px; }
.person-name a:hover { text-decoration: underline; color: var(--primary); }
.person-role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.person-desc { font-size: .93rem; color: var(--muted); line-height: 1.65; }

.people-subhead {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 4rem 0 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Roadmap ────────────────────────────────────────────── */
#roadmap { background: var(--bg); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute; left: 120px; top: 0; bottom: 0; width: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.tl-item {
  display: flex; align-items: flex-start;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: all .35s ease;
}
.tl-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tl-period {
  flex-shrink: 0; width: 120px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  padding-top: 2px;
  padding-right: 32px;
}
.tl-dot {
  position: relative; z-index: 1;
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-top: 6px;
  margin-left: -6px;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-content { flex: 1; padding-left: 32px; }
.tl-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.tl-items { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tl-items li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Community ──────────────────────────────────────────── */
#community { background: var(--bg2); }

/* ── Reading Group ──────────────────────────────────────── */
#reading-group { background: var(--bg); }
#reading-group .about-body { font-size: 1.04rem; color: var(--text); line-height: 1.8; }
#reading-group .about-body p + p { margin-top: 18px; }
.reading-group-faculty {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 24px 0;
}
.rg-faculty-item {
  padding: 1.1rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 1.02rem;
  color: var(--text);
}
.rg-faculty-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.comm-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.comm-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-2xl); }
.comm-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.comm-desc { font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* ── Partners ─────────────────────────────────────────── */
#partners { background: var(--bg); }
.partner-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.partner-cat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.partner-cat-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.partner-items { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-chip {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 20px;
  transition: all .3s ease;
}
.partner-chip:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.infra-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.infra-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.infra-label { font-size: .92rem; color: var(--muted); line-height: 1.4; font-weight: 500; }

/* ── Contact / CTA ──────────────────────────────────────── */
#contact {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(13, 148, 136, .22) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .14) 0%, transparent 50%);
  pointer-events: none;
}
.contact-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 6rem 48px;
  text-align: center;
  position: relative;
  z-index: 2;
}
#contact .section-label { color: #cdd3ff; }
#contact .section-label::before, #contact .section-label::after { background: rgba(255,255,255,.4); }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #dbe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-sub { font-size: 1.12rem; color: rgba(255,255,255,.82); margin-bottom: 3rem; }
.contact-steps {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.contact-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex: 1; min-width: 150px; max-width: 180px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1.4rem 1rem;
  backdrop-filter: blur(10px);
}
.contact-step-num {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.contact-step-text { font-size: .92rem; color: rgba(255,255,255,.85); text-align: center; line-height: 1.5; }
.contact-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--gradient-dark);
  color: var(--text-light);
  padding: 3rem 48px 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: auto;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
  opacity: .5;
}
footer::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 80%, rgba(13, 148, 136, .16) 0%, transparent 50%),
              radial-gradient(circle at 85% 20%, rgba(6, 182, 212, .1) 0%, transparent 50%);
}
footer > * { position: relative; z-index: 2; }
.footer-brand { font-size: .98rem; font-weight: 700; color: var(--text-light); }
.footer-brand span { display: block; color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 400; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  position: relative;
  transition: color .3s ease;
}
.footer-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 1px;
  bottom: -3px; left: 0;
  background: var(--gradient-primary);
  transition: width .3s ease;
}
.footer-links a:hover { color: var(--text-light); }
.footer-links a:hover::after { width: 100%; }
.footer-iith { font-size: .88rem; color: rgba(255,255,255,.65); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: inline-flex;
  color: rgba(255,255,255,.75);
  transition: color .3s ease, transform .3s ease;
}
.footer-social a:hover { color: var(--text-light); transform: translateY(-2px); }

/* ── Scroll-reveal (JS toggles .in-view via IntersectionObserver) ── */
.theme-card, .output-card, .person-card, .comm-card, .partner-cat,
.infra-item, .pillar, .tl-item, .edu-feat, .course, .rg-faculty-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1), box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
.theme-card.in-view, .output-card.in-view, .person-card.in-view, .comm-card.in-view,
.partner-cat.in-view, .infra-item.in-view, .pillar.in-view, .tl-item.in-view,
.edu-feat.in-view, .course.in-view, .rg-faculty-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
  #reading-group .people-grid, #people .people-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .infra-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 0 16px; height: 76px; gap: 10px; }
  .nav-logo img { height: 50px; }
  .nav-badge img { height: 38px; }
  .theme-toggle { margin-left: 10px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    /* nav's own backdrop-filter makes it a containing block for fixed
       descendants, so bottom:0 would resolve against nav's short box
       instead of the viewport — use an explicit viewport-relative height */
    top: 0; right: 0; left: 0;
    height: 100vh;
    background: rgba(15, 17, 23, .97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 2rem;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-links.open a {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
  }
  .nav-links.open a.active { color: var(--gold); }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 101;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    transition: transform .2s, opacity .2s;
  }
  .hamburger.open span { background: #fff; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html { scroll-padding-top: 92px; }
  #hero { padding: 128px 20px 56px; border-radius: 0 0 32px 32px; }
  .hero-stat-bar { gap: 20px; padding: 20px; }
  .section-inner { padding: 4rem 20px; }
  .ticker { padding: 14px 20px; }
  .contact-inner { padding: 4rem 20px; }
  .about-grid, .edu-grid,
  .people-grid, .community-grid, .partner-categories { grid-template-columns: 1fr; }
  .output-card { grid-template-columns: 48px 1fr; gap: 16px; padding: 1.75rem; }
  .output-num { font-size: 1.6rem; }
  #reading-group .people-grid, #people .people-grid { grid-template-columns: 1fr !important; }
  .themes-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 2rem 20px; flex-direction: column; align-items: flex-start; }
  .timeline::before { left: 76px; }
  .tl-period { width: 76px; font-size: .82rem; padding-right: 20px; }
  .tl-content { padding-left: 20px; }
}
/* Hide hamburger on desktop */
@media (min-width: 901px) {
  .hamburger { display: none; }
}
/* the IITH lockup image is wide (baked-in text); below this width it crowds
   out the theme toggle, so it steps aside — IITH affiliation still appears
   in the footer and body copy on every page */
@media (max-width: 480px) {
  .nav-badge { display: none; }
}
