/* Homepage layout, layered over the original theme. */
.home-section {
  padding: 80px 0;
}

.home-section > .marginbot-50 {
  margin-bottom: 32px;
}

.home-section p,
.home-section li,
.home-section dd {
  line-height: 1.8;
}

.home-section .section-heading h2 {
  line-height: 1.35;
}

#about .text-left > p {
  margin-bottom: 24px;
}

.about-intro {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.about-portrait {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f0f5f3;
}

#about .about-greeting {
  margin-bottom: 12px;
  font-size: 20px;
  color: #222;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.chinese-name {
  width: 64px;
  height: auto;
  vertical-align: middle;
}

#news .text-left > p,
#news-content > p {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dedede;
}

#news button:focus-visible,
.home-section a:focus-visible {
  outline: 2px solid #268778;
  outline-offset: 4px;
}

#service .row.animatedParent {
  display: flex;
  flex-wrap: wrap;
}

#service .row.animatedParent::before,
#service .row.animatedParent::after {
  display: none;
}

#service .col-md-4,
#service .col-md-4 > .animated,
#service .service-box,
#service .service-desc {
  display: flex;
  flex-direction: column;
}

#service .col-md-4 {
  margin-bottom: 24px;
}

#service .col-md-4 > .animated,
#service .service-box,
#service .service-desc {
  flex: 1;
}

#service .service-box {
  padding: 32px 24px;
  margin-bottom: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: transform .2s ease-in-out, border-color .2s ease-in-out;
}

#service .service-box:hover {
  margin-top: 0;
  transform: translateY(-20px);
  border-color: #3dc9b3;
}

#service .service-desc .btn {
  align-self: center;
  margin-top: auto;
}

.section-link,
.publication-intro {
  text-align: center;
  margin-bottom: 32px;
}

.experience-list {
  list-style: none;
  padding: 0 0 0 24px;
  margin: 0 0 40px 6px;
  border-left: 2px solid #d5e3df;
}

.experience-list > br {
  display: none;
}

.experience-list > li {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dedede;
}

.experience-list > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.experience-list > li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #268778;
}

.experience-list > li > b {
  font-size: 19px;
  color: #222;
}

.experience-list em {
  font-size: 14px;
  font-style: normal;
  color: #666;
}

.experience-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
}

.experience-detail h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.experience-detail ul {
  padding-left: 20px;
  margin: 0;
}

.experience-detail li {
  margin-bottom: 10px;
}

.interns-detail {
  grid-column: 1 / -1;
  grid-row: 2;
}

.intern-list {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px 16px;
  margin: 0;
}

.intern-list dt {
  line-height: 1.8;
  color: #268778;
}

.intern-list dd {
  margin: 0;
}

#publications ol {
  padding-left: 26px;
}

#publications ol > li {
  padding: 0 0 22px 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e5e5e5;
}

#publications ol > li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

#publications li::marker {
  color: #268778;
  font-weight: bold;
}

#publications li a {
  white-space: nowrap;
}

#publications .paper-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: #222;
}

#publications .paper-authors {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.paper-venue {
  margin-right: 8px;
  font-weight: bold;
  color: #526760;
}

#publications .paper-meta a {
  padding: 3px 10px;
  border: 1px solid #d5e3df;
  border-radius: 4px;
  color: #237769;
  text-decoration: none;
}

#publications .paper-meta a:hover {
  background: #edf5f2;
  border-color: #268778;
}

@media (max-width: 991px) {
  #service .col-md-4 {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .about-portrait {
    width: 96px;
    height: 96px;
  }

  .home-section {
    padding: 52px 0;
  }

  .home-section > .marginbot-50 {
    margin-bottom: 24px;
  }

  .experience-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .interns-detail {
    grid-row: auto;
  }

  #publications ol {
    padding-left: 22px;
  }
}
