body {
  font-size: 18px;
  line-height: 1.6;
}

:root {
  --lab-blue: #0b3d91;
  --lab-blue-dark: #072b66;
  --lab-gold: #f2b600;
  --lab-light: #f4f6f8;
  --lab-border: #d9dee5;
  --lab-text: #1f2933;
}

body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--lab-text);
}

a {
  color: var(--lab-blue);
}

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

.navbar {
  border-bottom: 1px solid var(--lab-border);
}

.navbar-title {
  font-weight: 800;
  letter-spacing: 0.02rem;
}

.navbar-nav .nav-link {
  font-weight: 600;
}

.page-footer {
  border-top: 1px solid var(--lab-border);
  margin-top: 3rem;
  font-size: 0.95rem;
}

.navbar-title {
  font-weight: 700;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 8% 5rem 8%;
  background: #f4f6f8;
  border-bottom: 1px solid #ddd;
}

.top-logo-section {
  background: #f4f6f8;
  padding: 2.5rem 2rem 1.5rem 2rem;
  text-align: center;
}

.top-logo-section p {
  margin: 0;
  text-align: center;
}

.top-logo-section img {
  width: min(100%, 850px);
  height: auto;
  display: inline-block;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem 8% 5rem 8%;
  background: #f4f6f8;
  border-bottom: 1px solid #ddd;
}

.hero-text {
  min-width: 0;
}

.hero-image {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.hero-section {
  align-items: start;
}

/*
.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.25);
  transform-origin: right center;
  display: block;
}
*/

.hero-image img,
.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.30);
  transform-origin: right center;
  display: block;
}


.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0rem;
}

.hero-text h3 {
  font-size: 2.6rem;
  font-weight: 400;
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-text p {
  max-width: 950px;
  font-size: 1.15rem;
}

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

.content-section h2 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.research-card {
  border: 1px solid #ddd;
  border-radius: 14px;
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.research-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.research-card h3 {
  margin: 1.25rem 1.25rem 0.5rem 1.25rem;
  font-weight: 700;
}

.research-card p {
  margin: 0 1.25rem 1.5rem 1.25rem;
}

@media (max-width: 900px) {
  .top-logo-section {
    padding: 2rem 1.25rem 1rem 1.25rem;
  }

  .top-logo-section img {
    width: min(100%, 520px);
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 3rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

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


.research-theme {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid #0b3d91;
  background: #f8f9fb;
  border-radius: 10px;
}

.research-theme h3 {
  margin-top: 0;
  font-weight: 700;
}

.research-theme p {
  margin-bottom: 1rem;
}

.person-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.person-photo img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.person-info h3 {
  margin-top: 0;
  font-weight: 700;
}

.person-info p {
  margin-bottom: 1rem;
}

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

  .person-photo img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .image-banner img {
    height: 170px;
    object-position: center center;
  }
  
}

.profile-links {
  margin: 1rem 0 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.profile-links {
  margin: 0.75rem 0 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--lab-blue);
  border-radius: 999px;
  color: var(--lab-blue);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.profile-button:hover {
  background: var(--lab-blue);
  color: white;
  text-decoration: none;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.15rem;
  border-radius: 999px;
  background: var(--lab-blue);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.profile-button:hover .button-icon {
  background: white;
  color: #0b3d91;
}

#refs {
  margin-top: 1.5rem;
}

#refs .csl-entry {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.primary-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--lab-blue);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.primary-button:hover {
  background: var(--lab-blue-dark);
  color: white;
  text-decoration: none;
}

.home-logo img {
  max-width: 720px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.navbar-logo {
  max-height: 46px;
  width: auto;
}

.image-banner {
  width: 100%;
  background: #07142f;
  overflow: hidden;
}

.image-banner p {
  margin: 0;
}

.image-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.student-photo-headroom {
  background: #f4f6f8;
  border-radius: 12px;
  overflow: hidden;
}

.student-photo-headroom img {
  width: 220px;
  height: 260px;
  object-fit: contain;
  object-position: center center;
  padding-top: 12px;
  box-sizing: border-box;
  border: none;
}

.student-photo-top img {
  object-position: center top;
}
