body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f2f0ec;
  color: #2b2b2b;
  line-height: 1.6;
  font-size: 16.5px;
}

/* NAVIGATION */

.nav{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 60px;
  background:#f2f0ec;
  border-bottom:1px solid #f0f0f0;
  font-size:14px;
  backdrop-filter: blur(6px);
}

html{
  scroll-behavior:smooth;
}

.nav-left a {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4f3b78;
  text-decoration: none;
}

.nav-right a {
  margin-left: 30px;
  text-decoration: none;
  color: #4f3b78;
}

.nav-right a.active {
  border-bottom: 2px solid #4f3b78;
}

.nav-right a:hover,
.nav-left a:hover {
  opacity: 0.8;
}

/* HERO */

.hero {
  text-align: center;
  padding: 72px 20px 36px;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 48px;
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.subtitle {
  max-width: 680px;
  margin: 10px auto 28px;
  font-size: 20px;
  color: #3f8f8c;
  text-align: center;
}

.subtitle a {
  color: #3f8f8c;
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 143, 140, 0.4);
}

.subtitle a:hover {
  border-bottom-color: #3f8f8c;
}

.subtitle p {
  margin: 0;
}

/* GENERAL SECTIONS */

.section {
  max-width: 960px;
  margin: 110px auto;
  padding: 0 20px;
  scroll-margin-top: 100px;
}

.section h2{
  position:relative;
  margin-bottom:26px;
  padding-bottom:10px;
  font-size:26px;
  font-weight:500;
  color:#4f3b78;
  letter-spacing: -0.01em;
}

.section h2::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:42px;
  height:2px;
  background:#6c5aa0;
}

/* RESEARCH */

#research p a {
  color: #3f8f8c;
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 143, 140, 0.4);
}

#research p a:hover {
  border-bottom-color: #3f8f8c;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.research-card {
  background: #f2f0ec;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-card:hover,
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.research-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.research-content {
  padding: 1.5rem;
}

.research-content h3 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.research-content p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.research-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}

/* PEOPLE */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 42px 28px;
  max-width: 900px;
  margin: 40px auto 0;
}

.person-card {
  text-align: center;
  transition: transform 0.2s ease;
}

.person-card:hover {
  transform: translateY(-4px);
}

.person-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
}

.person-name {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
  color: #4f3b78;
}

.person-role {
  margin: 6px 0 0;
  font-size: 15px;
  color: #3f8f8c;
}

.person-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

.person-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.85rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.person-photo-wrap:hover .person-overlay {
  opacity: 1;
}

.team-subsection {
  margin-top: 3rem;
}

.team-subsection h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

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

.alumni-card {
  max-width: 180px;
  text-align: center;
}

.alumni-photo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
}

.alumni-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.alumni-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  pointer-events: none;
}

.alumni-destination {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.8rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.alumni-photo-wrap:hover .alumni-destination {
  opacity: 1;
}

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

.alumni-role {
  font-size: 0.82rem;
  color: #3f8f8c;
}

.person-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.person-link:visited,
.person-link:hover,
.person-link:active {
  color: inherit;
  text-decoration: none;
}

/* PUBLICATIONS */

.pub-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 34px;
  flex-wrap: wrap;
}

.pub-tab {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #f2f0ec;
  color: #4f3b78;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pub-tab:hover {
  border-color: #bdbdbd;
}

.pub-tab.active {
  background: #4f3b78;
  color: #f2f0ec;
  border-color: #4f3b78;
}

.pub-panel {
  display: none;
}

.pub-panel.active {
  display: block;
}

.pub-feed {
  max-width: 820px;
  margin: 0 auto;
}

.pub-loading {
  text-align: center;
  color: #666666;
}

.pub-card {
  padding: 28px 0;
  border-top: 1px solid #ececec;
}

.pub-card:hover {
  background: rgba(0,0,0,0.015);
}

.pub-card:last-child {
  border-bottom: 1px solid #ececec;
}

.pub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.pub-text {
  flex: 1;
  min-width: 0;
}

.pub-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.55;
}

.pub-title a {
  color: #4f3b78;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 59, 120, 0.4);
}

.pub-title a:hover {
  border-bottom-color: #4f3b78;
}

.pub-journal {
  margin: 0;
  font-size: 15px;
  color: #3f8f8c;
  line-height: 1.4;
}

.pub-year {
  font-size: 15px;
  color: #3f8f8c;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 12px;
}

/* RESPONSIVE */

  .nav {
    padding: 24px 24px;
  }
}

@media (max-width: 650px) {
  .pub-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pub-year {
    padding-left: 0;
    margin-top: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    gap: 14px;
  }

  .nav-right a {
    margin: 0 12px;
  }
}

.resources-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
}

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

.resource-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.resource-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.resource-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.resource-link {
  color: #3f8f8c;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 143, 140, 0.4);
}

.resource-link:hover {
  border-bottom-color: #3f8f8c;
}

/* GALLERY */

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-card {
  width: 100%;
}

.gallery-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0)
  );
  color: #ffffff;
  opacity: 1;
  transition: background 0.22s ease;
}

.gallery-overlay span {
  font-size: 0.95rem;
  line-height: 1.35;
}

.gallery-photo-wrap:hover .gallery-photo {
  transform: scale(1.025);
}

.gallery-photo-wrap:hover .gallery-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0)
  );
}

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

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-photo {
    height: 200px;
  }

  .gallery-overlay {
    padding: 0.85rem;
  }

  .gallery-overlay span {
    font-size: 0.9rem;
  }
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.contact-left,
.contact-right {
  font-size: 17px;
}

.contact-left p,
.contact-right p {
  margin-bottom: 22px;
}

#contact a {
  color: #4f3b78;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 59, 120, 0.4);
}

#contact a:hover {
  border-bottom-color: #4f3b78;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 50px 0 60px;
  font-size: 14px;
  color: #777777;
}
