/* Tailwind CSS via CDN - Custom Styles for Chen Lab Website */

/* Base styles with CSS custom properties for theming */
:root {
  /* Font Stacks */
  --font-sans: 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Colors matching old website (#795548 for primary/navbar, #FFFFF0 for backgrounds) */
  --color-primary: #795548;
  --color-primary-dark: #5d4037;
  --color-secondary: #8d6e63;
  --color-accent: #a1887f;
  
  /* Light cream backgrounds - Ivory (#FFFFF0) */
  --color-bg: #FFFFF0;
  --color-bg-alt: #f5f0e6;
  --color-bg-card: #ffffff;
  
  /* Navbar & Text */
  --color-navbar: #795548;
  --color-navbar-text: #fff8e1;
  --color-text: #4e342e;
  --color-text-muted: #795548;
  --color-border: #d7ccc8;
  
  /* Modern Shadows */
  --shadow-sm: 0 1px 3px rgba(62, 39, 35, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(62, 39, 35, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(62, 39, 35, 0.1);
  --shadow-hover: 0 14px 20px -4px rgba(62, 39, 35, 0.15);
  
  --transition: all 0.3s ease;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

.dark {
  --color-primary: #d7ccc8;
  --color-primary-dark: #a1887f;
  --color-secondary: #8d6e63;
  --color-accent: #5d4037;
  
  --color-bg: #2d2420;
  --color-bg-alt: #3e322d;
  --color-bg-card: #352b27;
  
  --color-navbar: #1a1210;
  --color-navbar-text: #efebe9;
  --color-text: #efebe9;
  --color-text-muted: #bcaaa4;
  --color-border: #4e342e;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* Apply theme colors */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif); /* Use Serif for body text as requested "simple serif font" */
  font-size: 1.05rem; /* Ensure readability */
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: normal;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Hero section */
.hero {
  min-height: auto;
  padding: 5rem 0 3rem;
  display: flex;
  align-items: center;
  /* Subtle gradient texture */
  background: radial-gradient(circle at top right, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  order: 2;
}

.hero-image {
  order: 1;
}

.hero-img {
  width: 100%; 
  max-width: 500px; 
  margin: 0 auto; 
  display: block; 
  border-radius: 1rem; 
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  padding-bottom: 0.1em;
  /* Solid theme color */
  color: var(--color-primary);
}

.dark .hero-title {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  max-width: 750px;
  font-weight: 300;
  line-height: 1.6;
}

/* Hero layout: Image on LEFT, Text on RIGHT for desktop */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .hero-text {
    order: 1;
    max-width: 500px;
  }
  .hero-image {
    order: 2;
  }
}

/* Utilities */
.bg-alt { background-color: var(--color-bg-alt); }
.flex { display: flex; }
.gap-4 { gap: 1rem; }
.text-sm { font-size: 0.875rem; }
.media-center { display: flex; justify-content: center; }
.actions-center { display: flex; justify-content: center; }
.group-photo-narrow { width: 100%; max-width: 800px; }

.member-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--color-bg-alt); /* Soft ring instead of hard border */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.member-card:hover .member-avatar {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Publication card */
.pub-card {
  padding: 1.5rem;
  border: none;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-card);
  display: flex;
  flex-direction: row; 
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.pub-card:hover {
  border-left-color: var(--color-secondary);
  background: var(--color-bg-alt);
}

.pub-index {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 0.35rem; 
}

/* Hide old pub-year if it still exists in cached HTML or transitions */
.pub-year {
  display: none; 
}

.pub-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1.4rem; 
  font-weight: 700; 
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.pub-title a {
  color: inherit;
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--color-primary);
}

.pub-authors {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.pub-authors strong {
  font-weight: 700;
}

.pub-journal {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.pub-doi-container {
  margin-bottom: 0.5rem;
}

.pub-doi-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(121, 85, 72, 0.1);
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.pub-doi-link:hover {
  background: var(--color-primary);
  color: white;
}

/* Image Expansion Styles */
.pub-image-link {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  margin-top: 0;
}

.pub-image {
  width: auto;
  max-width: 100%;
  max-height: 400px; /* Allow large images */
  object-fit: contain;
  border-radius: 0.25rem;
  padding: 0.5rem;
  background: white; /* Add subtle background for contrast */
  display: block;
  margin-top: 0.5rem;
}

/* Desktop: Expand on hover */
@media (min-width: 769px) {
  .pub-card:hover .pub-image-link {
    max-height: 500px; /* Adjust based on max image size */
    opacity: 1;
    margin-top: 1rem;
  }
}

/* Mobile: Always show images (smaller size for compact view) */
@media (max-width: 768px) {
  .pub-image-link {
    max-height: none;
    opacity: 1;
    margin-top: 1rem;
  }
  
  .pub-image {
    max-height: 200px; /* Smaller on mobile */
    width: 100%;
    object-fit: contain;
  }
}

/* Cards */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Member card */
.member-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-border);
  transition: var(--transition);
}

.member-card:hover .member-avatar {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Publication card */
.pub-card {
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
}

.pub-card:hover {
  border-left-color: var(--color-secondary);
}

.pub-year {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pub-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.pub-journal {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== HOMEPAGE RESEARCH PREVIEW CARDS ===== */
.home-research-card {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.home-research-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-research-content {
  padding: 1.25rem;
}

.home-research-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* ===== RESEARCH PAGE DETAIL CARDS ===== */
.research-detail-card {
  margin-bottom: 2.5rem;
  overflow: visible;
}

.research-detail-content {
  padding: 2rem;
}

.research-detail-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.research-detail-text {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.research-detail-img-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.research-detail-img {
  max-width: 100%;
  max-height: 450px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

/* Research overview image (top of research page) */
.research-overview-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.research-overview-img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Legacy support - keep for any remaining references */
.research-card {
  margin-bottom: 2rem;
  overflow: visible;
}

.research-content {
  padding: 2rem;
}

.research-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.research-text {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.research-img-wrapper {
  text-align: center;
  margin-top: 1.5rem;
 }

.research-img {
  max-width: 100%;
  max-height: 450px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

/* Section headings */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.dark .navbar {
  background: var(--color-navbar);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navbar-text);
}

.nav-link {
  position: relative;
  color: var(--color-navbar-text);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.desktop-nav {
  display: none;
  gap: 0.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-spacer {
  height: 24px;
}

.mobile-only {
  display: flex; /* Flex by default for button alignment */
}

.mobile-menu-items {
  padding-bottom: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-navbar-text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .mobile-only { display: none; }
}

/* Footer */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 2rem; /* Pill shape for modern look */
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff; /* Always white on primary */
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary Button (Outline) */
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Spacing utilities */
.section { padding: 2.5rem 0; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.p-8 { padding: 2rem; }

.header-spacer {
  height: 32px;
}

.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Group photo */
.group-photo {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Publication image */
.pub-image {
  max-width: 100%;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* PI section */
.pi-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .pi-section {
    grid-template-columns: 300px 1fr;
  }
}

.pi-avatar {
  width: 200px;
  height: 200px;
  border-radius: 1rem;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.pi-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pi-info h3 {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Dark mode toggle */
.dark-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
}

.dark-toggle svg {
  width: 16px;
  height: 16px;
}

.dark-toggle:hover {
  background: var(--color-border);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: white;
}

/* ===== Members Page Styles ===== */

/* Group heading */
.group-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text);
}

/* PI Card */
.pi-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pi-card {
  padding: 2rem;
  transition: var(--transition);
}

.pi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pi-avatar-wrap {
  text-align: center;
}

.pi-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 3rem;
  font-weight: 600;
}

.pi-org {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Member Card Link */
.member-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.member-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Alumni Table */
.alumni-table {
  width: 100%;
  border-collapse: collapse;
}

.alumni-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.alumni-table tr:last-child td {
  border-bottom: none;
}

.alumni-table td:first-child {
  font-weight: 500;
  width: 40%;
}

.alumni-table td:nth-child(2) {
  color: var(--color-text-muted);
  width: 20%;
  text-align: center;
}

.alumni-table td:nth-child(3) {
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* ===== Author Profile Page Styles ===== */

.author-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .author-profile {
    grid-template-columns: 270px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Left Column */
.author-left {
  text-align: center;
  margin-top: 5rem;
}

.author-avatar {
  width: 270px;
  height: 270px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.author-avatar-placeholder {
  width: 270px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 4rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.author-contact {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.author-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.author-contact-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Right Column */
.author-right {
  text-align: left;
}

.author-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.author-role {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.author-org {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.author-org a {
  color: var(--color-text-muted);
}

.author-org a:hover {
  color: var(--color-primary);
}

/* Bio Section */
.author-bio {
  margin-top: 1.5rem;
  line-height: 1.8;
}

.author-bio p {
  margin-bottom: 1rem;
}

.author-bio h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
}

.author-bio ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.author-bio li {
  margin-bottom: 0.4rem;
}

/* Interests Section */
.author-interests {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.author-interests h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interests-list li {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.9rem;
}

/* Education Section */
.author-education {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.author-education h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-list li {
  margin-bottom: 0.75rem;
}

.edu-degree {
  display: block;
  font-weight: 500;
  color: var(--color-text);
}

.edu-institution {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
