:root {
  --brand: #00246a;   /* SCL 로고 남색 — 헤더·푸터 배경 */
  --navy: #00246a;
  --navy-dark: #001845;
  --accent: #2d6cb5;
  --text: #26303a;
  --muted: #64707c;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* header — 원 사이트처럼 흰 배경, 풀컬러 로고 */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.brand { display: block; }
.brand img { height: 68px; display: block; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.2rem; list-style: none; }
.site-header ul a {
  color: var(--navy-dark); text-decoration: none; font-size: 1.08rem; font-weight: 500;
  padding: 0.55rem 1rem; border-radius: 4px;
}
.site-header ul a:hover { background: var(--bg-alt); }
.site-header ul a.active { background: var(--brand); color: #fff; font-weight: 600; }

/* hero (home) — 이미지 전체가 보이도록 원본 비율 유지 */
.hero { padding-top: 1.8rem; }
.hero img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* content */
main.page { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.home-section { padding: 2.5rem 0; }
.home-section.alt { background: var(--bg-alt); }

h1 { color: var(--navy); font-size: 1.9rem; margin-bottom: 1.2rem; }
h2 { color: var(--navy); font-size: 1.4rem; margin: 2.2rem 0 0.9rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--line); }
h3 { color: var(--navy-dark); font-size: 1.12rem; margin: 1.6rem 0 0.5rem; }
p { margin-bottom: 0.9rem; }
a { color: var(--accent); }
ul, ol { margin: 0 0 1rem 1.3rem; }
li { margin-bottom: 0.45rem; }
main img { max-width: 100%; }

/* news */
.news-list { list-style: none; margin-left: 0; }
.news-list li {
  display: flex; gap: 0.9rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.news-date { flex: 0 0 5.5rem; color: var(--muted); font-size: 0.88rem; white-space: nowrap; padding-top: 0.12rem; }

/* research */
.research-area { display: flex; gap: 1.4rem; align-items: center; margin: 1.1rem 0; }
.research-area img { flex: 0 0 150px; width: 150px; height: 150px; min-width: 150px; min-height: 150px; object-fit: contain; }
.research-area.lg-icon img { flex-basis: 170px; width: 170px; height: 170px; min-width: 170px; min-height: 170px; }
.research-area h3 { margin-top: 0; }
.project-list li.done { color: var(--muted); }

/* profile (professor) */
.profile { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.profile img.portrait { flex: 0 0 200px; width: 200px; border-radius: 6px; }
.profile .bio { flex: 1 1 320px; }
.profile .bio h1 { margin-bottom: 0.3rem; }
.profile .bio .role { color: var(--muted); margin-bottom: 0.2rem; }
.scholar-badge img { height: 26px; margin-top: 0.6rem; }

/* members — 한 명씩 세로로, 사진은 옆에 */
.member-grid {
  display: flex; flex-direction: column; gap: 1.6rem; margin: 1.2rem 0 2rem;
}
.member-card {
  display: flex; gap: 1.6rem; align-items: flex-start;
  padding-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}
.member-card img {
  flex: 0 0 140px; width: 140px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 6px; display: block;
}
.member-card .info { padding-top: 0.1rem; }
.member-card .name { font-weight: 700; font-size: 1.1rem; color: var(--navy-dark); }
.member-card .position { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.member-card .topic { font-size: 0.92rem; margin-bottom: 0.4rem; }
.member-card .email { font-size: 0.88rem; word-break: break-all; }
.alumni-list li { margin-bottom: 0.8rem; }
.alumni-list .position { color: var(--muted); }

/* footer */
.site-footer {
  background: var(--brand); color: rgba(255,255,255,0.92);
  margin-top: 0; padding: 2.2rem 0; font-size: 0.88rem; text-align: center;
}
.site-footer a { color: #fff; }
.footer-logo { height: 72px; margin-bottom: 1rem; }
.site-footer .copyright { margin-top: 0.8rem; color: rgba(255,255,255,0.55); }
.site-footer p { margin-bottom: 0.3rem; }

@media (max-width: 640px) {
  /* 내비게이션: 줄바꿈 대신 한 줄 가로 스크롤 */
  .site-header nav { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .site-header ul {
    flex-wrap: nowrap; overflow-x: auto; max-width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .site-header ul::-webkit-scrollbar { display: none; }
  .site-header ul a { padding: 0.4rem 0.7rem; font-size: 0.96rem; white-space: nowrap; }
  .brand img { height: 52px; }
  .news-list li { flex-direction: column; gap: 0.1rem; }
  /* 연구분야: 아이콘을 위로, 세로 배치 */
  .research-area { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .research-area img { flex: none; width: 140px; height: 140px; min-width: 140px; min-height: 140px; }
  .profile { gap: 1.2rem; }
  .profile img.portrait { flex-basis: 160px; width: 160px; }
  .footer-logo { height: 56px; max-width: 90%; object-fit: contain; }
  .member-card { flex-direction: column; gap: 0.8rem; }
  .member-card img { flex: none; width: 130px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}
