/* Reset box model for consistency */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Apply consistent padding and spacing */
body {
  margin: 0;
  padding: 1rem;           /* ⬅️ Ensure padding on mobile */
  font-family: Georgia, serif;
  background: #fdf6e3;
  color: #111;
}

body {
  background-color: #fdf6e3; /* light beige background */
  font-family: 'Georgia', serif; /* elegant serif font */
  color: #111;
  max-width: 750px;
  margin: 2em auto;
  line-height: 1.3;
}

h1, h2, h3 {
  font-family: 'Palatino', serif;
  color: #2c2c2c;
}

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

.pub-entry {
  display: flex;
  padding: 1em;
  border-radius: 12px;
  margin-bottom: 1em;
  /* box-shadow: 0 0 5px rgba(0,0,0,0.05); */
}

.pub-thumb {
  width: 200px;
  margin-right: 1em;
  object-fit: contain;
}

.pub-meta h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  background: #004018;
  color: #fdf6e3;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85em;
  margin-bottom: 0.5em;
}

.pub-links a {
  margin-right: 10px;
  color: #000000;
  text-decoration: none;
}
.pub-links a:hover {
  text-decoration: underline;
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2em;
}

.profile-pic img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 5%;
}

.profile-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px; /* Match image height */
  flex: 1;
}

.contact-icons {
  margin-top: auto;
  font-size: 1.05em;
}

.contact-icons a {
  margin-right: 16px;
  text-decoration: none;
  color: #007acc;
}
.contact-icons a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .profile-text {
    height: auto;
    text-align: left;
  }

  .contact-icons {
    justify-content: center;
    margin-top: 1em;
  }

  .profile-pic {
    margin-top: 1.5em;
  }
}