body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: white;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.page {
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 28px;
}

.site-title {
  color: #7a1232;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 18px 0;
  text-align: center;   /* 👈 ensures proper centering */
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: start;
}

.site-title {
  grid-column: 1 / 2;
}

.sidebar {
  grid-column: 1 / 2;
}

.content {
  grid-column: 2 / 3;
}

.sidebar {
  text-align: center;
}

.profile-photo {
  width: 230px;
  height: auto;
  border-radius: 2px;
  margin-bottom: 16px;
}

.sidebar h3 {
  color: #7a1232;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.sidebar p {
  margin: 14px 0;
}

.sidebar a {
  color: #222;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.content {
  max-width: 760px;
}

.bio p {
  margin: 0 0 20px 0;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.paper {
  margin-bottom: 30px;
}

.paper-title {
  font-weight: 700;
  margin: 0 0 6px 0;
}

.paper-title a {
  color: #222;
  text-decoration: underline;
}

.coauthors {
  margin-left: 4px;
  color: #777;
  font-weight: normal;
}

.coauthors a {
  color: #777;
  text-decoration: none;
  border-bottom: 1px dotted #777;
}

.abstract {
  margin: 4px 0 8px 0;
}

.abstract summary {
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.abstract p {
  margin-top: 8px;
}

.paper-links {
  margin: 0;
}

.paper-links a {
  color: #0047ab;
  text-decoration: none;
}

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

@media (max-width: 750px) {
  body {
    padding: 0;
  }

  .page {
    margin: 20px auto;
    padding: 0 24px;
  }

  .layout {
    display: block;
  }

  .site-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 28px;
  }

  .sidebar {
    width: 100%;
    text-align: center;
    margin: 0 auto 48px auto;
  }

  .profile-photo {
    display: block;
    width: 260px;
    max-width: 85%;
    margin: 0 auto 28px auto;
  }

  .icons {
    justify-content: center;
  }

  .content {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 THIS centers everything horizontally */
}

.content {
  margin-top: 60px;   /* adjust if needed */
}

.icons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.icons a {
  font-size: 18px;
  color: #777;
  text-decoration: none;
  transition: 0.2s;
}

.icons a:hover {
  color: #7a1232;
}

.abstract p {
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 700px) {
  body {
    padding: 16px;
  }

  .container,
  .main,
  .content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .profile,
  .intro,
  .row,
  .about {
    display: block;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  h1 {
    font-size: 28px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .sidebar,
  .left-column,
  .profile,
  .contact {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .sidebar img,
  .left-column img,
  .profile img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .content,
  .main-content,
  .right-column {
    width: 100%;
    max-width: 100%;
  }
}
