body {
  padding-top: 15px;
  padding-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.6;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", "Times New Roman", serif;
}

h1 {
  font-size: 2.5rem;
  padding-top: 0;
  color: #a51419;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2rem;
  padding-top: 0.75em;
  margin-bottom: 1rem;
  border-bottom: 2px solid #a51419;
  display: inline-block;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.5rem;
  padding-top: 1.5em;
  margin-bottom: 1rem;
  color: #a51419;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #ddd;
}

a {
  color: #a51419;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c71d22;
  text-decoration: underline;
}

.profile-photo {
  max-width: 200px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}

.nav-links {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

.nav-links a {
  color: #555;
  font-weight: 600;
}

.nav-links a:hover {
  color: #a51419;
  text-decoration: none;
}

.roles-list {
  list-style: none;
  padding-left: 0;
}

.roles-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}

.roles-list li:last-child {
  border-bottom: none;
}

.achievements-list {
  list-style: none;
  padding-left: 0;
}

.achievements-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
}

.achievements-list li:last-child {
  border-bottom: none;
}

/* Bibliography items */
ol.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
}

ol.bibliography li {
  margin-bottom: 1.5rem;
}

ol.bibliography li img {
  max-height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.publications-sidebar .container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.publications-sidebar .row {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 18px;
  align-items: flex-start;
}

.publications-sidebar .col-3 {
  padding-left: 0;
  flex: 0 0 100px;
  max-width: 100px;
}

.publications-sidebar .col-9 {
  padding-right: 0;
  flex: 1;
}

.publications-sidebar img {
  border-radius: 4px;
  border: 1px solid #eee;
}

.publications-sidebar .reference {
  font-size: 0.95rem;
  line-height: 1.4;
  display: block;
}

.publications-sidebar .label-default {
  font-size: 0.75rem;
  padding: 2px 8px;
  margin-top: 5px;
  border-radius: 3px;
  background-color: #f0f0f0;
  color: #555;
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
}

.publications-sidebar .label-default:hover {
  background-color: #a51419;
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .profile-photo {
    max-width: 150px;
  }
}
