/* =============================================
   VIP Lab Apple 디자인 시스템 — 테스트 페이지 공유 CSS
   모든 page-test-*.php 파일에서 공통으로 사용
   ============================================= */

/* --- 1. CSS 변수 --- */
:root {
	--bg-color:      #f5f5f7;
	--text-main:     #1d1d1f;
	--text-muted:    #86868b;
	--card-bg:       #ffffff;
	--accent-blue:   #0066cc;
	--border-radius: 18px;
}

/* --- 2. 기본 타이포그래피 & 배경 --- */
body {
	background-color: var(--bg-color) !important;
	color: var(--text-main);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 1.47059;
	letter-spacing: -0.022em;
}

/* --- 3. 헤더 Glassmorphism --- */
#masthead {
	position: sticky !important;
	top: 0;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.72) !important;
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow: none !important;
}

/* --- 4. 레이아웃 초기화 (사이드바 제거, 풀 너비) --- */
#page {
	background-color: var(--bg-color) !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

#content {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
}

#primary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

#main {
	padding: 0 !important;
}

/* --- 5. 공통 컨테이너 --- */
.test-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

/* --- 6. Hero 섹션 --- */
.test-hero {
	max-width: 900px;
	margin: 80px auto 60px;
	text-align: center;
	padding: 0 20px;
}

.test-hero h1 {
	font-size: 48px;
	font-weight: 600;
	line-height: 1.07143;
	letter-spacing: -0.005em;
	color: var(--text-main);
	margin: 0 0 16px;
}

.test-hero p {
	font-size: 20px;
	color: var(--text-muted);
	line-height: 1.47059;
	letter-spacing: -0.022em;
	margin: 0;
}

/* --- 7. 섹션 제목 --- */
.test-section-title {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.003em;
	color: var(--text-main);
	margin: 60px 0 24px;
	padding: 0;
	border: none;
}

.test-section-title:first-child {
	margin-top: 0;
}

/* --- 8. 카드 그리드 (뉴스 / 연구 / 데이터셋) --- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 20px;
}

/* --- 9. 카드 컴포넌트 --- */
.article-card {
	display: block;
	background: var(--card-bg);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s cubic-bezier(0.15, 0.8, 0.15, 1), box-shadow 0.3s ease;
}

.article-card:hover {
	transform: scale(1.01);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	color: inherit;
}

.card-image {
	width: 100%;
	aspect-ratio: 16 / 6;
	overflow: hidden;
	background-color: #e8e8ed;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 0;
	transition: transform 0.4s ease;
}

.article-card:hover .card-image img {
	transform: scale(1.03);
}

.card-content {
	padding: 24px;
}

.card-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-blue);
	margin-bottom: 10px;
}

.card-title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.009em;
	color: var(--text-main);
	margin: 0 0 10px;
	transition: color 0.3s ease;
}

.article-card:hover .card-title {
	color: var(--accent-blue);
}

.card-excerpt {
	font-size: 16px;
	font-weight: 400;
	color: var(--text-muted);
	line-height: 1.5;
	margin: 0 0 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.card-date {
	font-size: 13px;
	color: var(--text-muted);
}

.card-arrow {
	font-size: 18px;
	color: var(--accent-blue);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.15, 0.8, 0.15, 1);
	display: inline-block;
	line-height: 1;
}

.article-card:hover .card-arrow {
	opacity: 1;
	transform: translateX(0);
}

/* --- 10. 사진 갤러리 그리드 --- */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.photo-item {
	display: block;
	border-radius: var(--border-radius);
	overflow: hidden;
	background-color: #e8e8ed;
	aspect-ratio: 4 / 3;
	transition: transform 0.3s cubic-bezier(0.15, 0.8, 0.15, 1), box-shadow 0.3s ease;
	text-decoration: none;
}

.photo-item:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.photo-item:hover img {
	transform: scale(1.04);
}

.photo-caption {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 6px;
	text-align: center;
}

/* --- 11. 학생 프로필 그리드 --- */
.student-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.student-card {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
	padding: 24px 20px;
	text-align: center;
	transition: transform 0.3s cubic-bezier(0.15, 0.8, 0.15, 1), box-shadow 0.3s ease;
}

.student-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.student-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 16px;
	background-color: #e8e8ed;
}

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

.student-name {
	font-size: 17px;
	font-weight: 600;
	color: var(--text-main);
	margin: 0 0 8px;
	letter-spacing: -0.003em;
}

.student-info {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.5;
}

.student-info p {
	margin: 0;
}

/* 동문 테이블 */
.alumni-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.alumni-table th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	padding: 10px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.alumni-table td {
	padding: 12px 16px;
	color: var(--text-main);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	vertical-align: top;
}

.alumni-table tr:last-child td {
	border-bottom: none;
}

.alumni-table tr:hover td {
	background-color: rgba(0, 102, 204, 0.03);
}

/* --- 12. 학술 출판물 목록 (저널 / 학술대회 / 국내논문) --- */
.pub-year-section {
	margin-bottom: 48px;
}

.pub-year-heading {
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -0.003em;
	color: var(--text-main);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.pub-item {
	padding: 18px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.pub-item:last-child {
	border-bottom: none;
}

.pub-index {
	font-size: 13px;
	color: var(--text-muted);
	min-width: 28px;
	margin-top: 2px;
	flex-shrink: 0;
}

.pub-body {
	flex: 1;
}

.pub-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--text-main);
	line-height: 1.35;
	margin: 0 0 6px;
	letter-spacing: -0.003em;
	text-decoration: none;
	display: block;
}

a.pub-title:hover {
	color: var(--accent-blue);
}

.pub-authors {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 4px;
}

.pub-venue {
	font-size: 14px;
	color: var(--text-muted);
	font-style: italic;
	margin: 0 0 4px;
}

.pub-meta {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0;
}

.pub-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-blue);
	background: rgba(0, 102, 204, 0.08);
	border-radius: 6px;
	padding: 2px 8px;
	margin-left: 6px;
	vertical-align: middle;
}

/* --- 13. 특허 목록 --- */
.patent-item {
	padding: 20px 24px;
	background: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
	margin-bottom: 12px;
}

.patent-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--text-main);
	margin: 0 0 8px;
	letter-spacing: -0.003em;
}

.patent-meta {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.6;
}

.patent-no {
	font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
	font-size: 13px;
	color: var(--accent-blue);
}

/* --- 14. 콘텐츠 페이지 (교수 / 프로젝트 / 강의) --- */
.content-page-body {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	padding: 48px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.content-page-body h1,
.content-page-body h2 {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.003em;
	color: var(--text-main);
	margin: 0 0 20px;
}

.content-page-body h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-main);
	margin: 32px 0 12px;
}

.content-page-body p {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0 0 16px;
}

.content-page-body a {
	color: var(--accent-blue);
	text-decoration: none;
}

.content-page-body a:hover {
	text-decoration: underline;
}

.content-page-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin-bottom: 24px;
}

.content-page-body table td,
.content-page-body table th {
	padding: 10px 12px;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	vertical-align: top;
	color: var(--text-main);
}

.content-page-body table th {
	font-weight: 600;
	color: var(--text-muted);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.content-page-body img {
	border-radius: 12px;
	max-width: 100%;
	height: auto;
}

/* 교수 프로필 레이아웃 */
.professor-profile {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	margin-bottom: 48px;
}

.professor-photo {
	flex-shrink: 0;
	width: 200px;
	border-radius: var(--border-radius);
	overflow: hidden;
}

.professor-photo img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0;
}

.professor-info {
	flex: 1;
}

.professor-name {
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--text-main);
	margin: 0 0 8px;
}

.professor-title {
	font-size: 17px;
	color: var(--text-muted);
	margin: 0 0 24px;
}

.professor-contact {
	font-size: 15px;
	color: var(--text-muted);
	line-height: 2;
}

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

/* --- 15. 반응형 (768px 이하) --- */
@media (max-width: 768px) {
	.test-hero {
		margin: 50px auto 40px;
	}

	.test-hero h1 {
		font-size: 32px;
	}

	.test-hero p {
		font-size: 17px;
	}

	.test-container {
		padding: 0 16px 60px;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.photo-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.student-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.content-page-body {
		padding: 28px 20px;
	}

	.professor-profile {
		flex-direction: column;
	}

	.professor-photo {
		width: 140px;
	}

	.pub-year-heading {
		font-size: 26px;
	}

	.test-section-title {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.photo-grid {
		grid-template-columns: 1fr;
	}

	.student-grid {
		grid-template-columns: 1fr;
	}
}
