/* ============================================
   Custom styles for Kunyang Li's personal page
   ============================================ */

/* -- Global: Roboto font, black text -- */
body {
  font-family: 'Roboto', sans-serif !important;
  font-size: 16px !important;
  color: #111 !important;
  line-height: 1.65 !important;
  background-color: #fff !important;
}

.text-muted {
  color: #111 !important;
}

/* -- Navbar: white bg, gray shadow at bottom, CSS sticky -- */
.site-navbar {
  background-color: #fff !important;
  padding: 8px 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.site-navbar .navbar-brand {
  font-weight: 600;
  font-size: 17px;
  color: #2a9d6e !important;
}

.site-navbar .navbar-brand:hover {
  color: #1a6b42 !important;
}

.site-navbar .nav-link {
  color: #444 !important;
  font-weight: 400;
  font-size: 15px;
  padding: 8px 14px !important;
  transition: color 0.2s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-item.active .nav-link {
  color: #2a9d6e !important;
}

.site-navbar .navbar-toggler {
  border-color: rgba(42, 157, 110, 0.4) !important;
}

.site-navbar .navbar-toggler .ti-menu {
  color: #2a9d6e;
}

/* -- Section Layout -- */
.section-title {
  margin-bottom: 22px;
  font-size: 26px;
  font-weight: 500;
  color: #111;
}

.section-divider {
  max-width: 960px;
  margin: 0 auto;
  border-bottom: 1px solid #e5e7eb;
}

.section-accent {
  color: #2a9d6e !important;
  font-weight: 500;
}

/* -- About Section -- */
.page-about {
  background-color: #fff !important;
}

.about-name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #111;
}

.about-subtitle,
.about-text p.about-subtitle {
  font-size: 18px;
  color: #228b5a !important;
}

.about-text p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #111 !important;
}

/* -- Profile Image -- */
.profile-img {
  max-width: 200px;
  border-radius: 8px;
}

/* -- Social Icons -- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon {
  font-size: 30px;
  color: #2a9d6e;
  text-decoration: none;
  transition: color 0.2s;
}

.social-icon:hover {
  color: #1a6b42;
}

/* -- Recent Highlights / News -- */
.news-box {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  background-color: #fafbfc;
}

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

.news-list li {
  padding: 4px 0;
  font-size: 16px;
  color: #111 !important;
  line-height: 1.55;
}

.news-list li + li {
  border-top: 1px solid #eef0f2;
}

.news-date {
  display: inline-block;
  min-width: 64px;
  font-size: 14px;
  font-weight: 600;
  color: #2a9d6e !important;
  margin-right: 6px;
}

/* -- Publication Entries -- */
.pub-entry {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-left: 3px solid #e5e7eb;
  transition: border-color 0.2s;
}

.pub-entry:hover {
  border-left-color: #2a9d6e;
}

.pub-title-line {
  margin-bottom: 4px;
}

.pub-title {
  color: #111 !important;
  font-size: 16px;
}

.pub-authors {
  margin-bottom: 2px;
  font-size: 15px;
  color: #333 !important;
}

.pub-authors u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: none;
}

.pub-venue {
  margin-bottom: 0;
  font-size: 14.5px;
  color: #555 !important;
}

.spotlight-tag {
  color: #e53e3e !important;
  font-weight: 600;
}

.venue-badge {
  display: inline-block;
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 3px;
  color: white !important;
  font-weight: bold;
  vertical-align: middle;
  margin-right: 4px;
}

.venue-badge.conference { background-color: #e36209; }
.venue-badge.workshop { background-color: #6f42c1; }
.venue-badge.thesis { background-color: #2084e1; }
.venue-badge.submission { background-color: #999999; }

.btn-inline {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  font-size: 13px;
  background-color: #d4f5e2;
  color: #1a6b42 !important;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-inline:hover {
  background-color: #b8e8ce;
  color: #1a6b42 !important;
  text-decoration: none;
}

/* -- Professional Activities -- */
.activity-group {
  margin-bottom: 20px;
}

.activity-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 2px solid #2a9d6e;
  display: inline-block;
  color: #111;
}

.activity-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.activity-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: #111 !important;
  font-size: 16px;
  line-height: 1.7;
}

.activity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #2a9d6e;
}

.activity-list li a {
  color: #2a9d6e !important;
  text-decoration: none;
}

.activity-list li a:hover {
  color: #1a6b42 !important;
  text-decoration: underline;
}

.activity-meta {
  font-size: 14px;
  color: #888 !important;
  margin-left: 2px;
}

.activity-inline {
  font-size: 16px;
  color: #111 !important;
  line-height: 1.7;
  margin-bottom: 0;
}

.activity-inline a {
  color: #2a9d6e !important;
  text-decoration: none;
}

.activity-inline a:hover {
  color: #1a6b42 !important;
  text-decoration: underline;
}

.activity-note {
  font-size: 14px;
  color: #777 !important;
  font-style: italic;
}

/* -- About Section Links -- */
.page-about a {
  color: #2a9d6e !important;
  text-decoration: none;
}

.page-about a:hover {
  color: #1a6b42 !important;
  text-decoration: underline;
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .profile-img {
    max-width: 160px;
    margin-bottom: 12px;
  }

  .social-icon {
    font-size: 26px;
  }

  .pub-entry {
    padding: 10px 12px;
  }

  .about-text p {
    font-size: 15px !important;
  }

  .news-box {
    padding: 12px 16px;
  }

  .site-navbar .navbar-brand {
    font-size: 15px;
    padding-left: 8px;
  }
}
