/* ===== THEME: Dark + Green Accent ===== */
:root {
  --primary: #7fdc93;
  --accent:  #6fcb84;
  --bg:      #181818;
  --panel:   #1f1f1f;
  --panel2:  rgb(36, 36, 36);
  --text:    #f5f7fa;
  --muted:   #9ea9b5;
  --border:  #343434;
  --datebox: #1b232c;
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 18px 34px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #0a0a0a;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.top-utility {
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  gap: 20px;
}

/* Brand: Logo + Lab Name */
.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
}

.brand-block:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.brand-block:hover .lab-title {
  color: var(--primary);
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--primary);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.lab-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #ffffff;
}

/* Utility actions (search only) */
.utility-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  gap: 7px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease;
}

.icon-btn:hover,
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  background: #111;
}

.header-search {
  position: relative;
  width: clamp(230px, 24vw, 360px);
  min-width: 220px;
}

.header-search-row {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 10px;
  background: #151515;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  font-size: 0.94rem;
}

.header-search-input::placeholder {
  color: #858f99;
}

.header-search-submit {
  flex: 0 0 auto;
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(127, 220, 147, 0.10);
  color: var(--primary);
  padding: 0 13px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1400;
  width: min(440px, calc(100vw - 40px));
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111;
  box-shadow: var(--shadow-md);
}

.header-search-results[hidden] {
  display: none;
}

.header-search-result {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.header-search-result:hover,
.header-search-result:focus {
  background: var(--panel2);
  outline: none;
}

.header-search-result-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-search-result-title {
  display: block;
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 700;
}

.header-search-result-summary {
  display: block;
  margin-top: 4px;
  color: #b9c2cc;
  font-size: 0.84rem;
  line-height: 1.45;
}

.header-search-empty {
  margin: 0;
  padding: 12px;
  color: #c3ccd5;
  font-size: 0.92rem;
}

/* ===== NAV ===== */
.main-nav-wrap {
  border-bottom: 1px solid var(--border);
  background: #111111;
}

.main-nav {
  display: flex;
  justify-content: space-between;   /* 原来是 center */
  align-items: center;
  gap: 14px;                        /* 原来是 4px */
  min-height: 72px;                 /* 原来是 54px */
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;                     /* 原来是 38px */
  margin: 10px 0;                   /* 原来是 8px 0 */
  padding: 0 20px;                  /* 原来是 0 14px */
  text-decoration: none;
  color: #cccccc;
  font-weight: 650;
  font-size: 1.1rem;               /* 原来是 0.92rem */
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.015em;
}


.nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item:hover > .nav-link,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cccccc;
  text-decoration: none;
  font-size: 0.93rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  transform: translateX(2px);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== MAIN ===== */
.page-main {
  padding: 28px 0 36px;
}

.home-section {
  margin-bottom: 26px;
}

.card-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.card-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.10);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.section-head a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.section-head a:hover {
  text-decoration: underline;
}

/* ===== HOME: Progress Full-Width ===== */
/* 原来的 split-layout 不再用于 home，Progress 独占全行 */
.hero-slider-full {
  width: 100%;
  height: 540px;          /* 比原来的 472px 更高，更显眼 */
  display: flex;
  flex-direction: column;
}

.slider-frame {
  position: relative;
  flex: 1;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.slider-frame:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.slider-frame.is-changing .slider-image {
  opacity: 0.35;
}

.slider-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.slider-image {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  color: #555;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition:
    opacity 0.28s ease,
    transform 0.8s ease,
    background-image 0.35s ease;
}

.slider-frame:hover .slider-image {
  transform: scale(1.03);
}

.slider-image.has-bg {
  color: transparent;
}

.slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 36px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.04));
}

.slider-caption h3 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1.15;
  color: #fff;
}

/* Green accent line under caption title */
.slider-caption h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 2px;
}

.slider-caption p {
  margin: 0;
  max-width: 72%;
  line-height: 1.55;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 56px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(46, 204, 113, 0.7);
}

.slider-arrow.left {
  left: 14px;
}

.slider-arrow.right {
  right: 14px;
}

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.about-text p {
  margin: 0 0 16px;
  line-height: 1.85;
  color: #bbbbbb;
}

.about-image {
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgb(31,31,31) 0%, rgb(24,24,24) 100%);
  color: #666;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.about-image:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}

.footer-inner {
  padding: 18px 20px 24px;
  text-align: left;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #555;
}

.footer-inner p {
  margin: 3px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav::-webkit-scrollbar {
    height: 6px;
  }

  .main-nav::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 999px;
  }
}

@media (max-width: 980px) {
  .hero-slider-full {
    height: auto;
    min-height: 380px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .slider-caption h3 {
    font-size: 1.6rem;
  }

  .slider-caption p {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .utility-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .header-search {
    flex: 1 1 100%;
  }
}










/* ===== Research pages: unify with News ===== */
.research-page-section {
  padding: 18px 0 22px;
}

.research-page-head {
  margin-bottom: 26px;
}

.research-page-head h1 {
  margin: 0 0 10px;
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.research-page-head p {
  margin: 0;
  max-width: 860px;
  color: #aeb8c2;
  line-height: 1.82;
  font-size: 1.01rem;
}

.research-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #8e99a5;
  font-size: 0.92rem;
}

.research-breadcrumb a {
  color: #8e99a5;
  text-decoration: none;
}

.research-breadcrumb a:hover {
  color: #7fdc93;
}

.research-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) 300px;
  gap: 28px;
  align-items: start;
}

.research-page-layout.research-single {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}

.research-main {
  min-width: 0;
}

.research-overview-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.research-overview-card {
  display: block;
  text-decoration: none;
  color: #f5f7fa;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #1f1f1f;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.research-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127,220,147,0.22);
  background: #242424;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.research-overview-card-image,
.research-overview-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #242424 0%, #1f1f1f 100%);
  color: #727b84;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}

.research-overview-card-image {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
}

.research-overview-card-body {
  padding: 18px;
}

.research-overview-card-body h2,
.research-block-head h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-weight: 650;
}

.research-overview-card-body p,
.research-overview-text p,
.research-pub-item p {
  color: #c3ccd5;
  line-height: 1.88;
}

.research-block {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #1f1f1f;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.research-block:hover {
  transform: translateY(-2px);
  border-color: rgba(127,220,147,0.22);
  background: #242424;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.research-block-head {
  margin-bottom: 18px;
}

.research-overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.research-pub-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.research-pub-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.research-pub-item a {
  color: #7fdc93;
  text-decoration: none;
  border-bottom: 1px solid rgba(127,220,147,0.35);
}

.research-pub-item a:hover {
  color: #9ae8aa;
  border-bottom-color: rgba(154,232,170,0.7);
}

.research-sidebar {
  display: none;
}

@media (max-width: 980px) {
  .research-page-layout,
  .research-page-layout.research-single,
  .research-overview-grid,
  .research-overview-cards {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .research-page-head h1 {
    font-size: 2.05rem;
  }

  .research-block {
    padding: 18px;
  }

  .research-overview-card-image,
  .research-overview-image {
    min-height: 180px;
  }
}








/* ===== People page ===== */
.people-page-section {
  padding: 12px 0 18px;
}

.people-page-head {
  margin-bottom: 28px;
}

.people-page-head h1 {
  margin: 0 0 10px;
  font-size: 2.35rem;
  line-height: 1.14;
  font-weight: 700;
  color: var(--text);
}

.people-page-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.people-section {
  margin-bottom: 38px;
}

/* PI */
.pi-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.pi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.12);
}

.pi-card:hover .pi-readmore {
  transform: translateY(-1px);
  border-color: rgba(127, 220, 147, 0.28);
  background: var(--panel2);
}

.pi-photo {
  min-height: 0;
  height: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--panel2) 0%, var(--panel) 100%);
  color: rgba(255, 255, 255, 0.38);
}

.pi-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pi-info {
  padding: 34px 34px 30px;
  background: var(--panel);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.pi-info h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 700;
  color: var(--text);
}

.pi-role {
  margin: 0 0 18px;
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pi-meta p {
  margin: 0 0 10px;
  line-height: 1.8;
  color: #c3ccd5;
}

.pi-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  width: 156px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--panel2);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

@media (max-width: 760px) {
  .pi-card {
    grid-template-columns: 1fr;
  }

  .pi-photo {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .pi-info {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 24px;
  }

  .pi-info h3 {
    font-size: 1.38rem;
  }
}

/* Member cards */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.member-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
  min-height: 146px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel2);
}

.member-avatar {
  width: 92px;
  height: 92px;
  background: linear-gradient(135deg, var(--panel2) 0%, var(--panel) 100%);
  color: rgba(255,255,255,0.38);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.member-content {
  min-width: 0;
}

.member-role {
  font-size: 0.84rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.member-content h3 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  line-height: 1.18;
  color: var(--text);
}

.member-content p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #c3ccd5;
  line-height: 1.75;
  word-break: break-word;
}

.member-content span {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 220, 147, 0.35);
  padding-bottom: 2px;
}

/* ===== All Members entry ===== */
.people-all-members-section {
  margin-top: 6px;
}

.people-all-members-intro {
  max-width: 760px;
}

.people-all-members-intro p {
  margin: 0 0 12px;
  color: #c3ccd5;
  line-height: 1.85;
  font-size: 1rem;
}

.people-all-members-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(127, 220, 147, 0.35);
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.people-all-members-link:hover {
  color: #9ae8aa;
  border-color: rgba(154, 232, 170, 0.72);
  transform: translateY(-1px);
}

/* ===== People grouped member pages ===== */
.people-group-block {
  margin-bottom: 42px;
}

.people-group-title {
  text-align: left;
  font-size: 1.45rem;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 18px;
  padding-left: 16px;
  position: relative;
}

.people-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: var(--primary);
}

.member-grid-profile {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.member-grid-profile .member-card {
  min-height: 138px;
}

@media (max-width: 980px) {
  .member-grid-profile {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .member-grid-profile {
    grid-template-columns: 1fr;
  }
}

/* ===== Prof. Wang page ===== */
.prof-page-section {
  padding: 12px 0 20px;
}

.prof-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.prof-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prof-photo-card,
.prof-contact-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
}

.prof-photo {
  width: 100%;
  padding-bottom: 125%;
  position: relative;
  background: linear-gradient(135deg, var(--panel2) 0%, var(--panel) 100%);
  color: rgba(255,255,255,0.38);
  display: grid;
  place-items: center;
}

.prof-photo img {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.prof-photo::before {
  content: "PHOTO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.prof-contact-card h3 {
  margin: 0;
  padding: 20px 20px 16px 42px;
  font-size: 1.14rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text);
}

.prof-contact-card h3::before {
  content: "|";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.prof-contact-card p {
  margin: 0;
  padding: 0 20px 14px;
  line-height: 1.8;
  color: #c3ccd5;
}

.prof-contact-card p:first-of-type {
  padding-top: 20px;
}

.prof-right {
  min-width: 0;
}

.prof-head {
  margin-bottom: 26px;
}

.prof-head h1 {
  margin: 0 0 10px;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.prof-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.prof-block {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.prof-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel2);
}

.prof-block h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  padding-left: 20px;
  color: var(--text);
}

.prof-block h2::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.prof-block p {
  margin: 0 0 12px;
  line-height: 1.85;
  color: #c3ccd5;
}

.prof-interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.prof-interest-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.prof-interest-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
}

.prof-interest-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.prof-interest-card p {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.75;
}

.prof-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prof-timeline-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.prof-timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prof-time {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.prof-pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prof-pub-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.prof-pub-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.muted-line {
  color: var(--muted) !important;
}

@media (max-width: 980px) {
  .prof-layout {
    grid-template-columns: 1fr;
  }

  .prof-left {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }

  .prof-interest-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Member profile page ===== */
.member-profile-section {
  padding: 12px 0 20px;
}

.member-profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
}

.member-profile-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.member-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 12px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--panel2) 0%, var(--panel) 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.member-photo img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.member-contact-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  text-align: left;
  padding: 0;
}

.member-contact-box h3 {
  margin: 0;
  padding: 20px 20px 16px 42px;
  font-size: 1.14rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text);
  text-transform: none;
}

.member-contact-box h3::before {
  content: "|";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.member-contact-box p {
  margin: 0;
  padding: 20px;
  color: #c3ccd5;
  line-height: 1.8;
  font-size: 1rem;
}

.member-back-wrap {
  margin-top: 18px;
}

.member-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.member-back-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.member-profile-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.member-profile-head {
  margin-bottom: 28px;
}

.member-profile-head h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.member-self-desc {
  margin: 0;
  color: #dce8e1;
  line-height: 1.72;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: 1.16rem;
  font-style: italic;
  letter-spacing: 0;
}

.member-info-block {
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px;
}

.member-info-block h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.member-info-block h2::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
}

.member-info-block p {
  margin: 0 0 12px;
  color: #c3ccd5;
  font-size: 1rem;
  line-height: 1.85;
}

@media (max-width: 980px) {
  .member-profile-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .member-profile-left {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }

  .member-photo {
    min-height: 0;
  }
}







/* ===== Publications pages ===== */
.publications-page-section,
.publications-index-section,
.publications-list-section {
  padding: 16px 0 22px;
}

.publications-page-head,
.publications-index-head {
  margin-bottom: 26px;
}

.publications-page-head h1,
.publications-index-head h1 {
  margin: 0 0 10px;
  font-size: 2.45rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
}

.publications-page-head p,
.publications-index-head p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.publications-search-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 24px;
  margin-bottom: 28px;
}

.publications-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 220px 160px;
  gap: 14px;
  align-items: end;
}

.publications-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publications-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.publications-field input,
.publications-field select {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  padding: 0 14px;
  font-size: 0.96rem;
  outline: none;
}

.publications-field input::placeholder {
  color: #8f99a4;
}

.publications-search-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(127, 220, 147, 0.24);
  background: rgba(127, 220, 147, 0.10);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.publications-search-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 220, 147, 0.36);
  background: rgba(127, 220, 147, 0.14);
}

.publications-search-note {
  margin: 14px 0 0;
  color: #c3ccd5;
  line-height: 1.8;
}

.publications-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.publications-stat-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px 20px;
}

.publications-stat-number {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.publications-stat-label {
  display: block;
  color: #c3ccd5;
  font-size: 0.95rem;
  line-height: 1.5;
}

.publications-policy-note {
  margin-bottom: 28px;
  border: 1px solid rgba(127, 220, 147, 0.18);
  border-radius: 16px;
  background: rgba(127, 220, 147, 0.06);
  padding: 18px 20px;
}

.publications-policy-note p {
  margin: 0;
  color: #d6dde5;
  line-height: 1.8;
}

.publications-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.publications-entry-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publications-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.publications-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel2);
}

.publications-entry-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(127, 220, 147, 0.10);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.publications-entry-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.publications-entry-card p {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.8;
}

.publications-entry-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(127, 220, 147, 0.35);
  width: fit-content;
}

.publications-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.publications-year-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 28px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.publications-year-nav-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.publications-year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 58px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: #171717;
  color: #d7dee6;
  text-decoration: none;
  font-size: 0.88rem;
}

.publications-year-chip:hover,
.publications-year-chip:focus {
  border-color: rgba(127, 220, 147, 0.26);
  color: var(--primary);
  outline: none;
}

.publications-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: #d6dde5;
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.publications-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 220, 147, 0.22);
  background: var(--panel2);
  color: var(--text);
}

.publications-filter-chip.active {
  background: rgba(127, 220, 147, 0.12);
  color: var(--primary);
  border-color: rgba(127, 220, 147, 0.26);
}

.publications-year-block {
  margin-bottom: 34px;
  scroll-margin-top: 180px;
}

.publications-year-title {
  margin: 0 0 16px;
  padding-left: 16px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  position: relative;
}

.publications-year-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--primary);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.publication-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px 20px;
}

.publication-main {
  min-width: 0;
}

.publication-type {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.publication-citation {
  margin: 0;
  color: #d9e0e7;
  line-height: 1.85;
  font-size: 1rem;
}

.publication-citation strong {
  color: var(--text);
  font-weight: 700;
}

.publication-journal {
  display: inline;
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(127, 220, 147, 0.34);
  text-underline-offset: 0.22em;
}

.publication-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.publication-meta a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 220, 147, 0.34);
}

.publication-meta a:hover {
  border-bottom-color: rgba(127, 220, 147, 0.68);
}

.publication-item:target {
  border-color: rgba(127, 220, 147, 0.44);
  box-shadow: 0 0 0 1px rgba(127, 220, 147, 0.18);
  scroll-margin-top: 24px;
}

.publication-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.publication-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.publication-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 220, 147, 0.22);
  background: rgba(127, 220, 147, 0.10);
}

.publication-btn.primary {
  color: var(--primary);
}

.publications-helper-note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .publications-search-grid,
  .publications-summary-grid,
  .publications-entry-grid {
    grid-template-columns: 1fr;
  }

  .publication-item {
    grid-template-columns: 1fr;
  }

  .publication-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .publications-page-head h1,
  .publications-index-head h1 {
    font-size: 2.05rem;
  }

  .publications-search-panel,
  .publications-entry-card,
  .publication-item {
    padding: 18px;
  }

  .publications-entry-card {
    min-height: 186px;
  }
}


/* ===== Gallery pages ===== */
.gallery-page-section {
  padding: 14px 0 22px;
}

.gallery-page-head {
  margin-bottom: 30px;
}

.gallery-page-head h1 {
  margin: 0 0 10px;
  font-size: 2.45rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
}

.gallery-page-head p {
  margin: 0;
  max-width: 840px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.gallery-subpage-head {
  margin-bottom: 22px;
}

.gallery-breadcrumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.gallery-breadcrumb a:hover {
  text-decoration: underline;
}

.gallery-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-entry-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.gallery-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.12);
  background: var(--panel2);
}

.gallery-entry-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel2) 0%, var(--panel) 100%);
}

.gallery-entry-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #242d38;
  color: rgba(255,255,255,0.40);
  font-size: 0.88rem;
  overflow: hidden;
}

.gallery-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-entry-body {
  padding: 22px 22px 20px;
}

.gallery-entry-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gallery-entry-body h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

.gallery-entry-body p:last-of-type {
  margin: 0 0 16px;
  color: #c3ccd5;
  line-height: 1.8;
}

.gallery-entry-count {
  margin: -4px 0 16px;
  color: #90a4b7;
  font-size: 0.92rem;
}

.gallery-entry-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(127, 220, 147, 0.35);
  padding-bottom: 2px;
}

.gallery-preview-section {
  margin-top: 8px;
}

.gallery-feature-section {
  margin: 0 0 32px;
}

.gallery-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.gallery-feature-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.2;
}

.gallery-feature-controls {
  display: flex;
  gap: 8px;
}

.gallery-feature-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.gallery-feature-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 220, 147, 0.34);
  background: var(--panel2);
}

.gallery-feature-nav:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

.gallery-feature-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 2px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.gallery-feature-rail::-webkit-scrollbar {
  display: none;
}

.gallery-feature-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.gallery-feature-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: #141b23;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  user-select: none;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.gallery-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 220, 147, 0.28);
  box-shadow: var(--shadow-md);
}

.gallery-feature-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #101820;
}

.gallery-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-feature-card:hover .gallery-feature-image img {
  transform: scale(1.035);
}

.gallery-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,20,0.05) 32%, rgba(10,15,20,0.88) 100%);
}

.gallery-feature-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}

.gallery-feature-body p,
.gallery-feature-body h3 {
  margin: 0;
}

.gallery-feature-body p {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-feature-body h3 {
  margin-top: 6px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.28;
}

.gallery-timeline-list {
  display: grid;
  gap: 10px;
  border-left: 1px solid rgba(127, 220, 147, 0.28);
  margin-left: 8px;
  padding-left: 20px;
}

.gallery-timeline-list a {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: baseline;
  color: #d9e1e8;
  text-decoration: none;
  line-height: 1.45;
  padding: 8px 0;
}

.gallery-timeline-list a::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(127, 220, 147, 0.10);
}

.gallery-timeline-list a:hover {
  color: #fff;
}

.gallery-timeline-list span {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-preview-grid,
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-preview-item,
.gallery-photo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-photo-frame,
.gallery-photo-placeholder {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--panel2) 0%, var(--panel) 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.38);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.gallery-photo-placeholder {
  aspect-ratio: 16 / 9;
}

.gallery-photo-frame img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

.gallery-preview-item:hover .gallery-photo-frame,
.gallery-photo-card:hover .gallery-photo-frame,
.gallery-preview-item:hover .gallery-photo-placeholder,
.gallery-photo-card:hover .gallery-photo-placeholder {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255,255,255,0.12);
}

.gallery-preview-item p,
.gallery-photo-card p {
  margin: 0;
  color: #d0d7df;
  line-height: 1.7;
  font-size: 0.95rem;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.gallery-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

.gallery-filter-btn.active {
  background: rgba(127, 220, 147, 0.10);
  color: var(--primary);
  border-color: rgba(127, 220, 147, 0.24);
}

.gallery-memory-section {
  scroll-margin-top: 110px;
  margin: 34px 0 46px;
}

.gallery-memory-section-head {
  margin-bottom: 18px;
}

.gallery-memory-section-head p {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-memory-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.18;
}

.gallery-memory-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 22px;
}

.gallery-memory-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(127, 220, 147, 0.48), rgba(127, 220, 147, 0.04));
}

.gallery-memory-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(32, 41, 51, 0.86), rgba(18, 26, 34, 0.96));
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 120px;
}

.gallery-memory-marker {
  position: absolute;
  left: -21px;
  top: 28px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(127, 220, 147, 0.11);
}

.gallery-memory-cover {
  min-width: 0;
}

.gallery-cover-link {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 260px;
  max-height: 420px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f171f;
  border: 1px solid rgba(255,255,255,0.06);
}

.gallery-cover-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.28s ease;
}

.gallery-cover-link:hover img,
.gallery-photo-thumb:hover img {
  transform: scale(1.03);
}

.gallery-memory-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gallery-memory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.gallery-memory-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(127, 220, 147, 0.18);
  border-radius: 999px;
  color: #b8d6c0;
  background: rgba(127, 220, 147, 0.07);
  font-size: 0.82rem;
}

.gallery-memory-body h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.22;
}

.gallery-memory-body p {
  margin: 0 0 16px;
  color: #c6d0da;
  line-height: 1.75;
}

.gallery-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 178px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 2px 2px 10px;
}

.gallery-photo-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #101820;
  scroll-snap-align: start;
}

.gallery-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.28s ease;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 28px;
  background: rgba(4, 8, 12, 0.92);
  backdrop-filter: blur(10px);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.gallery-lightbox-image {
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.46);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-lightbox.is-changing .gallery-lightbox-image {
  opacity: 0;
  transform: scale(0.985);
}

.gallery-lightbox-caption {
  justify-self: center;
  max-width: min(760px, 100%);
  color: #e7edf3;
  text-align: center;
  line-height: 1.55;
}

.gallery-lightbox button {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(16, 24, 32, 0.72);
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: fixed;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.35rem;
}

.gallery-lightbox-close {
  top: 22px;
  right: 22px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 22px;
}

.gallery-lightbox-next {
  right: 22px;
}

.gallery-lightbox button:hover {
  background: rgba(34, 48, 62, 0.92);
  border-color: rgba(127, 220, 147, 0.45);
}

@media (max-width: 980px) {
  .gallery-overview-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature-rail {
    grid-auto-columns: minmax(270px, 72%);
  }

  .gallery-memory-card {
    grid-template-columns: 1fr;
  }

  .gallery-cover-link {
    min-height: 240px;
    max-height: 520px;
  }
}

@media (max-width: 640px) {
  .gallery-page-head h1 {
    font-size: 2rem;
  }

  .gallery-entry-body {
    padding: 18px;
  }

  .gallery-entry-body h2 {
    font-size: 1.32rem;
  }

  .gallery-preview-grid,
  .gallery-photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .gallery-feature-card {
    min-height: 260px;
  }

  .gallery-memory-timeline {
    padding-left: 14px;
  }

  .gallery-memory-marker {
    left: -17px;
  }

  .gallery-memory-card {
    padding: 14px;
    border-radius: 14px;
  }

  .gallery-lightbox {
    padding: 18px 12px;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 132px);
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .gallery-preview-grid,
  .gallery-photo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature-rail {
    grid-auto-columns: minmax(250px, 88%);
  }

  .gallery-timeline-list a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gallery-photo-strip {
    grid-auto-columns: minmax(118px, 154px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-feature-card,
  .gallery-feature-image img,
  .gallery-cover-link img,
  .gallery-photo-thumb img,
  .gallery-lightbox-image {
    transition: none;
  }
}





/* ===== Shared page hero ===== */
.page-hero-block {
  margin-bottom: 30px;
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero-block h1 {
  margin: 0 0 12px;
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
}

.page-intro {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

.info-section-block,
.contact-main-block,
.contact-side-block,
.join-cta-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.info-section-block,
.contact-main-block {
  padding: 24px;
  margin-bottom: 24px;
}

/* ===== Join Us ===== */
.join-page-section {
  padding: 16px 0 22px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.advantage-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
  padding: 18px;
}

.advantage-card h3,
.requirement-card h3,
.pathway-body h3,
.contact-card h3,
.map-caption h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--text);
}

.advantage-card p,
.pathway-body p,
.contact-card p,
.map-caption p {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.82;
}

.pathway-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pathway-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.pathway-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pathway-tag,
.guide-step {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.requirement-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
  padding: 18px;
}

.requirement-card ul {
  margin: 0;
  padding-left: 18px;
  color: #c3ccd5;
}

.requirement-card li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.requirement-card li:last-child {
  margin-bottom: 0;
}

.join-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.join-cta-text h2 {
  margin: 0 0 10px;
  font-size: 1.38rem;
  color: var(--text);
}

.join-cta-text p {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.82;
  max-width: 760px;
}

.join-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--border);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.join-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ===== Contact ===== */
.contact-page-section {
  padding: 16px 0 22px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 24px;
  align-items: start;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
  padding: 18px;
}

.contact-note {
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 0.95rem;
}

.contact-guide-block {
  margin-top: 6px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.guide-item p {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.8;
}

.contact-side-block {
  padding: 18px;
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--panel2) 0%, var(--panel) 100%);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.42);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.map-caption {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel2);
  padding: 18px;
}

@media (max-width: 980px) {
  .advantage-grid,
  .requirement-grid,
  .contact-card-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .join-cta-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-hero-block h1 {
    font-size: 2rem;
  }

  .info-section-block,
  .contact-main-block,
  .contact-side-block,
  .join-cta-block {
    padding: 20px;
  }

  .pathway-item,
  .guide-item {
    grid-template-columns: 1fr;
  }
}




.resources-page-section,
.resource-list-section {
  padding: 14px 0 20px;
}

.resources-page-head,
.resource-list-head {
  margin-bottom: 28px;
}

.resources-page-head h1,
.resource-list-head h1 {
  margin: 0 0 10px;
  font-size: 2.35rem;
  line-height: 1.14;
  font-weight: 700;
  color: var(--text);
}

.resources-page-head p,
.resource-list-head p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.resource-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.resource-search-copy h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--text);
}

.resource-search-copy p:last-child {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.85;
}

.resource-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: center;
}

.resource-search-form input,
.resource-search-form select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  padding: 0 14px;
  font-size: 0.96rem;
  box-sizing: border-box;
}

.resource-search-form button {
  height: 46px;
  border: 1px solid rgba(127, 220, 147, 0.22);
  border-radius: 12px;
  background: rgba(127, 220, 147, 0.12);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.resource-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.resource-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 22px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.resource-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel2);
}

.resource-entry-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-entry-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--text);
}

.resource-entry-card > p {
  margin: 0 0 16px;
  color: #c3ccd5;
  line-height: 1.8;
}

.resource-mini-list {
  margin: 0;
  padding-left: 18px;
  color: #c3ccd5;
  line-height: 1.8;
}

.resource-entry-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(127, 220, 147, 0.35);
  padding-bottom: 2px;
}

.resource-highlight-section {
  margin-top: 8px;
}

.resource-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-highlight-item,
.resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.resource-highlight-item h3,
.resource-item-main h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.45;
}

.resource-highlight-meta,
.resource-item-meta {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.resource-highlight-item p:last-child,
.resource-item-main p:last-child {
  margin: 0;
  color: #c3ccd5;
  line-height: 1.8;
}

.resource-highlight-item a,
.resource-item-actions a,
.resource-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.resource-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.resource-filter-link.active {
  border-color: rgba(127, 220, 147, 0.25);
  background: rgba(127, 220, 147, 0.12);
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .resource-search-panel,
  .resource-overview-grid,
  .resource-highlight-item,
  .resource-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .resources-page-head h1,
  .resource-list-head h1 {
    font-size: 2rem;
  }

  .resource-entry-card,
  .resource-search-panel,
  .resource-highlight-item,
  .resource-item {
    padding: 18px;
  }
}


























/* ===== News page ===== */
.news-page-section {
  padding: 18px 0 20px;
}

.news-page-head {
  max-width: 1080px;
  margin: 0 auto 24px;
}

.news-page-head h1 {
  margin: 0 0 10px;
  font-size: 2.45rem;
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
}

.news-page-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.news-page-layout {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
}

.news-main-list {
  min-width: 0;
  border-top: 1px solid var(--border);
}

.news-sidebar,
.sidebar-box {
  display: none;
}

.news-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 22px;
  padding: 14px 6px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

.news-post:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  box-shadow: none;
}

.news-post-date {
  order: 2;
  justify-self: end;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  display: block;
  text-align: right;
  font-size: 0.96rem;
  line-height: 1.6;
}

.news-post-date span,
.news-post-date small {
  display: inline;
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.news-post-date span::after {
  content: '.';
  margin: 0 2px;
}

.news-post-body {
  order: 1;
  min-width: 0;
}

.news-post-meta,
.news-post-body p,
.news-readmore {
  display: none;
}

.news-post-body h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 600;
  color: #ffffff;
}

.news-post-body h2 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-post-body h2 a:hover {
  color: var(--primary);
}

.news-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 18px;
  margin-top: 18px;
}

.page-btn {
  min-width: 42px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: var(--panel);
  color: #d7dee6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.page-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--panel2);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.page-btn.active {
  background: rgba(127, 220, 147, 0.10);
  color: var(--primary);
  border-color: rgba(127, 220, 147, 0.20);
}

.page-btn.next {
  padding: 0 16px;
}

@media (max-width: 760px) {
  .news-page-head h1 {
    font-size: 2rem;
  }

  .news-post {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 2px;
  }

  .news-post-date {
    justify-self: start;
    text-align: left;
  }

  .news-post-body h2 {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ===== Global tonal cleanup ===== */
.card-block,
.research-block,
.research-overview-card,
.research-sidebar-box,
.sidebar-box,
.research-sidebar-box,
.pi-card,
.member-card,
.pub-item,
.achievement-card,
.prof-profile-card,
.contact-card,
.resource-card,
.gallery-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
}

.card-block:hover,
.research-block:hover,
.research-overview-card:hover,
.pi-card:hover,
.member-card:hover,
.pub-item:hover,
.achievement-card:hover,
.prof-profile-card:hover,
.contact-card:hover,
.resource-card:hover,
.gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-sm);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: stretch;
}

.about-layout > * {
  min-width: 0;
}

.container.about-layout.card-block,
.home-about-block {
  padding: 28px;
  border-radius: 20px;
}

.about-text {
  min-width: 0;
}

.about-text p {
  color: #c3ccd5;
}

.about-image {
  width: 100%;
  min-width: 0;
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, #1f1f1f 0%, #181818 100%);
  color: rgba(255,255,255,0.38);
  background-clip: padding-box;
}

.about-image:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
  transform: none;
}

/* Keep page illustrations neutral rather than green-tinted */
.research-overview-image,
.research-overview-card-image,
.pi-photo,
.member-photo,
.prof-profile-photo,
.achievement-cover,
.gallery-cover,
.contact-map,
.resource-cover {
  background: linear-gradient(135deg, #1b232c 0%, #161c23 100%);
  color: rgba(255,255,255,0.38);
}

.research-overview-text p,
.research-pub-item p,
.people-page-head p,
.prof-profile-text p,
.achievement-card p,
.pub-item p,
.contact-card p,
.resource-card p,
.gallery-card p {
  color: #c3ccd5;
}

@media (max-width: 980px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ===== Shared utility controls ===== */
.utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  color: #f0f0f0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease;
}

.utility-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  background: #111;
}

.lang-toggle {
  min-width: 52px;
}

.nav-toggle,
.submenu-toggle {
  display: none;
}

.submenu-toggle {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171717;
  color: var(--text);
  cursor: pointer;
}

/* ===== Mobile navigation ===== */
@media (max-width: 980px) {
  .utility-inner {
    flex-wrap: wrap;
  }

  .utility-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-search {
    flex: 1 1 260px;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .header-search-results {
    left: 0;
    right: 0;
    width: auto;
  }

  html.js-enabled .nav-toggle {
    display: inline-flex;
  }

  html.js-enabled .main-nav-wrap {
    max-height: 0;
    overflow: hidden;
    border-bottom: 0;
    transition: max-height 0.28s ease;
  }

  html.js-enabled .site-header.nav-open .main-nav-wrap {
    max-height: 78vh;
    border-bottom: 1px solid var(--border);
    overflow: auto;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 12px 0 16px;
    overflow: visible;
  }

  .nav-item {
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
  }

  html.js-enabled .nav-item > .nav-link {
    width: calc(100% - 44px);
  }

  html.js-enabled .submenu-toggle {
    display: inline-flex;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: block;
  }

  html.js-enabled .dropdown-menu {
    display: none;
  }

  html.js-enabled .nav-item.submenu-open .dropdown-menu {
    display: block;
  }

  .nav-item:hover .dropdown-menu {
    transform: none;
  }
}

@media (max-width: 760px) {
  .header-search {
    flex-basis: 100%;
  }
}

/* ===== Search page ===== */
.search-page-section {
  min-height: 48vh;
  padding: clamp(72px, 12vh, 128px) 0 64px;
}

body.search-has-results .search-page-section {
  min-height: 0;
  padding: 22px 0 42px;
}

.search-panel {
  padding: 18px;
  max-width: 760px;
  margin: 0 auto 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

body.search-has-results .search-panel {
  max-width: none;
}

.search-panel-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-panel-main input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: #151515;
  color: var(--text);
  font-size: 0.98rem;
}

.search-panel-main input::placeholder {
  color: #7d8894;
}

.search-panel-actions {
  display: flex;
  align-items: center;
}

.search-panel-btn {
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: #1a1a1a;
  color: #e9eef2;
  font-size: 0.95rem;
  cursor: pointer;
}

.search-panel-btn.primary {
  color: var(--primary);
  border-color: rgba(127, 220, 147, 0.24);
  background: rgba(127, 220, 147, 0.10);
}

.search-results-view[hidden],
.search-panel-btn[hidden] {
  display: none;
}

.search-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: #171717;
  color: #d7dee6;
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(127, 220, 147, 0.10);
  color: var(--primary);
  border-color: rgba(127, 220, 147, 0.20);
}

.search-results-head {
  margin-bottom: 14px;
}

.search-results-head h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.search-result-item {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.search-result-meta {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.search-result-item h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.search-result-item h3 a {
  color: #ffffff;
  text-decoration: none;
}

.search-result-item p {
  margin: 0 0 14px;
  color: #c3ccd5;
  line-height: 1.72;
  font-size: 0.95rem;
}

.search-result-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: #c3ccd5;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

@media (max-width: 760px) {
  .search-panel-main {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel-actions {
    justify-content: stretch;
  }

  .search-panel-btn {
    flex: 1;
  }
}
