/* ===================== */
/* GLOBAL STYLES */
/* ===================== */

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  background-color: #f2f2f2;
  margin: 0; /* shorthand for all margins */
}

.container {
  width: 90%;
  margin: 0 auto; /* center horizontally */
  background-color: #fff;
}

/* ===================== */
/* HEADER BASE */
/* ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: rgba(30, 93, 60, 0.95);
  backdrop-filter: blur(8px);

  transition: all 0.3s ease;
}

/* Shrink on scroll */
.site-header.shrink {
  padding: 5px 0;
  background-color: rgba(30, 93, 60, 0.98);
}

/* Layout */
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

/* Hover underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active link */
.nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  width: 100%;
}

/* ===================== */
/* HAMBURGER */
/* ===================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
}

/* ===================== */
/* MOBILE */
/* ===================== */

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  #nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #1E5D3C;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.3s ease;
  }

  #nav-menu.open {
    max-height: 200px;
  }

  .nav-links {
    flex-direction: column;
    padding: 15px 0;
    gap: 15px;
    text-align: center;
  }
}

/* ===================== */
/* HERO SECTION */
/* ===================== */

.hero {
  position: relative;              /* needed for layering */
  padding: 50px 20px 40px;
  overflow: hidden;

  background-color: black;         /* base layer */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;                        /* shorthand for top/right/bottom/left: 0 */

  background-image: 
	  linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
	  url("images/angy_microglia.jpg"); /* ← change this */
  background-size: cover;
  background-position: center;


  z-index: 0;                      /* sits behind content */
}

/* Main layout system */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;              /* puts image + text side-by-side */
  align-items: center;        /* vertical alignment */
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

/* ===================== */
/* LEFT SIDE (IMAGE) */
/* ===================== */

.hero-image img {
  width: 260px;
  height: 260px;

  border-radius: 50%;         /* makes image circular */
  object-fit: cover;          /* prevents distortion */

  border: 4px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ===================== */
/* RIGHT SIDE (TEXT) */
/* ===================== */

.hero-text {
  max-width: 600px;
}

.hero_header {
  font-size: 60px;
  margin-bottom: 10px;
  color: white;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  text-align-last: left
}

/* Stacked identity lines */
.subtitles p {
  margin: 4px 0;
  font-size: 20px;
  color:#EBEBEB;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Progressive indentation */
.subtitles .indent1 { margin-left: 0px; }
.subtitles .indent1 a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid white;
}

.subtitles .indent1 a:hover {
  color: #D1D1D1;
  border-bottom: 1px solid #D1D1D1;
}
.subtitles .indent2 { margin-left: 0px; }
.subtitles .indent3 { margin-left: 0px; }

/* Credential badge (K99/R00, etc.) */
.credential-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

/* Bolder, filled badge: the one status line on the page meant to pop */
.job-market-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #fff;
  color: #1E5D3C;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

/* Main research statement */
.hero_statement {
  font-size: 34px;
  font-weight: 400;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-style: italic;

  line-height: 1.45;
  margin: 25px auto;

  max-width: 600px;   /* prevents it from stretching too wide */
  text-align: center;

  color: #F4F4F4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);

  letter-spacing: 0.2px;
}

/* Framing sentence directly under the tagline */
.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 30px auto;
  padding: 0 16px;
  text-align: center;
  color: #F4F4F4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

@media (min-width: 769px) {
  .hero-lede {
    font-size: 21px;
    max-width: 760px;
  }
}

.hero_paragraph {
  font-size: 18px;
  font-weight: 400;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";

  line-height: 1.5;
  margin: 25px auto;

  max-width: 650px;   /* prevents it from stretching too wide */
  text-align: left;
  margin-left: auto;

  color: #F4F4F4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);

  letter-spacing: 0.3px;
  background-color: rgba(0,0,0,0.6);
  padding: 2px; 
}

/* ===================== */
/* RESPONSIVE DESIGN */
/* ===================== */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;   /* stack vertically on mobile */
    text-align: center;
  }
}

/* ===================== */
/* INTERACTIVE HERO BRAIN DIAGRAM */
/* ===================== */

.hero-interactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 35px 0 15px 0;
}

.brain-stage {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1226 / 546;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;

  /* subtle polish, matches the old featured-schematic treatment */
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Each candidate visual (static image, gif, or multi-panel split) stacked in the same spot */
.stage-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.stage-media {
  object-fit: contain;
}

.stage-media.active {
  opacity: 1;
}

/* Two-panel layout, e.g. IHC alongside the MRE wave */
.stage-media-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px;
  box-sizing: border-box;
}

.stage-media-split img {
  position: relative;
  max-width: 48%;
  max-height: 100%;
  object-fit: contain;
}

/* Layering: gif at the back, outline in the middle, IHC up front */
.stage-media-split .panel-back {
  z-index: 0;
}

.stage-media-split .panel-front {
  z-index: 2;
}

.stage-media-split .split-outline {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
}

/* Dynamic caption describing whichever visual is currently active */
.stage-caption {
  margin: 14px 0 0 0;
  min-height: 1.4em;
  color: #F4F4F4;
  font-size: 14px;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-keywords {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pill buttons, matching the credential/job-market badge language */
.keyword-btn {
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.keyword-btn:hover,
.keyword-btn:focus-visible,
.keyword-btn.active {
  background-color: #fff;
  color: #1E5D3C;
  outline: none;
}

/* ===================== */
/* FADE-IN ANIMATIONS */
/* ===================== */

/* Initial hidden state */
.fade-in {
  opacity: 0;
  transform: translateY(10px); /* slight upward motion */
  animation: fadeInUp 0.8s ease forwards;
}

/* Keyframes define the animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: staggered timing */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ===================== */
/* CENTERED HERO CONTENT */
/* ===================== */

.hero-center {
  position: relative;   /* required for z-index to work */
  z-index: 5;
	
  text-align: center;
  margin-top: 40px;
}

.hero_statement {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px; /* keeps text readable */
}

.hero-buttons {
  justify-content: center;
}

/* ===================== */
/* RESEARCH VISION */
/* ===================== */

.research {
  padding: 5px 20px 30px;              /* vertical spacing */
  background-color: #f4f6f8;
  text-align: center;
}

/* Section title + intro */
.research-header h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Preliminary data figure supporting the research vision */
.vision-figure {
  max-width: 950px;
  margin: 0 auto 55px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 14px;
}

.vision-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Framing paragraph under the Research Vision heading */
.research-summary {
  max-width: 750px;
  margin: 16px auto 28px auto;
  color: #555;
  line-height: 1.6;
  font-size: 17px;
}

/* ===================== */
/* RESEARCH PROGRAM */
/* ===================== */

.program {
  padding: 50px 20px 40px;
  background-color: #fff;
  text-align: center;
}

.program-header h2 {
  font-size: 40px;
  margin-bottom: 40px;
}

.program-subsection {
  margin-bottom: 55px;
}

.program-subsection:last-of-type {
  margin-bottom: 30px;
}

.program-subheading {
  max-width: 1100px;
  margin: 0 auto 24px auto;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  text-align: left;
  font-size: 22px;
  color: #1E5D3C;
}

/* Framing paragraph introducing the Research Aims */
.program-intro {
  max-width: 1100px;
  margin: 0 auto 30px auto;
  color: #555;
  line-height: 1.6;
  font-size: 16px;
  text-align: left;
}

/* Non-linear research aims grid */
.aims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.aim-card {
  background-color: #f9f9f9;
  padding: 28px 26px 26px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.aim-number {
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1E5D3C;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
}

/* Promoted to the card's headline: bold, centered aim category */
.aim-label {
  font-size: 20px;
  font-weight: 700;
  color: #1E5D3C;
  margin: 0 0 12px 0;
}

.aim-image {
  margin: 0 0 16px 0;
}

.aim-image img {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.aim-card p:last-child {
  margin: 0;
  color: #444;
  line-height: 1.5;
  font-size: 18px;
}

/* Pipeline layout: Define -> Manipulate -> Test */
.research-pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.pipeline-step {
  position: relative;
  flex: 1;
  background-color: #f9f9f9;
  padding: 34px 24px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.2s ease;
}

.pipeline-step:hover {
  transform: translateY(-5px);
}

/* Numbered badge marking pipeline order */
.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1E5D3C;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.step-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: #1E5D3C;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

/* Card titles */
.pipeline-step h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c3e50;
}

/* Card text */
.pipeline-step p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Connector between pipeline steps */
.pipeline-arrow {
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E5D3C;
  font-size: 26px;
  font-weight: 300;
}

@media (max-width: 820px) {
  .research-pipeline {
    flex-direction: column;
    gap: 10px;
  }

  .pipeline-step {
    margin-top: 16px;
  }

  .pipeline-arrow {
    flex: 0 0 30px;
    transform: rotate(90deg);
  }
}

/* ===================== */
/* HONORS & FUNDING */
/* ===================== */

.honors {
  padding: 50px 20px 40px;
  background-color: #f4f6f8;
  text-align: center;
}

.honors-header h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.honors-card {
  background-color: #f9f9f9;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
}

.honors-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #1E5D3C;
  font-size: 17px;
  border-bottom: 2px solid #1E5D3C;
  padding-bottom: 8px;
}

.honors-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.honors-card li {
  margin-bottom: 14px;
  padding-left: 0;
}

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

.honors-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
}

.honors-meta {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

/* ===================== */
/* Publications  */
/* ===================== */

.publications {
  padding: 5px 20px;              /* vertical spacing */
  background-color: #D1D1D1;     
  text-align: center;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif"
}

/* Section title + intro */
.publications-header h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.publications-intro {
  max-width: 700px;               /* keeps text readable */
  margin: 0 auto 40px auto;       /* center + space below */
  color: black;
  line-height: 1.5;
  font-size: 15px;
}

.publications-intro a {
  color: #2c3e50;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(44,62,80,0.3);
}

.publications-intro a:hover {
  color: #1E5D3C;
  border-bottom: 1px solid #1E5D3C;
}

/* ===================== */
/* PUBLICATIONS SECTION */
/* ===================== */

/* Link styling (matches your site aesthetic) */
.publications-intro a {
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 1px solid rgba(44,62,80,0.3);
}

.publications-intro a:hover {
  color: #1E5D3C;
  border-bottom: 1px solid #1E5D3C;
}

/* Container for all publications */
.pub-list {
  max-width: 800px;
  margin: 0 auto;
}

/* Each publication entry */
.pub-item {
  margin-bottom: 30px;
  padding-bottom: 20px;

  border-bottom: 1px solid #e0e0e0; /* subtle divider */
}

/* Authors */
.pub-authors {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Title (most important visual element) */
/* Title (most prominent) */
.pub-title {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

/* Make title link clean */
.pub-title a {
  color: #2c3e50;
  text-decoration: none;
}

.pub-title a:hover {
  color: #1E5D3C;
  text-decoration: underline;
}

/* Author role (new line) */
.pub-role {
  display: inline-block;
  padding: 2px 8px;
  background-color: #eef6f9;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Journal line */
.pub-journal {
  margin: 0;
  font-size: 14px;
  color: #777;
}
.pub-item.featured {
/* Featured publication (highlight your strongest work) */
  background-color: #eef6f9;   /* soft accent background */
  padding: 20px;
  border-radius: 10px;

  border-left: 4px solid #1E5D3C;  /* visual emphasis */
}

/* Make title slightly larger in featured items */
.pub-item.featured .pub-title {
  font-size: 20px;
  font-weight: 600;
}

/* Make role more prominent */
.pub-item.featured .pub-role {
  background-color: #1E5D3C;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
  margin: 5px 0;
}

/* Slightly darker journal text for emphasis */
.pub-item.featured .pub-journal {
  color: #444;
}

/* One-line meta */
/* One-line meta container */
.pub-meta {
  font-size: 14px;
  color: #666;
}

/* Bring back the badge styling */
.pub-meta .pub-role {
  display: inline-block;
  padding: 2px 8px;
  background-color: #eef6f9;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 6px; /* space before the dot */
}

/* Commentary links (e.g. News & Views pieces on a publication) */
.pub-commentary {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #777;
}

.pub-commentary a {
  color: #1E5D3C;
  text-decoration: none;
  border-bottom: 1px solid rgba(30,93,60,0.3);
}

.pub-commentary a:hover {
  border-bottom: 1px solid #1E5D3C;
}

/* "More" button */
.pub-toggle {
  margin-left: 10px;
  font-size: 12px;
  border: none;
  background: none;
  color: #1E5D3C;
  cursor: pointer;
}

/* Hidden description by default */
/* Smooth expandable description */
.pub-description {
  max-height: 0;              /* collapsed */
  overflow: hidden;           /* hide content */
  opacity: 0;
  text-align: left;

  transition: 
    max-height 0.4s ease,
    opacity 0.3s ease;

  margin-top: 0;              /* no space when closed */
}

/* Expanded state */
.pub-description.open {
  max-height: 300px;          /* large enough for your text */
  opacity: 1;
  margin-top: 10px;
}

/* ===================== */
/* DOCUMENTS SECTION */
/* ===================== */

.documents {
  padding: 60px 20px;
  background-color: #f4f6f8; /* subtle contrast */
  text-align: center;
}

.documents h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.documents-intro {
  color: #555;
  margin-bottom: 30px;
}

/* Buttons container */
.doc-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Primary button */
.doc-btn {
  padding: 12px 20px;
  background-color: #1E5D3C; /* your theme color */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;

  transition: all 0.25s ease;
}

/* Secondary button */
.doc-btn.secondary {
  background-color: transparent;
  color: #1E5D3C;
  border: 1px solid #1E5D3C;
}

/* Hover effects */
.doc-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===================== */
/* CONTACT SECTION */
/* ===================== */

.contact {
  padding: 50px 20px 70px;
  background-color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.contact-intro {
  color: #555;
  margin: 0 auto 30px auto;
  max-width: 500px;
}

