/* Project cards layout for research section */
.project-card-flex {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1.5rem;
}
.project-card-img {
  flex: 0 0 160px;
  max-width: 160px;
  margin-right: 0;
}
.project-card-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.project-card-content {
  flex: 1 1 0;
}
.publication-card.project-inline {
  box-shadow: none;
  background: none;
  padding: 0;
  margin: 0;
}
.project-highlight {
  color: #ee5f5b;
}
@media (max-width: 700px) {
  .project-card-flex {
    flex-direction: column;
    gap: 0.7rem;
  }
  .project-card-img {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.project-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.project-img {
  flex: 0 0 200px;
  max-width: 260px;
  width: 100%;
  height: 100px;
  object-fit: contain; /* changed from cover to contain to keep the photo intact */
  background: #f4f4f4; /* fallback background for transparency */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 0.2rem;
}
@media (max-width: 900px) {
  .project-img {
    max-width: 100%;
    height: 90px;
    object-fit: contain;
  }
}
@media (max-width: 700px) {
  .project-list {
    gap: 1.2rem;
  }
  .project-entry {
    flex-direction: column;
    gap: 0.7rem;
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
  }
  .project-img {
    max-width: 100vw;
    width: 100%;
    height: 70px;
    margin-bottom: 0.5rem;
    object-fit: contain;
  }
  .project-info-block {
    width: 100%;
    box-sizing: border-box;
  }
}
.project-info-block {
  flex: 1 1 0;
}
.publication-info-block {
  margin-top: 0.7rem;
  margin-bottom: 0.1rem;
  padding: 0.6rem 0.8rem 0.6rem 0.8rem;
  border-left: 4px solid #0077cc;
  background: #f5faff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,119,204,0.06);
}
.publication-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.18rem;
  color: #005fa3;
}
.publication-authors {
  font-size: 0.93rem;
  color: #333;
  margin-bottom: 0.12rem;
}
.publication-venue {
  font-size: 0.91rem;
  color: #0077cc;
  margin-bottom: 0.12rem;
  font-weight: 600;
}
.publication-links a {
  color: #005fa3;
  text-decoration: underline;
  font-size: 0.93rem;
  margin-right: 0.7rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .project-entry {
    flex-direction: column;
    gap: 0.7rem;
  }
  .project-img {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}
