:root {
  --green-900: #0f3d2e;
  --green-800: #155c3c;
  --green-400: #49a078;
  --green-200: #c7e8d1;
  --sand-50: #f8f5ef;
  --sand-100: #f0ebe1;
  --ink-900: #0a1f1a;
  --gray-600: #374f46;
  --gray-200: #e2e8e5;
  --shadow-soft: 0 20px 40px rgba(15, 61, 46, 0.08);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-600);
  background: var(--sand-50);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--green-900);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Floating Navbar with Glass Effect */
.site-header {
  position: relative;
  background: linear-gradient(180deg, rgba(199, 232, 209, 0.3) 0%, var(--sand-50) 100%);
  padding-top: 4.5rem;
  overflow: visible;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(15, 61, 46, 0.08);
  border-bottom: 1px solid rgba(199, 232, 209, 0.3);
  transition: padding 0.3s, box-shadow 0.3s;
}

/* Scroll effect */
.navbar.scrolled {
  padding: 0.625rem 3rem;
  box-shadow: 0 4px 20px rgba(15, 61, 46, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 0.5rem;
}

.brand:hover .brand-logo {
  transform: scale(1.08) rotate(-2deg);
}

.brand-logo--placeholder {
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
  border-radius: 0.625rem;
  padding: 0.375rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
}

.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--green-900);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--gray-600);
  max-width: 180px;
  line-height: 1.25;
  opacity: 0.8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  transition: all 0.25s ease;
  display: block;
  position: relative;
}

.nav-links a:hover {
  color: var(--green-900);
  background: rgba(73, 160, 120, 0.08);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--green-400);
  font-weight: 600;
  background: rgba(73, 160, 120, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--green-400);
  border-radius: 2px;
}

/* Admin link styling */
.nav-links .admin-link {
  opacity: 0.5;
  font-size: 0.85rem;
}

.nav-links .admin-link:hover {
  opacity: 1;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(73, 160, 120, 0.1);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem 2rem;
  }
}

/* Bottom fade gradient */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--sand-50));
  pointer-events: none;
}

/* Animated Background Orb */
.hero-bg-animation {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(73, 160, 120, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-40px, 30px) scale(1.05);
  }
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

/* Premium Tagline */
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--green-200) 0%, rgba(199, 232, 209, 0.7) 100%);
  color: var(--green-900);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(73, 160, 120, 0.15);
  animation: fadeInUp 0.6s ease-out;
}

.hero-tagline::before {
  content: '🌍';
  font-size: 0.9rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-400);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.85rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button.primary {
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 61, 46, 0.2);
}

.button.primary:hover {
  background: var(--green-800);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(15, 61, 46, 0.25);
}

.button.ghost {
  border: 2px solid var(--green-900);
  color: var(--green-900);
  background: transparent;
}

.button.ghost:hover {
  background: var(--green-900);
  color: #fff;
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Hero Cards - Premium */
.hero-card {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  box-shadow: 0 8px 24px rgba(15, 61, 46, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 61, 46, 0.12);
}

/* Active Collaborations - Elegant Academic Style */
.hero-card.dark {
  background: linear-gradient(145deg, #1e6b4d 0%, #155c3c 40%, #0f4a30 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem 2.25rem;
}

.hero-card.dark::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {

  0%,
  100% {
    transform: translateX(-20%) translateY(-20%);
    opacity: 0.4;
  }

  50% {
    transform: translateX(20%) translateY(20%);
    opacity: 0.7;
  }
}

.card-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-900);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

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

.impact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--gray-600);
  font-weight: 500;
  border-bottom: 1px dashed rgba(73, 160, 120, 0.2);
  transition: background 0.2s;
}

.impact-list li:hover {
  background: rgba(73, 160, 120, 0.05);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.impact-list li:last-child {
  border-bottom: none;
}

.impact-icon {
  font-size: 1.1rem;
}

.hero-card.dark .metric-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.metric-value {
  font-size: 5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
  color: #F5F7F4;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 24px rgba(255, 255, 255, 0.25);
  letter-spacing: -0.02em;
}

.metric-note {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  position: relative;
  z-index: 1;
}

/* Research Focus Areas Section */
.focus-areas {
  background: var(--sand-50);
}

.focus-areas-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.focus-areas-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.75rem;
}

.focus-areas-header p {
  font-size: 1rem;
  color: #5a7068;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 1024px) {
  .focus-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .focus-areas-grid {
    grid-template-columns: 1fr;
  }
}

.focus-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: center;
  border: 1px solid rgba(199, 232, 209, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.focus-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.focus-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: #EAF5EC;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-icon {
  font-size: 32px;
  line-height: 1;
}

.focus-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.75rem;
}

.focus-card p {
  font-size: 0.9rem;
  color: #5a7068;
  line-height: 1.6;
  margin: 0;
}

/* Section Divider */
.section-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-200), transparent);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.section-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pill-button {
  border-radius: 999px;
  border: 1px solid var(--green-400);
  color: var(--green-900);
  background: transparent;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.select-wrapper select {
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  padding: 0.45rem 2rem 0.45rem 0.9rem;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23155c3c' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
}

/* Academic-Style Update Cards */
.card-grid {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.update-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Category Badge - Light Green Pill */
.update-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.update-category {
  background: rgba(73, 160, 120, 0.12);
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-transform: capitalize;
}

/* Date with Calendar Icon */
.update-card-date {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Bold Title - 24px */
.update-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Description - Green */
.update-card-summary {
  color: var(--green-400);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.125rem 0 0;
}

/* Links inside summary */
.update-card-summary a {
  color: var(--green-900);
  text-decoration: underline;
  font-weight: 500;
}

.update-card-summary a:hover {
  color: var(--green-800);
}

/* Read More Link */
.update-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: color 0.2s;
}

.update-card-link:hover {
  color: var(--green-400);
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card img {
  border-radius: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
}

.card h3 {
  margin-bottom: 0.2rem;
}

.card time {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Team Cards - New Design */
.card-grid--team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .card-grid--team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid--team {
    grid-template-columns: 1fr;
  }
}

/* Academic-Style Team Cards */
.card-grid--team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .card-grid--team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid--team {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.team-card-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(199, 232, 209, 0.4);
  margin-bottom: 1rem;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Role Badges - Light Green Style */
.team-role-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
  background: rgba(73, 160, 120, 0.12);
  color: var(--green-900);
}

.role-faculty {
  background: var(--green-900);
  color: #fff;
}

.role-postdoc {
  background: rgba(73, 160, 120, 0.15);
  color: var(--green-900);
}

.role-phd {
  background: rgba(73, 160, 120, 0.12);
  color: var(--green-900);
}

.role-mtech {
  background: rgba(73, 160, 120, 0.08);
  color: var(--green-900);
}

.role-member {
  background: var(--sand-100);
  color: var(--gray-600);
}

.team-card-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
}

.team-card-position {
  font-size: 0.9rem;
  color: #5a7068;
  margin: 0 0 1rem;
  font-weight: 400;
}

.team-card-bio {
  font-size: 0.875rem;
  color: var(--green-400);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
}

.team-social-links {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  margin-top: auto;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(73, 160, 120, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-900);
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: var(--green-900);
  color: #fff;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Alumni Section - Academic Style */
.alumni-panel {
  margin-top: 3rem;
  background: #fff;
  padding: 2rem 2.25rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.alumni-panel summary {
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--green-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.alumni-panel summary::-webkit-details-marker {
  display: none;
}

.alumni-panel summary::before {
  content: "👥";
  font-size: 1.1rem;
}

.alumni-panel[open] summary {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(199, 232, 209, 0.4);
}

.alumni-list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.alumni-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(199, 232, 209, 0.3);
}

.alumni-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.alumni-item:first-child {
  padding-top: 0;
}

.alumni-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0;
}

.alumni-position {
  font-size: 0.9rem;
  color: #5a7068;
  margin: 0;
}

.alumni-now {
  font-size: 0.9rem;
  color: var(--green-400);
  margin: 0.25rem 0 0;
}

.alumni-now span {
  font-weight: 600;
}

/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  box-shadow: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1a1a1a;
}

.gallery-card::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--green-900);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--green-800);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--green-400);
}

/* Academic-Style Publication Cards */
.publication-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.publication-item {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.publication-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Header with Badge and Year */
.publication-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.publication-type {
  background: rgba(73, 160, 120, 0.12);
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.publication-year {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Large Bold Title */
.publication-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.4;
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

/* Muted Authors */
.publication-authors {
  color: #5a7068;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  font-style: italic;
}

/* Venue/Journal Name */
.publication-venue {
  color: var(--green-400);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

/* DOI/PDF Buttons - Rounded */
.publication-links {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--green-900);
  background: rgba(73, 160, 120, 0.08);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.pub-btn:hover {
  background: rgba(73, 160, 120, 0.15);
}

.pub-btn svg {
  width: 15px;
  height: 15px;
}

/* Empty state for publications */
.publication-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--sand-50), var(--green-200));
  border-radius: 1.25rem;
  margin-top: 2rem;
}

.publication-empty::before {
  content: "📚";
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.publication-empty p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin: 0;
}

.content-guide {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--sand-100);
}

.content-guide ol,
.content-guide p {
  margin: 0;
}

/* Contact Section - Enhanced */
.contact {
  max-width: 1400px;
  margin: 0 auto;
}

.contact-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.contact-info {
  padding: 0;
}

.contact-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.5rem;
}

.contact-intro {
  font-size: 0.9rem;
  color: #5a7068;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.contact-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.375rem;
}

.contact-position {
  font-size: 0.95rem;
  color: var(--green-400);
  margin: 0 0 1.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-icon-badge {
  width: 44px;
  height: 44px;
  background: #eaf3ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-badge svg {
  color: var(--green-900);
}

.contact-item a,
.contact-item>span {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  padding-top: 0.625rem;
}

.contact-item a:hover {
  color: var(--green-400);
}

.contact-address {
  align-items: flex-start;
}

.contact-address>div {
  display: flex;
  flex-direction: column;
  padding-top: 0.375rem;
}

.contact-address span {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--green-900);
  color: #fff;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.contact-cta-btn:hover {
  background: var(--green-800);
  transform: translateY(-2px);
}

.contact-cta-btn svg {
  color: #fff;
}

.contact-map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-map-wrapper iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.site-footer {
  background: var(--green-900);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--green-200);
  text-decoration: none;
}

.footer-note {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0;
}

/* Admin link - matches other footer links */
.admin-link {
  /* Same styling as other footer links */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .navbar {
    margin: 0 1rem;
    padding: 0.75rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(15, 61, 46, 0.1);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }

  .nav-links a.active::after {
    display: none;
  }

  .brand-subtitle {
    display: none;
  }

  /* Hamburger animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 600px) {

  /* Global Mobile Padding */
  .section {
    padding: 2.5rem 1rem;
  }

  .navbar {
    padding: 0.625rem 1rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-visual {
    gap: 0.75rem;
  }

  .hero-card {
    padding: 1rem 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Focus Areas Mobile */
  .focus-areas-grid {
    gap: 1rem;
  }

  .focus-card {
    padding: 1.5rem 1.25rem;
  }

  .focus-icon {
    width: 50px;
    height: 50px;
  }

  .emoji-icon {
    font-size: 26px;
  }

  .focus-card h3 {
    font-size: 1.05rem;
  }

  /* Update Cards Mobile */
  .card-grid {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .update-card {
    padding: 1.5rem 1.25rem;
  }

  .update-card-title {
    font-size: 1.2rem;
  }

  .update-card-summary {
    font-size: 0.875rem;
  }

  .update-category {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }

  /* Team Cards Mobile */
  .card-grid--team {
    gap: 1rem;
  }

  .team-card {
    padding: 2rem 1.5rem 1.5rem;
  }

  .team-card-photo {
    width: 100px;
    height: 100px;
  }

  .team-card-name {
    font-size: 1.1rem;
  }

  .team-card-bio {
    font-size: 0.8rem;
  }

  .social-icon {
    width: 34px;
    height: 34px;
  }

  /* Alumni Mobile */
  .alumni-panel {
    padding: 1.5rem 1.25rem;
  }

  .alumni-item {
    padding: 1rem 0;
  }

  .alumni-name {
    font-size: 0.95rem;
  }

  .alumni-position,
  .alumni-now {
    font-size: 0.85rem;
  }

  /* Publications Mobile */
  .publication-list {
    gap: 1rem;
  }

  .publication-item {
    padding: 1.5rem 1.25rem;
  }

  .publication-title {
    font-size: 1.1rem;
  }

  .publication-authors,
  .publication-venue {
    font-size: 0.85rem;
  }

  .pub-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Contact Mobile */
  .contact-card {
    padding: 1.75rem 1.25rem;
    gap: 2rem;
  }

  .contact-icon-badge {
    width: 38px;
    height: 38px;
  }

  .contact-icon-badge svg {
    width: 18px;
    height: 18px;
  }

  .contact-name {
    font-size: 1.15rem;
  }

  .contact-map-wrapper iframe {
    min-height: 280px;
  }

  .contact-cta-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 2rem 1rem;
    text-align: center;
  }

  .site-footer .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .footer-note {
    font-size: 0.85rem;
  }

  /* Section Headings Mobile */
  .section-heading {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  /* Gallery Mobile */
  .gallery-card::after {
    font-size: 0.8rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* =====================================================
   LOADING STATES
   ===================================================== */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: var(--gray-600);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green-400);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.error-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-600);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   PRINCIPAL INVESTIGATOR SECTION
   ═══════════════════════════════════════════════════════════ */

/* Scroll Animation */
.pi-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.pi-animate.pi-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Profile Card - Two Column */
.pi-profile-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(15, 61, 46, 0.08);
  margin-top: 2rem;
  border: 1px solid rgba(199, 232, 209, 0.35);
  transition: box-shadow 0.3s, transform 0.3s;
}

.pi-profile-card:hover {
  box-shadow: 0 16px 48px rgba(15, 61, 46, 0.12);
  transform: translateY(-2px);
}

/* Photo Column */
.pi-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pi-photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--green-400), var(--green-200), var(--green-800));
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(73, 160, 120, 0.2);
}

.pi-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(73, 160, 120, 0.25);
  animation: pulse-ring 4s ease-in-out infinite;
}

.pi-photo-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Name & title block */
.pi-name-block {
  margin-bottom: 1.25rem;
}

.pi-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.35rem;
}

.pi-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-400);
  margin: 0 0 0.2rem;
}

.pi-dept,
.pi-institution {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* Contact items */
.pi-contact-list {
  width: 100%;
}

.pi-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(199, 232, 209, 0.3);
  font-size: 0.82rem;
  color: var(--gray-600);
}

.pi-contact-item:last-child {
  border-bottom: none;
}

.pi-contact-item svg {
  flex-shrink: 0;
  color: var(--green-400);
}

.pi-contact-item a {
  color: var(--green-900);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.pi-contact-item a:hover {
  color: var(--green-400);
}

/* Info Column */
.pi-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.pi-bio h4,
.pi-research-interests h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pi-bio h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--green-400), var(--green-200));
  border-radius: 4px;
}

.pi-research-interests h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--green-400), var(--green-200));
  border-radius: 4px;
}

.pi-bio p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin: 0;
}

/* Research Interest Tags */
.pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pi-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(199, 232, 209, 0.4), rgba(73, 160, 120, 0.1));
  color: var(--green-900);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(73, 160, 120, 0.15);
  transition: all 0.25s ease;
}

.pi-tag:hover {
  background: linear-gradient(135deg, rgba(199, 232, 209, 0.7), rgba(73, 160, 120, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(73, 160, 120, 0.15);
}

/* Action Buttons */
.pi-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.pi-btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
}

/* ── Credentials Grid ── */
.pi-credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pi-cred-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(15, 61, 46, 0.06);
  border: 1px solid rgba(199, 232, 209, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
}

.pi-cred-card:hover {
  box-shadow: 0 12px 36px rgba(15, 61, 46, 0.1);
  transform: translateY(-3px);
}

.pi-cred-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(199, 232, 209, 0.4);
}

.pi-cred-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(199, 232, 209, 0.5), rgba(73, 160, 120, 0.12));
  border-radius: 12px;
}

.pi-cred-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0;
}

/* Timeline */
.pi-timeline {
  position: relative;
  padding-left: 1.75rem;
}

.pi-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--green-400), var(--green-200));
  border-radius: 2px;
}

.pi-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.pi-timeline-item:last-child {
  margin-bottom: 0;
}

.pi-timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-400);
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(73, 160, 120, 0.15);
}

.pi-timeline-item strong {
  font-size: 0.9rem;
  color: var(--green-900);
  display: block;
  margin-bottom: 0.15rem;
}

.pi-timeline-item p {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin: 0;
}

/* Experience */
.pi-experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pi-exp-item {
  padding: 1rem;
  background: rgba(199, 232, 209, 0.1);
  border-radius: 0.875rem;
  border-left: 3px solid var(--green-400);
}

.pi-exp-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.35rem;
}

.pi-exp-org {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-400);
  margin: 0 0 0.25rem;
}

.pi-exp-topic {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin: 0 0 0.35rem;
  font-style: italic;
}

.pi-exp-duration {
  font-size: 0.78rem;
  color: var(--gray-600);
  background: rgba(199, 232, 209, 0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
}

.pi-exp-courses {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.pi-exp-courses li {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding: 0.2rem 0;
  position: relative;
  padding-left: 1rem;
}

.pi-exp-courses li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green-400);
  font-weight: 700;
}

/* Stats Grid */
.pi-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pi-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(199, 232, 209, 0.15), rgba(73, 160, 120, 0.06));
  border-radius: 1rem;
  border: 1px solid rgba(199, 232, 209, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pi-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(73, 160, 120, 0.12);
}

.pi-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pi-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.35rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ── Featured Project ── */
.pi-featured-project {
  background: linear-gradient(145deg, #1e6b4d 0%, #155c3c 40%, #0f4a30 100%);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.pi-featured-project::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.pi-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pi-featured-project h4 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.4;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.pi-featured-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pi-meta-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.pi-meta-item strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.pi-status-badge {
  color: #6ce9a6;
  font-weight: 600;
}

/* ── Selected Publications ── */
.pi-publications {
  margin-top: 2rem;
}

.pi-publications h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pi-publications h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--green-400), var(--green-200));
  border-radius: 4px;
}

.pi-pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pi-pub-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: #fff;
  border-radius: 0.875rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(199, 232, 209, 0.25);
  box-shadow: 0 2px 8px rgba(15, 61, 46, 0.04);
  transition: all 0.25s ease;
}

.pi-pub-item:hover {
  box-shadow: 0 8px 24px rgba(15, 61, 46, 0.08);
  transform: translateX(4px);
  border-color: var(--green-400);
}

.pi-pub-year {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--green-900);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.15rem;
}

.pi-pub-content {
  flex: 1;
}

.pi-pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.3rem;
  line-height: 1.4;
}

.pi-pub-journal {
  font-size: 0.82rem;
  color: var(--green-400);
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

/* ── External Links ── */
.pi-external-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pi-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: #fff;
  color: var(--green-900);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(199, 232, 209, 0.5);
  box-shadow: 0 4px 12px rgba(15, 61, 46, 0.06);
  transition: all 0.3s ease;
}

.pi-ext-link:hover {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 61, 46, 0.2);
}

.pi-ext-link svg {
  transition: transform 0.3s;
}

.pi-ext-link:hover svg {
  transform: scale(1.1);
}

/* ── PI Section Responsive ── */
@media (max-width: 1024px) {
  .pi-credentials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pi-profile-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .pi-photo-wrapper {
    width: 160px;
    height: 160px;
  }

  .pi-name {
    font-size: 1.2rem;
  }

  .pi-featured-project {
    padding: 1.5rem;
  }

  .pi-featured-project h4 {
    font-size: 1.1rem;
  }

  .pi-pub-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .pi-actions {
    justify-content: center;
  }

  .pi-external-links {
    flex-direction: column;
  }

  .pi-ext-link {
    justify-content: center;
  }

  .pi-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}