/* Override Quarto/flatly defaults for a clean academic look */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Profile section on home page */
.profile-section {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.profile-image {
  flex-shrink: 0;
  text-align: center;
  width: 220px;
}

.profile-image img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.profile-image h2 {
  font-size: 1.0rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 6px;
  border-bottom: none;
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
}

.profile-image .contact-links {
  justify-content: center;
  font-size: 0.85rem;
}

.contact-links {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* Research / Teaching / Presentations items */
.research-item,
.teaching-item,
.presentation-item {
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 3px solid #e8e8e8;
}

/* CV items — clean, no border */
.cv-item {
  margin-bottom: 18px;
  padding-left: 0;
}

.item-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 4px;
}

.item-venue {
  color: #666;
  font-style: italic;
  margin-bottom: 6px;
}

.item-details {
  color: #666;
  margin-bottom: 4px;
}

.item-links a {
  color: #0d6efd;
  text-decoration: none;
  margin-right: 15px;
  font-size: 0.95rem;
}

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

/* Section headers */
h2 {
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 8px;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

/* CV download button */
.btn-outline-secondary {
  display: inline-block;
  margin: 10px 0 20px 0;
  padding: 6px 16px;
  border: 1px solid #aaa;
  border-radius: 4px;
  color: #555;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-outline-secondary:hover {
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 680px) {
  .profile-section {
    flex-direction: column;
  }
  .profile-image img {
    width: 150px;
    height: 190px;
  }
}
