:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --accent-blue: #2563eb;
  --max-width: 1040px;
}

.header-banner h1,
.header-content h1 {
  color: #ffffff;
}


/* --- Global Typography Scaling --- */
html {
  /* Default browser base is 16px. 
     90.625% sets the global base to ~14.5px for a dense, academic aesthetic.
     Change to 87.5% if you want it even tighter (~14px). */
  font-size: 90.625%; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.925rem; /* ~13.5px body copy */
  line-height: 1.55;    /* Comfortable line spacing for compact text */

  -webkit-font-smoothing: antialiased;
}

/* Scaled-Down Institutional Headings */
h1 {
  font-size: 1.5rem;    /* ~22px (was 32px+) */
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

h2 {
  font-size: 1.2rem;    /* ~17.5px */
  font-weight: 700;
  color: #0f172a;
}

h3 {
  font-size: 0.95rem;   /* ~14px */
  font-weight: 600;
  color: #1f407a;
}

p, li {
  font-size: 0.9rem;    /* ~13px for paragraphs and lists */
  margin-bottom: 0.85rem;
}

/* Compact Navigation Bar Links */
.nav-links a {
  font-size: 0.85rem;   /* ~12.3px */
  font-weight: 600;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* 1. Header Banner using your header.jpg */
/* 1. Fully Responsive Header Banner */
.header-banner {
  position: relative;
  width: 100%;
  /* Flexible height adaptively scaling with screen size */
  min-height: 280px;
  height: clamp(280px, 35vh, 420px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #0f172a;
  padding: 1.25rem 0 1.75rem 0; /* Reduced vertical padding inside header */
  margin-bottom: 0.8rem;        /* Reduced gap below header (was likely 3rem+) */
  min-height: auto;
  padding-bottom: 0.5rem !important; /* Adjust or set to 0 if desired */
}

/* 2. Zero out top margins on main containers */
.content-wrapper,
.bio-hero-grid {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3. Kill the browser's default top margin on the first paragraph */
.bio-main-text p:first-child,
.bio-sidebar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


.navbar {
  padding: 0.5rem 0;            /* Compact top navigation bar */
}

.header-content {
  margin-top: 1rem;             /* Tightened space between nav links and main title */
  padding: 0;
}

.header-content h1 {
  font-size: 1.65rem;           /* Slightly tighter heading size */
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
}

.header-subtitle {
  font-size: 0.875rem;
  margin: 0;
}

.header-bg {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover; /* Scaled to fill without stretching */
  object-position: center 30%; /* Focuses on upper-center of your image */
  z-index: 1;
}

/* --- Compact Main Container Gap --- */
.content-wrapper {
  margin-top: 0;                /* Eliminates excess gap above the main body grid */
  padding-top: 0;
}

.bio-hero-grid {
  margin-top: 0;                /* Pulls the bio grid directly up under the header */
}

/* 2. Fully Responsive Research Images */
.subsection-media {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  width: 100%; /* Keeps media box inside its grid column */
  box-sizing: border-box;
}

.subsection-media img,
.figure-media img {
  width: 100%;
  max-width: 100%;
  height: auto; /* Maintains true aspect ratio without cropping */
  max-height: 350px; /* Prevents tall vertical images from blowing up */
  object-fit: contain; /* Displays full image without clipping edges */
  border-radius: 6px;
  display: block;
}

/* 3. Global Responsive Safety Net */
img, video {
  max-width: 100%;
  height: auto;
}

/* Responsive YouTube Video Wrapper */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintains standard widescreen 16:9 ratio */
  border-radius: 8px;
  overflow: hidden;
  background-color: #0f172a;
  border: 1px solid var(--border-color);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.header-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* Dark transparent overlay to keep white text readable while showing the image */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 2;
}

.navbar {
  position: relative;
  z-index: 3;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: ad1.1rem;
  text-decoration: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
  border-bottom: 2px solid #60a5fa;
  padding-bottom: 2px;
}

.header-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem 1.5rem;
  color: #ffffff;
}

.badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.header-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 2. Sub-navigation Jump Bar */
.subnav {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.subnav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.subnav-label {
  font-weight: 600;
  color: var(--text-muted);
}

.subnav a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.subnav a:hover {
  text-decoration: underline;
}

/* --- Global Vertical Spacing Adjustments --- */

/* 1. Main wrapper padding */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem; /* Increased top/bottom padding from 3rem to 5rem */
}

/* 2. Space between research & page subsections */
.research-subsection,
.people-section,
.topic-block,
.data-section {
  margin-bottom: 2rem; /* Increased vertical space between major sections */
  padding-bottom: 2rem;
}

/* 3. Horizontal Dividers Spacing */
.section-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0; /* Creates 5rem (~80px) space above and below divider lines */
}

/* 4. Headings Bottom Margin */
.topic-block h2,
.people-section h2,
.data-section h2 {
  margin-bottom: 2rem; /* Adds space between headings and body text/tables */
}

/* --- Styles for People Page Cards --- */
.person-card.primary-pi {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-subtle);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.person-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.alumni-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
}

.alumni-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.degree-tag {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.thesis-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.next-step {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.join-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

.join-box h2 {
  margin-bottom: 1rem;
}

.join-box p {
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-muted);
}

.btn-contact {
  display: inline-block;
  background-color: var(--text-dark);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* --- Student & Mentorship Styling --- */

.context-note {
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 3.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.student-category {
  margin-bottom: 4rem;
}

.student-category h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.student-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.student-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.student-card:hover {
  border-color: #cbd5e1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.term-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  background-color: #eff6ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* --- Clean Institutional Accordion Header --- */

.student-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  background-color: #ffffff;
  list-style: none;
  user-select: none;
}

.student-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Subtle, un-badged metadata string */
.student-meta {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted); /* Neutral slate gray */
  margin-left: auto;
  margin-right: 1rem;
}

/* Custom minimal plus/minus toggle */
.student-summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.student-accordion[open] .student-summary::after {
  content: "−";
  color: var(--text-dark);
}

.card-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.card-details .label {
  font-weight: 600;
  color: var(--text-dark);
}

.card-pub {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Advisee Accordions / Dropdowns --- */

.advisee-group {
  margin-bottom: 3.5rem;
}

.advisee-group h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.student-accordion {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.student-accordion:hover {
  border-color: #cbd5e1;
}

.student-accordion[open] {
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.student-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none; /* Removes default disclosure triangle */
  user-select: none;
  background-color: #ffffff;
}

/* Remove default marker in Webkit/Firefox */
.student-summary::-webkit-details-marker {
  display: none;
}

/* Custom interactive expand indicator (+) */
.student-summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: 1rem;
}

.student-accordion[open] .student-summary::after {
  content: "−";
  color: var(--accent-blue);
}

.student-name {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.student-term {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-blue);
  background-color: #eff6ff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.student-details {
  padding: 1.25rem;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  font-size: 0.925rem;
}

.student-details p {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.student-details strong {
  color: var(--text-dark);
}

/* Bottom institutional note */
.bottom-context-note {
  margin-top: 4rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .person-card.primary-pi {
    grid-template-columns: 1fr;
  }
  .person-photo {
    width: 100%;
    height: 250px;
  }
}

.research-intro {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.research-subsection {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.research-subsection:last-child {
  border-bottom: none;
}

.subsection-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.subsection-grid.reversed {
  grid-template-columns: 0.8fr 1.2fr;
}

.subsection-grid.reversed .subsection-text {
  order: 2;
}

.subsection-grid.reversed .subsection-media {
  order: 1;
}

.topic-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.4rem;
}

.subsection-text h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.subsection-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  font-size: 0.925rem;
  color: #334155;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.feature-list li::before {
  content: "▪";
  color: var(--accent-blue);
  position: absolute;
  left: 0;
}

.subsection-media {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
}

.subsection-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.media-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.4;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- 2-Column Hero Grid Layout --- */

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.bio-hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px; /* Left column expands; right sidebar is 280px */
  gap: 3.5rem;
  align-items: start;
}

.bio-main-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
}

.bio-main-text p:last-child {
  margin-bottom: 0;
}

/* Vertical Blue Divider Line */
.bio-sidebar {
  padding-left: 2.5rem;
  border-left: 3px solid #1f407a; /* Institutional Blue Line */
}

.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: #e2e8f0;
}

.profile-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.profile-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f407a;
  margin: 0 0 1rem 0;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
}

.contact-details li {
  margin-bottom: 0.4rem;
  color: #475569;
}

.contact-details strong {
  color: #0f172a;
}

.contact-details a {
  color: #1f407a;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.profile-links {
  font-size: 0.85rem;
  font-weight: 600;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.profile-links a {
  color: #0f172a;
  text-decoration: none;
}

.profile-links a:hover {
  color: #1f407a;
  text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .bio-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .bio-sidebar {
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 3px solid #1f407a; /* Flips to a top horizontal blue bar on small screens */
  }
}

/* --- 2-Column Hero Grid Layout --- */

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.bio-hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px; /* Left column expands; right sidebar is 280px */
  gap: 3.5rem;
  align-items: start;
}

.bio-main-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
}

.bio-main-text p:last-child {
  margin-bottom: 0;
}

/* Vertical Blue Divider Line */
.bio-sidebar {
  padding-left: 2.5rem;
  border-left: 3px solid #1f407a; /* Institutional Blue Line */
}

.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: #e2e8f0;
}

.profile-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.profile-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f407a;
  margin: 0 0 1rem 0;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
}

.contact-details li {
  margin-bottom: 0.4rem;
  color: #475569;
}

.contact-details strong {
  color: #0f172a;
}

.contact-details a {
  color: #1f407a;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.profile-links {
  font-size: 0.85rem;
  font-weight: 600;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.profile-links a {
  color: #0f172a;
  text-decoration: none;
}

.profile-links a:hover {
  color: #1f407a;
  text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .bio-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .bio-sidebar {
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 3px solid #1f407a; /* Flips to a top horizontal blue bar on small screens */
  }
}

/* --- Research Feature Block with Integrated Figure --- */

.research-feature-card {
  display: grid;
  grid-template-columns: 1fr 440px; /* Text left, figure right */
  gap: 2.5rem;
  align-items: start;
  background-color: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.feature-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.badge-blog a {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f407a;
  background-color: #eff6ff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
}

.badge-blog a:hover {
  text-decoration: underline;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.feature-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  margin-top: 0;
  margin-bottom: 1rem;
}

.feature-content p {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text-muted, #334155);
  margin-bottom: 1rem;
}

.paper-link {
  color: #1f407a;
  font-weight: 600;
  text-decoration: none;
}

.paper-link:hover {
  text-decoration: underline;
}

.feature-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.doi-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #1f407a;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

.doi-btn:hover {
  background-color: #162f5a;
}

.blog-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f407a;
  border: 1px solid #1f407a;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

.blog-btn:hover {
  background-color: #eff6ff;
}

/* Figure & Image Styling */
.feature-figure {
  margin: 0;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.85rem;
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  background-color: #ffffff;
}

.feature-figure figcaption {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 0.75rem;
}

.feature-figure figcaption strong {
  color: #0f172a;
}

/* --- SIMBA FASCA Feature Card Grid --- */

.project-feature-card {
  display: grid;
  grid-template-columns: 240px 1fr; /* Image left (240px fixed), text right (flexible) */
  gap: 2rem;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1f407a; /* ETH/Bonn institutional accent line */
  border-radius: 6px;
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-logo-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: contain;
}

.project-details h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.4rem 0 0.75rem 0;
}

.project-details p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1.25rem;
}

.project-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.badge-tag {
  background-color: #eff6ff;
  color: #1f407a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-funding {
  font-size: 0.85rem;
  color: #475569;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
}

.funding-label {
  color: #0f172a;
  font-weight: 600;
}

/* Mobile Responsiveness: Stack vertically on small screens */
@media (max-width: 768px) {
  .project-feature-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .project-logo-img {
    max-width: 200px;
  }
}

/* --- Open Positions / Hiring Card --- */

.hiring-card {
  display: grid;
  grid-template-columns: 220px 1fr; /* Logo left, text right */
  gap: 2.25rem;
  align-items: start;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1f407a; /* ETH/Bonn institutional accent */
  border-radius: 6px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hiring-logo-box {
  text-align: center;
}

.hiring-logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.hiring-logo-caption {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hiring-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f407a;
  background-color: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hiring-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.25rem 0 0.75rem 0;
}

.hiring-intro {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Positions Grid Layout */
.positions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.position-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
}

.position-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.position-header strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.position-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.phd-badge {
  background-color: #1f407a;
  color: #ffffff;
}

.student-badge {
  background-color: #e2e8f0;
  color: #334155;
}

.position-item p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Actions & Buttons */
.hiring-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.btn-primary {
  display: inline-block;
  align-self: flex-start;
  background-color: #1f407a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #162f5a;
}

.hiring-note {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

/* Responsive adjustments for smaller displays */
@media (max-width: 820px) {
  .hiring-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .positions-grid {
    grid-template-columns: 1fr;
  }

  .hiring-logo-img {
    max-width: 160px;
  }
}

/* --- Homepage Hero Hiring Callout --- */

.hero-hiring-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #1f407a; /* Institutional blue accent line */
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: #1e293b;
}

.hiring-tag {
  display: inline-block;
  background-color: #1f407a;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-hiring-notice a {
  color: #1f407a;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}

.hero-hiring-notice a:hover {
  text-decoration: underline;
}

/* --- Hiring Card Contact Line --- */
.hiring-contact {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
}

.hiring-contact a {
  color: #1f407a;
  font-weight: 600;
  text-decoration: none;
}

.hiring-contact a:hover {
  text-decoration: underline;
}

/* --- Structured Advisees Box --- */
.advisees-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1f407a; /* ETH/Bonn institutional accent */
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.advisees-box-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e2e8f0;
}

.advisee-group {
  margin-bottom: 1.15rem;
}

/* Downscaled Category Subheadings (PhD, Master's, etc.) */
.advisee-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f407a;
  margin: 0 0 0.45rem 0;
}

/* Compact Accordions */
.student-accordion {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.student-accordion[open] {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.student-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.student-summary:hover {
  color: #1f407a;
}

.student-meta {
  font-size: 0.775rem;
  font-weight: 400;
  color: #64748b;
}

.student-details {
  padding: 0.55rem 0.75rem 0.65rem 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #334155;
}

.student-details p {
  margin: 0.2rem 0;
}

/* Bottom Institutional Footnote */
.advisees-footnote {
  margin-top: 1.25rem;
  padding: 0.6rem 0.8rem;
  background-color: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #64748b;
}

/* --- Framed Research Topic Cards --- */

.research-topics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.research-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1f407a; /* Institutional blue accent */
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.research-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.research-card p {
  margin-bottom: 0.75rem;
  color: #334155;
}

.paper-link {
  color: #1f407a;
  font-weight: 500;
  text-decoration: none;
}

.paper-link:hover {
  text-decoration: underline;
}

/* Embedded Figure & Video Box Inside Cards */
.figure-card,
.subsection-media {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.85rem;
  margin: 1rem 0 0.5rem 0;
}

.figure-card img,
.subsection-media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 3px;
}

.figure-caption,
.media-caption {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
}

/* Action Buttons Row */
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.doi-btn,
.blog-btn {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.doi-btn {
  background-color: #1f407a;
  color: #ffffff;
}

.doi-btn:hover {
  background-color: #162f5c;
}

.blog-btn {
  background-color: #eff6ff;
  color: #1f407a;
  border: 1px solid #bfdbfe;
}

.blog-btn:hover {
  background-color: #dbeafe;
}

/* --- Research Cards Sharing the SIMBA FASCA Wrapper --- */

.research-topics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Single-column modifier for wide figures/videos (Cards 1 & 3) */
.project-feature-card--stacked {
  display: block;
}

/* Two-column modifier with square figure on the left (Card 2) */
.project-feature-card--media-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.project-media-left {
  margin: 0;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.75rem;
}

.project-media-left img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.project-media-left .figure-caption {
  margin-top: 0.6rem;
  font-size: 0.775rem;
  line-height: 1.45;
  color: #475569;
}

/* Consistent heading divider inside research cards */
.research-topics .project-details h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

/* --- Bulletproof Full-Width Override for Cards 1 & 3 --- */

article.project-feature-card.project-feature-card--stacked {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
}

article.project-feature-card.project-feature-card--stacked > .project-details {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-column: 1 / -1 !important;
}

/* Full-width precipitation diagram (Card 1) */
.project-feature-card--stacked .figure-card {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 1.25rem 0 0.75rem 0;
}

.project-feature-card--stacked .figure-card img,
.project-feature-card--stacked .feature-img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Full-width 16:9 YouTube video (Card 3) */
.project-feature-card--stacked .subsection-media {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-top: 1.25rem;
}

.project-feature-card--stacked .video-container {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: 4px;
}

.project-feature-card--stacked .video-container iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Keep Card 2's left-image layout locked */
article.project-feature-card.project-feature-card--media-left {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  gap: 1.75rem;
  align-items: start;
}

/* --- Full-Width Research Boxes (Cards 1 & 3) --- */

#research.research-topics {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem;
  width: 100% !important;
}

.research-box {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.research-box h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.research-box p,
.research-box .figure-card,
.research-box .subsection-media {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.research-box .figure-card img,
.research-box .feature-img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.research-box .video-container {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  overflow: hidden;
  border-radius: 4px;
}

.research-box .video-container iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Side-by-side text and figure inside a full-width card */
.card-split-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0;
}

.split-text p {
  margin: 0;
}

.split-media {
  margin: 0;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.75rem;
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* Left-aligned compact figure + right-aligned text */
.card-split-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0;
}

.split-text p {
  margin: 0;
}

.split-media {
  margin: 0;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.65rem;
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* Side-by-side layout: compact grey figure box on the left, text on the right */
.card-split-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0;
}

.split-media {
  margin: 0;
  background-color: #f1f5f9; /* Distinct light-grey box */
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem;
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.split-media .figure-caption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #475569;
}

.split-text p {
  margin: 0;
}



@media (max-width: 768px) {
  .card-split-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .split-media {
    max-width: 210px;
  }
}

@media (max-width: 768px) {
  .card-split-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .split-media {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .card-split-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .split-media {
    max-width: 340px;
  }
}

/* --- Box Frame for Full-Width Research Topics (Cards 1 & 3) --- */
.research-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  article.project-feature-card.project-feature-card--media-left {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
}

/* Stack left image cleanly on mobile screens */
@media (max-width: 768px) {
  .project-feature-card--media-left {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-media-left {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .research-card {
    padding: 1.15rem;
  }
}


@media (max-width: 640px) {
  .advisees-box {
    padding: 1.15rem;
  }

  .student-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

/* Mobile responsive collapse */
@media (max-width: 640px) {
  .hero-hiring-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


/* Mobile Responsiveness */
@media (max-width: 900px) {
  .research-feature-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Compact left-hand grey box for Fig. 3 (damping.jpeg) */
.research-card-full .card-split-row {
  display: grid !important;
  grid-template-columns: 155px 1fr !important;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  margin: 1rem 0;
}

.research-card-full .split-media {
  display: block !important;
  width: 155px !important;
  max-width: 155px !important;
  margin: 0 !important;
  padding: 0.55rem !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px;
  box-sizing: border-box;
}

.research-card-full .split-media img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: 170px !important;
  height: auto !important;
  margin: 0 auto;
  border-radius: 3px;
}

.research-card-full .split-media .figure-caption {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #475569;
}

.research-card-full .split-text p {
  margin: 0;
}

@media (max-width: 768px) {
  .research-card-full .card-split-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 820px) {
  .subsection-grid, .subsection-grid.reversed {
    grid-template-columns: 1fr;
  }
  .subsection-grid.reversed .subsection-text { order: 1; }
  .subsection-grid.reversed .subsection-media { order: 2; }
}

/* --- 50/50 Split Row in Card 3 (Text Left, Grey Figure Box Right) --- */

.research-card-full .card-split-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  margin: 1.15rem 0;
}

.research-card-full .split-text p {
  margin: 0;
}

.research-card-full .split-media {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.75rem !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px;
  box-sizing: border-box;
}

.research-card-full .split-media img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  border-radius: 3px;
}

.research-card-full .split-media .figure-caption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #475569;
}

@media (max-width: 768px) {
  .research-card-full .card-split-row {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

.spacer-3 {
  height: 4.5em;
}