:root {
  --lab-bg: #f6f8fb;
  --lab-surface: #ffffff;
  --lab-border: #dde3ec;
  --lab-text: #1f2937;
  --lab-muted: #5f6b7a;
  --lab-primary: #0f4c81;
  --lab-primary-strong: #0c3a62;
  --lab-ring: rgba(15, 76, 129, 0.18);
  --lab-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

body {
  color: var(--lab-text);
  line-height: 1.72;
}

h1, h2, h3, h4 {
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 1.45rem + 2vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-top: 2.25rem;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

p, li {
  font-size: 1rem;
}

main section {
  margin-top: 2.25rem;
}

main section:first-child {
  margin-top: 0;
}

a {
  color: var(--lab-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--lab-primary-strong);
}

.btn,
.btn-primary {
  border-radius: 10px;
  font-weight: 600;
  border-color: var(--lab-primary);
  background: var(--lab-primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.btn-primary:hover {
  background: var(--lab-primary-strong);
  border-color: var(--lab-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--lab-ring);
}

.btn:focus,
.btn-primary:focus,
a:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--lab-ring);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1.75rem;
}

.card-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card,
.person-card,
.profile-card,
.cta-block {
  border: 1px solid var(--lab-border);
  border-radius: 14px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow);
}

.info-card,
.person-card,
.profile-card,
.cta-block,
.news-item {
  text-align: left !important;
  text-justify: auto;
}

.info-card,
.person-card,
.cta-block {
  padding: 1rem 1.1rem;
}

.info-card h3,
.person-card h3 {
  text-align: left !important;
  margin-bottom: 0.55rem;
}

.card-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border: 1px solid #e1e7f0;
}

.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.person-card img,
.profile-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.person-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  margin-bottom: 0.8rem;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.person-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
}

.profile-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: start;
  padding: 1rem;
}

.person-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.person-name .name-ko {
  white-space: nowrap;
  color: var(--lab-muted);
  font-size: 0.95em;
}

.news-item {
  border-bottom: 1px solid var(--lab-border);
  padding: 1rem 0;
}

.news-meta {
  color: var(--lab-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-block;
  border: 1px solid #ccd7e6;
  border-radius: 999px;
  padding: 0.26rem 0.78rem;
  background: #f8fbff;
  font-size: 0.88rem;
  color: #334155;
}

.cta-block {
  margin-top: 1rem;
  background: linear-gradient(160deg, #f2f8ff 0%, #ffffff 100%);
}

.page-heading hr.small {
  border-color: #cdd7e6;
}

.intro-header.big-img {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0.4rem !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  min-height: clamp(220px, 28vw, 360px);
}

.intro-header.big-img .big-img-transition {
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.intro-header.big-img::before {
  display: none;
}

.intro-header.big-img .container-md {
  position: relative;
  z-index: 2;
}

.intro-header.big-img .page-heading h1,
.intro-header.big-img .page-subheading {
  color: #f3f7ff !important;
  text-shadow: 0 2px 18px rgba(7, 20, 34, 0.45);
}

.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
  padding-top: clamp(7rem, 12.8vw, 9.8rem) !important;
  padding-bottom: clamp(1rem, 2vw, 1.8rem) !important;
}

.intro-header:not(.big-img) .page-subheading {
  color: #334155;
}

.navbar-custom {
  background: rgba(248, 250, 253, 1.0);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(204, 215, 230, 0.7);
}

.navbar-custom .navbar-nav .nav-link {
  border-radius: 8px;
  margin-left: 0.25rem;
  padding: 0.34rem 0.66rem;
  font-weight: 600;
}

.navbar-custom .navbar-brand {
  padding-top: 0.38rem !important;
  padding-bottom: 0.38rem !important;
}

.navbar-custom .navbar-brand-logo img {
  height: 3rem !important;
  width: auto;
}

.navbar-custom .avatar-container .avatar-img-border,
.navbar-custom .avatar-container .avatar-img {
  border-radius: 50% !important;
}

.navbar-custom .avatar-container .avatar-img-border {
  overflow: hidden;
}

.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .nav-link[aria-current="page"] {
  color: var(--lab-primary-strong);
  background: #e9f1fb;
}

.navbar-custom .dropdown-item.active {
  color: var(--lab-primary-strong);
  background: #e9f1fb;
}

.navbar-custom .navbar-toggler {
  border: 1px solid #c8d3e2;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--lab-ring);
}

.section-nav {
  position: sticky;
  top: 78px;
  z-index: 50;
  margin: 0.5rem 0 1.25rem;
  padding: 0.5rem;
  border: 1px solid var(--lab-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(6px);
  box-shadow: var(--lab-shadow);
}

.section-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.section-nav-link {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border: 1px solid #cfdae8;
  border-radius: 999px;
  background: #f7faff;
  color: #2d3a4d;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.section-nav-link:hover {
  text-decoration: none;
  color: var(--lab-primary-strong);
  border-color: #b4c7de;
}

.section-nav-link.active {
  color: #fff;
  background: var(--lab-primary);
  border-color: var(--lab-primary);
}

@media (max-width: 1199px) {
  .navbar-custom .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.65rem;
    border: 1px solid var(--lab-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--lab-shadow);
  }

  .navbar-custom .navbar-nav .nav-link {
    margin-left: 0;
    margin-bottom: 0.22rem;
    padding: 0.52rem 0.72rem;
  }

  .navbar-custom .navbar-brand-logo img {
    height: 2.5rem !important;
  }

  .section-nav {
    top: 68px;
  }
}

@media (min-width: 1200px) {
  .intro-header.big-img {
    margin-top: 0 !important;
  }
}

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