/*
  UNIST NLP Lab home design system
  Source palette: resources/images/logo.svg pixel sampling
  Primary: #003BDE, #014EE9, #0268F4
  Support: #0F94F6, #13D7F8, #D1E3F9, #FEFEFE
*/
:root {
  color-scheme: light;
  --font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --logo-blue-900: #003bde;
  --logo-blue-800: #014ee9;
  --logo-blue-700: #0268f4;
  --logo-blue-500: #0f94f6;
  --logo-cyan-400: #13d7f8;
  --logo-cyan-300: #5ef0f8;
  --logo-blue-100: #d1e3f9;
  --logo-white: #fefefe;

  --home-bg: #ffffff;
  --home-surface: #f6f9ff;
  --home-surface-strong: #eef5ff;
  --home-text: #111827;
  --home-muted: #5b6675;
  --home-panel: #ffffff;
  --home-panel-2: #f4f8ff;
  --home-line: rgba(0, 59, 222, 0.13);
  --home-primary: var(--logo-blue-900);
  --home-primary-hover: var(--logo-blue-700);
  --home-secondary: var(--logo-blue-500);
  --home-cyan: var(--logo-cyan-400);
  --home-tint: var(--logo-blue-100);
  --home-shadow: 0 18px 48px rgba(0, 59, 222, 0.10);
  --home-card-shadow: 0 10px 28px rgba(1, 78, 233, 0.08);
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --home-bg: #080d1b;
  --home-surface: #0f1730;
  --home-surface-strong: #111d3b;
  --home-text: #f7faff;
  --home-muted: #bdc9dd;
  --home-panel: #10192f;
  --home-panel-2: #142142;
  --home-line: rgba(19, 215, 248, 0.18);
  --home-primary: #91b1f4;
  --home-primary-hover: var(--logo-cyan-400);
  --home-secondary: var(--logo-cyan-400);
  --home-cyan: var(--logo-cyan-300);
  --home-tint: rgba(19, 215, 248, 0.16);
  --home-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --home-card-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: var(--font-body);
  font-feature-settings: "kern" 1;
}

body > .container,
.home-shell,
.hero-new .container {
  max-width: 1180px;
}

.hero-new {
  position: relative;
  min-height: auto;
  padding: 126px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(19, 215, 248, 0.28), transparent 24%),
    radial-gradient(circle at 16% 22%, rgba(0, 59, 222, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 78%);
}

[data-bs-theme="dark"] .hero-new {
  background:
    radial-gradient(circle at 82% 14%, rgba(19, 215, 248, 0.18), transparent 24%),
    radial-gradient(circle at 16% 22%, rgba(1, 78, 233, 0.24), transparent 30%),
    linear-gradient(180deg, #0d1530 0%, #080d1b 82%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 650px);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.hero-text h1 {
  max-width: 760px;
  margin: 0;
  color: var(--home-text);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.4vw, 3.45rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-text .hero-at {
  margin: 24px 0 18px;
  color: var(--home-primary);
  font-size: clamp(1.3rem, 2.7vw, 2.1rem);
  font-weight: 600;
}

.hero-text .hero-desc {
  max-width: 680px;
  color: var(--home-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.72;
}

.hero-photo {
  justify-self: end;
  width: min(100%, 650px);
}

.hero-photo-frame {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

[data-bs-theme="dark"] .hero-photo-frame {
  background: transparent;
}

.hero-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.home-shell {
  padding: 0 24px 84px;
}

.home-section {
  margin: 76px 0;
}

.home-section:first-child {
  margin-top: 34px;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.home-section h2,
.home-section-head h2 {
  margin: 0;
  color: var(--home-text);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0;
}

.home-section h3 {
  margin: 0 0 14px;
  color: var(--home-text);
  font-size: 1.12rem;
  font-weight: 600;
}

.home-section h4 {
  margin: 22px 0 8px;
  color: var(--home-secondary);
  font-size: 0.98rem;
  font-weight: 600;
}

.home-section-head a,
.info-panel a,
.publication-list a,
.course-grid a,
.course-grid .course-name {
  color: var(--home-primary);
  font-weight: 600;
  text-underline-offset: 0.22em;
}

.home-section-head a:hover,
.info-panel a:hover,
.publication-list a:hover,
.course-grid a:hover {
  color: var(--home-primary-hover);
}

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

.news-list li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  color: var(--home-muted);
  line-height: 1.58;
}

.news-list li + li {
  border-top: 0;
}

.news-list time {
  color: var(--home-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.news-list span {
  min-width: 0;
}

.news-list b {
  color: var(--home-text);
  font-weight: 600;
}

.overview-card,
.info-panel,
.publication-list,
.course-grid article {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.overview-card {
  padding: 0;
}

.overview-card p,
.info-panel p,
.info-panel li,
.publication-list li,
.course-grid li {
  color: var(--home-muted);
  line-height: 1.75;
}

.overview-card p:last-child,
.info-panel p:last-child {
  margin-bottom: 0;
}

.overview-card strong,
.info-panel strong,
.publication-list b {
  color: var(--home-text);
}

.theme-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.theme-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--home-muted);
  font-weight: 500;
  line-height: 1.58;
}

.theme-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--home-secondary);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.topic-list li {
  margin: 0;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--home-primary) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-primary) 7%, var(--home-panel));
  color: var(--home-text);
  font-weight: 500;
  line-height: 1.35;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
}

.info-panel {
  padding: 0;
}

.info-panel ul {
  padding-left: 1rem;
  margin-bottom: 0;
}

.content-list {
  padding-left: 0 !important;
  list-style: none;
}

.recruit-panel {
  border-left: 0;
}

.publication-list {
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
  counter-reset: pubs;
  overflow: visible;
}

.publication-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  position: relative;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.publication-list li + li {
  border-top: 1px solid color-mix(in srgb, var(--home-primary) 9%, transparent);
}

.publication-list li::before {
  counter-increment: pubs;
  content: counter(pubs, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--home-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.pub-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pub-meta {
  display: flex;
  align-items: center;
  min-height: 0;
  padding-left: 42px;
}

.pub-venue {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-primary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.pub-title {
  color: var(--home-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.pub-authors {
  color: var(--home-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.publication-list .pub-authors b {
  color: var(--home-primary);
  font-weight: 600;
}

.topic-list {
  display: grid;
  gap: 10px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-muted);
  font-weight: 500;
  line-height: 1.55;
}

.topic-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--home-secondary);
}

.course-grid article {
  padding: 0;
}

.course-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-grid li {
  padding: 11px 0;
}

.site-footer {
  border-top: 1px solid var(--home-line);
  background: var(--home-surface);
  color: var(--home-muted);
}

@media (max-width: 991px) {
  .home-shell {
    padding-inline: 18px;
  }

  .hero-new {
    padding: 108px 0 58px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text .hero-desc {
    margin-inline: auto;
  }

  .hero-photo {
    justify-self: center;
    width: min(100%, 676px);
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-text h1 {
    font-size: clamp(2.25rem, 12vw, 3.15rem);
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }

  .news-list time {
    font-size: 0.88rem;
  }

  .home-section-head {
    align-items: start;
    flex-direction: column;
  }

  .publication-list li {
    padding: 18px 0;
  }

  .publication-list li::before {
    left: 0;
    top: 17px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .pub-summary {
    gap: 7px;
  }

  .pub-meta {
    padding-left: 38px;
  }

  .hero-photo-frame {
    border-radius: 16px;
    padding: 0;
  }
}
