.research-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-card {
  position: relative;
  min-height: 0;
  padding: 18px 18px 18px 62px;
  border-color: #dce7f1;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.045);
}

.research-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #e9f1fa;
}

.research-card::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 27px;
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #245a8d 0%, #7fb7d4 100%);
}

.research-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.32;
}

.research-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.home-join p:last-child {
  margin-top: 18px;
  margin-bottom: 0;
}

.home-join p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.home-join p:last-child a::after {
  content: " ->";
}

.home-join p:last-child a:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.home-sidebar {
  max-height: var(--home-sidebar-available-height, calc(100dvh - 160px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 22px 24px;
  border: 1px solid #dce7f1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.home-sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #245a8d 0%, #7fb7d4 100%);
}

.home-profile-photo {
  width: 176px;
  height: 206px;
  border-radius: 22px;
  border: 1px solid #d8e3ed;
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.10);
}

.home-sidebar h1 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #1f2933;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.home-sidebar .profile-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e9f1fa;
  color: #183f66;
  font-size: 0.88rem;
  font-weight: 700;
}

.home-sidebar .meta {
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid #e3ebf3;
  border-bottom: 1px solid #e3ebf3;
  color: #637083;
  line-height: 1.6;
}

.home-sidebar p {
  margin: 10px 0;
}

.home-sidebar p:nth-of-type(3) a {
  color: #245a8d;
  font-weight: 650;
}

.home-sidebar p:nth-of-type(4) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d8e3ed;
  color: #183f66;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.05);
}

.home-sidebar p:nth-of-type(4) a:hover {
  background: #e9f1fa;
  text-decoration: none;
}

.news-list-page {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.news-card-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card-row:hover {
  transform: translateY(-2px);
  border-color: #c7d9e8;
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.075);
}

.news-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e9f1fa;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.news-card-content {
  color: #1f2933;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.45;
}

.news-card-content a {
  color: var(--accent);
  text-decoration: none;
}

.news-card-content a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbfd 0%, #eef3f8 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #245a8d 0%, #7fb7d4 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 0 20px;
}

.footer-brand,
.footer-affiliation {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  color: #1f2933;
  font-size: 1.02rem;
  line-height: 1.25;
}

.footer-brand span,
.footer-affiliation span {
  color: #5f6f83;
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

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

.footer-links a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.member-section {
  margin-bottom: 38px;
}

.members-section-heading {
  position: relative;
  margin-bottom: 18px;
  padding-left: 15px;
}

.members-section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #245a8d 0%, #7fb7d4 100%);
}

.members-section-heading h2 {
  margin: 0 0 3px;
  color: #1f2933;
  font-size: 1.42rem;
  line-height: 1.25;
}

.members-section-heading p {
  margin: 0;
  color: #637083;
  font-size: 0.96rem;
}

.pi-member-grid,
.members-card-grid,
.alumni-card-grid {
  display: grid;
  gap: 18px;
}

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

.members-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alumni-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pi-member-card,
.current-member-card,
.alumni-card {
  border-color: #dce7f1;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pi-member-card:hover,
.current-member-card:hover,
.alumni-card:hover {
  transform: translateY(-2px);
  border-color: #c7d9e8;
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.075);
}

.pi-member-card {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8fd 100%);
}

.current-member-card {
  min-height: 156px;
  padding: 20px;
  align-items: start;
}

.alumni-card {
  padding: 20px 22px;
  border: 1px solid #dce7f1;
}

.pi-member-card .member-photo {
  width: 120px;
  height: 120px;
  border-radius: 18px;
}

.current-member-card .member-photo,
.current-member-card .avatar {
  width: 82px;
  height: 82px;
  border-radius: 16px;
}

.current-member-card .avatar {
  border-radius: 50%;
}

.member-card-body h3,
.alumni-card h3 {
  margin: 0 0 7px;
  color: #183f66;
  font-size: 1.03rem;
  line-height: 1.32;
}

.member-card-body p,
.alumni-card p {
  margin: 8px 0 0;
}

.member-tags {
  margin-top: 14px !important;
}

.member-profile-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f1fa;
  color: #183f66;
  font-size: 0.82rem;
  font-weight: 800;
}

.member-profile-link a:hover {
  background: #dcebf6;
  text-decoration: none;
}

.alumni-now {
  color: #465568;
  font-size: 0.94rem;
  line-height: 1.5;
}

.profile-hero ~ h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 16px;
  padding-left: 16px;
  color: #1f2933;
  font-size: 1.46rem;
  line-height: 1.25;
}

.profile-hero ~ h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #245a8d 0%, #7fb7d4 100%);
  transform: translateY(-50%);
}

.profile-hero ~ h2::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, #d8e3ed 0%, rgba(216, 227, 237, 0) 100%);
}

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

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

  .home-sidebar {
    position: static;
    max-height: none;
    overflow: hidden;
    text-align: center;
  }

  .news-card-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-date-badge {
    justify-content: flex-start;
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 24px 0 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .pi-member-card,
  .current-member-card {
    grid-template-columns: 1fr;
  }

  .members-card-grid,
  .alumni-card-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero ~ h2::after {
    display: none;
  }
}

/* profile headings style */
