@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/BeVietnamPro-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/BeVietnamPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/BeVietnamPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/BeVietnamPro-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --site-primary: #243b7b;
  --site-primary-rgb: 36, 59, 123;
  --site-accent: #d86b35;
  --site-ink: #182033;
  --site-muted: #667085;
  --site-surface: #f5f7fb;
  --site-border: #e3e7ef;
  --site-radius: 1rem;
  --site-shadow: 0 18px 48px rgba(26, 39, 75, 0.09);
}

[data-bs-theme="dark"] {
  --site-primary: #91a8ff;
  --site-primary-rgb: 145, 168, 255;
  --site-accent: #f3a06f;
  --site-ink: #f1f4fb;
  --site-muted: #aeb8cc;
  --site-surface: #141a27;
  --site-border: #2a3448;
  --site-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--site-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--site-primary-rgb), 0.09), transparent 26rem),
    var(--bs-body-bg);
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--site-primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--site-accent);
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1100;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--site-primary);
}

.skip-link:focus {
  top: 1rem;
}

.site-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.82);
  background: #172a5b;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-navbar {
  border-bottom: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.site-navbar .navbar-brand {
  color: var(--site-ink);
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 0.78rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(36, 59, 123, 0.22);
}

.brand-mark img {
  position: absolute;
  top: -1.15rem;
  left: -0.94rem;
  width: 5.625rem;
  max-width: none;
  height: 5.625rem;
  object-fit: contain;
}

.brand-mark-main {
  width: 3.5rem;
  height: 3.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark-main img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.language-toggle {
  display: inline-flex;
  min-width: 3.9rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0 0.65rem;
  color: var(--site-ink);
  background: var(--bs-body-bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(var(--site-primary-rgb), 0.5);
  color: var(--site-primary);
}

.language-toggle [aria-current="true"] {
  color: var(--site-primary);
}

.brand-copy {
  line-height: 1.15;
}

.brand-copy small {
  display: block;
  color: var(--site-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-navbar .nav-link {
  position: relative;
  color: var(--site-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--site-primary);
}

.site-navbar .nav-link.active::after {
  position: absolute;
  right: 0.6rem;
  bottom: 0.15rem;
  left: 0.6rem;
  height: 2px;
  border-radius: 10px;
  background: var(--site-accent);
  content: "";
}

.theme-toggle {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--site-border);
  border-radius: 50%;
  color: var(--site-ink);
  background: var(--bs-body-bg);
}

.hero {
  padding: 5rem 0 4.25rem;
}

.profile-photo-wrap {
  position: relative;
  width: min(20rem, 78vw);
  margin-inline: auto;
}

.profile-photo-wrap::before {
  position: absolute;
  inset: 8% -5% -5% 11%;
  z-index: -1;
  border-radius: 48% 52% 44% 56%;
  background: rgba(var(--site-primary-rgb), 0.1);
  content: "";
  transform: rotate(-7deg);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  border: 0.6rem solid var(--bs-body-bg);
  border-radius: 50%;
  box-shadow: var(--site-shadow);
  object-fit: cover;
}

.availability-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: var(--site-muted);
  background: var(--bs-body-bg);
  font-size: 0.78rem;
  font-weight: 600;
}

.availability-pill {
  position: absolute;
  right: -0.5rem;
  bottom: 1.5rem;
  box-shadow: var(--site-shadow);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #24a067;
  box-shadow: 0 0 0 4px rgba(36, 160, 103, 0.12);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--site-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.display-title {
    max-width: 17ch;
    margin-bottom: 1rem;
    font-size: clamp(2.1rem, 4.5vw, 4rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.lead-copy {
  max-width: 42rem;
  color: var(--site-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.btn-brand {
  border-color: var(--site-primary);
  color: #fff;
  background: var(--site-primary);
}

.btn-brand:hover,
.btn-brand:focus {
  border-color: var(--site-accent);
  color: #fff;
  background: var(--site-accent);
}

.btn-soft {
  border-color: rgba(var(--site-primary-rgb), 0.13);
  color: var(--site-primary);
  background: rgba(var(--site-primary-rgb), 0.08);
}

.btn-soft:hover {
  border-color: rgba(var(--site-primary-rgb), 0.2);
  color: var(--site-primary);
  background: rgba(var(--site-primary-rgb), 0.14);
}

.metric-strip {
  margin-top: 3.5rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--bs-body-bg);
  box-shadow: var(--site-shadow);
}

.metric {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.metric + .metric {
  border-left: 1px solid var(--site-border);
}

.metric strong {
  display: block;
  color: var(--site-primary);
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.metric span {
  color: var(--site-muted);
  font-size: 0.78rem;
}

.section-space {
  padding: 4.5rem 0;
}

.section-soft {
  border-block: 1px solid var(--site-border);
  background: var(--site-surface);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-intro {
  margin-bottom: 0;
  color: var(--site-muted);
}

.academic-card {
  height: 100%;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--bs-body-bg);
  box-shadow: 0 8px 26px rgba(26, 39, 75, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.academic-card:hover {
  border-color: rgba(var(--site-primary-rgb), 0.28);
  box-shadow: var(--site-shadow);
  transform: translateY(-3px);
}

.card-kicker {
  color: var(--site-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--site-primary-rgb), 0.12);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: var(--site-primary);
  background: rgba(var(--site-primary-rgb), 0.07);
  font-size: 0.74rem;
  font-weight: 650;
}

.publication-item {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--site-border);
}

.publication-item:last-child {
  border-bottom: 1px solid var(--site-border);
}

.publication-index {
  color: rgba(var(--site-primary-rgb), 0.46);
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.publication-title {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  font-weight: 720;
  line-height: 1.45;
}

.publication-meta {
  margin-bottom: 0;
  color: var(--site-muted);
  font-size: 0.84rem;
}

.profile-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
}

.profile-list dt {
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-list dd {
  margin: 0;
  font-weight: 600;
}

.notice-card {
  border: 1px solid rgba(var(--site-primary-rgb), 0.15);
  border-radius: var(--site-radius);
  background: linear-gradient(145deg, rgba(var(--site-primary-rgb), 0.1), rgba(216, 107, 53, 0.08));
}

.course-code {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--site-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-title {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.filter-panel {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--bs-body-bg);
}

.form-control,
.form-select {
  border-color: var(--site-border);
  border-radius: 0.7rem;
  background-color: var(--bs-body-bg);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--site-primary-rgb), 0.55);
  box-shadow: 0 0 0 0.2rem rgba(var(--site-primary-rgb), 0.1);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  position: absolute;
  top: 0.55rem;
  bottom: 0.5rem;
  left: 0.35rem;
  width: 1px;
  background: var(--site-border);
  content: "";
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.42rem;
  left: -2rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 3px solid var(--bs-body-bg);
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 0 1px var(--site-accent);
  content: "";
}

.article-body {
  max-width: 48rem;
  margin-inline: auto;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.article-body blockquote {
  margin: 2rem 0;
  border-left: 4px solid var(--site-accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--site-muted);
  font-size: 1.25rem;
  font-style: italic;
}

.empty-state {
  display: none;
  border: 1px dashed var(--site-border);
  border-radius: var(--site-radius);
  padding: 2.5rem;
  color: var(--site-muted);
  text-align: center;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--site-border);
  background: var(--site-surface);
}

.footer-name {
  color: var(--site-ink);
  font-weight: 700;
}

.text-muted-site {
  color: var(--site-muted) !important;
}

@media (max-width: 991.98px) {
  .site-navbar .nav-link.active::after {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .display-title {
    max-width: none;
  }

  .metric + .metric {
    border-left: 0;
    border-top: 1px solid var(--site-border);
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .site-topbar {
    display: none;
  }

  .site-navbar .container {
    --bs-gutter-x: 1rem;
  }

  .site-navbar .navbar-brand {
    margin-right: 0.25rem;
  }

  .brand-copy {
    font-size: 0.85rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark-main {
    width: 3.1rem;
    height: 3.25rem;
  }

  .theme-toggle,
  .language-toggle {
    height: 2.2rem;
  }

  .theme-toggle {
    width: 2.2rem;
  }

  .language-toggle {
    min-width: 3.25rem;
    padding-inline: 0.45rem;
  }

  .site-navbar .navbar-toggler {
    padding: 0.25rem;
  }

  .hero,
  .section-space {
    padding-block: 3.25rem;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .availability-pill {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
