/* 기본 스타일 - 밝은 배경 디자인 (다른 페이지용) */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #555555;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
    --container-padding: 20px;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 홈페이지만 어두운 배경 */
body.home-page {
    --primary-color: #FFFFFF;
    --secondary-color: #CCCCCC;
    --text-color: #FFFFFF;
    --bg-color: #111111;
    --border-color: #333333;
}

/* 모든 제목 요소에 Exo 2 적용 */
h1, h2, h3, h4, h5, h6 {
    font-family: "Exo 2", sans-serif;
}

/* 본문 텍스트는 Inter */
p, span, div, a, li, td, th {
    font-family: "Inter", sans-serif;
}

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

/* 네비게이션 바 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    z-index: 1001;
    letter-spacing: -0.5px;
    font-family: "Times New Roman", Times, serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    font-family: "Times New Roman", Times, serif;
}

.nav-menu li a:hover {
    color: var(--dark-color);
    border-bottom: 2px solid var(--dark-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 0;
    transition: var(--transition);
}

/* 히어로 섹션 - 뇌 파티클 배경 */
.hero {
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

/* 홈페이지 히어로 섹션 - 어두운 배경 */
body.home-page .hero {
    background: #111111;
}

/* 뇌 파티클 캔버스 - 홈페이지에만 표시 */
#brainCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    display: none;
}

body.home-page #brainCanvas {
    display: block;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8rem;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 0 4rem;
    pointer-events: none;
}

.hero-container * {
    pointer-events: auto;
}

.hero-left,
.hero-right {
    position: relative;
    z-index: 3;
}

.hero-left h1 {
    font-size: 6.75rem;
    font-weight: 400;
    letter-spacing: -2px;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: "Exo 2", sans-serif;
}

.hero-subtitle {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: "Exo 2", sans-serif;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

/* 내비게이션 아이콘 링크 */
.nav-icon-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    font-family: "Inter", sans-serif;
    display: inline-block;
    min-width: 150px;
    text-align: right;
}

.nav-icon-link .nav-text {
    display: inline-block;
}

.hero-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 0;
    font-family: "Inter", sans-serif;
}

.hero-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--dark-color);
    transition: width 0.3s ease;
}

.hero-nav a:hover {
    opacity: 0.7;
}

.hero-nav a:hover::after {
    width: 100%;
}

/* 태블릿 크기 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

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

    .hero-right {
        justify-content: center;
    }

    .hero-nav {
        align-items: center;
    }

    .nav-icon-link {
        text-align: center;
    }

    .hero-nav a::after {
        left: 0;
        right: auto;
    }
}

/* 모바일 크기 */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 4rem 2rem;
    }

    .hero-container {
        padding: 0 1.5rem;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-right {
        justify-content: center;
    }

    .hero-nav {
        gap: 0.5rem;
        align-items: center;
    }

    .nav-icon-link {
        font-size: 1.1rem;
        padding: 0.3rem 0.6rem;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-container {
        gap: 3rem;
        padding: 0 1rem;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-right {
        justify-content: center;
    }

    .hero-nav {
        gap: 0.4rem;
        align-items: center;
    }

    .nav-icon-link {
        font-size: 1rem;
        padding: 0.2rem 0.5rem;
        min-width: 100px;
        text-align: center;
    }
}

/* 갤럭시 폴드 같은 매우 작은 화면 (400px 이하) */
@media (max-width: 400px) {
    .hero {
        min-height: 100vh;
        padding: 3rem 1rem;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 0.5rem;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
        line-height: 1.2;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-right {
        justify-content: center;
    }

    .hero-nav {
        gap: 0.5rem;
        align-items: center;
    }

    .nav-icon-link {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
        min-width: 90px;
        text-align: center;
    }

    .hero-nav a {
        font-size: 0.9rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

/* 갤럭시 폴드 접었을 때 (280px 이하) */
@media (max-width: 320px) {
    .hero {
        padding: 2rem 0.75rem;
    }

    .hero-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-left h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-nav {
        gap: 0.4rem;
    }

    .hero-nav a {
        font-size: 1.2rem;
    }
}

/* simple-network 등 새 구조만 유지 */

/* 연구 분야 미니멀 네트워크 */
.simple-network {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto 3rem auto;
}
.network-center-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  background: #fff;
  border-radius: 50%;
  box-shadow: none;
  border: 2.5px solid var(--dark-color);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 2;
  text-align: center;
}
.network-center-card i {
  font-size: 2.2rem; color: var(--dark-color); margin-bottom: 0.3rem;
}
.network-center-card h3 {
  font-size: 1.1rem; margin-bottom: 0.2rem; color: var(--dark-color);
}
.network-center-card p {
  font-size: 0.95rem; color: var(--secondary-color);
}
.network-outer-card,
.network-outer-card.vision {
  background: #fff !important;
  box-shadow: none !important;
  border: 1px solid var(--border-color) !important;
}
.network-outer-card i {
  font-size: 1.7rem;
  color: var(--dark-color);
  margin-bottom: 0.2rem;
  margin-top: 0;
}
.network-outer-card h4 {
  font-size: 0.95rem;
  color: var(--dark-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.network-outer-card.vision { color: inherit !important; }

.network-outer-card.robot  { left: 50%; top: 10px;   transform: translateX(-50%); }
.network-outer-card.env    { right: 20px; top: 290px;}

.network-simple-lines {
  position: absolute;
  left: 0; top: 0;
  width: 400px; height: 400px;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 500px) {
  .simple-network { width: 98vw; height: 420px; }
  .network-center-card, .network-outer-card { width: 100px; height: 100px; font-size: 0.9rem; }
  .network-outer-card h4 { font-size: 0.85rem; }
  .network-outer-card.robot  { top: 10px; }
  .network-outer-card.vision { left: 5vw; top: 320px; }
  .network-outer-card.env    { right: 5vw; top: 320px; }
  .network-simple-lines { width: 98vw; height: 420px; }
}

/* 연구 분야 섹션 - Introduction Page */
.research-areas {
    padding: 4rem 0;
    background: var(--bg-color);
}

.research-areas .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark-color);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.research-card {
    background: white;
    border-radius: 0;
    padding: 2.5rem 2rem;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    text-align: center;
}

.research-card:hover {
    transform: none;
    border-color: var(--dark-color);
}

.research-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 500;
}

.research-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.95rem;
}

.research-details {
    list-style: none;
    text-align: left;
    padding: 0 1rem;
}

.research-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.research-details li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 진행 중인 프로젝트 섹션 */
.current-projects {
    padding: 5rem 0;
}

.current-projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.project-list {
    max-width: 1000px;
    margin: 0 auto;
}

.project-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-period {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    color: var(--primary-color);
}

/* 연구 장비 섹션 */
.research-equipment {
    padding: 5rem 0;
    background: var(--light-color);
}

.research-equipment h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.equipment-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    max-width: 350px;
    margin: 0 auto;
}

.equipment-card:hover {
    transform: none;
    border-color: var(--dark-color);
}

.equipment-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.equipment-card h3 {
    font-size: 1.3rem;
    margin: 1rem;
    color: var(--dark-color);
}

.equipment-card p {
    color: var(--text-color);
    margin: 0 1rem 1rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .project-item {
        grid-template-columns: 1fr;
    }

    .project-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .professor-grid, .student-grid, .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
        gap: 1.5rem;
    }

    .research-grid, .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .professor-grid, .student-grid, .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
        gap: 1rem;
    }

    .research-grid, .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
        gap: 1rem;
    }
}

/* 뉴스 섹션 */
.news {
    padding: 5rem 0;
}

.news h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.news-date {
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--dark-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 400;
    border-bottom: 1px solid var(--dark-color);
    transition: var(--transition);
}

.read-more:hover {
    opacity: 0.7;
}

/* 푸터 */
.footer {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-bottom p {
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    /* 햄버거 메뉴 애니메이션 */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* 갤럭시 폴드 같은 매우 작은 화면 - 네비게이션 바 */
@media (max-width: 400px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 320px) {
    .nav-container {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static;
        background: none;
        height: auto;
        padding: 0;
    }

    .nav-menu li {
        opacity: 1;
        transform: none;
    }

    .nav-toggle {
        display: none;
    }
}

/* 페이지 헤더 */
.page-header {
    background: transparent;
    padding: 8rem 0 3rem;
    text-align: center;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* 연구실 소개 섹션 */
.lab-intro {
    padding: 4rem 0;
    background: var(--bg-color);
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.intro-image img {
    width: 100%;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

/* 연구 비전 섹션 */
.vision {
    padding: 4rem 0;
    background: #fafafa;
}

.vision .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-weight: 400;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.vision-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 0;
    text-align: center;
    transition: border-color 0.3s ease;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.vision-card:hover {
    transform: none;
    border-color: var(--dark-color);
}

.vision-card i {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    opacity: 0.8;
    font-weight: 300;
}

.vision-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 500;
}

.vision-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* Custom Icon Styles */
.icon-box {
    width: 60px;
    height: 60px;
    border: 2px solid var(--dark-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-color);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.vision-card:hover .icon-box {
    background: var(--dark-color);
    color: white;
}

.icon-letter {
    width: 50px;
    height: 50px;
    border: 2px solid var(--dark-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.research-card:hover .icon-letter {
    background: var(--dark-color);
    color: white;
}

/* 연구실 연혁 섹션 */
.history {
    padding: 5rem 0;
}

.history h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

.year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    border: 1px solid var(--dark-color);
}

.content {
    position: relative;
    width: calc(50% - 30px);
    padding: 1.5rem;
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .content {
    margin-left: auto;
}

.content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .year {
        left: 30px;
        transform: none;
    }

    .content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

/* 교수진 섹션 */
/* 직책별 섹션 배경 - 흑백 그라데이션 */
.professors {
    padding: 3rem 0;
    background: #ffffff;
}

.postdoc {
    padding: 3rem 0;
    background: #f8f8f8;
}

.phd-students {
    padding: 3rem 0;
    background: #f0f0f0;
}

.masters-students {
    padding: 3rem 0;
    background: #e8e8e8;
}

.undergraduate-students {
    padding: 3rem 0;
    background: #f5f5f5;
}

.staff {
    padding: 3rem 0;
    background: #fafafa;
}

.professor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.professor-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s ease;
    max-width: 300px;
    min-width: 200px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

.professor-card:hover {
    transform: none;
    border-color: var(--dark-color);
}

.professor-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
}

.professor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.professor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professor-card:hover .professor-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.professor-info {
    padding: 0.8rem;
}

.professor-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.professor-info .title {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.professor-details {
    display: grid;
    gap: 1rem;
}

.detail-section h4 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section ul li {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dark-color);
}

/* 대학원생 섹션 */
.graduate-students {
    padding: 3rem 0;
    background: var(--light-color);
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.student-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s ease;
    max-width: 300px;
    min-width: 200px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

.student-card:hover {
    border-color: var(--dark-color);
}

.student-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.student-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-card:hover .student-overlay {
    opacity: 1;
}

.student-info {
    padding: 0.8rem;
}

.student-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.student-info .title {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.student-info .research {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.detail-item {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 학부생 섹션 */
.undergraduate-students .student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.undergraduate-students .student-card {
    max-width: 300px;
}

/* 졸업생 섹션 */
.alumni {
    padding: 3rem 0;
    background: var(--light-color);
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.alumni-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 300px;
    min-width: 200px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

.alumni-header {
    background: var(--dark-color);
    color: #fff;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.alumni-header i {
    font-size: 1.1rem;
}

.alumni-header h3 {
    font-size: 1rem;
}

.alumni-content {
    padding: 0.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.alumni-item {
    padding: 0.6rem;
    border-bottom: 1px solid #eee;
}

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

.alumni-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.alumni-info .degree {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.alumni-info .current {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alumni-thesis {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .professor-grid,
    .student-grid,
    .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
        gap: 1.5rem;
    }

    .student-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .professor-grid,
    .student-grid,
    .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
        gap: 1rem;
    }

    .student-image {
        max-height: 220px;
    }
}

/* 논문 필터 섹션 */
.publication-filter {
    padding: 2rem 0;
    background: var(--light-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-button {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--dark-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    font-weight: 300;
}

.filter-button.active {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.search-box {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
}

.search-button {
    padding: 0.8rem 1.5rem;
    background: var(--dark-color);
    color: white;
    border: 1px solid var(--dark-color);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 300;
}

.search-button:hover {
    background: transparent;
    color: var(--dark-color);
}

/* 논문 목록 섹션 */
.publications {
    padding: 4rem 0;
}

.publication-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--dark-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.publication-item:hover {
    transform: none;
    border-color: var(--dark-color);
}

.publication-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding-top: 0.5rem;
}

.publication-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.authors {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.journal-name, .conference-name, .patent-info {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-info {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
}

.link-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 300;
}

.link-button i {
    margin-right: 0.5rem;
}

.link-button:hover {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .filter-buttons {
        flex-wrap: wrap;
    }

    .filter-button {
        width: calc(50% - 0.5rem);
    }

    .publication-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .publication-year {
        text-align: center;
        margin-bottom: 1rem;
    }

    .publication-content {
        text-align: left;
    }

    .publication-links {
        flex-wrap: wrap;
    }

    .link-button {
        width: 100%;
        justify-content: center;
    }
}

/* 소식 필터 섹션 */
.news-filter {
    padding: 2rem 0;
    background: var(--light-color);
}

/* 소식 목록 섹션 */
.news-list {
    padding: 4rem 0;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.news-item:hover {
    transform: none;
    border-color: var(--dark-color);
}

.news-date {
    text-align: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: var(--dark-color);
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0.5rem 0;
    font-weight: 300;
}

.news-date .year {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.news-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--dark-color);
    color: white;
    border-radius: 0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.news-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-meta i {
    color: var(--primary-color);
}

/* 페이지네이션 */
.pagination {
    padding: 2rem 0 4rem;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-button {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--dark-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    box-shadow: none;
    font-weight: 300;
}

.pagination-button.active {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.pagination-button.next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-button:hover:not(.active) {
    background: var(--light-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-date {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .news-date .day,
    .news-date .month,
    .news-date .year {
        display: inline;
        font-size: 1rem;
    }

    .news-date .day {
        font-size: 1.5rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 연락처 정보 섹션 */
.contact-info {
    padding: 5rem 0 3rem 0;
    background: var(--light-color);
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto 2rem auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: 2rem 2.5rem;
}

.contact-card-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.contact-card-list li i {
    color: var(--primary-color);
    font-size: 1.4rem;
    min-width: 1.4rem;
}

.contact-info h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
}

.contact-info .cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: var(--dark-color);
    color: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 2px solid var(--dark-color);
    transition: background 0.2s, color 0.2s;
    font-weight: 300;
}

.contact-info .cta-button:hover {
    background: transparent;
    color: var(--dark-color);
    transform: none;
}

@media (max-width: 600px) {
    .contact-card-list {
        padding: 1.2rem 1rem;
    }
    .contact-info h2 {
        font-size: 1.5rem;
    }
    .contact-info .cta-button {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 0;
    }
}

/* Contact Page - Map Section */
.contact-map {
    padding: 4rem 0;
    background: var(--bg-color);
}

.contact-map .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 400;
}

.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Page - Address Section */
.contact-address {
    padding: 4rem 0;
    background: #f8f8f8;
}

.address-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.address-icon {
    font-size: 3rem;
    color: var(--dark-color);
    min-width: 80px;
    text-align: center;
}

.address-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 400;
}

.address-content p {
    font-size: 1.1rem;
    margin: 0.3rem 0;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Contact Page - Phone Section */
.contact-phone {
    padding: 4rem 0;
    background: var(--bg-color);
}

.phone-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.phone-icon {
    font-size: 3rem;
    color: var(--dark-color);
    min-width: 80px;
    text-align: center;
}

.phone-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 400;
}

.phone-content p {
    font-size: 1.3rem;
    margin: 0;
}

.phone-content a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.phone-content a:hover {
    border-bottom-color: var(--dark-color);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .address-card, .phone-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .address-icon, .phone-icon {
        font-size: 2.5rem;
        min-width: auto;
    }

    .address-content h3, .phone-content h3 {
        font-size: 1.5rem;
    }

    .address-content p {
        font-size: 1rem;
    }

    .phone-content p {
        font-size: 1.1rem;
    }
}

/* 문의 양식 섹션 */
.contact-form {
    padding: 5rem 0;
    background: var(--light-color);
}

.contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-color);
    box-shadow: none;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--dark-color);
    color: white;
    border: 2px solid var(--dark-color);
    border-radius: 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 300;
}

.submit-button:hover {
    background: transparent;
    color: var(--dark-color);
    transform: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .map-container {
        margin: 0 calc(-1 * var(--container-padding));
        border-radius: 0;
    }
}

/* 갤러리 스타일 */
.gallery-filter {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background-color: transparent;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: none;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--dark-color);
    color: #fff;
    border-color: var(--dark-color);
}

.gallery-grid {
    padding: 3rem 0;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.gallery-item:hover {
    transform: none;
    border-color: var(--dark-color);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: none;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .gallery-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-items {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
}

@media (max-width: 480px) {
    .gallery-filter {
        padding: 1rem 0;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
}

/* Introduction Page Responsive */
@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-text {
        order: 1;
    }

    .intro-image {
        order: 2;
    }

    .vision-grid,
    .research-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .vision .section-title,
    .research-areas .section-title {
        font-size: 1.8rem;
    }

    .vision-card,
    .research-card {
        padding: 2rem 1.5rem;
    }
}

/* 이미지 최적화 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 로딩 애니메이션 */
.gallery-item {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

/* 모바일 우선 접근 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem var(--container-padding);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }
}

/* 페이지 헤더 반응형 */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* 갤럭시 폴드 같은 매우 작은 화면 - 페이지 헤더 */
@media (max-width: 400px) {
    .page-header {
        padding: 5rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .page-header p {
        font-size: 0.9rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 320px) {
    .page-header {
        padding: 4rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }
}

/* 그리드 레이아웃 반응형 */
@media (max-width: 1200px) {
    .research-grid,
    .vision-grid,
    .equipment-grid,
    .news-grid,
    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .research-grid,
    .vision-grid,
    .equipment-grid,
    .news-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
    }
}

/* 카드 컴포넌트 반응형 */
@media (max-width: 768px) {
    .research-card,
    .vision-card,
    .equipment-card,
    .news-card,
    .alumni-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

/* 프로젝트 섹션 반응형 */
@media (max-width: 992px) {
    .project-item {
        grid-template-columns: 1fr;
    }

    .project-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* 교수진 섹션 반응형 */
@media (max-width: 768px) {
    .professor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .professor-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-info,
    .education,
    .research-areas {
        text-align: left;
    }
}

/* 학생 섹션 반응형 */
@media (max-width: 768px) {
    .student-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
}

/* 논문 섹션 반응형 */
@media (max-width: 768px) {
    .publication-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .publication-year {
        text-align: center;
        margin-bottom: 1rem;
    }

    .publication-content {
        text-align: left;
    }
}

/* 뉴스 섹션 반응형 */
@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-date {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
}

/* 연락처 섹션 반응형 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .map-container {
        margin: 0 calc(-1 * var(--container-padding));
        border-radius: 0;
    }
}

/* 푸터 반응형 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* 폼 요소 반응형 */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* 모바일에서 자동 확대 방지 */
    }
}

/* 버튼 반응형 */
@media (max-width: 480px) {
    .cta-button,
    .submit-button,
    .filter-button,
    .tab-button {
        width: 100%;
        text-align: center;
    }
}

/* 이미지 최적화 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 터치 디바이스 최적화 */
@media (hover: none) {
    .gallery-overlay,
    .news-item:hover,
    .research-card:hover,
    .vision-card:hover,
    .equipment-card:hover {
        transform: none;
    }
}

/* 공통 스타일 */
.section-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    font-family: "Times New Roman", Times, serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--dark-color);
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 2rem 0 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 400;
    font-family: "Times New Roman", Times, serif;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--dark-color);
}

/* 구성원 페이지 스타일 */
.professor-grid, .student-grid, .alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.professor-card, .student-card, .alumni-card {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    /* height: 350px; */
    min-height: 350px;
    /* max-height: 350px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
}

.professor-card:hover, .student-card:hover, .alumni-card:hover {
    transform: translateY(-5px);
}

.professor-image, .student-image {
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    object-fit: cover;
}

.professor-image img, .student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.professor-overlay, .student-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professor-card:hover .professor-overlay,
.student-card:hover .student-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.professor-info, .student-info {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 1rem;
}

.professor-info h3, .student-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.detail-section {
    margin-top: 1rem;
}

.detail-section h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

/* 논문 페이지 스타일 */
.publication-filter {
    background: #f5f5f5;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-button {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-button:hover, .filter-button.active {
    background: var(--dark-color);
    color: #fff;
    border-color: var(--dark-color);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--dark-color);
    outline: none;
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--dark-color);
}

.publication-item {
    background: #fff;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.publication-item:hover {
    transform: none;
    border-color: var(--dark-color);
}

.publication-year {
    display: inline-block;
    background: var(--dark-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0;
    margin-bottom: 1rem;
    font-weight: 300;
}

.publication-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.authors, .journal-name, .publication-info {
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.link-button {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--dark-color);
    border-radius: 0;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
}

.link-button:hover {
    background: var(--dark-color);
    color: #fff;
    border-color: var(--dark-color);
}

/* 연구 페이지 스타일 */
.research-section,
.research-projects {
    background: #f8fafb;
    padding: 4.5rem 0 3.5rem 0;
}

.research-section h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-weight: 400;
}

.research-section .research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.research-projects .research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.research-card {
    background: #fff;
    border-radius: 0;
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: border-color 0.25s;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 340px;
}

.research-card:hover {
    transform: none;
    border-color: var(--dark-color);
}
.research-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.7rem;
}
.research-card p {
    color: #444;
    font-size: 1.01rem;
    margin-bottom: 0.7rem;
    line-height: 1.6;
}
.details-btn {
    display: inline-block;
    padding: 0.7rem 1.7rem;
    background: var(--dark-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    border: 2px solid var(--dark-color);
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.details-btn:hover, .details-btn:focus {
    background: transparent;
    color: var(--dark-color);
    transform: none;
    outline: none;
}

/* 모달 팝업 고급 디자인 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2.7rem 2.2rem 2.2rem 2.2rem;
    border-radius: 0;
    max-width: 700px;
    position: relative;
    box-shadow: none;
    border: 1px solid var(--border-color);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

.modal-content::before {
    content: "";
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--dark-color);
    border-radius: 0;
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
    background: transparent;
    border-radius: 0;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    font-weight: 300;
}
.close-btn:hover {
    background: var(--dark-color);
    color: white;
    transform: none;
}

#modalTitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.1rem;
    margin-top: 0.7rem;
    line-height: 1.3;
}

#modalFunding, #modalPeriod {
    color: var(--secondary-color);
    font-size: 1.08rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

#modalDesc {
    margin: 1.3rem 0 1.7rem 0;
    line-height: 1.7;
    color: #444;
    font-size: 1.08rem;
}

#modalPublications {
    margin-top: 1.7rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e0e0e0;
}

#modalPublications h4 {
    color: #2c3e50;
    margin-bottom: 1.1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

#modalPublications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#modalPublications li {
    margin-bottom: 0.8rem;
    padding: 0.6rem 1.1rem 0.6rem 2.1rem;
    position: relative;
    background: #f8fafb;
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: background 0.2s;
    word-break: break-all;
}

#modalPublications li:hover {
    background: #eafaf1;
}

#modalPublications li:before {
    content: '\f02d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-color);
    font-size: 1.05rem;
}

#modalPublications a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

#modalPublications a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        max-width: 98vw;
    }
    #modalTitle { font-size: 1.15rem; }
    #modalDesc, #modalFunding, #modalPeriod, #modalPublications a { font-size: 0.98rem; }
}

@media (max-width: 900px) {
    .research-areas::before { width: 98vw; }
    .research-grid { flex-direction: column; gap: 2.2rem; }
}

.navbar-spacer {
  height: 70px;
}
@media (max-width: 768px) {
  .navbar-spacer {
    height: 60px;
  }
}

/* ========================================
   CONTACT PAGE ENHANCEMENTS
   ======================================== */

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.contact-form-card h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-color);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--dark-color);
    color: white;
    border: 2px solid var(--dark-color);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: none;
    background: white;
    color: var(--dark-color);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alt-form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.alt-form-link:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   MEMBERS PAGE TABS
   ======================================== */

.members-tabs-section {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 0;
}

.member-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--dark-color);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.tab-btn:hover {
    border-color: var(--dark-color);
    background: var(--dark-color);
    color: white;
}

.tab-btn.active {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.tab-content-wrapper {
    min-height: 400px;
}

/* Research Page Responsive */
@media (max-width: 768px) {
    .research-section .research-grid,
    .research-projects .research-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .research-card {
        min-height: auto;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

@media (max-width: 768px) {
    .member-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        text-align: center;
    }
}


/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    text-align: center !important;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ccc;
}

.lightbox-content {
    display: block !important;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    margin: 0 auto !important;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.1rem;
    max-width: 80%;
}

.lightbox-caption strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.gallery-item {
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

