/* style.css - 통합 전체 코드 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* [수정됨] 로고 기반 Green-Blue 팔레트 */
    --primary: #0085CA;       /* Deep Blue */
    --primary-light: #38bdf8; /* Light Blue */
    --secondary: #00C6BD;     /* Teal/Green */

    --accent: #ff6b6b;        /* Rose */
    --dark: #0f172a;          /* Slate 900 */
    --gray: #64748b;          /* Slate 500 */
    --bg-body:#f1f5f9;      /* Slate 50 */
    --white: #ffffff;

    --radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 30px rgba(0, 133, 202, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-body); color: var(--dark); margin: 0; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* style.css */
.navbar {
    background: rgba(255, 255, 255, 1.0); /* 투명도를 없애 경계를 더 확실히 함 */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* [강조] 하단 경계선을 더 굵고 진하게 수정 */
    border-bottom: 3px solid #cbd5e1;
    /* [강조] 그림자 효과를 강화하여 메인 화면과 분리 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo img { height: 40px; transition: transform 0.3s; }
.logo img:hover { transform: scale(1.05); }
.menu-toggle { display: none !important; }

/* 네비게이션 링크 */
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-item { font-weight: 600; color: var(--gray); padding: 22px 0; position: relative; cursor: pointer; white-space: nowrap; }
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.page-header { text-align: center; margin-bottom: 60px; }
.home-keyword-tag { display: inline-block; padding: 6px 16px; border-radius: 20px; background: #e8f0fb; color: var(--primary); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; border: 1px solid #c7d9f5; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.section-header { margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; padding-bottom: 12px; display: flex; align-items: center; gap: 15px; }
.section-header h2 { font-size: 1.8rem; font-weight: 700; color: var(--dark); margin: 0; }

/* --- YouTube Grid --- */
.youtube-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.video-wrapper {
    position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); background: #000;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* --- Member Cards --- */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.member-card {
    background: #ffffff;
    border: 1px solid #e0e0e0; /* 그림자 대신 얇은 선으로 깔끔하게 구분 */
    border-radius: 8px;        /* 카드 모서리만 살짝 둥글게 (선택 사항) */
    padding: 20px;
    box-shadow: none;          /* 기존 그림자 제거 */
    text-align: center;
}
.member-image {
    width: 100%;               /* 부모 컨테이너 너비에 맞춤 */
    aspect-ratio: 1 / 1;       /* 정사각형 비율 유지 (원하는 경우 3/4 등으로 변경 가능) */
    object-fit: cover;         /* 비율을 유지하면서 영역을 가득 채움 (찌그러짐 방지) */
    border-radius: 0;          /* 원형 스타일 제거 (완전한 사각형) */
    display: block;
    margin-bottom: 15px;
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 133, 202, 0.1);
}
.member-card img {
    width: 200px !important; height: 200px !important; border-radius: 50%; object-fit: cover;
    margin-bottom: 25px; border: 5px solid #f1f5f9; display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
/* 멤버 키워드 스타일 */
.member-keyword {
    font-size: 0.85rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 5px; background: #e0f2f1; padding: 4px 10px; border-radius: 8px; display: inline-block;
}
.member-name-group { margin: 10px 0 8px 0; }
.name-eng { font-size: 1.35rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.name-kor { font-size: 1.05rem; font-weight: 600; color: var(--gray); margin-top: 4px; }
.member-email { font-size: 0.9rem; color: #888; margin-top: 8px; word-break: break-all; overflow-wrap: anywhere; line-height: 1.4; width: 100%; }

/* 멤버 상세 페이지 프로필 사진 (큰 사각형) */
.detail-profile-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    object-fit: cover;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- News Cards (news.html 전용) --- */
.news-timeline { max-width: 860px; margin: 0 auto; }
.news-year-divider { font-size: 2rem; font-weight: 800; color: var(--primary); padding: 32px 0 12px 0; border-bottom: 2px solid var(--primary); margin-bottom: 4px; letter-spacing: -0.5px; }
.news-tl-item {
    display: flex; align-items: flex-start; gap: 24px;
    padding: 24px 16px; border-bottom: 1px solid #eef2f7;
    cursor: pointer; transition: background 0.18s ease; border-radius: 10px;
}
.news-tl-item:hover { background: #f8fafc; }
.news-tl-item:hover .news-tl-body h3 { color: var(--primary); }
.news-tl-left { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 52px; padding-top: 3px; }
.news-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.news-tl-date { font-size: 0.78rem; font-weight: 700; color: var(--secondary); text-align: center; line-height: 1.3; }
.news-tl-body { flex: 1; }
.news-tl-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin: 0 0 6px; line-height: 1.45; transition: color 0.18s; }
.news-tl-body p { font-size: 0.9rem; color: var(--gray); margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-tl-img { width: 100px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* --- Home News Section (Split Layout for index.html) --- */
.news-split-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: auto; /* 고정 높이 제거하여 콘텐츠에 맞춤 */
}
.news-list-container { flex: 1; display: flex; flex-direction: column; }
.news-list-item {
    padding: 15px 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: all 0.2s ease; border-radius: 8px;
}
.news-list-item:hover { background: #f8fafc; transform: translateX(5px); }
.news-list-item:hover .news-item-title { color: var(--primary); }
.news-item-date { font-size: 0.85rem; font-weight: 700; color: var(--secondary); display: block; margin-bottom: 6px; }
.news-item-title {
    font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 0; line-height: 1.4; transition: color 0.2s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* style.css - 프리뷰 관련 스타일 업데이트 */

.news-preview-pane {
    width: 320px;
    height: 220px; /* 고정 높이 유지 */
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
}

.news-preview-content {
    width: 100%;
    height: 100%;
    padding: 25px; /* 패딩 약간 축소 */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;

    /* [핵심] 위아래 잘림 방지를 위한 수직 중앙 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px; /* 요소 간 간격 고정 */
}

.news-preview-content i {
    font-size: 32px !important; /* 아이콘 크기 약간 축소 */
    margin-bottom: 5px;
}

.news-preview-content h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
    /* 제목이 너무 길어질 경우 대비 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview-content p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
    /* 내용이 넘치지 않게 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-preview-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }

/* --- Research Areas --- */
.research-areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 80px; }
.area-card { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); }
.area-card:hover { transform: scale(1.02); }
.area-img { width: 100%; height: 250px; object-fit: cover; }
.area-content { padding: 30px; }

.project-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.proj-thumb-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); }
.proj-thumb-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.10); }
.proj-thumb-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.proj-thumb-placeholder { width: 100%; height: 180px; background: #e8eef5; display: flex; align-items: center; justify-content: center; color: #a0b0c5; font-size: 2rem; }
.proj-thumb-info { padding: 18px 20px 20px; }
.proj-thumb-info h4 { font-size: 1rem; font-weight: 700; margin: 6px 0 8px; color: var(--dark); line-height: 1.4; }
.proj-meta { font-size: 0.85rem; color: var(--gray); }
.proj-status { display: inline-block; font-size: 0.75rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; margin-bottom: 4px; }
.proj-status.ongoing { background: #e0e7ff; color: var(--primary); }
.proj-status.completed { background: #f1f5f9; color: var(--gray); }
.proj-list { display: flex; flex-direction: column; gap: 10px; }
.proj-list-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-left: 4px solid #cbd5e1; cursor: pointer; transition: var(--transition); }
.proj-list-item:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); border-left-color: var(--primary); }
.proj-list-item:hover h4 { color: var(--primary); }
.proj-list-item i { color: #cbd5e1; flex-shrink: 0; }
.proj-list-info { flex: 1; }
.proj-list-info h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0 0 6px; line-height: 1.45; transition: color 0.18s; }
.proj-list-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--gray); }
.proj-list-period { font-weight: 600; color: #94a3b8; }

/* --- Publications Controls (Revised Layout) --- */
.pub-controls {
    background: var(--white); padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 40px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.year-filter { display: flex; align-items: center; gap: 10px; }
.quick-year-container {
    width: 100%; display: flex; justify-content: flex-start; gap: 8px; margin-top: 10px; margin-bottom: 5px; flex-wrap: wrap;
}
.search-container { width: 100%; display: flex; gap: 10px; margin-top: 5px; }

/* Controls Styles */
.tab-btn {
    padding: 10px 20px; border: none; background: white; border-radius: 12px;
    font-weight: 600; color: var(--gray); cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.05); font-size: 0.95rem;
}
.tab-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); color: var(--dark); }
.tab-btn.active { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: white !important; }

/* 탭 버튼 색상 */
.tab-btn.active[data-cat="all"] { background: var(--dark); }
.tab-btn.active[data-cat="journal"] { background: var(--primary); }
.tab-btn.active[data-cat="conference"] { background: var(--secondary); }
.tab-btn.active[data-cat="poster"] { background: #10b981; }
.tab-btn.active[data-cat="demo"] { background: #f59e0b; }
.tab-btn.active[data-cat="patent"] { background: var(--accent); }

.year-input { width: 80px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; text-align: center; font-family: inherit; font-size: 0.95rem; }
.year-input:focus { outline: none; border-color: var(--primary); }
.apply-btn { background: var(--dark); color: white; border: none; padding: 10px 24px; border-radius: 12px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.apply-btn:hover { background: #000; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.search-input { flex: 2; padding: 12px 20px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 0.95rem; }
.venue-select { flex: 1; padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 0.95rem; background: white; cursor: pointer; }

/* Quick Year Chips */
.year-chip {
    padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 20px; background: white; color: var(--gray);
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.year-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.year-chip.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 10px rgba(0, 133, 202, 0.3); }

/* --- Pub List (Updated) --- */
.pub-year-header {
    font-size: 1.8rem; font-weight: 800; color: var(--dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 3px solid #e2e8f0; position: relative;
}
.pub-year-header::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 60px; height: 3px; background: var(--primary); }

.pub-item {
    background: var(--white); padding: 25px; border-radius: 12px; margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); border: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; transition: transform 0.2s ease;
}
.pub-item:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: rgba(0, 133, 202, 0.2); }

.pub-content { flex: 1; }
.pub-content h3 { font-size: 1.1rem; margin: 8px 0; color: var(--dark); line-height: 1.5; }
.pub-authors { color: var(--gray); font-size: 0.95rem; margin-bottom: 5px; }
.pub-venue { font-style: italic; font-weight: 600; color: var(--secondary); }

/* Link Buttons */
.pub-actions { display: flex; flex-direction: column; gap: 8px; min-width: 100px; }
.pub-link {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.btn-paper { background-color: #f0f9ff; color: var(--primary); }
.btn-paper:hover { background-color: var(--primary); color: white; }
.btn-video { background-color: #fef2f2; color: #ef4444; }
.btn-video:hover { background-color: #ef4444; color: white; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; margin-bottom: 60px; }
.page-btn {
    min-width: 40px; height: 40px; border: 1px solid #e2e8f0; border-radius: 8px; background: white; color: var(--gray);
    font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: #f8fafc; color: var(--primary); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.prev, .page-btn.next { font-size: 0.9rem; }
.dots { display: flex; align-items: flex-end; padding: 0 5px; color: var(--gray); font-weight: bold; }

/* [복구됨] 뱃지 색상 (빠졌던 부분) */
.badge-container { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pub-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.5px; }
.pub-badge.journal { background: var(--primary); }
.pub-badge.conference { background: var(--secondary); }
.pub-badge.poster { background: #10b981; }
.pub-badge.demo { background: #f59e0b; }
.pub-badge.patent { background: var(--accent); }
.pub-badge.venue-tag { background: #e2e8f0; color: var(--dark); font-weight: 600; }
.award-text { color: #e11d48 !important; font-weight: 800 !important; }

.alumni-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.alumni-item { background: var(--white); padding: 15px 18px; border-radius: 10px; box-shadow: var(--shadow-sm); border-left: 4px solid #cbd5e1; display: flex; flex-direction: column; gap: 4px; }
.alumni-item strong { color: var(--dark); font-size: 0.95rem; }
.alumni-item span { font-size: 0.83rem; color: var(--gray); }
.member-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.member-tab-btn { padding: 9px 22px; border-radius: 30px; border: 1.5px solid #e2e8f0; background: var(--white); color: var(--gray); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.member-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.member-tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(0,133,202,0.25); }
.member-section { margin-bottom: 60px; }
.award-item-style { border-left: 5px solid gold; align-items: center; }

/* Detail Overlay */
.detail-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 2000; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.detail-overlay.active { transform: translateY(0); }
.detail-nav { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; z-index: 10; }
.back-btn { background: none; border: none; font-size: 1rem; font-weight: 700; color: var(--dark); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; margin-bottom: 32px; }
.news-detail-wrap { max-width: 800px; margin: 0 auto; padding-top: 20px; }
.news-detail-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 32px; display: block; }
.news-detail-header { margin-bottom: 32px; }
.news-detail-date { display: inline-block; background: #e0e7ff; color: var(--primary); font-size: 0.82rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 14px; letter-spacing: 0.04em; }
.news-detail-header h1 { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1.35; margin: 0; }
.news-detail-content { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 40px 44px; font-size: 1rem; line-height: 1.9; color: #334155; }
.news-detail-content strong { color: var(--dark); font-weight: 700; }
.news-section-label { display: inline-block; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 6px; margin: 20px 0 10px; letter-spacing: 0.06em; }
.news-paper-num { display: inline-block; background: #f1f5f9; color: var(--primary); font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-right: 4px; }
.detail-content { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.detail-body { background: #f8fafc; padding: 40px; border-radius: 20px; }
.info-group h4 { color: var(--primary); margin-bottom: 10px; border-bottom: 1px solid #e2e8f0; padding-bottom: 5px; }
.info-group ul { padding-left: 20px; }

/* Footer */
footer { background: var(--dark); color: #94a3b8; text-align: center; padding: 40px 0; margin-top: 80px; }

/* Mobile Responsive */
/* style.css - 맨 아래 @media 부분 교체 */

/* Mobile Responsive (최종 수정본) */
@media (max-width: 900px) {
    /* 1. 네비게이션: 햄버거 메뉴 적용 */
    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        padding: 0 20px;
        position: relative;
    }

    .logo { padding-left: 0; margin-bottom: 0; }

    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark);
        padding: 10px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active { max-height: 500px; padding-bottom: 20px; }

    .nav-item {
        width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid #f1f5f9; display: block;
    }
    .nav-item:last-child { border-bottom: none; }
    .nav-item.active::after {
        width: 4px; height: 4px; border-radius: 50%; left: 50%; transform: translateX(-50%); bottom: 5px;
    }

    /* 2. Publications 컨트롤 (모바일 최적화) */
    .pub-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px; /* 내부 여백 확보 */
    }

    .filter-tabs { justify-content: center; }

    /* [핵심 수정] 년도 버튼: 중앙 정렬 + 줄바꿈 + 간격 조절 */
    .quick-year-container {
        justify-content: center;
        flex-wrap: wrap;        /* 줄바꿈 허용 */
        gap: 6px;               /* 버튼 사이 간격 좁힘 */
        overflow-x: visible;    /* 스크롤 제거 */
        white-space: normal;
        margin-top: 5px;
        width: 100%;
    }

    /* 모바일용 버튼 스타일 (작게) */
    .year-chip {
        padding: 6px 10px;      /* 여백 축소 */
        font-size: 0.85rem;     /* 글자 크기 축소 */
        flex: 0 0 auto;
    }

    .year-filter { justify-content: center; width: 100%; margin-top: 5px; }
    .search-container { flex-direction: column; }
    .search-input, .venue-select { width: 100%; }

    /* 3. 그리드 및 레이아웃 */
    .youtube-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } /* 유튜브 2x2 */
    .member-grid {
          grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 최소 너비를 140px로 축소 */
          gap: 15px;
          padding: 0 10px; /* 양옆 여백 추가로 잘림 방지 */
      }
    .research-areas-grid { grid-template-columns: 1fr; gap: 20px; }
    .project-thumb-grid { grid-template-columns: 1fr; gap: 16px; }
    /* [추가] 모바일에서 카드 내부 이미지와 텍스트 크기 최적화 */
    .member-card {
        padding: 15px 10px;
    }
    .member-card img {
            width: 100px !important; /* 이미지 크기를 줄여서 한 줄에 두 명씩 잘 보이게 함 */
            height: 100px !important;
            margin-bottom: 15px;
    }
    .name-eng { font-size: 1.1rem; } /* 이름 폰트 크기 조절 */
    .name-kor { font-size: 0.9rem; }
    .member-email { font-size: 0.75rem; }

    /* 4. 기타 */
    .news-split-layout { flex-direction: column; }
    .news-preview-pane { display: none; }
    .news-tl-img { display: none; }
    .news-tl-item { gap: 16px; }
    .pub-item { flex-direction: column; }
    .pub-actions { flex-direction: row; width: 100%; }
    .pub-link { flex: 1; }
}

/* 메인 슬라이더 컨테이너 (80% 사이즈) */
.main-slider-container {
    position: relative;
    width: 100%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

/* 세련된 화살표 디자인 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 54px;
    height: 54px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* 도트 인디케이터 */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* style.css 추가 */

.pub-count-banner {
    margin: -10px 0 30px 5px; /* 필터창과의 간격 조정 */
    font-size: 1.05rem;
    color: var(--gray);
    border-left: 4px solid var(--secondary); /* 포인트 라인 */
    padding-left: 15px;
    animation: fadeIn 0.3s ease;
}

.pub-count-banner strong {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 모바일 대응 */
@media (max-width: 900px) {
    .pub-count-banner {
        text-align: center;
        border-left: none;
        padding-left: 0;
        margin: 0 0 20px 0;
    }
}

/* 아주 작은 모바일 기기 (아이폰 SE 등) 대응 */
@media (max-width: 350px) {
    .member-grid {
        grid-template-columns: 1fr; /* 화면이 너무 작으면 1열로 표시 */
    }
}
