body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  background-color: #f8f8f8;
  color: #2b2b2b;
}

.sidebar {
  background-color: #2f2f2f;
  color: #fff;
  width: 280px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 75%;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.sidebar h2 {
  margin: 0;
  color: #fff;
}

.sidebar p {
  margin: 0;
  font-size: 14px;
  color: #c0c0c0;
  text-align: center;
}

.sidebar nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.sidebar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: #3db9a0;
}

.sidebar-contact {
  font-size: 12px;
  color: #bfbfbf;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.contact-row.center {
  justify-content: center;
  flex-wrap: wrap;
}

.contact-icon {
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.contact-logo {
  height: 12px;
  width: 14px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(0.75);
}

.sidebar-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-icons {
  display: flex;
  gap: 12px;
}

.contact-icons a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-icons a:hover {
  border-color: #3db9a0;
  transform: translateY(-2px);
}

.contact-icons img {
  width: 22px;
  height: 22px;
}

.cv-btn-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #3db9a0;
  color: #fff;
  font-weight: 600;
  font-size: 0.85em;
  text-decoration: none;
  flex: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.resume-btn:hover {
  background-color: #2ea090;
  transform: translateY(-1px);
}

.content {
  flex: 1;
  padding: 40px 60px;
  max-width: 900px;
}

section {
  margin-bottom: 48px;
}

h1,
h2,
h3 {
  color: #333;
  margin-top: 0;
}

ul {
  padding-left: 20px;
  line-height: 1.7;
}

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

.inline-list li {
  margin-bottom: 6px;
}

.inline-list .label {
  font-weight: 600;
  color: #2f2f2f;
  margin-right: 6px;
}

.news-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-scroll {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 16px;
  background: #fafafa;
}

.news-scroll::-webkit-scrollbar {
  width: 5px;
}

.news-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

.news-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #2b2b2b;
}

.news-inline-logo {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin-right: 2px;
}

.highlight-red {
  color: #e53e3e;
  font-weight: 600;
}

.honors-inline-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.honors-inline-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #2b2b2b;
}

.news-timeline {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-timeline li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(61, 185, 160, 0.15);
  color: #3db9a0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-timeline p {
  margin: 0;
  color: #2b2b2b;
  font-weight: 500;
}

.paper-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.paper-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

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

.badge-link {
  display: inline-block;
  background: #3db9a0;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-link:hover {
  background: #2ea090;
}

.paper-venue {
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  color: #2b2b2b;
  letter-spacing: 0.05em;
  text-align: right;
}

.paper-venue.oral {
  color: #2b2b2b;
}

.oral-tag {
  color: #e53e3e;
}

.paper-venue.upcoming {
  color: #2b2b2b;
}

.paper-authors {
  margin-top: 6px;
  font-size: 14px;
  color: #4a4a4a;
}

.paper-authors.small {
  font-size: 13px;
  line-height: 1.4;
}

.corresponding {
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 2px;
}

.mail-icon {
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 2px;
}

.paper-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
}

.paper-line.secondary {
  margin-top: 2px;
  font-size: 13px;
  color: #4a4a4a;
}

.paper-line strong {
  font-size: 15px;
  color: #1f1f1f;
}

.paper-links.inline {
  display: inline-flex;
  gap: 12px;
  font-size: 13px;
}

.paper-link-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin-right: 2px;
}

.logo-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.item-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.item-with-logo div {
  flex: 1;
}

.item-with-logo img {
  width: 52px;
  height: auto;
  object-fit: contain;
}

.honors-list .item-with-logo img {
  width: 28px;
}

.honors-list {
  gap: 10px;
}

.service-highlights {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #3a3a3a;
}

a {
  color: #0073e6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visitor-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 230px;
  padding: 12px;
  border-radius: 12px;
  background: #2f2f2f;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  z-index: 1000;
}

.visitor-title {
  font-weight: 600;
  color: #f5b4cb;
  margin-bottom: 6px;
}

.visitor-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.visitor-count:first-of-type {
  border-top: none;
}

@media (max-width: 960px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }

  .content {
    padding: 32px 20px 48px;
  }

  .item-with-logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .paper-line {
    grid-template-columns: 1fr;
  }

  .paper-venue {
    text-align: left;
  }

  .contact-icons {
    justify-content: center;
  }

  .visitor-widget {
    right: 12px;
    bottom: 12px;
    width: 200px;
  }
}
