/* Site-wide polish for Lei Zheng academic homepage */

:root {
  --home-section-padding: 4.5rem 0;
}

/* Hero */
#hero.wg-hero .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

#hero.wg-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

#hero.wg-hero h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #455a64;
  margin-bottom: 0.5rem;
}

#hero.wg-hero h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #607d8b;
  line-height: 1.6;
}

#hero .hero-img {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(63, 81, 181, 0.12);
  max-height: 340px;
  width: auto;
  object-fit: cover;
}

/* Section headings */
.home-section .section-heading h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-section .section-heading p {
  color: #546e7a;
  font-size: 1.05rem;
}

/* About profile */
#about #profile img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

#about .portrait-title h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

#about .network-icon {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* News list — compact */
#news.home-section {
  padding: 3rem 0;
}

.home-news > .container > .row > .col-12 > h1 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.home-news ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-news ul li {
  padding: 0.32rem 0;
  border-bottom: none;
}

.home-news ul li em {
  color: #3f51b5;
  font-style: normal;
  font-weight: 600;
  margin-right: 0.2rem;
  font-size: 0.88rem;
}

/* Experience timeline — tighter, CV-like */
#experience.home-section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

#experience .section-heading h1 {
  margin-bottom: 0.25rem;
}

#experience .section-heading p {
  margin-bottom: 0;
  color: #607d8b;
  font-size: 0.95rem;
}

#experience .row.experience {
  margin-bottom: 0.15rem;
}

#experience .col.py-2 {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

#experience .card {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

#experience .card-body {
  padding: 0.75rem 1rem;
}

#experience .exp-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #263238 !important;
}

#experience .exp-company {
  font-weight: 500;
  font-size: 0.98rem;
}

#experience .exp-meta {
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

#experience .card-text {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #455a64;
}

#experience .card-text p {
  margin-bottom: 0.35rem;
}

#experience .card-text ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

#experience .card-text li {
  margin-bottom: 0.1rem;
}

/* Publications citation block */
#publications .pub-list-item {
  margin-bottom: 1.25rem;
}

/* Projects cards */
#projects .card-simple {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#projects .card-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Contact */
#contact .fa-2x {
  opacity: 0.85;
}

/* Navbar: hide placeholder dropdown */
.navbar-nav .nav-item.dropdown {
  display: none;
}

/* Job market callout in about */
#about h3#i-am-on-the-job-market-now,
#about h3[id*="job-market"] {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
  border-left: 4px solid #3f51b5;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
  #hero.wg-hero h1 {
    font-size: 1.75rem;
  }

  #hero .hero-img {
    margin-top: 1.5rem;
    max-height: 280px;
  }
}

/* ---- Publications page (SCALE / iControl-style) ---- */
.pub-filter-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.75rem 0 1.75rem;
}

.pub-filter-btn {
  background: #fff;
  color: #0984e3;
  border: 1px solid #0984e3;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.pub-filter-btn:hover {
  background: #74b9ff;
  color: #fff;
  border-color: #74b9ff;
}

#filter-all:checked ~ .pub-filters label[for="filter-all"],
#filter-journal:checked ~ .pub-filters label[for="filter-journal"],
#filter-conference:checked ~ .pub-filters label[for="filter-conference"] {
  background: #0984e3;
  color: #fff;
}

#filter-journal:checked ~ .pub-block-conference,
#filter-journal:checked ~ .pub-block-other,
#filter-conference:checked ~ .pub-block-journal,
#filter-conference:checked ~ .pub-block-other {
  display: none;
}

.pub-block {
  margin: 1.75rem 0 2.25rem;
}

.pub-section-title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #16324f;
  color: #16324f;
  font-size: 1.45rem;
  font-weight: 700;
}

.pub-page .entry {
  margin-bottom: 1.35rem;
  line-height: 1.55;
  color: #222;
}

.pub-page .entry-title {
  color: inherit !important;
  text-decoration: none !important;
}

.pub-page .entry-title:hover {
  color: #0984e3 !important;
  text-decoration: underline !important;
}

.pub-page .entry-buttons {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pub-page .pdf-button {
  display: inline-block;
  background-color: #0984e3;
  color: #fff !important;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.3;
}

.pub-page .pdf-button:hover {
  background-color: #74b9ff;
  color: #fff !important;
}

.pub-page .pdf-button-alt {
  background-color: #636e72;
}

.pub-page .pdf-button-alt:hover {
  background-color: #b2bec3;
}

.pub-page .pub-note {
  margin: 0 0 1rem;
  color: #546e7a;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Featured Publications (SCALE research-highlight style) ---- */
.rh-page-note {
  margin: 0 0 1.5rem;
  color: #546e7a;
  line-height: 1.55;
}

.rh-works {
  margin-top: 0.5rem;
}

.rh-work {
  display: grid;
  grid-template-columns: minmax(220px, 36%) 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  margin: 0 0 1.25rem;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(20, 40, 70, 0.05);
  background: linear-gradient(135deg, #f7fafc, #ffffff);
}

@media (max-width: 800px) {
  .rh-work {
    grid-template-columns: 1fr;
  }
}

.rh-work--safe {
  background: linear-gradient(135deg, #fgede8, #fff8f5);
  border-color: #e8a895;
}

.rh-work--certifiable {
  background: linear-gradient(135deg, #e8f1f8, #f7fbfe);
  border-color: #9fc2de;
}

.rh-work--physics {
  background: linear-gradient(135deg, #eaf6f0, #f7fcf9);
  border-color: #8fc9b0;
}

.rh-work--koopman {
  background: linear-gradient(135deg, #f3eef8, #fbf8fe);
  border-color: #c2a8df;
}

.rh-work-fig {
  margin: 0;
}

.rh-work-fig img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20, 40, 70, 0.08);
  object-fit: contain;
}

.rh-work h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.rh-work h3 a {
  color: inherit;
  text-decoration: none;
}

.rh-work h3 a:hover {
  color: #0984e3;
  text-decoration: underline;
}

.rh-work-meta {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.rh-work p {
  margin: 0 0 0.7rem;
  line-height: 1.55;
  font-size: 0.98rem;
}

.rh-work .entry-buttons {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rh-work .pdf-button {
  display: inline-block;
  background-color: #0984e3;
  color: #fff !important;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.3;
}

.rh-work .pdf-button:hover {
  background-color: #74b9ff;
  color: #fff !important;
}

.rh-work .pdf-button-alt {
  background-color: #636e72;
}

.rh-work .pdf-button-alt:hover {
  background-color: #b2bec3;
}

#featured.home-section,
.featured-rh.home-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

#featured .section-heading h1,
.featured-rh .section-heading h1,
.featured-rh h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
