@charset "UTF-8";
:root { --primary-color: #2c3e50; --secondary-color: #2a86c4; --accent-color: #e74c3c; --text-color: #333; --bg-color: #e8e8e8; --section-bg: #e8e8e8; --border-color: #e0e0e0; --header-height: 100px; --header-bg: #fafafa; --card-bg: #f0f0f0; }

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); overflow-y: scroll !important; }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; right: 0; background-color: var(--header-bg); color: var(--primary-color); z-index: 1000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-bottom: 1px solid var(--border-color); }

.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }

.site-title { font-size: 1.5rem; font-weight: 600; margin: 0; }

.site-title a { color: var(--primary-color); text-decoration: none; transition: opacity 0.3s; display: flex; align-items: center; gap: 12px; }

.site-title a:hover { opacity: 0.8; }

.site-logo { height: 70px; width: auto; display: block; }

.site-title-text { display: none; }

@media (max-width: 768px) { .site-logo { height: 45px; } }
/* Main Navigation (Tab Buttons) */
.main-nav { display: flex; align-items: center; gap: 10px; list-style: none; }

.tab-button { background: none; border: none; color: var(--primary-color); font-weight: 600; font-size: 1.1rem; padding: 10px 15px; cursor: pointer; transition: all 0.3s ease; position: relative; white-space: nowrap; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; border-radius: 6px; }

.tab-button:hover { color: var(--secondary-color); background-color: rgba(52, 152, 219, 0.1); }

.tab-button.active { color: var(--secondary-color); background-color: rgba(52, 152, 219, 0.1); }

.tab-button.active::after { content: ''; position: absolute; bottom: 0; left: 15px; right: 15px; height: 2px; background-color: var(--secondary-color); border-radius: 2px 2px 0 0; }

/* Menu Toggle Button */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: 15px; transition: opacity 0.3s; }

@media (max-width: 768px) { .menu-toggle { margin-left: 0; } }
.menu-toggle:hover { opacity: 0.7; }

.menu-icon { width: 28px; height: 28px; display: block; }

/* Side Menu */
.side-menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 2000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }

.side-menu-overlay.active { opacity: 1; pointer-events: all; }

.side-menu { position: fixed; top: 0; right: -350px; width: 300px; height: 100vh; background-color: var(--header-bg); box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); z-index: 2001; transition: right 0.3s ease; overflow-y: auto; }

.side-menu.active { right: 0; }

.side-menu-header { display: flex; justify-content: flex-end; padding: 20px; border-bottom: 1px solid var(--border-color); }

.menu-close { background: none; border: none; font-size: 2rem; color: var(--primary-color); cursor: pointer; padding: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: color 0.3s; }

.menu-close:hover { color: var(--secondary-color); }

.menu-close span { line-height: 1; }

.side-menu-list { list-style: none; padding: 0; margin: 0; }

.side-menu-list li { border-bottom: 1px solid var(--border-color); }

.side-menu-list button { width: 100%; text-align: left; background: none; border: none; padding: 20px 25px; color: var(--primary-color); font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

.side-menu-tab { display: block; }

.side-menu-tab:hover { background-color: #e8f4f8; color: var(--secondary-color); padding-left: 30px; }

.side-menu-tab.active { background-color: #e8f4f8; color: var(--secondary-color); border-left: 4px solid var(--secondary-color); }

/* Responsive: Show menu button and hide main nav at 1100px */
@media (max-width: 1100px) { .main-nav { display: none; }
  .menu-toggle { display: block; }
  .side-menu-overlay { display: block; } }
/* Main Content */
main { margin-top: var(--header-height); }

/* Section Styles */
.section { padding: 80px 0; min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; position: relative; }

/* About Section - align to top */
#about.section { align-items: flex-start; }

/* 배경 이미지를 사용하는 섹션들에만 스택 컨텍스트를 부여 (Photos 섹션은 제외해서 라이트박스가 헤더 위로 올라올 수 있게 함) */
#about.section, #professor.section, #members.section, #publications.section, #projects.section, #recruit.section { z-index: 0; /* ::before / ::after(z-index:-1)가 섹션 내부 컨텐츠 뒤에만 오도록 */ }

/* Section Background Images - PC only (applied to all sections) */
@media (min-width: 1025px) { /* 왼쪽 배경 이미지 */
  .section::before { /* ... (기존 속성 동일) ... */ content: ''; position: absolute; top: 0; left: 0; width: 50%; bottom: 0; background-image: url("../images/about/background_left.png"); background-size: contain; background-position: left center; background-repeat: no-repeat; background-attachment: fixed; z-index: -1; /* 섹션 내부 모든 컨텐츠보다 항상 뒤로 */ /* opacity는 0.8 그대로 두거나, 더 은은한 걸 원하시면 제거해도 됩니다 */ opacity: 0.8; /* [수정 포인트] */ /* 1. 시작점(0%)을 rgba(0,0,0, 0.3) 정도로 낮춰서 은은하게 시작 */ /* 2. 끝점(100%가 아닌 80%)에서 미리 0으로 만들어 중앙 선이 생기지 않게 차단 */ mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0) 30%); -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0) 30%); pointer-events: none; }
  /* 오른쪽 배경 이미지 */
  .section::after { /* ... (기존 속성 동일) ... */ content: ''; position: absolute; top: 0; right: 0; width: 50%; bottom: 0; background-image: url("../images/about/background_right.png"); background-size: contain; background-position: right center; background-repeat: no-repeat; background-attachment: fixed; z-index: -1; /* 섹션 내부 모든 컨텐츠보다 항상 뒤로 */ opacity: 0.8; /* [수정 포인트] */ mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0) 30%); -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0) 30%); pointer-events: none; }
  /* ... */ }
/* Photos Section - align to top */
#photos.section { align-items: flex-start; }

/* Photos Section - 배경색 제거 (다른 탭과 통일) */
#photos.tab-panel { background-color: transparent; }

/* Tab Panel Styles */
.tab-panel { display: none; }

.tab-panel.active { display: flex; }

.tab-panel:nth-child(even) { background-color: var(--section-bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

.section h2 { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary-color); text-align: center; position: relative; padding-bottom: 20px; }

.section h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--secondary-color); }

.content { max-width: 1000px; margin: 0 auto; position: relative; }

/* 섹션 내 주요 카드/패널 요소들이 항상 배경보다 위에 오도록 보장 */
.research-detail-panel, .professor-info, .member-card, .publication-item, .organization-card, .photo-main, .recruit-card { position: relative; z-index: 1; }

/* About Section */
.about-container { max-width: 1200px; padding: 0 20px; }

.about-content { width: 100%; display: flex; flex-direction: column; gap: 40px; padding-top: 5px; }

/* Main Section: Image (Left) + Text (Right) */
.about-main-section { display: grid; grid-template-columns: 40% 1fr; gap: 40px; align-items: center; min-height: auto; padding: 0 30px; }

.about-main-image { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); position: relative; }

.about-image-slideshow { position: relative; width: 100%; height: auto; /* 높이가 300px를 초과할 경우 위쪽을 잘라내고 아래쪽을 기준으로 표시 */ max-height: 250px; overflow: hidden; display: flex; align-items: flex-end; /* 이미지/슬라이드의 아래쪽을 기준으로 맞춤 */ cursor: pointer; transition: opacity 0.2s ease; }
.about-image-slideshow:hover { opacity: 0.95; }

.slideshow-item { position: relative; width: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1; display: none; }

.slideshow-item.active { opacity: 1; z-index: 2; display: block; }

.about-main-image img { width: 100%; height: auto; display: block; object-fit: contain; }

.about-main-text { display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }

.about-text-wrapper { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }

.about-text { font-size: 1.1rem; line-height: 1.6; color: var(--text-color); text-align: justify; margin: 0; }

.about-links-container { display: flex; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 15px; width: 100%; min-width: 0; }

.about-link { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.3s ease, opacity 0.3s ease; text-decoration: none; color: var(--text-color); }

.about-link-divider { width: 1px; height: 30px; background-color: rgba(0, 0, 0, 0.2); margin: 0 40px; flex-shrink: 0; }

/* Research Areas Section (Below main content) */
.about-research-section { margin-top: 0; padding: 0 30px 30px; }

.research-section-title { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 600; text-align: center; }

.research-tags-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.research-tag { display: inline-block; padding: 10px 20px; background-color: rgba(52, 152, 219, 0.1); color: var(--secondary-color); border-radius: 20px; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; cursor: pointer; }

.research-tag:hover { background-color: var(--secondary-color); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3); }

.research-tag.selected { background-color: var(--secondary-color); color: white; transform: scale(1.05); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4); }

/* Research Detail Panel */
.research-detail-panel { margin-top: 20px; padding: 25px 30px; background: linear-gradient(135deg, #f4f4f5 0%, #e2eef3 100%); border-radius: 12px; border: 2px solid var(--secondary-color); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }

.research-detail-panel.active { opacity: 1; visibility: visible; }

.research-detail-panel .detail-title { font-size: 1.3rem; color: var(--primary-color); margin: 0 0 12px 0; font-weight: 600; }

.research-detail-panel .detail-body { display: grid; grid-template-columns: 5fr 2.5fr; gap: 30px; align-items: center; }

.research-detail-panel .detail-text-wrapper { display: flex; flex-direction: column; gap: 12px; }

.research-detail-panel .detail-content { font-size: 1.05rem; line-height: 1.7; color: var(--text-color); margin: 0; text-align: justify; }

.research-detail-panel .detail-image-wrapper { display: flex; justify-content: center; align-items: stretch; }

.research-detail-panel .detail-image-container { width: 100%; max-height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); background-color: #f8f9fa; }

.research-detail-panel .detail-image { width: 100%; height: auto; max-height: 200px; display: block; object-fit: contain; }

/* Social Links */
.about-link:hover { transform: translateY(-2px); opacity: 0.8; }

.about-link-icon { width: 32px; height: 32px; display: block; filter: grayscale(100%); opacity: 0.7; transition: opacity 0.3s ease; flex-shrink: 0; }

.about-link:hover .about-link-icon { opacity: 1; filter: grayscale(0%); }

.about-link-text { font-size: 1rem; font-weight: 600; color: var(--text-color); transition: color 0.3s ease; min-width: 0; }

/* Desktop: show long text, hide short text */
.about-link-text-mobile { display: none; }

/* Mobile: show short text, hide long text */
@media (max-width: 768px) { .about-link-text-desktop { display: none; }
  .about-link-text-mobile { display: inline; } }
.about-link:hover .about-link-text { color: var(--secondary-color); }

/* About Section Responsive */
@media (max-width: 1024px) { .about-main-section { grid-template-columns: 1fr; gap: 30px; min-height: auto; }
  .about-main-image { max-width: 500px; margin: 0 auto; }
  .about-main-section { padding: 0 20px; }
  .about-research-section { margin-top: 0; padding: 25px 20px; }
  .about-link-divider { height: 28px; margin: 0 32px; }
  .about-link-icon { width: 28px; height: 28px; } }
@media (max-width: 768px) { .about-container { padding: 0 15px; }
  .about-content { gap: 20px; }
  .about-text { font-size: 1.05rem; }
  .about-main-section { padding: 0 15px; }
  .about-research-section { margin-top: 0; padding: 20px 15px; }
  .research-section-title { font-size: 1.3rem; }
  .research-tag { font-size: 0.9rem; padding: 8px 16px; }
  .research-detail-panel { padding: 20px 20px; }
  .research-detail-panel .detail-title { font-size: 1.2rem; }
  .research-detail-panel .detail-body { grid-template-columns: 1fr; gap: 20px; }
  .research-detail-panel .detail-text-wrapper { order: 1; }
  .research-detail-panel .detail-image-wrapper { order: 2; align-items: center; justify-content: center; }
  .research-detail-panel .detail-image-container { width: fit-content; max-width: 100%; max-height: 180px; }
  .research-detail-panel .detail-image { width: auto; max-width: 100%; max-height: 180px; display: block; }
  .research-detail-panel .detail-content { font-size: 1rem; }
  .about-link-divider { height: 25px; margin: 0 30px; }
  .about-link-icon { width: 24px; height: 24px; } }
@media (max-width: 480px) { .about-text { font-size: 1rem; }
  .about-main-section { padding: 0 10px; }
  .about-research-section { margin-top: 0; padding: 15px 10px; }
  .research-section-title { font-size: 1.2rem; }
  .research-tag { font-size: 0.85rem; padding: 6px 12px; }
  .research-detail-panel { padding: 20px 15px; }
  .research-detail-panel .detail-title { font-size: 1.1rem; }
  .research-detail-panel .detail-body { gap: 15px; }
  .research-detail-panel .detail-content { font-size: 0.95rem; }
  .about-link-divider { height: 22px; margin: 0 24px; }
  .about-link-icon { width: 20px; height: 20px; } }
/* Professor Section */
#professor.section { align-items: flex-start; }

.professor-info { text-align: left; padding: 20px 30px 20px 370px; background: var(--card-bg); border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: flex-start; position: relative; transition: transform 0.3s, box-shadow 0.3s; min-height: 500px; }

.professor-info:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); }

.professor-image { position: absolute; top: 20px; left: 20px; bottom: 20px; width: 330px; height: calc(100% - 40px); border-radius: 12px; overflow: hidden; border: none; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); background-color: transparent; }

.professor-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.professor-image img.default-icon { object-fit: contain; padding: 25px; background-color: #f5f5f5; }

.professor-info h3 { font-size: 2rem; color: var(--primary-color); margin: 0 0 20px 0; font-weight: 700; line-height: 1.3; width: 100%; }

.professor-details { width: 100%; line-height: 1.2; margin-bottom: 60px; /* Space for CV button */ padding-right: 10px; }

.detail-item { display: flex; margin-bottom: 12px; align-items: flex-start; }

.detail-item:last-child { margin-bottom: 0; }

.detail-item.detail-indent { padding-left: 24px; margin-top: 6px; margin-bottom: 10px; }

.detail-label { margin-right: 8px; flex-shrink: 0; color: var(--secondary-color); font-weight: 700; font-size: 1.1rem; }

.detail-content { flex: 1; color: var(--text-color); font-size: 1.05rem; line-height: 1.2; font-weight: 400; }

/* Style for labels within detail-content (e.g., "Email:", "Office:") */
.detail-content strong { font-weight: 700; color: var(--primary-color); font-size: 1.05rem; }

/* Style for section headers in detail-content */
.detail-item:not(.detail-indent) .detail-content { font-weight: 600; color: var(--primary-color); font-size: 1.1rem; }

.detail-content a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; font-weight: 600; }

.detail-content a:hover { color: var(--primary-color); text-decoration: underline; }

/* Style for text before colon (e.g., "Email:", "Office:") */
.detail-content { position: relative; }

/* Make section headers more prominent */
.detail-item:not(.detail-indent) .detail-content:first-child { font-weight: 700; color: var(--primary-color); font-size: 1.15rem; letter-spacing: 0.3px; }

/* Style for indented content (sub-items) */
.detail-item.detail-indent .detail-content { font-weight: 400; color: var(--text-color); font-size: 1rem; }

.cv-link { font-weight: 600; color: var(--secondary-color); text-decoration: none; transition: all 0.3s; display: inline-block; padding: 8px 16px; border: 2px solid var(--secondary-color); border-radius: 6px; font-size: 0.85rem; position: absolute; bottom: 20px; right: 20px; white-space: nowrap; z-index: 10; /* Ensure button stays on top */ }

.cv-link:hover { background-color: var(--secondary-color); color: white; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3); }

/* Members Section */
.members-subsection { margin-bottom: 60px; }

.members-subsection:last-child { margin-bottom: 0; }

.subsection-title { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); text-align: left; position: relative; }

.subsection-title::after { display: none; /* Override section h2::after */ }

.members-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; min-width: 0; }

.member-card { background: var(--card-bg); padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: row; align-items: flex-start; text-align: left; position: relative; gap: 20px; min-width: 0; box-sizing: border-box; }

.member-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); }

.member-image { width: 112px; height: 154px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; flex-shrink: 0; background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); }

.member-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.member-image img.default-icon { object-fit: contain; padding: 20px; background-color: #f5f5f5; }

.member-info { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }

.member-links-top { position: absolute; top: 15px; right: 15px; display: flex; gap: 8px; align-items: center; z-index: 10; }

.member-link { display: inline-flex; align-items: center; justify-content: center; color: var(--primary-color); text-decoration: none; transition: all 0.3s; padding: 4px; border-radius: 4px; background-color: color-mix(in srgb, var(--card-bg) 80%, white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

.member-link:hover { color: var(--secondary-color); background-color: rgba(52, 152, 219, 0.1); transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }

.member-link .link-icon { display: block; width: 20px; height: 20px; }

.member-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 8px; width: 100%; padding-right: 70px; /* Space for link buttons */ }

.member-name-en { font-size: 1.2rem; color: var(--primary-color); margin: 0 0 4px 0; font-weight: 600; }

.member-name-ko { font-size: 0.95rem; color: #666; margin: 0; font-weight: 400; }

.member-name { font-size: 1.2rem; color: var(--primary-color); margin: 0 0 8px 0; font-weight: 600; line-height: 1.4; }

.member-card h3 { font-size: 1.3rem; color: var(--primary-color); margin: 0; }

.member-card .role { color: var(--secondary-color); font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }

.member-card .email { margin-bottom: 6px; font-size: 0.9rem; }

.member-card .email a { color: var(--secondary-color); text-decoration: none; }

.member-card .email a:hover { text-decoration: underline; }

.member-card .graduation { font-size: 0.85rem; color: #888; font-weight: 500; margin-top: 4px; }

/* Alumni specific styles */
.alumni-card .alumni-degree { color: var(--secondary-color); font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; line-height: 1.5; }

.thesis-info { margin-top: 8px; margin-bottom: 8px; }

.thesis-label { font-size: 0.85rem; color: #666; font-weight: 600; margin-right: 6px; }

.thesis-title { font-size: 0.9rem; color: var(--primary-color); margin: 0; line-height: 1.5; }

.thesis-title a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; }

.thesis-title a:hover { color: var(--primary-color); text-decoration: underline; }

.education-history { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color); }

.education-item { font-size: 0.85rem; color: #666; margin-bottom: 6px; line-height: 1.4; text-align: left; }

.education-item:last-child { margin-bottom: 0; }

.education-period { font-weight: 600; color: var(--primary-color); margin-right: 8px; }

.education-description { color: #666; }

/* Members Header */
.members-header { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; position: relative; }

.members-header h2 { margin: 0; }

.members-menu-toggle { position: absolute; right: 0; }

.members-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; transition: opacity 0.3s; }

.members-menu-toggle:hover { opacity: 0.7; }

.members-menu-toggle .menu-icon { width: 28px; height: 28px; display: block; }

.members-container { max-width: 1000px; margin: 0 auto; width: 100%; min-width: 0; box-sizing: border-box; }

.members-list { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 15px; box-sizing: border-box; }

.members-subsection { min-width: 0; }

.member-category { display: flex; flex-direction: column; gap: 15px; }

.member-category.hidden { display: none; }

/* Members Side Menu Overlay */
.members-menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1998; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }

.members-menu-overlay.active { opacity: 1; pointer-events: all; }

.members-side-menu { position: fixed; top: calc(var(--header-height) + 20px); right: 20px; width: 200px; background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 0; z-index: 1999; border: 3px solid var(--primary-color); overflow: hidden; }

.members-menu-title { background-color: var(--primary-color); color: white; padding: 12px 20px; font-size: 1.1rem; font-weight: 700; text-align: center; margin: 0; border-bottom: 4px solid var(--primary-color); position: relative; display: flex; align-items: center; justify-content: center; }

.members-menu-header { display: none; }

.members-menu-close { display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.8rem; color: white; cursor: pointer; padding: 0; width: 32px; height: 32px; align-items: center; justify-content: center; transition: opacity 0.3s; opacity: 0.9; }

.members-menu-close:hover { opacity: 1; }

.members-menu-close span { line-height: 1; }

.members-menu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }

.member-menu-btn { width: 100%; padding: 14px 20px; background-color: color-mix(in srgb, var(--bg-color) 95%, black); border: none; border-bottom: 1px solid #d0d0d0; color: var(--primary-color); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s; text-align: center; font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

.member-menu-btn:hover { background-color: var(--bg-color); color: var(--primary-color); }

.member-menu-btn.active { background-color: color-mix(in srgb, var(--bg-color) 50%, white); color: var(--primary-color); font-weight: 700; }

.member-menu-btn.active:hover { background-color: color-mix(in srgb, var(--bg-color) 40%, white); color: var(--primary-color); }

/* Publications Section */
.publications-header { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; position: relative; }

.publications-header h2 { margin: 0; }

.publications-menu-toggle { position: absolute; right: 0; }

.publications-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; transition: opacity 0.3s; }

.publications-menu-toggle:hover { opacity: 0.7; }

.publications-menu-toggle .menu-icon { width: 28px; height: 28px; display: block; }

.publications-container { max-width: 1000px; margin: 0 auto; }

.publications-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.publication-category { display: flex; flex-direction: column; gap: 10px; }

.publication-category.hidden { display: none; }

.publications-section { margin-bottom: 60px; }

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

/* Publications Side Menu Overlay */
.publications-menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1998; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }

.publications-menu-overlay.active { opacity: 1; pointer-events: all; }

.publications-side-menu { position: fixed; top: calc(var(--header-height) + 20px); right: 20px; width: 200px; background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 0; z-index: 1999; border: 3px solid var(--primary-color); overflow: hidden; }

.publications-menu-title { background-color: var(--primary-color); color: white; padding: 12px 20px; font-size: 1.1rem; font-weight: 700; text-align: center; margin: 0; border-bottom: 4px solid var(--primary-color); position: relative; display: flex; align-items: center; justify-content: center; }

.publications-menu-header { display: none; }

.publications-menu-close { display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.8rem; color: white; cursor: pointer; padding: 0; width: 32px; height: 32px; align-items: center; justify-content: center; transition: opacity 0.3s; opacity: 0.9; }

.publications-menu-close:hover { opacity: 1; }

.publications-menu-close span { line-height: 1; }

.publications-menu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }

.publication-menu-btn { width: 100%; padding: 14px 20px; background-color: color-mix(in srgb, var(--bg-color) 95%, black); border: none; border-bottom: 1px solid #d0d0d0; color: var(--primary-color); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s; text-align: center; font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

.publication-menu-btn:hover { background-color: var(--bg-color); color: var(--primary-color); }

.publication-menu-btn.active { background-color: color-mix(in srgb, var(--bg-color) 50%, white); color: var(--primary-color); font-weight: 700; }

.publication-menu-btn.active:hover { background-color: color-mix(in srgb, var(--bg-color) 40%, white); color: var(--primary-color); }

.publication-item { background: var(--card-bg); padding: 12px 14px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: relative; transition: all 0.3s ease; margin-bottom: 10px; }

.publication-item:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); }

.publication-item.hidden { display: none; }

.publication-item-hidden { display: none; }

.publications-show-more-container { text-align: center; margin-top: 40px; margin-bottom: 30px; display: flex; gap: 20px; justify-content: center; align-items: center; }

.publications-show-more-btn, .publications-show-less-btn { background: transparent; border: none; padding: 8px 16px; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; font-weight: 500; color: #666; }

.publications-show-more-btn:hover, .publications-show-less-btn:hover { background-color: rgba(52, 152, 219, 0.08); color: var(--secondary-color); }

.publications-show-more-btn:active, .publications-show-less-btn:active { background-color: rgba(52, 152, 219, 0.15); }

.publications-show-more-btn .show-more-icon, .publications-show-less-btn .show-less-icon { width: 18px; height: 18px; display: block; opacity: 0.7; transition: all 0.2s ease; }

.publications-show-more-btn:hover .show-more-icon, .publications-show-less-btn:hover .show-less-icon { opacity: 1; }

.show-more-text, .show-less-text { font-size: 0.9rem; font-weight: 500; }

.year-badge { position: absolute; bottom: 8px; right: 10px; color: #666; font-weight: 600; font-size: 0.9rem; padding: 4px 8px; background-color: #f5f5f5; border-radius: 4px; }

.publication-item h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 4px; line-height: 1.3; padding-right: 0; }

.publication-item .authors { margin-bottom: 4px; font-weight: 500; line-height: 1.3; }

.publication-item .venue { color: color-mix(in srgb, var(--primary-color) 80%, white); font-weight: 600; margin-bottom: 5px; }

.publication-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; padding-right: 53.33px; padding-bottom: 4px; }

.pub-link { display: flex; align-items: center; gap: 4px; color: var(--secondary-color); text-decoration: none; font-weight: 500; font-size: 0.85rem; transition: all 0.3s ease; padding: 4px 8px; border-radius: 4px; background: linear-gradient(135deg, #f4f5f6 0%, #edf0f4 100%); border: 1px solid #e0e0e0; }

.pub-link:hover { color: var(--primary-color); background: linear-gradient(135deg, #e2eef1 0%, #cbdfe7 100%); border-color: var(--secondary-color); transform: translateY(-1px); box-shadow: 0 1px 4px rgba(52, 152, 219, 0.2); }

.pub-link .link-icon { width: 14px; height: 14px; flex-shrink: 0; display: block; }

.pub-link span { white-space: nowrap; }

/* Publications Section Header */
.publications-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); }

.publications-section-header .subsection-title { margin: 0; border: none; padding: 0; }

.publications-section-note { font-size: 0.85rem; color: #666; margin: 0; font-style: italic; }

/* Mobile Responsive */
@media (max-width: 768px) { .publications-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .publications-section-note { width: 100%; } }
/* Projects Section */
.projects-list { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }

.organization-card { background: var(--card-bg); padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: row; align-items: flex-start; gap: 30px; transition: transform 0.3s, box-shadow 0.3s; }

.organization-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); }

.organization-card-with-subinstitution { flex-direction: column; gap: 0; }

.organization-header { display: flex; flex-direction: row; align-items: flex-start; gap: 30px; width: 100%; }

.organization-logos { flex-shrink: 0; width: 280px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 8px; gap: 20px; }

.organization-logo { display: flex; align-items: center; justify-content: center; width: 100%; }

.organization-logo img { max-width: 100%; max-height: 200px; object-fit: contain; display: block; }

.subinstitution-logo { display: flex; align-items: center; justify-content: center; width: 100%; padding: 5px; }

.subinstitution-logo img { max-width: 100%; max-height: 80px; object-fit: contain; display: block; }

/* Subinstitution container for projects with subinstitution_logo */
.subinstitution-container { background: transparent; padding: 0; border-radius: 10px; display: flex; flex-direction: row; align-items: flex-start; gap: 30px; margin-top: 12px; }

.subinstitution-container:first-of-type { margin-top: 0; }

.subinstitution-logo-section { flex-shrink: 0; width: 280px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 10px; }

.subinstitution-content { flex: 1; min-width: 0; }

.organization-content { flex: 1; min-width: 0; }

.organization-name { font-size: 1.5rem; color: var(--primary-color); margin: 0 0 20px 0; font-weight: 600; line-height: 1.3; }

.organization-card-with-subinstitution .organization-name { margin: 0; }

.projects-list-items { list-style: none; padding: 0; margin: 0; }

.project-item { display: flex; align-items: flex-start; margin-bottom: 12px; line-height: 1.6; }

.project-item:last-child { margin-bottom: 0; }

.project-bullet { color: var(--secondary-color); font-weight: 600; margin-right: 10px; flex-shrink: 0; font-size: 1rem; }

.project-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.project-title { color: var(--text-color); font-size: 0.95rem; line-height: 1.6; font-weight: bold; }

.project-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.project-period { color: #666; font-size: 0.9rem; font-weight: 500; }

.project-role { color: var(--secondary-color); font-size: 0.9rem; font-weight: 600; padding: 2px 8px; background-color: rgba(52, 152, 219, 0.1); border-radius: 4px; }

/* Photos Section - Masonry Layout */
/* Loading Spinner */
.photos-loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; min-height: 300px; }

.photos-loading-spinner.hidden { display: none; }

.photos-loading-spinner .spinner { width: 50px; height: 50px; border: 4px solid rgba(0, 0, 0, 0.1); border-top-color: #0066cc; border-radius: 50%; animation: spin 0.8s linear infinite; }

.photos-loading-spinner p { margin-top: 20px; color: #666; font-size: 14px; font-weight: 500; }

@keyframes spin { 0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); } }
.photos-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; align-items: flex-start; opacity: 1; transition: opacity 0.4s ease; }

.photos-grid.loaded { opacity: 1; }

.photos-columns-wrapper { display: flex; gap: 20px; width: 100%; align-items: flex-start; }

/* Inline loading spinner (shown below loaded photos) */
.photos-loading-spinner-inline { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; width: 100%; }

.photos-loading-spinner-inline .spinner { width: 40px; height: 40px; border: 3px solid rgba(0, 0, 0, 0.1); border-top-color: #0066cc; border-radius: 50%; animation: spin 0.8s linear infinite; }

.photos-loading-spinner-inline p { margin-top: 15px; color: #666; font-size: 13px; font-weight: 500; }

.photo-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.photo-item { position: relative; width: 100%; background-color: #ffffff; overflow: hidden; cursor: pointer; border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease; }

.photo-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.photo-item img.photo-main { width: 100%; height: auto; object-fit: cover; display: block; }

/* Photo Lightbox */
.photo-lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.95); display: flex; justify-content: center; align-items: center; /* 헤더/사이드 메뉴보다 항상 위에 보이도록 충분히 높은 z-index 설정 */ z-index: 100000; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease; }

.photo-lightbox.active { visibility: visible; opacity: 1; }

.photo-lightbox.closing { opacity: 0; }

.photo-lightbox-content { max-width: 90%; max-height: 90%; display: flex; justify-content: center; align-items: center; }

.photo-lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; }

.photo-lightbox-close { position: absolute; top: 30px; right: 30px; background: transparent; border: none; color: white; font-size: 40px; cursor: pointer; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; transition: transform 0.2s ease, opacity 0.2s ease; opacity: 0.8; /* 라이트박스 위에 보이도록 라이트박스보다 살짝 더 높게 설정 */ z-index: 100001; }

.photo-lightbox-close:hover { opacity: 1; transform: scale(1.1); }

.photo-lightbox-close span { line-height: 1; }

/* Responsive Design */
@media (max-width: 1024px) { .photos-grid { gap: 15px; }
  .photos-columns-wrapper { gap: 15px; }
  .photo-column { gap: 15px; } }
@media (max-width: 768px) { .photos-grid { gap: 15px; }
  .photos-columns-wrapper { gap: 15px; }
  .photo-column { gap: 15px; }
  .photo-lightbox-close { top: 20px; right: 20px; font-size: 30px; width: 40px; height: 40px; } }
/* Recruit Section */
.recruit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }

.recruit-card { background: var(--card-bg); padding: 35px 30px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); transition: transform 0.3s, box-shadow 0.3s; }

.recruit-card:hover { transform: translateY(-5px); box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15); }

.recruit-card-title { font-size: 1.5rem; color: var(--primary-color); margin: 0 0 25px 0; font-weight: 700; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); }

.recruit-card-content { display: flex; flex-direction: column; gap: 12px; }

.recruit-item { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--text-color); }

.recruit-item strong { color: var(--primary-color); font-weight: 700; margin-right: 8px; }

.recruit-link { color: var(--secondary-color); text-decoration: none; font-weight: 600; transition: color 0.3s; }

.recruit-link:hover { color: var(--primary-color); text-decoration: underline; }

/* Recruitment Section */
.recruitment-section { padding: 0 0 20px 0; margin-bottom: 30px; max-width: 1200px; margin-left: auto; margin-right: auto; }

.recruitment-links { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

.recruitment-link-btn { display: inline-block; padding: 12px 24px; background-color: var(--card-bg); color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 10px; border: 2px solid #e0e0e0; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }

.recruitment-link-btn:hover { background-color: color-mix(in srgb, var(--bg-color) 80%, white); border-color: var(--secondary-color); color: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.recruitment-link { color: var(--secondary-color); text-decoration: none; font-weight: 600; transition: color 0.3s; }

.recruitment-link:hover { color: var(--primary-color); text-decoration: underline; }

.link-separator { margin: 0 4px; color: var(--text-color); }

.recruitment-applications { padding-top: 15px; border-top: 2px solid var(--border-color); }

.recruitment-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin: 0 0 10px 0; }

.recruitment-item { margin: 8px 0; font-size: 1.05rem; line-height: 1.5; color: var(--text-color); }

.recruitment-item strong { color: var(--primary-color); font-weight: 700; margin-right: 8px; }

.recruitment-contact { margin: 12px 0 0 0; font-size: 1.05rem; line-height: 1.5; color: var(--text-color); }

/* Fallback for old recruit-info style */
.recruit-info { background: var(--card-bg); padding: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); max-width: 600px; margin: 0 auto; }

.recruit-info p { margin-bottom: 20px; font-size: 1.1rem; }

.recruit-info a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; }

.recruit-info a:hover { color: var(--primary-color); }

/* Footer */
.site-footer { background-color: var(--primary-color); color: white; padding: 30px 0; text-align: center; }

.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.footer-container p { margin-bottom: 10px; }

.footer-container a { color: white; text-decoration: none; transition: opacity 0.3s; }

.footer-container a:hover { opacity: 0.8; }

/* Scroll to Top Button */
.scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary-color); border: none; border-radius: 50%; cursor: pointer; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); }

.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); background-color: color-mix(in srgb, var(--primary-color) 90%, black); }

.scroll-to-top:active { transform: translateY(-1px); }

.scroll-to-top-icon { width: 24px; height: 24px; filter: brightness(0) invert(1); transition: transform 0.3s ease; }

.scroll-to-top:hover .scroll-to-top-icon { transform: translateY(-2px); }

/* Mobile Responsive */
@media (max-width: 768px) { .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
  .scroll-to-top-icon { width: 20px; height: 20px; } }
/* Responsive Design */
@media (max-width: 768px) { :root { --header-height: 80px; }
  .header-container { flex-direction: row; justify-content: space-between; align-items: center; height: var(--header-height); padding: 10px 20px; }
  .main-nav ul { flex-wrap: wrap; gap: 25px; justify-content: center; margin-top: 15px; }
  .main-nav a { font-size: 1.1rem; padding: 8px 0; }
  main { margin-top: var(--header-height); }
  .section { padding: 60px 0; min-height: calc(100vh - var(--header-height)); }
  .section h2 { font-size: 2rem; }
  /* Members: 동일한 카드 너비·오른쪽 여백 보장 (Ph.D / M.S. / Alumni) */
  #members .container, #members .content { width: 100%; min-width: 0; box-sizing: border-box; }
  #members .members-container { width: 100%; max-width: 100%; }
  #members .members-subsection { width: 100%; min-width: 0; }
  #members .members-grid { width: 100%; min-width: 0; box-sizing: border-box; }
  #members .member-card { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .members-grid { grid-template-columns: 1fr; gap: 15px; }
  /* 모바일: 카드 세로 배치 — 위 사진(중앙), 아래 이름·텍스트 */
  .member-card { flex-direction: column; align-items: center; padding: 15px; gap: 18px; }
  .member-card .member-image { width: 120px; height: 165px; margin: 0 auto; flex-shrink: 0; }
  .member-card .member-info { width: 100%; text-align: left; }
  .member-card .member-header { justify-content: flex-start; align-items: flex-start; padding-right: 0; /* 모바일에서는 이름 오른쪽 여백 제거 */ }
  .member-image { width: 120px; height: 165px; }
  .member-links-top { top: 10px; right: 10px; gap: 6px; }
  .member-link .link-icon { width: 18px; height: 18px; }
  .member-header { padding-right: 65px; /* Adjusted space for smaller link buttons */ }
  .member-name-en { font-size: 1.1rem; }
  .member-name-ko { font-size: 0.9rem; }
  .professor-info { flex-direction: column; padding: 30px 20px 20px 20px; align-items: center; text-align: center; min-height: auto; /* 모바일에서는 내용 높이에 맞게 */ }
  .professor-image { position: relative; top: auto; left: auto; width: 100%; max-width: 220px; height: auto; margin: 0 auto 25px; }
  .professor-info h3 { font-size: 1.8rem; text-align: center; font-weight: 700; margin-bottom: 25px; }
  .professor-details { text-align: left; width: 100%; line-height: 1.2; margin-bottom: 50px; /* Space for CV button on mobile */ padding-right: 5px; }
  .detail-item { margin-bottom: 14px; }
  .detail-label { font-size: 1.05rem; font-weight: 700; }
  .detail-content { font-size: 1rem; }
  .detail-item:not(.detail-indent) .detail-content { font-size: 1.1rem; font-weight: 700; }
  .detail-item.detail-indent .detail-content { font-size: 0.95rem; }
  .detail-item.detail-indent { padding-left: 20px; }
  .cv-link { bottom: 15px; right: 15px; padding: 6px 12px; font-size: 0.75rem; }
  .recruit-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .recruitment-section { padding: 0 0 15px 0; margin-bottom: 25px; }
  .recruitment-links { gap: 10px; }
  .recruitment-link-btn { padding: 10px 20px; font-size: 0.95rem; }
  .recruitment-title { font-size: 1.1rem; margin-bottom: 8px; }
  .recruitment-item { font-size: 0.95rem; margin: 6px 0; }
  .recruitment-contact { font-size: 0.95rem; margin-top: 10px; }
  .recruit-card { padding: 25px 20px; }
  .recruit-card-title { font-size: 1.3rem; margin-bottom: 20px; }
  .recruit-item { font-size: 1rem; }
  .organization-card { flex-direction: column; padding: 20px; gap: 20px; align-items: center; }
  .organization-logo { width: 100%; max-width: 250px; padding: 15px; }
  .organization-logo img { max-height: 150px; }
  /* 모바일: organization name도 로고 아래(세로 레이아웃)로 */
  .organization-header { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .organization-content { width: 100%; text-align: center; }
  .organization-name { margin-top: 4px; margin-bottom: 16px; }
  /* 모바일: subinstitution이 있는 카드도 이미지 위, 설명 아래로 세로 배치 */
  .subinstitution-container { flex-direction: column; align-items: center; gap: 16px; margin-top: 16px; }
  .subinstitution-logo-section { width: 100%; max-width: 250px; padding: 10px 15px; }
  .subinstitution-content { width: 100%; min-width: 0; }
  .organization-name { font-size: 1.3rem; text-align: center; }
  /* 모바일: project 제목은 항상 왼쪽 정렬 */
  .project-title { text-align: left; width: 100%; }
  .project-content { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .publications-container { padding-right: 0; }
  .members-side-menu { position: fixed; top: calc(var(--header-height) + 20px); right: 20px; width: 180px; z-index: 1999; }
  .members-menu-title { font-size: 1rem; padding: 10px 40px 10px 15px; }
  .members-menu-list { flex-direction: column; gap: 0; }
  .member-menu-btn { width: 100%; text-align: center; font-size: 0.9rem; padding: 12px 15px; } }
@media (max-width: 1479px) { .publications-menu-toggle { display: block; }
  .publications-side-menu { right: -300px; width: 280px; height: auto; max-height: calc(100vh - var(--header-height) - 40px); overflow-y: auto; transition: right 0.3s ease; }
  .publications-side-menu.active { right: 20px; }
  .publications-menu-title { font-size: 1.1rem; padding: 12px 45px 12px 20px; }
  .publications-menu-close { display: flex; }
  .publications-menu-overlay { display: block; }
  .publication-links { padding-right: 46.67px; padding-bottom: 10px; }
  .member-links-top { top: 8px; right: 8px; gap: 5px; }
  .member-link { padding: 3px; }
  .member-link .link-icon { width: 16px; height: 16px; }
  .member-header { padding-right: 60px; /* Further adjusted for very small screens */ }
  .members-menu-toggle { display: block; }
  .members-side-menu { right: -300px; width: 280px; height: auto; max-height: calc(100vh - var(--header-height) - 40px); overflow-y: auto; transition: right 0.3s ease; }
  .members-side-menu.active { right: 20px; }
  .members-menu-title { font-size: 1.1rem; padding: 12px 45px 12px 20px; }
  .members-menu-close { display: flex; }
  .members-menu-overlay { display: block; } }
/* ============================================ 색상 팔레트 UI 스타일 ============================================ */
/* 플로팅 버튼 - 좌상단 고정 */
.color-palette-toggle { position: fixed; top: 20px; left: 20px; width: 50px; height: 50px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 9999; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }

.color-palette-toggle:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }

.color-palette-toggle:active { transform: scale(0.95); }

/* 색상 설정 패널 오버레이 */
.color-palette-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }

.color-palette-overlay.active { opacity: 1; visibility: visible; }

/* 색상 설정 패널 */
.color-palette-panel { position: fixed; top: 0; left: 0; width: 360px; height: 100vh; background: white; z-index: 9999; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; overflow: hidden; }

.color-palette-panel.active { transform: translateX(0); }

/* 패널 헤더 */
.color-palette-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

.color-palette-header h3 { margin: 0; font-size: 1.3rem; font-weight: 600; }

.color-palette-close { background: none; border: none; color: white; font-size: 32px; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s ease; line-height: 1; padding: 0; }

.color-palette-close:hover { background: rgba(255, 255, 255, 0.2); }

/* 패널 본문 */
.color-palette-body { flex: 1; overflow-y: auto; padding: 24px 20px; }

/* 색상 컨트롤 */
.color-control { margin-bottom: 20px; }

.color-control label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-color); margin-bottom: 8px; }

.color-control-input-wrapper { display: flex; align-items: center; gap: 12px; background: var(--section-bg); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-color); }

.color-control input[type="color"] { width: 48px; height: 48px; border: 3px solid white; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; }

.color-control input[type="color"]:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }

.color-control input[type="text"] { flex: 1; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--text-color); background: white; }

.color-control input[type="text"]:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); }

/* 패널 푸터 */
.color-palette-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); background: var(--section-bg); }

.color-reset-btn { width: 100%; padding: 12px 20px; background: var(--accent-color); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }

.color-reset-btn:hover { background: #c0392b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); }

.color-reset-btn:active { transform: translateY(0); }

/* 색상 변수 설명 */
.color-control-description { font-size: 0.8rem; color: #666; margin-top: 4px; }

/* 반응형 - 모바일 */
@media (max-width: 480px) { .color-palette-panel { width: 90%; max-width: 320px; }
  .color-palette-toggle { width: 44px; height: 44px; font-size: 20px; top: 15px; left: 15px; }
  .color-palette-header h3 { font-size: 1.1rem; }
  .color-palette-body { padding: 20px 16px; }
  .color-control { margin-bottom: 16px; }
  .color-control input[type="color"] { width: 40px; height: 40px; } }
/* 스크롤바 스타일 */
.color-palette-body::-webkit-scrollbar { width: 6px; }

.color-palette-body::-webkit-scrollbar-track { background: #f1f1f1; }

.color-palette-body::-webkit-scrollbar-thumb { background: #888; border-radius: 3px; }

.color-palette-body::-webkit-scrollbar-thumb:hover { background: #555; }
