/* Publication cards */
.pub-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 2em;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s ease;
}

.pub-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pub-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.pub-card h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 1.05em;
}

.pub-card .pub-authors {
  color: #555;
  font-size: 0.88em;
  margin-bottom: 0.6em;
}

.pub-card .pub-description {
  font-size: 0.92em;
  text-align: justify;
  margin-top: 0.8em;
}

.pub-card figure {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Profile links icons (Academicons) */
.ai {
  font-size: 1.1em;
}

/* Talks list */
.talk-entry {
  margin-bottom: 1em;
  padding-bottom: 0.9em;
  border-bottom: 1px solid #e8e8e8;
}

.talk-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}

.talk-title {
  font-weight: bold;
  flex: 1;
}

.talk-year {
  font-weight: bold;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}

.talk-venue {
  color: #666;
  font-size: 0.9em;
  margin-top: 0.15em;
}

/* Research topic cards */
html {
  scroll-behavior: smooth;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin: 2em 0 3em 0;
}

.research-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  height: 270px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.research-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.research-card:hover .research-card__bg {
  transform: scale(1.06);
}

.research-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5em;
  transition: background 0.4s ease;
}

.research-card:hover .research-card__overlay {
  background: rgba(0, 0, 0, 0.65);
}

.research-card__overlay h3 {
  margin: 0 0 0.5em;
  font-size: 1.1em;
  color: white;
  line-height: 1.3;
}

.research-card__overlay p {
  margin: 0;
  font-size: 0.83em;
  color: white;
  opacity: 0;
  line-height: 1.4;
  transition: opacity 0.4s ease;
}

.research-card:hover .research-card__overlay p {
  opacity: 0.92;
}

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