/* --- 1. BASIC SETUP --- */
body {
  font-family: sans-serif;
  margin: 40px auto;
  max-width: 800px;
  line-height: 1.6;
  color: #333;
  padding: 0 20px;
}

a {
  color: #2F855A;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- 2. HEADER & DIVIDER FIX --- */
header {
  margin-bottom: 40px;           /* Pushes the main content away */
  border-bottom: 1px solid #eee; /* THE RESTORED DIVIDER LINE */
  padding-bottom: 40px;          /* Space between your bio and the line */
}

footer {
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* --- 3. PROFILE HEADER --- */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  /* Removed margin-bottom here because the <header> padding handles it now */
  text-align: left;
}

.profile-header img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-text h1 {
  margin: 0;
  line-height: 1.2;
  color: #2F855A;
}

.header-text p {
  margin: 5px 0 10px 0;
  color: #555;
  font-size: 0.95rem;
}

/* Contact Links */
.contact-links {
  font-size: 0.9rem;
}
.contact-links a {
  margin-right: 15px;
  font-weight: bold;
}

/* --- 4. PUBLICATIONS & SECTION TITLES --- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 1em;
  /* Optional: You can keep or remove the border below specific section titles */
  /* border-bottom: 1px solid #eee; */ 
  padding-bottom: 5px;
}

.section-title h2 {
  margin: 0;
  color: #2F855A;
}

.section-title .links a {
  font-size: 0.8em;
  text-transform: uppercase;
  color: #555;
}

/* --- 5. MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .header-text {
    align-items: center;
  }
  
  .profile-header img {
    width: 100px;
    height: 100px;
  }
}