/* people Profile Styling */
.people-profile {
  max-width: 1200px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2D3748;
  background-color: #f7fcf8;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.people-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.people-photo {
  flex: 0 0 250px;
}

.people-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.5s ease;
}

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

.people-info {
  flex: 1;
}

.people-info h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.people-position {
  font-size: 1.25rem;
  color: #272727;
  margin-bottom: 1rem;
}

.people-faculty {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1rem;
}

.people-contact {
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #0066cc;
  text-decoration: none;
}

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

.people-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center; 
  width: 36px;
  height: 36px;
  border-radius: 50%;  
  background-color: #f7fcf8;
  box-shadow: 0 2px 4px rgba(66, 153, 225, 0.1);
  color: #2b864b;
  transition: all 0.2s;
  text-decoration: none; 
  font-size: 1.1rem; 
}

.social-link i {
  display: block; 
  line-height: 1;      
  margin: 0; 
  vertical-align: middle; 
  font-size: 1.2rem;
}

.social-link:hover {
  background-color: #BEE3F8;
  color: white;
  transform: translateY(-2px);
}

.people-mission {
  background-color: #f7fcf8;
  border-radius: 5px;
  margin-bottom: 2rem;
}

.people-mission h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.people-mission p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.6;
}

.people-content h2 {
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.interest-tag {
  background-color: #cfe3d3;
  border: 1px solid #d0e3ff;
  color: #2b864b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.interest-tag:hover {
  background-color: #e0f0ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Publications styling */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.publication-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.publication-year {
  flex: 0 0 60px;
  font-size: 1.25rem;
  font-weight: bold;
  color: #0066cc;
}

.publication-content {
  flex: 1;
}

.publication-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.publication-authors {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.publication-journal {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.publication-links {
  display: flex;
  gap: 1rem;
}

.pub-link {
  font-size: 0.85rem;
  color: #0066cc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pub-link:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .people-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .people-photo {
    flex: 0 0 200px;
    margin-bottom: 1.5rem;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .publication-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .publication-year {
    flex: auto;
  }
}


.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  max-width: 100%;
}

.people-img-link {
  flex: 1 1 110px;
  max-width: 110px;
  width: 110px;
  height: 110px;
  display: block;
}

.people-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}

.people-img-link:hover .people-img {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.people-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1rem;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}



/* Large people grid variation */
.people-grid-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.8rem;
  margin-top: 2rem;
}

.people-img-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 210px;
}

.people-img-link-large,
.people-img-name {
  display: block;
  width: 180px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.people-img-name {
  margin-top: 0.7rem;
  font-size: 1.22rem;
  font-weight: bold;
  color: #2D3748;
  text-align: center;
  width: 180px;
  height: 3.2em; /* Enough for two lines of text */
  display: flex;
  align-items: center;   /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;   /* Allow wrapping */
  text-decoration: none;
  box-sizing: border-box;
  border-radius: 8px;
  background: #f7fcf8;
  /* Optional: add a subtle border or shadow for clarity */
  /* border: 1px solid #e0e0e0; */
  /* box-shadow: 0 1px 3px rgba(0,0,0,0.03); */
}

.people-img-link-large {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  display: block;
  max-width: 180px;
  max-height: 180px;
}

.people-img-large {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50% !important;
  border: 3px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
  display: block;
}

.people-img-link-large:hover .people-img-large {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}