/* ==========================================================================
   css/style.css - 통합 스타일시트 (Noh Lab)
   ========================================================================== */
:root {
  --primary-color: #059669;
  --primary-light: #10b981;
  --primary-dark: #047857;  /* 구성원 페이지 직함·연도·과정 표기 */
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --header-h: 70px;
  --font-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: var(--font-sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 60px; padding-bottom: 60px; }
.page-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.section-desc { color: var(--text-muted); margin-bottom: 36px; font-size: 1.1rem; }

/* ---------- Header & Nav ---------- */
.header-right { display: flex; align-items: center; gap: 20px; }
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.1rem; display: block; line-height: 1.25; }
.brand-affil { font-size: 0.8rem; color: var(--text-muted); display: block; line-height: 1.25; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--primary-color); }

.nav-toggle {
  display: none; width: 42px; height: 42px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border-color); border-radius: 8px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-main); border-radius: 2px; }

.lang-btn {
  background: transparent; border: 1.5px solid var(--primary-color); color: var(--primary-color);
  padding: 4px 12px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { background: var(--primary-color); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #060913 0%, #061e19 50%, #0d2b24 100%);
  color: #fff; padding: 140px 0 110px 0; overflow: hidden; text-align: center;
}
.hero::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; max-width: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none; z-index: 1;
}
.hero-inner { position: relative; z-index: 2; }
.tagline { color: var(--primary-light); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { font-size: 2.8rem; margin: 16px 0; font-weight: 800; word-break: keep-all; }
.hero .subtitle { font-size: 1.2rem; color: #94a3b8; margin-bottom: 32px; word-break: keep-all; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; display: inline-block; transition: all 0.2s; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* ---------- Home: research summary cards ---------- */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.research-card {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
  padding: 32px; transition: all 0.25s; position: relative; overflow: hidden;
}
.research-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary-color); opacity: 0; transition: opacity 0.25s; }
.research-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08); }
.research-card:hover::before { opacity: 1; }
.research-card h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }
.research-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Home: overview sections ---------- */
.overview-section { padding: 56px 0; border-top: 1px solid var(--border-color); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.see-all-link { color: var(--primary-color); font-weight: 700; white-space: nowrap; }
.see-all-link:hover { text-decoration: underline; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.pub-preview-card {
  display: block; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
  padding: 24px; transition: all 0.2s;
}
.pub-preview-card:hover { border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 10px 18px -8px rgba(0,0,0,0.1); }
.pub-preview-card h4 { font-size: 1.02rem; line-height: 1.45; margin: 12px 0 8px; }
.pub-preview-card p { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }
.pub-year { display: inline-block; background: rgba(5, 150, 105, 0.1); color: var(--primary-color); font-weight: 800; padding: 4px 12px; border-radius: 6px; font-size: 0.9rem; }

/* ---------- Research page ---------- */
.research-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.research-item {
  background: var(--card-bg); border: 1px solid #cfe6dd; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s;
}
.research-item:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(5, 150, 105, 0.12); }
.research-img { width: 100%; height: 220px; background: linear-gradient(135deg, #d1fae5, #e0f2fe); overflow: hidden; }
.research-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.research-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.research-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.research-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }
.research-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.research-tags span {
  background: #f1f5f9; color: #475569; font-size: 0.82rem; font-weight: 600;
  padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border-color);
}

/* ---------- Publications ---------- */
.pub-sec-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-color); font-size: 1.35rem; font-weight: 800; color: var(--text-main); }
.pub-sec-count { font-size: 0.9rem; font-weight: 700; color: var(--primary-color); }
.pub-list[hidden] { display: none; }
.pub-total { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 28px; color: var(--text-muted); font-weight: 600; }
.pub-total strong { color: var(--primary-color); font-size: 1.5rem; font-weight: 800; }
.pub-number-year { font-size: 0.8rem; }
.pub-if { display: inline-block; font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); background: #ecfdf5; border-radius: 4px; padding: 1px 7px; margin-left: 4px; }
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pub-year-block { margin-top: 16px; }
.pub-year-block:first-child { margin-top: 0; }
.pub-year-group > summary { list-style: none; cursor: pointer; margin-bottom: 12px; }
.pub-year-group > summary::-webkit-details-marker { display: none; }
.pub-year-group > summary h2::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(-135deg); margin-left: auto; margin-right: 6px; transition: transform 0.2s; }
.pub-year-group:not([open]) > summary h2::after { transform: rotate(45deg); }
.pub-year-group:not([open]) > summary { margin-bottom: 0; }
.pub-year-heading h2 {
  display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 800;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-color);
}
.pub-year-count {
  font-size: 0.8rem; font-weight: 700; color: var(--primary-color);
  background: rgba(5, 150, 105, 0.1); padding: 2px 10px; border-radius: 999px;
}
.pub-item {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px;
  padding: 18px 22px; display: flex; gap: 20px; align-items: flex-start; transition: border-color 0.2s;
}
.pub-item:hover { border-color: var(--primary-color); }
.pub-number {
  flex-shrink: 0; min-width: 44px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800; font-size: 0.9rem; color: var(--primary-color);
  background: rgba(5, 150, 105, 0.1); padding: 4px 8px; border-radius: 6px;
}
.pub-details { min-width: 0; flex: 1; }
.pub-title { font-weight: 700; font-size: 1.05rem; color: var(--text-main); display: inline-block; margin-bottom: 6px; line-height: 1.45; }
a.pub-title:hover { color: var(--primary-color); text-decoration: underline; }
.pub-authors { color: var(--text-main); font-size: 0.93rem; margin-bottom: 2px; }
.pub-journal { color: var(--text-muted); font-size: 0.88rem; font-style: italic; }

/* ---------- Members ---------- */
.member-group { margin-bottom: 50px; }
.member-group h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }

.pi-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px;
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px;
  padding: 36px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}
.pi-photo { width: 100%; height: 250px; background: #e2e8f0; border-radius: 12px; overflow: hidden; }
.pi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-contact { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 0.9rem; }
.pi-contact-label { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--primary-color); margin-bottom: 3px; }
.pi-contact a { color: var(--text-main); font-weight: 600; word-break: break-word; }
.pi-contact a:hover { color: var(--primary-color); text-decoration: underline; }
.pi-contact.pi-contact-list { gap: 0; }
.pi-contact-list li { border-bottom: 1px solid var(--border-color); }
.pi-contact-list li:first-child { border-top: 1px solid var(--border-color); }
.pi-contact-list a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; font-weight: 500; }
.pi-contact-list a:hover { text-decoration: none; }
.pi-ic { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.pi-ic svg { width: 100%; height: 100%; display: block; }
.pi-ic-email { color: var(--text-muted); }
.pi-ic-orcid { color: #A6CE39; }
.pi-ic-scholar { color: #4285F4; }
.pi-ic-pubmed { color: #326599; }
.pi-header { margin-bottom: 16px; }
.pi-name { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.pi-title { color: var(--primary-dark); font-weight: 700; font-size: 1rem; }
.pi-section-title { font-weight: 700; font-size: 1rem; margin: 16px 0 6px 0; color: var(--text-main); }
.pi-title { display: block; }
.pi-affil { display: block; margin-top: 4px; color: #475569; font-weight: 700; font-size: 0.92rem; }
.pi-bio { color: #475569; font-size: 0.95rem; line-height: 1.75; margin: 4px 0 4px; }
.pi-info > .pi-section-title { margin: 26px 0 0; padding-bottom: 10px; border-bottom: 1px solid #cbd5e1; font-size: 0.95rem; }
.pi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pi-chips span { background: #f1f5f9; border: 1px solid var(--border-color); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 500; color: #334155; }
.tl-row { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border-color); }
.tl-year { color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; white-space: nowrap; padding-top: 2px; }
.tl-title { font-weight: 600; color: var(--text-main); font-size: 0.95rem; line-height: 1.5; }
.tl-sub { color: var(--text-muted); font-size: 0.86rem; margin-top: 3px; line-height: 1.5; }
.tl-one { padding: 10px 0; }
.tl-one .tl-title { font-weight: 500; }
.pi-more { margin-top: 26px; }
.pi-more summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 0.95rem; color: var(--text-main); padding-bottom: 10px; border-bottom: 1px solid #cbd5e1; display: flex; align-items: center; gap: 8px; }
.pi-more summary::-webkit-details-marker { display: none; }
.pi-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin-left: auto; margin-right: 4px; transition: transform 0.2s; }
.pi-more[open] summary::after { transform: rotate(-135deg); }
.pi-more summary:hover { color: var(--primary-dark); }
.pi-more-count { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.pi-list { list-style: none; color: var(--text-muted); font-size: 0.92rem; }
.pi-list li { position: relative; padding-left: 14px; margin-bottom: 5px; }
.pi-list li::before { content: "•"; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }
.pi-list a { color: var(--primary-color); font-weight: 700; }
.pi-timeline-date { font-weight: 600; color: var(--text-main); }

.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member-card {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
  padding: 20px 14px; text-align: center; transition: transform 0.2s;
}
.member-card:hover { transform: translateY(-4px); }
.member-photo {
  width: 110px; height: 130px; margin: 0 auto 16px auto; background: #e2e8f0; border-radius: 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.member-card .role { font-size: 0.85rem; color: var(--primary-dark); font-weight: 700; }

/* Home member preview */
.member-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member-preview-card {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px;
  display: flex; align-items: center; gap: 20px; transition: transform 0.2s, border-color 0.2s;
}
.member-preview-card:hover { transform: translateY(-3px); border-color: var(--primary-color); }
.member-photo-wrapper { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #e2e8f0; }
.member-photo-wrapper .member-photo { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; display: block; }
.member-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.member-info .role { font-size: 0.88rem; color: var(--primary-color); font-weight: 600; margin: 0; }

/* ---------- News ---------- */
.news-header-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.news-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.news-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.news-img { width: 100%; height: 180px; object-fit: cover; background: #e2e8f0; }
.news-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text-muted); font-size: 0.85rem; }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.news-filter {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; cursor: pointer;
  background: #f1f5f9; color: #475569; font-size: 0.88rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-color); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.news-filter:hover { border-color: var(--primary-color); color: var(--primary-color); }
.news-filter.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.news-filter-count { font-size: 0.75rem; font-weight: 700; opacity: 0.7; }
.news-cat { display: inline-block; background: #ecfdf5; color: var(--primary-color); font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
.news-cover { line-height: 0; }
.news-cover .news-img { display: block; }
.news-video { height: 180px; object-fit: contain; background: #fff; display: block; width: 100%; }
.news-thumb-video { position: relative; }
.news-thumb-video::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; text-shadow: 0 0 4px rgba(0,0,0,.7); }
.news-img-contain { object-fit: contain; background: #fff; }
.news-body p { white-space: pre-line; }
.news-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.news-link { font-size: 0.88rem; font-weight: 600; color: var(--primary-color); text-decoration: none; }
.news-link:hover { text-decoration: underline; }
.news-thumbs { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.news-thumb { flex: 0 0 auto; width: 52px; height: 40px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #e2e8f0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb.active { border-color: var(--primary-color); }
.news-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.news-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1d19; color: #cbd5e1; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1.4fr 0.8fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.footer-brand strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.footer-brand span { display: block; font-size: 0.88rem; color: #94a3b8; line-height: 1.5; }
.footer-col h2 { color: #fff; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-col a { color: #cbd5e1; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-light); }
.f-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 16px 20px; font-size: 0.82rem; color: #64748b; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .research-list { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06); padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
  .header-right { gap: 10px; }

  .pi-card { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
  .pi-photo { max-width: 200px; height: 250px; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding-top: 40px; padding-bottom: 40px; }
  .page-title { font-size: 1.7rem; }
  .section-desc { font-size: 1rem; margin-bottom: 24px; }
  .hero { padding: 90px 0 80px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero .subtitle { font-size: 1rem; }
  .brand-affil { display: none; }
  .brand-name { font-size: 1rem; }
  .member-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .research-img { height: 180px; }
  .research-body { padding: 20px; }
  .pub-item { padding: 14px; gap: 12px; }
  .pub-number { min-width: 38px; font-size: 0.8rem; }
  .pub-title { font-size: 1rem; }
  .pub-year-heading h2 { font-size: 1.35rem; }
  .overview-section { padding: 40px 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
}


/* ==========================================================================
   Typography - 차분하고 진중한 인상 (세리프 제목 + 산세리프 본문)
   ========================================================================== */
body { letter-spacing: -0.005em; color: #1e293b; }
.page-title, .section-title, .hero h1, .brand-name, .pi-name,
.research-card h3, .research-body h3, .pub-year-heading h2,
.member-group h2, .member-card h4, .member-info h4, .footer-brand strong,
.pub-preview-card h4, .news-card h3, .pi-section-title, .feed-item h4 {
  font-family: var(--font-serif);
}
.page-title { font-weight: 800; letter-spacing: -0.01em; }
.section-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 6px; line-height: 1.3; color: var(--text-main); }
.hero h1 { font-weight: 800; letter-spacing: -0.01em; }
.hero .subtitle { font-weight: 400; letter-spacing: 0; }
.tagline { font-family: var(--font-sans); font-weight: 600; letter-spacing: 2px; }
.brand-name { font-weight: 800; letter-spacing: 0; }
.site-nav a { font-weight: 500; letter-spacing: 0.01em; }
.pi-name { font-weight: 800; }
.research-card h3, .research-body h3 { font-weight: 800; }
.pub-year-heading h2, .member-group h2 { font-weight: 800; }
.pub-title { font-weight: 600; }
.pub-number, .pub-year { font-family: var(--font-sans); font-weight: 700; }
.btn { font-weight: 500; letter-spacing: 0.02em; }
.member-card h4, .member-info h4 { font-weight: 600; }
.pi-section-title { font-weight: 800; }

/* ==========================================================================
   Home: 최신 논문 + 최신 소식
   ========================================================================== */
.latest-section { padding-top: 56px; padding-bottom: 56px; }
.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.latest-col .section-head-row { margin-bottom: 20px; align-items: flex-end; }
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-item {
  display: flex; gap: 16px; align-items: flex-start; background: var(--card-bg);
  border: 1px solid var(--border-color); border-radius: 10px; padding: 16px 18px; transition: all 0.2s;
}
.feed-item:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(0,0,0,0.15); }
.feed-item .pub-year { flex-shrink: 0; min-width: 52px; text-align: center; }
.feed-text { min-width: 0; }
.feed-item h4 { font-size: 1rem; font-weight: 600; line-height: 1.45; margin-bottom: 4px; color: var(--text-main); }
.feed-item p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.feed-empty { color: var(--text-muted); font-size: 0.95rem; padding: 16px 0; }

/* Home: 연구 분야 카드 전체가 링크 */
a.research-card { display: block; color: inherit; cursor: pointer; }
a.research-card::after { content: "→"; position: absolute; right: 24px; bottom: 20px; color: var(--primary-color); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: all 0.25s; }
a.research-card:hover::after { opacity: 1; transform: translateX(0); }

/* Members: 프로필 링크를 흰 박스 + 경계선으로 */

@media (max-width: 960px) { .latest-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 640px) {
  .section-title { font-size: 1.45rem; }
  .latest-section { padding-top: 40px; padding-bottom: 40px; }
  .feed-item { padding: 14px; gap: 12px; }
  .feed-item .pub-year { min-width: 46px; font-size: 0.8rem; }
}

/* ==========================================================================
   Hero: 글자 좌측 정렬 + 애니메이션 우측 (글자 쪽으로 갈수록 흐려짐)
   ========================================================================== */
.hero { text-align: left; padding: 120px 0 100px; }
.hero::before { left: 72%; }
.hero canvas { -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 42%, #000 78%); mask-image: linear-gradient(to right, transparent 0%, transparent 42%, #000 78%); }
.hero .tagline { color: var(--primary-light); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 4px; }
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 14px 0 20px; }
.hero .subtitle { font-size: 20px; line-height: 1.7; color: #e2e8f0; max-width: 580px; margin: 0 0 32px; }
.hero-cta { justify-content: flex-start; }
@media (max-width: 760px) {
  .hero canvas { opacity: 0.35; -webkit-mask-image: none; mask-image: none; }
  .hero::before { left: 50%; }
}
@media (max-width: 640px) {
  .hero { padding: 80px 0 70px; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 17px; }
  .hero .tagline { font-size: 0.72rem; letter-spacing: 0.14em; }
}

/* Research: 대표 연구 링크 */
.research-refs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.research-refs h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.research-refs ul { list-style: none; }
.research-refs li { position: relative; padding-left: 14px; margin-bottom: 6px; font-size: 0.92rem; line-height: 1.55; }
.research-refs li::before { content: "•"; position: absolute; left: 0; color: var(--primary-color); font-weight: 700; }
.research-refs a { color: var(--primary-color); font-weight: 600; }
.research-refs a:hover { text-decoration: underline; }
.hero h1 { max-width: 700px; }

/* Publications: 제목 굵게 / 저자 / 학술지(기울임) / DOI 링크 */
.pub-title { font-weight: 700; display: block; }
.pub-journal em { font-style: italic; }
.pub-link { display: inline-block; margin-top: 6px; color: var(--primary-color); font-size: 0.85rem; font-weight: 600; }
.pub-link:hover { text-decoration: underline; }

/* 설명글 삭제 후 제목 아래 간격 */
.page-title { margin-bottom: 28px; }
.pub-total { margin: 0 0 24px; }

/* ==========================================================================
   KO/EN 전환 시 위치가 흔들리지 않도록 고정
   - 언어 버튼 폭 고정 (EN ↔ KO 글자 폭 차이로 메뉴가 밀리던 문제)
   - 배너 높이/글줄 영역 고정 (언어별 문장 길이 차이로 배너가 변하던 문제 해결)
   ========================================================================== */
.lang-btn { min-width: 52px; text-align: center; }
.brand-name, .brand-affil, .site-nav a { white-space: nowrap; }
.hero { min-height: 540px; display: flex; align-items: flex-start; }
.hero-inner { width: 100%; min-height: 327px; }  /* 영문 기준 높이 고정 → 국문은 아래만 비고, 제목~설명 간격은 그대로 */
.hero .tagline { display: block; min-height: 1.5em; }
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-inner { min-height: 390px; }
  .hero .tagline { min-height: 3em; }    /* 모바일: 2줄 */
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; padding: 12px 14px; white-space: nowrap; text-align: center; }
}