:root {
  --ku-crimson: #8b0029;
  --ku-crimson-dark: #6f0021;
  --ink: #1f1f22;
  --muted: #5f5b58;
  --line: #d9d1cc;
  --bg: #f5f2f0;
  --bg-soft: #ece7e4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7f4f2;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 37px;
  height: auto;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.85rem;
}

.accent {
  color: var(--ku-crimson);
}

#nav-toggle,
.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: #2e2c2a;
  font-size: 1.12rem;
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--ku-crimson);
}

.main-nav a.active {
  color: var(--ku-crimson);
  border-bottom-color: var(--ku-crimson);
}

.hero {
  background: linear-gradient(180deg, #f9f6f4 0%, #f5f2f0 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  background: linear-gradient(180deg, #f9f6f4 0%, #f5f2f0 100%);
  border-bottom: 0;
  padding: 2.2rem 0 0.6rem;
}

.page-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.members-message {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 2.4rem 0 0;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2.8rem 0 2.4rem;
}

.eyebrow {
  color: var(--ku-crimson);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--ku-crimson);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}

.btn:hover {
  background: var(--ku-crimson-dark);
}

.highlight-card,
.panel,
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.highlight-card h2 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.highlight-card {
  width: min(760px, 100%);
  text-align: left;
  margin-top: 0.25rem;
}

.highlight-card p {
  margin: 0;
}

.home-title {
  margin: 0.2rem 0 0.35rem;
}

.home-hero .hero-grid {
  position: relative;
  min-height: calc(100vh - 72px);
  justify-content: center;
  padding: 0;
}

.home-hero .hero-grid > div {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 100%);
}

.home-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0;
  font-weight: 600;
}

.home-recruit {
  position: absolute;
  left: 50%;
  bottom: 20pt;
  transform: translateX(-50%);
  margin: 0;
  width: min(980px, 100%);
  font-size: 15pt;
  line-height: 1.5;
  text-align: center;
}

.home-recruit a {
  color: var(--ku-crimson);
  font-weight: 700;
}

.section {
  padding: 3rem 0;
}

.page-hero + .section {
  padding-top: 0.6rem;
}

.section.alt {
  background: var(--bg-soft);
}

.prof-profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.35rem;
  align-items: center;
}

.prof-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f0ece9;
}

.prof-meta {
  color: var(--muted);
  margin: 0.15rem 0;
  font-size: 14pt;
}

.prof-profile-card h3 {
  font-size: 16pt;
  margin-bottom: 0.5rem;
}

.prof-contact-list {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
}

.prof-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: #2f2a28;
  font-size: 14pt;
}

.prof-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-icon-svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.plain-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.plain-link:hover,
.plain-link:focus {
  color: inherit;
  text-decoration: none;
}

.prof-section-block {
  margin-top: 2rem;
}

.prof-section-title {
  color: var(--ku-crimson);
  font-size: 18pt;
  margin-bottom: 0.75rem;
}

.timeline {
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.timeline-item {
  margin-bottom: 1.15rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.timeline-detail {
  margin: 0;
  padding-left: 1.15rem;
}

.timeline-detail li {
  margin-bottom: 0.28rem;
}

.prof-bullets {
  margin: 0;
  padding-left: 1.2rem;
}

.prof-bullets li {
  margin-bottom: 0.45rem;
}

.research-text {
  text-align: justify;
  text-justify: inter-word;
  font-size: 1rem;
  line-height: 1.6;
}

.research-text p {
  margin: 0 0 1rem;
}

.research-text p:last-child {
  margin-bottom: 0;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.contact-info-list li:last-child {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-map-wrap {
  margin-top: 0;
}

.contact-map {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.courses-list {
  margin: 0;
  padding-left: 1.2rem;
}

.courses-list li {
  margin-bottom: 0.4rem;
}

.courses-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8rem 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card p {
  margin: 0.2rem 0;
}

.card small {
  color: var(--muted);
}

.pub-list,
.news-list {
  margin: 0;
  padding-left: 1.1rem;
}

.pub-list li,
.news-list li {
  margin-bottom: 0.6rem;
}

.pub-list li {
  text-align: justify !important;
  text-justify: inter-word;
  line-height: 1.6;
  hyphens: auto;
}

.pub-list a {
  color: var(--ku-crimson);
  font-weight: 700;
}

.pub-list a:hover {
  color: var(--ku-crimson-dark);
}

.pub-note {
  margin: 0.1rem 0 0.8rem;
  text-align: right;
  font-size: 0.95rem;
  color: var(--muted);
}

.award-text {
  color: var(--ku-crimson);
  font-weight: 700;
}

.news-list time {
  font-weight: 700;
  color: var(--ku-crimson);
  margin-right: 0.5rem;
}

.news-sublist {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.news-sublist li {
  margin-bottom: 0.35rem;
}

.news-sublist li:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 2px solid var(--ku-crimson);
  padding: 1.1rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .prof-profile-card {
    grid-template-columns: 1fr;
  }

  .prof-photo {
    width: 220px;
    height: 280px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 0.35rem 0.7rem;
    border-radius: 7px;
    font-size: 0.92rem;
    cursor: pointer;
  }

.main-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #f7f4f2;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a {
    padding: 0.8rem 4vw;
    border-top: 1px solid var(--line);
  }

  #nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .home-hero .hero-grid {
    min-height: auto;
    padding: 2rem 0;
    position: static;
  }

  .home-hero .hero-grid > div {
    position: static;
    transform: none;
    width: 100%;
  }

  .home-subtitle {
    font-size: 1.05rem;
  }

  .home-recruit {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 2.1rem;
    font-size: 12.5pt;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map-wrap {
    margin-top: 0.6rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
