/* Papers page styling */
.papers-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* MODIFIED: Reduced from 2rem to tighten spacing between entries */
  padding: 1rem 0;
}

.paper-entry {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Image container improvements */
.paper-image {
  flex: 0 0 120px; /* Smaller fixed width */
  min-height: 80px;
  display: flex;
  align-items: flex-start; /* Align images to top */
  justify-content: center;
  overflow: hidden;
}

.paper-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Ensures full image is visible without cropping */
}

/* Text content improvements */
.paper-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* MODIFIED: Reduced from 0.75rem to tighten title/authors/description */
}

.paper-title {
  font-size: 0.8rem; /* Even smaller title */
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #1f2937;
}

.paper-title a {
  text-decoration: none;
  color: inherit;
}

.paper-description {
  font-size: 0.75rem; /* Even smaller description text */
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

.paper-authors {
  font-size: 0.5rem; /* Even smaller author text */
  font-style: italic; /* ADDED: Italicized the description text */
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.highlight-author {
  font-weight: 600;
  color: #1f2937;
}

.paper-links {
  display: flex;
  gap: 1rem;
  margin-top: auto; /* Push links to bottom */
}

.paper-links a {
  font-size: 0.75rem; /* Even smaller link text */
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .paper-entry {
    flex-direction: column;
    gap: 1rem;
  }
  
  .paper-image {
    flex: none;
    width: 100%;
    height: 200px;
  }
  
  .paper-title {
    font-size: 0.9rem;
  }
  
  .paper-description {
    font-size: 0.75rem;
  }
  
  .paper-authors {
    font-size: 0.7rem;
  }
}