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

.team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.team-card-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.team-card-avatar {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  user-select: none;
}

.team-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: #1e3a8a;
}

.role {
  color: #4b5568;          /* 7.5:1 on white – WCAG AAA */
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #4b5568;
  line-height: 1.65;
  flex: 1;
  margin: 0 0 1rem;
}

.team-card-links {
  font-size: 0.875rem;
  margin-top: auto;
}

.team-card-links a {
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: none;
}

.team-card-links a:hover {
  text-decoration: underline;
}

.publication-year {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  color: #1e3a8a;
  font-size: 1.5rem;
  font-weight: 600;
}

.publication-item {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

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

.gallery-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-caption {
  padding: 1rem;
  background-color: #f8fafc;
  font-size: 0.9rem;
  color: #475569;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #1e3a8a;
  flex-shrink: 0;
}

.contact-card-body h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.5rem;
}

.contact-card-body p {
  font-size: 0.9rem;
  color: #4b5568;
  margin: 0 0 0.35rem;
  line-height: 1.6;
}

.contact-card-body a {
  color: #1d4ed8;
  text-decoration: none;
}

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

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-map {
  margin-top: 0;
}

.join-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .join-info-grid {
    grid-template-columns: 1fr;
  }
}

.join-box {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
}

.research-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.research-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.research-card-icon {
  width: 56px;
  height: 56px;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: #1e3a8a;
}

.research-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

.research-card p {
  font-size: 0.95rem;
  color: #4b5568;   /* 7.5:1 on white – WCAG AAA */
  line-height: 1.65;
  margin: 0;
}

.hero-logo {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.page-hero {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.page-hero p {
  margin: 0;
}

.page-hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
}

.hero-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #4b5568;   /* 7.5:1 on white – WCAG AAA */
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

/* ── Participate / Study cards ── */

.study-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

.study-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 2rem 2.5rem;
}

.study-badge {
  display: inline-block;
  background-color: #ffffff;
  color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.study-card-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #ffffff;
  border: none;
}

.study-card-header .anchorjs-link:focus,
.study-card-header .anchorjs-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

.study-full-title {
  font-size: 1rem;
  font-style: italic;
  color: #ffffff;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.study-pi {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
}

.study-card-body {
  padding: 2rem 2.5rem;
  background: #ffffff;
}

.study-card-body > p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.study-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.study-detail-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.study-detail-icon {
  width: 40px;
  height: 40px;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
}

.study-detail-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.5rem;
}

.study-detail-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5568;
  line-height: 1.65;
}

.study-detail-block p {
  font-size: 0.9rem;
  color: #4b5568;
  line-height: 1.65;
  margin: 0;
}

.study-contact-box {
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin-top: 0.5rem;
}

.study-contact-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.5rem;
}

.study-contact-box p {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 0.5rem;
}

.study-contact-box ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5568;
  line-height: 1.8;
}

.study-contact-box a {
  color: #1d4ed8;
  text-decoration: none;
}

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


@media (max-width: 768px) {
  .study-card-header,
  .study-card-body {
    padding: 1.5rem;
  }
}

/* ── PhD open position callout ── */

.phd-callout {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 2.5rem;
}

.phd-callout-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 2rem 2.5rem;
}

.phd-callout-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #ffffff;
  border: none;
}

.phd-callout-project-title {
  font-size: 1rem;
  font-style: italic;
  color: #ffffff;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.5;
}

.phd-callout-pi {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
}

.phd-callout-body {
  background: #ffffff;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.phd-callout-body p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.phd-callout-btn {
  display: inline-block;
  background-color: #1e3a8a;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.phd-callout-btn:hover {
  background-color: #2563eb;
}

.phd-callout-btn:focus-visible {
  outline: 3px solid #1e3a8a;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.25);
}

@media (max-width: 768px) {
  .phd-callout-header,
  .phd-callout-body {
    padding: 1.5rem;
  }
  .phd-callout-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Book callout (publications page) ── */

.book-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2rem 2.5rem;
  margin: 1.5rem 0 2.5rem;
}

.book-cover {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.book-details h3 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin: 0 0 0.5rem;
}

.book-details p {
  font-size: 0.95rem;
  color: #4b5568;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.book-btn {
  display: inline-block;
  background-color: #1e3a8a;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.book-btn:hover {
  background-color: #2563eb;
}

.book-btn:focus-visible {
  outline: 3px solid #1e3a8a;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.25);
}

@media (max-width: 640px) {
  .book-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .book-cover {
    width: 110px;
    margin: 0 auto;
    align-self: center;
  }
}
