/* ==========================================================================
   1. Reset & Core Settings (기본 설정)
   ========================================================================== */
:root {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #1e3a8a;
    --gold-color: #c5a059;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   2. Header & Navigation (상단 바)
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
    margin-left: 36px;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent-color);
}

.site-nav a.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* ==========================================================================
   3. Typography & UI Components (공통 타이포/버튼)
   ========================================================================== */
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.eyebrow-abbr {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    border-radius: 4px;
}

.eyebrow-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.eyebrow-full {
    color: var(--text-secondary);
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.eyebrow-initial {
    color: var(--accent-color);
    font-weight: 800;
}

.highlight-gold {
    color: var(--gold-color);
    font-weight: 700;
}

.highlight-blue {
    color: var(--accent-color);
    font-weight: 700;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    /* 위아래 패딩 대신 높이(height) 활용 */
    height: 46px;
    /* 명확한 세로 높이 보장 */
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* 테두리 두께 계산 방지 */
}

.button.primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.button.primary:hover {
    background-color: var(--text-primary);
}

.button.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.button.secondary:hover {
    background-color: #f1f5f9;
    border-color: var(--accent-color);
}

.button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   4. Hero Section (메인 비주얼 구역)
   ========================================================================== */
.hero {
    padding: 60px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.hero-left h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-copy {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 90%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-actions {
    margin-bottom: 48px;
    display: flex;
    gap: 12px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 우측 영역 (연구 테마 & 뉴스) */
.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.hero-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.research-list {
    list-style: none;
}

.research-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
}

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

.theme-icon {
    color: var(--gold-color);
    margin-right: 10px;
    font-weight: bold;
}

/* 뉴스 요약 리스트 */
.news-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.news-summary-date {
    color: var(--text-muted);
    font-family: monospace;
}

.news-summary-text {
    color: var(--text-secondary);
    text-align: right;
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   5. Publications & Slider (논문 리스트 및 카드)
   ========================================================================== */
.research-vision-block {
    text-align: center;
    margin-bottom: 40px;
}

.research-flowchart-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 24px auto;
    max-width: 960px;
    /* 데스크톱 화면에서 이미지가 너무 커져 깨지는 것을 방지 */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.research-flowchart {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.selected-publication-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    /* 원래 크기인 180px로 복구 */
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    /* 원래 패딩으로 복구 */
    border-top: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.selected-publication-item:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.selected-publication-item:focus-visible,
.publication-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.selected-publication-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.selected-publication-toc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 110px;
    /* 원래 높이인 110px로 복구 */
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    padding: 6px;
    /* 원래 안쪽 패딩으로 복구 */
    box-sizing: border-box;
}

.selected-publication-toc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.publications-section {
    background-color: #ffffff;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    min-height: 220px;
}

.publication-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    border: 1px solid var(--border-color);
}

.publication-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slide-toc-zone {
    width: 100%;
    height: 150px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
}

.slide-toc-zone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.slide-info-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-badge {
    align-self: flex-start;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.slide-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.slide-citation {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.acs-title {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.acs-authors {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.acs-journal {
    color: var(--accent-color);
    font-style: italic;
    font-weight: 600;
}

.acs-year {
    font-weight: 600;
    font-size: 0.98rem;
}

.acs-volume {
    font-style: italic;
    font-size: 0.98rem;
}

.acs-pages {
    font-size: 0.98rem;
}

.publication-remark {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block;
    color: var(--gold-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 6px;
}

/* ==========================================================================
   6. Structural Layout Components (서브 페이지 공통 레이아웃)
   ========================================================================== */
.page-hero {
    padding: 40px 0 36px;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.page-summary {
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.page-content {
    padding: 40px 0 72px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: 1.65rem;
    font-weight: 700;
    position: relative;
    padding-top: 12px;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Lab Activity Highlights Slider */
.lab-activity-slider {
    display: grid;
}

.activity-slide {
    display: grid;
    grid-template-rows: 220px 1fr;
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.activity-slide.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.activity-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.activity-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-align: center;
}

.activity-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.activity-dot {
    border: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.activity-dot.active {
    background: var(--accent-color);
}

/* Research & News Cards */
.selected-publications-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.selected-publications-card a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.selected-publications-card a:hover {
    color: var(--accent-color);
}

.news-section {
    padding: 0 0 72px;
}

.news-section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

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

.news-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 130px;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.news-item strong {
    color: var(--gold-color);
    font-weight: 700;
}

/* ==========================================================================
   Research Themes (Grid & Card Style)
   ========================================================================== */

/* 1. Grid Layout */
.research-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    /* 카드 사이 여백 */
    margin-top: 36px;
}

/* 2. Research Card Core */
.research-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 호버 시 카드 업리프트 효과 */
.research-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 58, 138, 0.15);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* 3. Card Top Decoration (그라데이션 상단 바) */
.card-top-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    opacity: 0.6;
    flex-shrink: 0;
    /* 찌그러짐 방지 */
    transition: opacity 0.3s ease;
}

.research-card:hover .card-top-bar {
    opacity: 1;
    /* 호버 시 선명하게 강조 */
}

/* 4. Image Container & Zoom Effect */
.research-card-img-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 200px;
    /* 안정적인 정방형 레이아웃 확보 */
    padding: 16px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.research-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-card:hover .research-card-img {
    transform: scale(1.05);
    /* 호버 시 미세한 이미지 줌인 */
}

/* 5. Typography & Contents */
.research-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 28px 24px;
}

.research-card-content h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* 본문 안의 핵심 키워드 강조 */
.research-card-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* 영문 본문 */
.research-card-en {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 국문 해석 (가독성을 위한 그레이 톤다운 및 줄바꿈 최적화) */
.research-card-ko {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.6;
    word-break: keep-all;
    /* 단어가 잘리지 않고 통째로 줄바꿈 */
}

.research-cta {
    margin-top: 24px;
}

.publications-list-section {
    padding-top: 12px;
}

.publication-full-list {
    display: flex;
    /* ★ 핵심: HTML 순서의 역순으로 화면에 위아래를 뒤집어 배치합니다 */
    flex-direction: column-reverse;
    gap: 16px;
    list-style: none;
    padding: 0;
    /* 카운터를 0부터 시작하도록 초기화 */
    counter-reset: pub-counter;
}

.publication-full-list li {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px 20px 68px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.01);
}

.publication-full-list li::before {
    counter-increment: pub-counter 1;
    content: counter(pub-counter, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 22px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-color);
    opacity: 0.8;

}

.publication-full-list li:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.04);
    transform: translateX(4px);
    /* 오른쪽으로 살짝 밀려나며 읽기 편해짐 */
}

.publication-link {
    color: inherit;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.publication-link .acs-title {
    transition: color 0.2s ease;
}

.publication-link:hover {
    color: var(--accent-color);
    text-decoration-color: currentColor;
}

.publication-link:hover .acs-title {
    color: var(--accent-color);
}

.empty-state {
    color: var(--text-secondary);
    margin-top: 16px;
}

/* ==========================================================================
   7. Group Members & Team Elements (팀원 및 알럼나이)
   ========================================================================== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.person-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.student-card {
    padding: 16px;
}

.student-card-layout {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
}

.student-photo-frame {
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    aspect-ratio: 1 / 1;
    width: 140px;
    height: 140px;
}

.student-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.student-info h3 {
    margin-bottom: 4px;
}

.person-name {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.student-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.alumni-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alumni-list p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 16px;
    margin: 0;
}

.alumni-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.alumni-course {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. PI Profile Section (가독성 극대화 / 1단 통합 미니멀 타임라인)
   ========================================================================= */
.lang-ko {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 6px;
}

.profile-card {
    max-width: 100% !important;
    padding: 40px !important;
    margin-top: 24px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* 2단 구조 레이아웃 */
.profile-summary-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    align-items: center;
}

.profile-photo-frame {
    width: 150px;
    height: 195px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f1f5f9;
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-summary .profile-main-name {
    font-size: 2.3rem !important;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    /* 아래 글자 기준선 맞춤 */
    flex-wrap: wrap;
    gap: 16px;
    /* 여백을 넓혀 답답함 해소 */
}

/* 한국어 이름 (인라인 크기 강조형) */
.profile-summary .ko-name-inline {
    font-size: 1.8rem;
    /* 영문 크기에 밀리지 않는 당당한 크기 */
    font-weight: 700;
    color: #334155;
    /* 완전히 검은색이 아닌, 깊이감 있는 짙은 슬레이트 그레이 */
    letter-spacing: -0.5px;
    position: relative;
}

.profile-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.profile-affiliation {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* 연락처 정보를 가로로 정렬하여 면적 최소화 */
.profile-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.profile-contact-inline p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.profile-contact-inline strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 8px;
}

.profile-contact-inline a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.profile-contact-inline a:hover {
    text-decoration: underline;
}

.profile-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.profile-subsection {
    display: flex;
    flex-direction: column;
}

.profile-subsection h4 {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.profile-main-column {
    display: flex;
    flex-direction: column;
}

.subsection-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 36px 0;
}

/* --- [타임라인 구조] 싱글 컬럼 멀티라인 최종 최적화 --- */
.profile-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-timeline li {
    display: grid;
    grid-template-columns: 100px 1fr;
    /* 연도를 컴팩트하게 배치 */
    gap: 24px;
    padding: 14px 18px;
    align-items: flex-start;
    /* 다행 배치 대응 */
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-timeline li:hover {
    background-color: #f8fafc;
    box-shadow: inset 0 0 0 1px var(--border-color);
    transform: translateX(6px);
}

/* 1. 연도 표시: 가볍고 미니멀하게 처리 */
.timeline-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    /* 평소에는 톤다운 */
    font-family: 'Inter', sans-serif;
    padding-top: 3px;
    transition: color 0.2s;
}

.profile-timeline li:hover .timeline-year {
    color: var(--accent-color);
    /* 호버 시에만 블루 강조 */
}

/* 2. 본문 정보 그룹 (가로 한 줄 나열을 깨고 세로 정렬 설계) */
.timeline-desc-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 학위명 (가장 기본적이고 직관적인 두께) */
.timeline-degree {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* 학교 및 소속 기관 (Deep Blue 테마 컬러로 강력한 강조 효과) */
.timeline-institution {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    /* #1e3a8a 강조 */
    margin-top: 2px;
}

/* 세부 사항 (지도교수, 전공 세부 등: 이탤릭으로 세련된 톤다운) */
.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid var(--border-color);
}

/* 메타 정보 중 특별 강조 표시 (우수 졸업 등) */
.timeline-meta.highlight-meta {
    color: var(--gold-color);
    font-weight: 600;
    font-style: normal;
    border-left-color: rgba(197, 160, 89, 0.4);
}

/* 괄호형 비고 배지 */
.timeline-remark {
    display: inline-block;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--gold-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    font-style: normal;
}

/* ==========================================================================
   9. Footer Section (하단 정보)
   ========================================================================== */
.site-footer {
    background-color: var(--text-primary);
    color: #ffffff;
    padding: 50px 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer .eyebrow {
    color: var(--gold-color);
}

.site-footer h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.site-footer p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.site-footer .button.primary {
    background-color: #ffffff;
    color: var(--accent-color);
    border: 1px solid transparent;
}

.site-footer .button.primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.footer-info-area {
    width: 100%;
    max-width: 800px;
    /* 너무 넒게 퍼지지 않도록 안정감 부여 */
}

/* 1. 타이틀 영역 */
.footer-brand-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

/* 기존 eyebrow 속성 재정의 및 보완 */
.site-footer .eyebrow {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-color);
}

.footer-lab-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.95;
}

/* 2. 학과 및 대학명 정보 */
.footer-dept {
    font-size: 0.95rem !important;
    color: #94a3b8 !important;
    /* 살짝 톤다운된 회색조 */
    margin-bottom: 4px !important;
}

.footer-univ {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin-bottom: 0 !important;
}

/* 3. 중간 구분선 */
.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.4), transparent);
    margin: 20px 0;
}

/* 4. 상세 연락처 & 주소 영역 */
.footer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-details p {
    font-size: 0.92rem !important;
    color: #cbd5e1 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: flex-start;
}

/* "Address", "Email" 메타 라벨 스타일 */
.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-color);
    width: 80px;
    /* 너비를 고정하여 정렬 효과 부여 */
    display: inline-block;
    flex-shrink: 0;
    margin-top: 3px;
}

/* 이메일 링크 링크 스타일 정의 */
.footer-email a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.footer-email a:hover {
    color: var(--gold-color);
    border-color: var(--gold-color);
}

.activity-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.lab-activity-card .activity-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* ==========================================================================
   11. Contact Page Isolated Architecture (문의 전용 대칭 레이아웃)
   ========================================================================== */
.contact-recruitment-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    align-items: stretch !important;
    width: 100%;
}

.contact-recruitment-col {
    display: flex !important;
    flex-direction: column !important;
}

.contact-recruitment-section {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.contact-recruitment-section h4 {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 3px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recruitment-card {
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
}

.card-body-wrap {
    flex-grow: 1 !important;
}

/* 폼 제출 버튼 영역 정렬 및 간격 개선 */
.card-action-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    /* 버튼들 사이의 수직 간격을 확실하게 띄움 */
    margin-top: 24px !important;
    width: 100% !important;
}

/* 블록 버튼 기본 세로 크기 및 폰트 축소 정의 */
.contact-block-btn {
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    /* 버튼 세로 크기를 기존 46px에서 42px로 축소 */
    font-size: 0.88rem !important;
    /* 가독성을 살리며 텍스트 크기를 작게 조절 */
    box-sizing: border-box !important;
    margin-left: 0 !important;
    justify-content: center !important;
    text-align: center !important;
}

/* 이메일 버튼처럼 두 줄(제목+주소)이 필요한 버튼: 여유 있게 세로로 쌓아서 표시 */
.button-stacked {
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.button-stacked .btn-line-main {
    font-weight: 600;
}

.button-stacked .btn-line-sub {
    font-size: 0.78em;
    font-weight: 400;
    opacity: 0.85;
}

.contact-block-btn.button-stacked,
.action-button-height.button-stacked {
    height: auto !important;
    min-height: 50px;
    padding: 8px 16px !important;
}

.postdoc-apply-btn.button-stacked {
    height: auto;
    padding: 12px 24px;
}

/* ==========================================================================
   12. Global Responsive Design (반응형 웹 대응)
   ========================================================================== */
@media (max-width: 1024px) {
    .profile-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .publication-slide {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .slide-toc-zone {
        height: 180px;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .profile-summary-grid {
        grid-template-columns: 130px 1fr;
    }

    .profile-contact-list {
        grid-column: span 2;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .subsection-divider {
        margin: 24px 0;
    }

    .research-overview-grid,
    .member-grid {
        grid-template-columns: 1fr;
    }

    .student-card-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .student-photo-frame {
        width: 130px;
        height: 130px;
    }

    .contact-recruitment-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .action-grid-layout {
        grid-template-columns: 1fr !important;
        /* 모바일에서는 수직 1열로 정렬 */
        gap: 12px !important;
    }

    .lang-tab-container {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .eyebrow {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .eyebrow-divider {
        display: none;
    }

    .nav-wrap {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        height: auto;
        padding: 20px 0;
    }

    .site-nav a {
        font-size: 1rem;
        margin: 0 12px;
    }

    .hero-left h1 {
        font-size: 1.85rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .button.secondary {
        margin-left: 0;
    }

    .selected-publication-item {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: flex-start;
        padding: 20px 0;
    }

    .selected-publication-toc {
        width: 100%;
        max-width: 220px;
        height: 130px;
        margin: 0 auto;
    }

    .selected-publication-body {
        width: 100%;
        text-align: left;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .profile-photo-frame {
        width: 120px;
        height: 150px;
    }

    .profile-contact-list {
        grid-column: span 1;
        width: 100%;
    }

    .profile-summary .profile-main-name {
        font-size: 1.9rem !important;
        justify-content: center;
        gap: 10px;
    }

    .profile-summary .ko-name-inline {
        font-size: 1.5rem;
    }

    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    .profile-timeline li {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 8px;
        align-items: flex-start;
    }

    .timeline-desc-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer-brand-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-details p {
        flex-direction: column;
        gap: 4px;
    }

    .info-label {
        width: auto;
    }

}

/* ==========================================================================
   13. Contact Page Custom Refined Styles (인라인 스타일 이관)
   ========================================================================== */
.contact-inline-page-content {
    padding-top: 10px;
}

.contact-inline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-inline-secondary-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

.contact-inline-warning-notice {
    margin-top: 14px;
}

.contact-inline-box-btn {
    text-align: center;
    margin: 0;
}

/* Post-doc 모집용 스타일 */
.postdoc-card-override {
    border-left: 4px solid var(--gold-color);
}

.postdoc-card-grid {
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 40px !important;
    align-items: center !important;
}

.postdoc-badge-gold {
    font-size: 0.85rem;
    padding: 6px 14px;
}

.postdoc-title-bold {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.postdoc-body-text {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.postdoc-req-wrapper {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.postdoc-req-title {
    margin-bottom: 8px;
}

.postdoc-req-list {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.postdoc-apply-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.postdoc-apply-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.postdoc-apply-btn {
    margin: 0;
    justify-content: center;
}

/* ==========================================================================
   14. Contact Page Core Inline Styles
   ========================================================================== */
.recruitment-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.recruitment-badge {
    background-color: rgba(30, 58, 138, 0.06);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.recruitment-badge.gold {
    background-color: rgba(197, 160, 89, 0.08);
    color: var(--gold-color);
    border-color: rgba(197, 160, 89, 0.2);
}

.step-flow {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.step-flow-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.step-number {
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.postdoc-section {
    margin-top: 56px;
    border-top: 1px dashed var(--border-color);
    padding-top: 48px;
}

/* ==========================================================================
   15. Contact Language Tab & Accordion FAQ (리팩토링 스타일 추가)
   ========================================================================== */

/* 언어 선택 탭 컨테이너 */
.lang-tab-container {
    margin-top: 32px;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

/* 탭 버튼 기본 스타일 */
.tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 활성화 상태의 탭 버튼 */
.tab-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    font-weight: 600;
}

/* 화면 비활성화 클래스 */
.display-none {
    display: none !important;
}

/* 정렬 및 여백 제어용 헬퍼 클래스 */
.custom-margin-bottom {
    margin-bottom: 40px !important;
}

.highlight-intro-text {
    font-size: 1.05rem !important;
    margin-bottom: 24px !important;
}

/* 가이드 박스 세부 레이아웃 */
.step-flow-korean,
.step-flow-english {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.highlight-title-flow {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: var(--accent-color) !important;
}

.list-flow-gap {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.item-flow-align {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.step-content-wrap {
    display: flex;
    flex-direction: column;
}

.step-bold-title {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.step-desc-text {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-gold {
    background: var(--gold-color) !important;
}

.step-divider-top {
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
}

.submission-heading-guide {
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 12px !important;
}

/* 버튼 그리드 레이아웃 (1단 정렬 시 2개의 버튼을 세련되게 나열) */
.action-grid-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-top: 12px !important;
}

.action-button-height {
    height: 50px !important;
    font-size: 0.95rem !important;
}

/* 아코디언 FAQ 영역 */
.custom-faq-margin {
    margin-top: 50px !important;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.accordion-faq {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accordion-faq:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.03);
}

.accordion-faq summary {
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    list-style: none;
    /* 크롬 등 디폴트 화살표 제거 */
}

/* 파이어폭스, 사파리 디폴트 아코디언 화살표 숨김 */
.accordion-faq summary::-webkit-details-marker {
    display: none;
}

.accordion-faq p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 10px;
    border-left: 2px solid var(--accent-color);
}

/* 모바일 화면 대응 미디어 쿼리 커스텀 보완 */
@media (max-width: 768px) {
    .contact-inline-page-content .container,
    .page-hero .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .contact-inline-page-content .news-section-card {
        padding: 20px;
    }

    .lang-tab-container {
        width: 100%;
        justify-content: stretch;
    }

    .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
    }

    .action-grid-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .action-grid-layout > *,
    .postdoc-card-grid > * {
        min-width: 0;
    }

    .contact-block-btn,
    .action-button-height {
        min-height: 50px !important;
        height: auto !important;
        padding: 12px 16px !important;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .postdoc-card-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    .step-flow-korean,
    .step-flow-english {
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .contact-inline-page-content .news-section-card {
        padding: 16px;
    }

    .contact-block-btn,
    .action-button-height {
        font-size: 0.86rem !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }
}
