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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --crimson: #8B1A1A;
  --crimson-dark: #6B1414;
  --crimson-light: #A52020;
  --gold: #C9A227;
  --navy: #1a2233;
  --navy-dark: #111827;
  --text-dark: #1a1a2e;
  --text-mid: #3d3d5c;
  --text-light: #6b7280;
  --bg-light: #f4f5f7;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --accent-red: #8B1A1A;
  --tag-green: #16a34a;
  --tag-blue: #2563eb;
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --bg-grey: #f7fafc;
  --topbar-height: 86px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* TOP BAR */
.topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--topbar-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}
.logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a3a6b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text h1 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}
.logo-text p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 0;
}
.logo-text .name-short { display: none; }
.apply-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  background: var(--crimson);
  color: #fff;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.apply-btn:hover { background: var(--crimson-dark); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* NAV */
nav {
  background: var(--crimson);
  position: sticky;
  top: var(--topbar-height);
  z-index: 999;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 14px 18px;
  transition: background 0.15s;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,0,0,0.2);
  border-bottom-color: var(--gold);
}
.nav-links .no-display {
  display: none !important;
}
.nav-search {
  background: var(--gold);
  border: none;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  flex-shrink: 0;
}
.nav-search svg { width: 16px; height: 16px; stroke: #fff; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a2233 0%, #243050 60%, #2d3a5e 100%);
  padding: 76px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(139,26,26,0.18) 0%, transparent 65%);
}
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}
.hero p {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* SECTIONS */
.section { padding: 52px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-light); }

.inner-page > .section:first-child {
  padding-top: 36px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 8px;
}
.section-heading h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-dark);
  border-left: 4px solid var(--crimson);
  padding-left: 14px;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 36px;
  padding-left: 18px;
}
.section-sub-flush {
  padding-left: 0;
  margin-top: 8px;
  margin-bottom: 10px;
}
.section-sub-flush-wide {
  padding-left: 0;
  margin-top: 8px;
  margin-bottom: 28px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p { color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; font-size: 15px; }
.vision-box {
  border-left: 4px solid var(--crimson);
  background: #fdf8f8;
  padding: 20px 22px;
  border-radius: 4px;
  margin-top: 24px;
}
.vision-box .vision-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 8px;
  font-size: 15px;
}
.vision-box p { color: var(--text-mid); font-size: 14px; margin: 0; }
.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  height: 320px;
  background: linear-gradient(135deg, #8B1A1A 0%, #c0392b 40%, #ff6b35 100%);
  display: flex;
  align-items: flex-end;
  position: relative;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-img-label {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 14px 22px;
  width: 100%;
  text-align: center;
}

/* GOALS */
.goals-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.goal-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.goal-icon { font-size: 28px; }
.goal-card p { color: var(--text-mid); font-size: 14.5px; line-height: 1.65; }

/* KEY PILLARS */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.pillar-card {
  background: var(--bg-white);
  border: 2px solid var(--crimson);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: left;
}
.pillar-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.pillar-card h4 { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.pillar-card .pillar-sub { color: var(--crimson); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pillar-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: var(--crimson);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pillar-btn:hover { background: var(--crimson-dark); }

.pillar-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 31, 41, 0.58);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
}
.pillar-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pillar-modal {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 42rem;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  font-family: var(--font-body);
}
.pillar-modal-header {
  background: linear-gradient(to right, #7f1d1d, #991b1b);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pillar-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pillar-modal-icon { font-size: 3rem; }
.pillar-modal-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.pillar-modal-header p {
  font-size: 0.875rem;
  color: #fecaca;
  margin: 0;
}
.pillar-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 9999px;
  padding: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pillar-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.pillar-modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(80vh - 100px);
}
.pillar-modal-body p {
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0;
}

/* FOCUS AREAS */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.focus-card {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border-width: 2px;
  border-style: solid;
  border-color: #cbd5f5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.focus-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.focus-card h4 { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.focus-card .focus-sub { color: var(--text-light); font-size: 14px; margin-bottom: 14px; font-weight: 500; }
.focus-card ul { list-style: none; padding: 0; }
.focus-card ul li {
  color: var(--text-mid);
  font-size: 14px;
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.focus-card ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-size: 12px;
  top: 5px;
}

/* NEWS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.news-img {
  height: 180px;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.news-body { padding: 20px; }
.news-date { color: var(--crimson); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.news-card h4 { font-weight: 700; font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.news-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.read-more {
  color: var(--crimson);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { text-decoration: underline; }

/* RESEARCH */
.research-list { display: flex; flex-direction: column; gap: 20px; }
.research-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--crimson);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.research-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--bg-light);
}
.tag-active { background: #dcfce7; color: var(--tag-green); border-color: #86efac; }
.tag-ongoing { background: #dbeafe; color: var(--tag-blue); border-color: #93c5fd; }
.research-card h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.research-card .lead-researcher { color: var(--crimson); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.research-card p { color: var(--text-mid); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.view-btn {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.view-btn:hover { background: var(--crimson-dark); }

/* CALL FOR PROJECTS */
.cfp-banner {
  background: #fffbeb;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.cfp-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cfp-deadline {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.cfp-banner h4 { font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.cfp-banner p { color: var(--text-mid); font-size: 15px; line-height: 1.65; }
.cfp-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.cfp-topics-nested { margin-top: 16px; margin-bottom: 0; }
.cfp-topic-group h5 { color: var(--crimson); font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.cfp-topic-group ul { list-style: none; }
.cfp-topic-group ul li {
  font-size: 14.5px;
  color: var(--text-mid);
  padding: 4px 0 4px 14px;
  position: relative;
}
.cfp-topic-group ul li::before { content: '\2022'; position: absolute; left: 0; color: var(--crimson); }
.cfp-guidelines {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}
.cfp-guidelines-tight { margin-bottom: 24px; }
.cfp-guidelines h4 { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.cfp-guidelines ol { padding-left: 20px; }
.cfp-guidelines ol li {
  font-size: 14.5px;
  color: var(--text-mid);
  padding: 6px 0;
  line-height: 1.6;
}
.cfp-guidelines ol li strong { color: var(--text-dark); }
.cfp-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  background: var(--crimson);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--crimson-dark); }
.btn-outline {
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  background: transparent;
  color: var(--crimson);
  border: 2px solid var(--crimson);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--crimson); color: #fff; }

/* PEOPLE */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.person-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.person-card:hover { transform: translateY(-3px); }
.person-img {
  height: 300px;
  overflow: hidden;
  background: var(--bg-light);
}
.person-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-img img.pos-upper { object-position: center 18%; }
.person-img img.pos-top { object-position: center 0%; }
.person-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.person-body { padding: 18px; }
.person-body h4 { font-weight: 700; font-size: 17px; margin-bottom: 2px; }
.person-role { color: var(--crimson); font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.person-dept { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.person-body hr { border: none; border-top: 1px solid var(--border); margin-bottom: 10px; }
.research-label { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.person-areas { color: var(--text-mid); font-size: 14px; margin-bottom: 12px; }
.person-email { color: var(--crimson); font-size: 14px; font-weight: 500; text-decoration: none; }
.contact-row a,
.contact-row a:hover,
.contact-row a:focus,
.contact-row a:active {
  color: var(--text-mid);
  text-decoration: none;
}

/* CONTACT */
.contact-cards { display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin: 0 auto; }
.contact-info-card, .contact-hours-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.contact-info-card h4, .contact-hours-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fde8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.contact-row h5 { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.contact-row p { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; }
.contact-hours-card p { color: var(--text-mid); font-size: 14.5px; line-height: 2; }

/* FOOTER */
footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 40px 20px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
footer h5 { font-weight: 700; font-size: 15px; margin-bottom: 14px; color: #fff; }
footer p { color: rgba(255,255,255,0.65); font-size: 14.5px; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 2;
  transition: color 0.15s;
  display: block;
}
footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13.5px; margin: 0; }

/* PAGE SECTIONS */
.page-section { display: none; }
.page-section.active { display: block; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cfp-topics { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 240px; }
}

@media (max-width: 900px) {
  .hero h2 { white-space: normal; }
}

@media (max-width: 768px) {
  :root { --topbar-height: 74px; }
  .logo-text .name-full { display: none; }
  .logo-text .name-short { display: inline; }
  .topbar-inner { flex-wrap: nowrap; gap: 12px; }
  nav { position: sticky; }
  /* The menu button lives in the topbar on mobile, so the nav shrinks to a thin accent strip that anchors the dropdown. */
  .nav-inner { position: relative; padding: 0; min-height: 4px; }
  .logo-circle { width: 48px; height: 48px; }
  .logo-area { gap: 12px; }
  .topbar-actions { gap: 10px; }
  .apply-btn { padding: 8px 12px; font-size: 12px; letter-spacing: 0.3px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--crimson-dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    max-height: calc(100vh - var(--topbar-height) - 4px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-bottom: 1px solid rgba(255,255,255,0.1); border-left: 3px solid transparent; padding: 13px 16px; }
  .nav-links a:hover,
  .nav-links a.active { border-bottom-color: rgba(255,255,255,0.1); border-left-color: var(--gold); }
  .hamburger { display: flex; padding: 10px 4px 10px 6px; margin-right: -4px; flex-shrink: 0; }
  .hamburger span { background: var(--crimson); }
  .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); }
  .hero { padding: 52px 14px; }
  .section { padding: 40px 14px; }
  .inner-page > .section:first-child {
    padding-top: 28px;
  }
  .goals-cards { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  /* People: compact rows (photo left, details right) instead of full-width portraits. */
  .people-grid { grid-template-columns: 1fr; gap: 14px; }
  .person-card { display: flex; align-items: stretch; }
  .person-card:hover { transform: none; }
  .person-img { flex: 0 0 112px; height: auto; min-height: 136px; position: relative; }
  .person-img img { position: absolute; inset: 0; }
  .person-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
  .person-body h4 { font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
  .person-role { font-size: 13.5px; line-height: 1.35; }
  .person-dept { font-size: 13px; line-height: 1.45; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cfp-banner { flex-direction: column; }
  .cfp-actions { flex-direction: column; align-items: center; }
  .logo-text h1 { font-size: 15px; white-space: nowrap; }
  .logo-text p { font-size: 12px; line-height: 1.3; white-space: nowrap; }
  .contact-info-card, .contact-hours-card { padding: 20px; }
  .pillar-modal-overlay { padding: 16px; }
  .pillar-modal-header,
  .pillar-modal-body {
    padding-left: 22px;
    padding-right: 22px;
  }
  .pillar-modal-header {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 16px;
  }
  .pillar-modal-title-wrap { gap: 12px; }
  .pillar-modal-icon { font-size: 32px; }
  .pillar-modal-header h4 { font-size: 22px; }
  .pillar-modal-header p { font-size: 14px; }
  .pillar-modal-close { font-size: 34px; }
  .pillar-modal-body p {
    font-size: 15px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  :root { --topbar-height: 68px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .logo-circle { width: 42px; height: 42px; }
  .apply-btn { padding: 7px 8px; font-size: 10.5px; letter-spacing: 0.2px; white-space: normal; text-align: center; line-height: 1.2; max-width: 80px; }
  .logo-area { gap: 10px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .logo-circle { width: 34px; height: 34px; }
  .topbar-inner { padding: 0 12px; }
  .hero h2 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.22;
    letter-spacing: -0.3px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* PLACEHOLDERS */
.news-img-1 { background: linear-gradient(135deg, #1a2233, #2d3a5e); }
.news-img-2 { background: linear-gradient(135deg, #e8f4f8, #b8d4e0); }
.news-img-3 { background: linear-gradient(135deg, #f0f4e8, #c8d8b0); }
.news-img-4 { background: linear-gradient(135deg, #f8f0f0, #e0c8c8); }
.person-img-1 { background: linear-gradient(135deg, #d4d8e0 0%, #b8bcc8 100%); }
.person-img-2 { background: linear-gradient(135deg, #e0d4d4 0%, #c8b8b8 100%); }
.person-img-3 { background: linear-gradient(135deg, #d4e0d4 0%, #b8c8b8 100%); }
.person-img-4 { background: linear-gradient(135deg, #e0dcd4 0%, #c8c0b0 100%); }
.person-img-5 { background: linear-gradient(135deg, #d4d4e0 0%, #b8b8c8 100%); }
.person-img-6 { background: linear-gradient(135deg, #e0e4d8 0%, #c8ccb8 100%); }

/* PREVIEW BAR */
.preview-bar { background: #1a2233; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }
.preview-bar a { color: var(--gold); }

/* HOME CARDS (link cards) */
.pillar-card { display: flex; flex-direction: column; }
.pillar-card p { color: var(--text-mid); font-size: 14px; line-height: 1.55; margin-bottom: 16px; flex: 1; }
.pillar-btn { align-self: flex-start; }
.pillar-card .pillar-sub.soon { color: var(--text-light); }

/* THEME CARDS */
.theme-intro { color: var(--text-mid); font-size: 15px; max-width: 760px; margin: 0 0 24px; }
.theme-card h4 { font-size: 16.5px; line-height: 1.35; margin-bottom: 0; }

/* RESEARCH GRANTS */
.stream-heading { font-size: 20px; font-weight: 700; margin: 36px 0 16px; color: var(--crimson); }
.project-card h4 { font-size: 18px; line-height: 1.4; }
.project-team { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; margin: 0; }
.project-card .team-label { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-light); margin: 10px 0 2px; }
.project-card .project-extra { color: var(--text-mid); font-size: 14.5px; margin-top: 10px; }
/* Projects with an image: image left, text right (stacks on small screens). Cards without one are unchanged. */
.project-card.has-img { display: flex; gap: 24px; align-items: flex-start; }
.project-card .project-img { flex: 0 0 240px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--bg-light); }
.project-card .project-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card .project-body { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .project-card.has-img { flex-direction: column; gap: 16px; }
  .project-card .project-img { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; }
}
.empty-note { color: var(--text-light); font-size: 15px; padding: 12px 0; }

/* NEWS AND EVENTS */
.news-card .news-body { padding: 22px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.news-meta .news-date { margin: 0; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; background: #fde8e8; color: var(--crimson); }
.chip-past { background: #e5e7eb; color: #374151; }
.chip-research { background: #dbeafe; color: var(--tag-blue); }
.chip-soon { background: #fef3c7; color: #92400e; }
.news-card .news-img { height: 160px; }
.news-details { color: var(--text-light); font-size: 13.5px; margin-bottom: 8px; }

/* PROGRAMMES */
.programme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
/* Compact card: status and name on the left, View on the right; the whole card is the link. */
.programme-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-white); border: 1px solid var(--border); border-left: 4px solid var(--crimson); border-radius: 8px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); color: inherit; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.programme-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
.programme-card:hover .view-btn { background: var(--crimson-dark); }
.programme-card:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.programme-card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.programme-card h4 { font-size: 19px; font-weight: 700; color: var(--text-dark); }
.programme-card .view-btn { flex-shrink: 0; }
.prose { max-width: 800px; }
.prose p { color: var(--text-mid); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.tracks-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tracks-table th, .tracks-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.tracks-table th { background: var(--bg-light); font-weight: 700; }
.tracks-table td:first-child { font-weight: 700; color: var(--crimson); white-space: nowrap; }
.coming-soon-box { background: #fffbeb; border: 2px solid var(--gold); border-radius: 10px; padding: 24px 28px; max-width: 800px; }
.coming-soon-box h4 { font-size: 18px; margin-bottom: 6px; }
.coming-soon-box p { color: var(--text-mid); font-size: 15px; line-height: 1.7; margin: 0; }
.people-heading { font-size: 20px; font-weight: 700; margin: 8px 0 18px; color: var(--crimson); }
.people-heading:not(:first-of-type) { margin-top: 40px; }
.person-body .person-dept { margin-bottom: 0; }

/* ENGAGE */
.engage-intro { color: var(--text-mid); font-size: 15.5px; line-height: 1.7; max-width: 900px; margin: 0 0 28px; }
.engage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.engage-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--bg-white); border: 1px solid var(--border); border-left: 4px solid var(--crimson); border-radius: 8px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.engage-card h4 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.engage-card p { color: var(--text-mid); font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.engage-card .view-btn { margin-top: auto; }

/* CONTACT FORM */
.contact-form-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; padding: 28px 32px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.contact-form-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.form-row input, .form-row textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: var(--text-dark); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--crimson); outline-offset: 1px; }
.form-row textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 6px; padding: 12px 16px; margin-bottom: 18px; font-size: 14.5px; }
.form-msg.ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.social-links a { color: var(--crimson); font-weight: 600; text-decoration: none; margin-right: 14px; }

@media (max-width: 768px) {
  .programme-grid { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 20px; }
  .tracks-table td:first-child { white-space: normal; }
  .tracks-table th, .tracks-table td { padding: 10px 12px; }
  .people-heading { font-size: 18px; margin-bottom: 14px; }
  .people-heading:not(:first-of-type) { margin-top: 32px; }
}
