/* Publication Cards Styles */
.pub-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  will-change: transform, box-shadow, border-color;
  transform: translateY(0);
}

.pub-card:hover {
  border-color: #0366d6;
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.15);
  transform: translateY(-2px);
}

.pub-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  margin-right: 16px;
  border-radius: 6px;
  overflow: hidden;
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.pub-content {
  flex: 1;
  min-width: 0;
}

.pub-venue {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  color: #fff;
  background: #0366d6;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.pub-venue.accepted {
  background: #28a745;
}

.pub-title {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.pub-title a {
  color: #24292e;
  text-decoration: none;
}

.pub-title a:hover {
  color: #0366d6;
  text-decoration: underline;
}

.pub-authors {
  font-size: 0.9em;
  color: #586069;
  margin-bottom: 8px;
}

.pub-authors strong {
  color: #24292e;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8em;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pub-link i,
.pub-link .ai {
  margin-right: 5px;
}

.pub-link.paper {
  background: #e3f2fd;
  color: #1565c0;
}

.pub-link.paper:hover {
  background: #1565c0;
  color: #fff;
}

.pub-link.code {
  background: #e8f5e9;
  color: #2e7d32;
}

.pub-link.code:hover {
  background: #2e7d32;
  color: #fff;
}

.pub-link.video {
  background: #fce4ec;
  color: #c62828;
}

.pub-link.video:hover {
  background: #c62828;
  color: #fff;
}

.pub-link.website {
  background: #fff3e0;
  color: #e65100;
}

.pub-link.website:hover {
  background: #e65100;
  color: #fff;
}

.pub-link.slides {
  background: #f3e5f5;
  color: #7b1fa2;
}

.pub-link.slides:hover {
  background: #7b1fa2;
  color: #fff;
}

.pub-link.conf {
  background: #e8eaf6;
  color: #3949ab;
}

.pub-link.conf:hover {
  background: #3949ab;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  .pub-card {
    flex-direction: column;
  }

  .pub-thumb {
    width: 100%;
    height: 150px;
    margin-right: 0;
    margin-bottom: 12px;
  }
}

/* Education Card Styles */
.edu-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  will-change: transform, box-shadow, border-color;
  transform: translateY(0);
}

.edu-card:hover {
  border-color: #0366d6;
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.15);
  transform: translateY(-2px);
}

.edu-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edu-content {
  flex: 1;
}

.edu-title {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #24292e;
}

.edu-subtitle {
  font-size: 1em;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: #444;
}

.edu-time {
  font-size: 0.85em;
  color: #6a737d;
  margin-bottom: 4px;
  display: block;
}

.edu-desc {
  font-size: 0.9em;
  color: #586069;
  margin: 0;
}

@media (max-width: 600px) {
  .edu-card {
    flex-direction: column;
    text-align: center;
  }

  .edu-logo {
    margin-right: 0;
    margin-bottom: 12px;
  }
}