.research-page {
  position: relative;
  min-height: 100vh;
}
.research-container {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
}
/* =========================
   Hero
========================= */
.research-hero {
  padding: 120px 0 90px;
  background:         radial-gradient(             circle at 70% 20%,             rgba(139, 92, 246, 0.18),             transparent 35%         ),         linear-gradient(             180deg,             rgba(99, 102, 241, 0.06),             transparent         );
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
}
.research-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.research-hero h1 {
  margin: 24px 0;
  color: #f8fafc;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.95;
  letter-spacing: -5px;
}
.research-hero p {
  max-width: 900px;
  color: #a5afc2;
  font-size: 21px;
  line-height: 1.8;
}
/* =========================
   Section navigation
========================= */
.research-jump {
  position: sticky;
  top: 4px;
  z-index: 90;
  background: rgba(4, 4, 15, 0.96);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.research-jump__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.research-jump__inner::-webkit-scrollbar {
  display: none;
}
.research-jump a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #9ca7bb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:         color 0.25s ease,         background-color 0.25s ease;
}
.research-jump a:hover, .research-jump a.is-active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.16);
}
/* =========================
   Sections
========================= */
.research-content {
  padding: 45px 0 120px;
}
.research-section {
  padding: 70px 0;
  border-bottom: 1px solid rgba(129, 140, 248, 0.1);
  scroll-margin-top: 154px;
}
.research-section__heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 38px;
}
.research-section__heading > span {
  padding-top: 8px;
  color: #8b5cf6;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}
.research-section__heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;
}
.research-section__heading p {
  margin-top: 10px;
  color: #7f8a9f;
  font-size: 16px;
  line-height: 1.7;
}
/* =========================
   Shared cards
========================= */
.research-card, .research-center-card, .research-id-card, .research-list-card, .research-project, .research-book {
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 22px;
  background:         linear-gradient(             145deg,             rgba(15, 15, 38, 0.8),             rgba(8, 8, 22, 0.68)         );
  transition:         transform 0.3s ease,         border-color 0.3s ease,         box-shadow 0.3s ease;
}
.research-card:hover, .research-center-card:hover, .research-id-card:hover, .research-project:hover, .research-book:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 22px 55px rgba(30, 20, 80, 0.25);
}
.research-card h3, .research-center-card h3, .research-visit h3, .research-project h3, .research-book h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}
.research-card p, .research-center-card p, .research-project p {
  margin-top: 12px;
  color: #94a3b8;
  line-height: 1.75;
}
/* =========================
   Research interests
========================= */
.research-interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.research-card {
  min-width: 0;
  padding: 32px;
}
/* =========================
   Research centers
========================= */
.research-center-grid {
  display: grid;
  gap: 20px;
}
/*
   Important fix:
   The card uses one full-width column by default.
   A separate logo column is created only when an image exists.
*/
.research-center-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: 100%;
  min-width: 0;
  padding: 32px;
}
.research-center-card:has(img) {
  grid-template-columns: 110px minmax(0, 1fr);
}
.research-center-card > * {
  min-width: 0;
}
.research-center-card img {
  width: 110px;
  height: 110px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
}
.research-center-card h3 {
  max-width: 1014px;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.research-center-card p {
  max-width: 950px;
  font-size: 16px;
}
.research-center-card a, .research-links a, .research-book a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  color: #a78bfa;
  font-weight: 700;
  text-decoration: none;
}
.research-center-card a:hover, .research-links a:hover, .research-book a:hover {
  color: #c4b5fd;
}
.research-meta {
  color: #7dd3fc !important;
  font-size: 14px;
  line-height: 1.7;
}
/* =========================
   Visits timeline
========================= */
.research-timeline {
  position: relative;
  margin-left: 22px;
  padding-left: 48px;
}
.research-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background:         linear-gradient(             #8b5cf6,             rgba(139, 92, 246, 0.05)         );
  content: "";
}
.research-visit {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 42px;
}
.research-visit::before {
  position: absolute;
  top: 8px;
  left: -47px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 20px #8b5cf6;
  content: "";
}
.research-visit__date {
  color: #c4b5fd;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}
.research-visit__date small {
  display: block;
  margin-top: 5px;
  color: #64748b;
}
.research-visit__body {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 18px;
  background: rgba(10, 10, 27, 0.58);
}
.research-visit__image {
  width: 100%;
  max-height: 280px;
  margin-bottom: 20px;
  border-radius: 14px;
  object-fit: cover;
}
.research-rich {
  margin-top: 13px;
  color: #9aa5b8;
  line-height: 1.75;
}
.research-chip {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
}
/* =========================
   Links and buttons
========================= */
.research-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.research-action {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: #a78bfa;
  font-weight: 800;
  text-decoration: none;
}
.research-action:hover {
  color: #c4b5fd;
}
.research-links--buttons a {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  transition:         color 0.25s ease,         background-color 0.25s ease,         border-color 0.25s ease;
}
.research-links--buttons a:hover {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.18);
}
/* =========================
   IDs and profiles
========================= */
.research-id-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.research-id-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 22px;
  text-decoration: none;
}
.research-id-card > span {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  font-weight: 900;
}
.research-id-card small {
  display: block;
  color: #64748b;
}
.research-id-card strong {
  display: block;
  margin-top: 4px;
  color: #f1f5f9;
  overflow-wrap: anywhere;
}
/* =========================
   Editorial and referee
========================= */
.research-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.research-subheading {
  margin-bottom: 16px;
  color: #c4b5fd;
  font-size: 20px;
}
.research-list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 24px;
}
.research-list-card strong {
  display: block;
  color: #f1f5f9;
  font-size: 18px;
}
.research-list-card span {
  display: inline-flex;
  margin-top: 10px;
  color: #67e8f9;
}
.research-list-card a {
  text-decoration: none;
}
.research-journal-logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}
.research-journal-list {
  display: grid;
  gap: 10px;
}
.research-journal-list a, .research-journal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 13px;
  background: rgba(10, 10, 27, 0.62);
  color: #aab3c5;
  text-decoration: none;
}
.research-journal-list a:hover {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.45);
}
.research-journal-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.research-journal-name img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
}
/* =========================
   Projects
========================= */
.research-projects {
  display: grid;
  gap: 14px;
}
.research-project {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
  padding: 25px;
}
.research-project__number {
  color: #8b5cf6;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 800;
}
.research-project__meta, .research-book__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.research-project__meta span, .research-book__facts span {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  font-size: 11px;
}
/* =========================
   Books
========================= */
.research-books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.research-book {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.research-book img, .research-book__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  flex-shrink: 0;
}
.research-book__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2a2250, #0d0d22);
  color: #c4b5fd;
  font-size: 42px;
  font-weight: 900;
}
.research-book__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.research-book__body p {
  margin-top: 10px;
  color: #7f8a9e;
  line-height: 1.6;
  flex: 1;
}
.research-book__facts {
  margin-top: 14px;
}
.research-book__body .research-action {
  margin-top: auto;
  align-self: flex-start;
}
/* =========================
   Responsive
========================= */
@media (max-width: 1000px) {
  .research-container {
    width: min(calc(100% - 36px), 1480px);
  }
  .research-id-grid,     .research-books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .research-interest-grid,     .research-two-columns {
    grid-template-columns: 1fr;
  }
  .research-center-card:has(img) {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .research-center-card img {
    width: 90px;
    height: 90px;
  }
  .research-visit {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .research-container {
    width: min(calc(100% - 28px), 1480px);
  }
  .research-hero {
    padding: 80px 0 60px;
  }
  .research-hero h1 {
    letter-spacing: -2px;
  }
  .research-hero p {
    font-size: 17px;
  }
  .research-jump {
    top: 66px;
  }
  .research-section {
    padding: 50px 0;
    scroll-margin-top: 142px;
  }
  .research-section__heading {
    grid-template-columns: 1fr;
  }
  .research-section__heading > span {
    display: none;
  }
  .research-section__heading h2 {
    letter-spacing: -1px;
  }
  .research-id-grid,     .research-books {
    grid-template-columns: 1fr;
  }
  .research-center-card,     .research-center-card:has(img) {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .research-center-card img {
    width: 100px;
    height: 100px;
  }
  .research-center-card h3 {
    font-size: 25px;
  }
  .research-timeline {
    margin-left: 0;
    padding-left: 28px;
  }
  .research-visit::before {
    left: -27px;
  }
  .research-visit__body {
    padding: 20px;
  }
  .research-project {
    grid-template-columns: 1fr;
  }
  .research-journal-list a,     .research-journal-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
