/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #006400;
  text-decoration: underline dotted;
  transition: color 0.2s;
}

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

/* ===== Main Layout: Archiki-style two-column ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 22px 18px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* ===== Left Sidebar ===== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 28px;
}

.sidebar .name {
  font-size: 26pt;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.15;
}

.sidebar .name .first-name {
  font-weight: 800;
}

.sidebar .name .last-name {
  font-weight: 400;
}

.profile-photo {
  width: 100%;
  max-width: 240px;
  border-radius: 9px;
  margin: 10px 0 14px;
  display: block;
}

.sidebar-links {
  padding-top: 10px;
}

.sidebar-link-item {
  margin-bottom: 0;
  line-height: 1.75;
}

.sidebar-link-item:first-child {
  padding-top: 3px;
}

.menulink {
  color: #006400;
  text-decoration: none;
  font-size: 11.5pt;
}

.menulink:hover {
  color: #111;
}

.icon-fa {
  display: inline-block;
  width: 1.4em;
  text-align: left;
  font-size: 13.5pt;
  vertical-align: middle;
}

.sidebar-collab {
  background-color: rgba(210, 233, 226, 0.65);
  border-left: 4px solid #006400;
  border-radius: 6px;
  color: #333;
  line-height: 1.4;
  padding: 6px 10px;
  margin-top: 15px;
  font-size: 10pt;
  max-width: 100%;
  word-wrap: break-word;
  box-sizing: border-box;
}

/* ===== Right Content ===== */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ===== Bio ===== */
.bio {
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.bio p {
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
  text-align: justify;
  line-height: 1.65;
}

.bio a {
  color: #006400;
  text-decoration: underline dotted;
}

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

/* ===== Section Headings ===== */
.section {
  margin-top: 20px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 20pt;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

/* ===== News Section ===== */
.news-list {
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  border-left: 2px solid #d2e9e2;
  padding-left: 13px;
}

.news-list::-webkit-scrollbar {
  width: 4px;
}

.news-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

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

.news-item {
  padding: 4px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
}

.news-date {
  font-weight: 600;
  color: #777;
  font-size: 13.5px;
}

.news-item a {
  color: #006400;
  text-decoration: underline dotted;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-item strong {
  color: #111;
}

/* ===== Publications ===== */
.pub-year-heading {
  font-size: 16pt;
  font-weight: 700;
  color: #111;
  margin: 18px 0 8px;
}

.pub-entry {
  border-left: 1px solid #ddd;
  padding: 8px 0 8px 11px;
  margin-bottom: 6px;
}

.pub-entry.highlighted {
  background-color: rgba(200, 230, 215, 0.25);
  border-radius: 4px;
}

.pub-entry-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pub-thumb {
  flex-shrink: 0;
  width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-thumb img {
  max-width: 130px;
  max-height: 110px;
  object-fit: contain;
  border-radius: 3px;
}

.pub-text {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.35;
}

.pub-title a {
  color: #111;
  text-decoration: none;
}

.pub-title a:hover {
  color: #006400;
  text-decoration: underline dotted;
}

.pub-authors {
  font-size: 13.5px;
  color: #444;
  margin-bottom: 2px;
  line-height: 1.45;
}

.pub-authors a {
  color: #444;
  text-decoration: none;
}

.pub-authors a:hover {
  color: #006400;
  text-decoration: underline dotted;
}

.pub-authors strong {
  color: #111;
}

.pub-venue {
  font-size: 13.5px;
  color: #777;
  font-weight: 300;
  margin-bottom: 3px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 2px;
}

.pub-links a {
  font-size: 13px;
  color: #006400;
  text-decoration: underline dotted;
  padding-right: 1px;
}

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

/* ===== Teaching, Awards, Service Cards ===== */
.info-section {
  margin-top: 20px;
}

.info-block {
  border-left: 2px solid #d2e9e2;
  padding-left: 13px;
  margin-bottom: 8px;
}

.info-block p {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 3px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
}

.info-list li a {
  color: #006400;
  text-decoration: underline dotted;
}

.info-list li a:hover {
  text-decoration: underline;
}

.info-list .label {
  font-weight: 700;
  color: #111;
}

/* ===== Mentoring Section ===== */
.mentoring-list {
  max-height: 160px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #d2e9e2;
  padding-left: 13px;
}

.mentoring-list::-webkit-scrollbar {
  width: 4px;
}

.mentoring-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.mentoring-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.mentoring-list li {
  padding: 3px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.mentoring-list li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: #006400;
  font-size: 12px;
  top: 5px;
}

.mentoring-intro {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  padding-left: 13px;
  border-left: 2px solid #d2e9e2;
  padding-bottom: 4px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 24px;
  border-top: 1px solid #eee;
  font-size: 12.5px;
  color: #aaa;
}

.footer a {
  color: #aaa;
  text-decoration: none;
}

.footer a:hover {
  color: #777;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 18px 15px;
    gap: 18px;
  }

  .sidebar {
    width: 100%;
    position: static;
    text-align: center;
  }

  .sidebar .name {
    font-size: 21pt;
  }

  .profile-photo {
    max-width: 170px;
    margin: 8px auto;
  }

  .sidebar-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 15px;
  }

  .sidebar-links li {
    margin-bottom: 0;
  }

  .bio p {
    text-align: left;
  }

  .pub-entry-inner {
    flex-direction: column;
    align-items: center;
  }

  .pub-thumb {
    width: 100%;
  }

  .pub-thumb img {
    max-width: 170px;
  }
}
