@font-face {
  font-family: "Manrope";
  src: url("font/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F0F70;
  --navy-dark: #0a0a46;
  --blue: #1f5fa8;
  --teal: #42bea5;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1f2937;
  --muted: #5b6b7d;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Manrope", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--blue);
}

/* Header / nav */
header {
  background-color: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand .brand-en {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand .brand-kr {
  font-size: 12px;
  color: #b7c6dc;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  text-decoration: none;
  color: #dbe6f5;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

nav a.active {
  background-color: var(--teal);
  color: white;
}

#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background-image: linear-gradient(135deg, rgba(15, 15, 112, 0.7) 0%, rgba(10, 10, 70, 0.7) 100%), url("images/hero-banner.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 72px 24px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px 0;
  font-size: 40px;
}

.hero p.subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 17px;
  color: #d6e2f2;
}

.hero .affil {
  margin-top: 18px;
  font-size: 14px;
  color: #9fb6d4;
}

/* Notice banner */
.notice {
  position: relative;
  background-color: #fff7e6;
  border-bottom: 1px solid #f2d38a;
  color: #a07902;
  padding: 12px 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.notice a {
  color: #a07a08;
  text-decoration: underline;
}

.notice-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: #a07902;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.notice-close:hover {
  color: #7a5b00;
}

/* Layout sections */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

section {
  margin-bottom: 64px;
}

section:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
}

.section-head .see-all {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.section-intro {
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 28px;
}

/* Cards / grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Project list — one full-width row per project, like a career/project listing */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 16px rgba(11, 47, 82, 0.05);
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  background-color: #e6f4f1;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* Sub navigation (tabs) */
.subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.subnav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background-color: #eef3fa;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.subnav a:hover {
  background-color: #dbe6f5;
}

.subnav a.active {
  background-color: var(--teal);
  color: white;
}

/* Clickable hub cards (e.g. Member overview) */
a.card {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 47, 82, 0.1);
}

a.card .card-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

/* Clickable cards that open a popup (e.g. Research areas) */
.card.clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 47, 82, 0.1);
}

.member-dialog.wide-dialog {
  max-width: 1000px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.dialog-photo {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-height: 70vh;
  padding: 6px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 16px;
  background-color: #ffffff;
}

.dialog-photo-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-bottom: 16px;
  background-color: #dbe6f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 13px;
}

.dialog-photos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dialog-photos .dialog-photo,
.dialog-photos .dialog-photo-fallback {
  margin-bottom: 0;
}

.dialog-description {
  font-size: 14.5px;
  color: var(--text);
  margin: 8px 0 16px 0;
}

.dialog-focus {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.dialog-focus li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.dialog-focus li:last-child {
  border-bottom: none;
}

.dialog-focus .focus-label {
  color: var(--teal);
  font-weight: 700;
}

.dialog-focus li.dialog-en-title {
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

.dialog-members {
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 0;
}

.popup-dont-show {
  display: block;
  width: 100%;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
}

.popup-dont-show:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Member groups */
.member-group {
  margin-bottom: 36px;
}

.member-group h3 {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.member-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-item.clickable {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  border: 1px solid var(--border);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.member-item.clickable:hover {
  box-shadow: 0 8px 18px rgba(11, 47, 82, 0.08);
  transform: translateY(-1px);
  border-color: var(--teal);
}

/* Member detail popup */
.member-dialog {
  border: none;
  border-radius: 16px;
  padding: 28px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 45px rgba(11, 47, 82, 0.25);
}

.member-dialog::backdrop {
  background-color: rgba(8, 31, 56, 0.55);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.dialog-close:hover {
  color: var(--navy);
}

.dialog-avatar,
.dialog-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.dialog-avatar-fallback {
  background-color: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.member-dialog h3 {
  margin: 0 0 4px 0;
  text-align: center;
  color: var(--navy);
  font-size: 19px;
}

.dialog-position {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  font-size: 13.5px;
  margin: 0 0 18px 0;
}

.dialog-edu {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.dialog-edu li {
  font-size: 13.5px;
  color: var(--text);
  padding: 5px 0;
}

.avatar,
.avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.avatar {
  background-color: #dbe6f5;
}

.avatar-fallback {
  background-color: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.crown-icon {
  position: absolute; 
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: auto;
  pointer-events: none;
}

.member-item .name {
  font-weight: 700;
  color: var(--text);
}

.member-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.professor-banner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.professor-photo-lg {
  width: 260px;
  aspect-ratio: 1280 / 1592;
  height: auto;
  border-radius: 12px;
  background-color: #dbe6f5;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
  object-fit: cover;
}

.professor-basic h3 {
  margin: 0 0 4px 0;
  font-size: 24px;
  color: var(--navy);
}

.professor-basic .title {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}

.professor-basic .contact {
  font-size: 14px;
  color: var(--text);
}

.professor-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.card ul li {
  margin-bottom: 6px;
}

.card ul li:last-child {
  margin-bottom: 0;
}

/* Publications */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-id {
  font-weight: 700;
  color: var(--teal);
  margin-right: 8px;
}

.pub-note {
  color: var(--muted);
  font-size: 13.5px;
  font-style: italic;
  margin-top: 8px;
}

.pub-link {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.pub-link:hover {
  text-decoration: underline;
}

.pub-year {
  margin-bottom: 28px;
}

.pub-year h3 {
  font-size: 15px;
  color: var(--navy);
  background-color: #eef3fa;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.scholar-bar {
  background-color: #eef3fa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
}

.scholar-bar a {
  color: var(--blue);
  text-decoration: none;
}

.scholar-bar a:hover {
  text-decoration: underline;
}

/* News */
.news-month {
  margin-bottom: 28px;
}

.news-month h3 {
  font-size: 15px;
  color: var(--navy);
  background-color: #eef3fa;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  width: 78px;
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  color: white;
}

.tag-논문 { background-color: var(--blue); }
.tag-졸업 { background-color: var(--teal); }
.tag-수상 { background-color: #b8860b; }
.tag-과제 { background-color: #7a4fb5; }
.tag-입학\/진학 { background-color: #4a5a70; }
.tag-기타 { background-color: #6b7280; }

/* Gallery / generic toggle groups */
.gallery-year,
.toggle-group {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.gallery-year summary,
.toggle-group summary {
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-year summary::-webkit-details-marker,
.toggle-group summary::-webkit-details-marker {
  display: none;
}

.gallery-year summary .arrow,
.toggle-group summary .arrow {
  display: inline-block;
  color: var(--teal);
  transition: transform 0.15s ease;
}

.gallery-year[open] summary .arrow,
.toggle-group[open] summary .arrow {
  transform: rotate(90deg);
}

.toggle-group summary.section-title {
  font-size: 28px;
  font-weight: 800;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.album-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 47, 82, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 47, 82, 0.1);
}

.album-thumb,
.album-thumb-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-color: #dbe6f5;
}

.album-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.album-caption {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

/* Footer */
footer {
  padding: 36px 24px;
  text-align: center;
  background-color: var(--navy-dark);
  color: #b7c6dc;
  font-size: 13.5px;
}

footer a {
  color: #d6e2f2;
}

/* Responsive */
@media (max-width: 780px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-toggle-label {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 8px;
  }
  #nav-toggle:checked ~ nav {
    display: flex;
  }
  .hero h1 {
    font-size: 30px;
  }
  .professor-banner {
    flex-direction: column;
    text-align: center;
  }
}
