/* ── Global link button / about page social links ── */
.about-links .btn {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.about-links .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 36, 77, 0.15);
}

/* ── Profile image (trestles template) ── */
.about-image img {
  border-radius: 50%;
  max-width: 220px;
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 6px 24px rgba(3, 36, 77, 0.20);
  border: 4px solid #ffffff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-image img:hover {
  box-shadow: 0 10px 32px rgba(3, 36, 77, 0.28);
  transform: scale(1.04);
}

/* ── Publication entries ── */
.publication-entry {
  background: #f7f9fc;
  border-left: 4px solid #03244d;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 6px rgba(3, 36, 77, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.publication-entry:hover {
  box-shadow: 0 4px 14px rgba(3, 36, 77, 0.13);
  transform: translateX(4px);
}

/* ── Research project cards ── */
.research-project {
  background: #ffffff;
  border: 1px solid #d5e0ec;
  border-top: 4px solid #e67e22;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(3, 36, 77, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.research-project:hover {
  box-shadow: 0 6px 20px rgba(3, 36, 77, 0.12);
  transform: translateY(-3px);
}

/* ── About / CV horizontal rule spacing ── */
.content hr {
  margin: 2.5rem 0;
  border-color: #d5e0ec;
}

/* ── Navbar brand ── */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ── Teaching office-hours table ── */
table th {
  background-color: #03244d;
  color: #ffffff;
}

/* ── Inline ordered list publication numbering ── */
ol.publications li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  line-height: 1.75;
}

/* ── Smooth page transitions ── */
.page-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: stack about template on mobile ── */
@media (max-width: 768px) {
  .about-image img {
    width: 160px;
    height: 160px;
    margin: 0 auto 1rem auto;
    display: block;
  }

  .about-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .research-project,
  .publication-entry {
    margin-bottom: 1rem;
  }
}

/* ── Strong / bold in publication citations ── */
p strong, li strong {
  color: #03244d;
}

/* ── Badge-like tags for skills ── */
.skill-tag {
  display: inline-block;
  background: #eaf0f8;
  color: #03244d;
  border: 1px solid #c8d6e5;
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem;
  transition: background-color 0.2s ease;
}

.skill-tag:hover {
  background: #03244d;
  color: #ffffff;
  text-decoration: none;
}
