#main {
    padding: 6em 0 2em 0;
    z-index: 5000;
    position:relative;
}


section .inner {
    max-width: 65em;
    width: calc(100% - 6em);
    margin: 0 auto;
}

.entry {
    display: inline-block;
    width: 100%;
    padding-top: 2em;
}


.image-left {
    float: left;
    margin: 0 1.5em 0 0;
    top: 0.25em;
}



.profile-photo {
    width: 126px;
    height: 169px;
    object-fit: cover;
}

@media screen and (max-width: 700px) {
    .entry {
      font-size: 0.5em;
    }
  
  }



  html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 메인 콘텐츠는 자동으로 늘어나게 */
#main-content {
  flex: 1;
}

/* footer는 항상 맨 밑으로 */
#footer {
  margin-top: auto;
  text-align: left;
}

/* 반응형 대응 */
@media screen and (max-width: 768px) {
  #banner h1 {
    font-size: 1.2em;
  }
  #banner span {
    font-size: 0.8em;
  }
  .card-item {
    height: auto;
    padding: 1em;
  }
  #footer {
    font-size: 0.7em;
    line-height: 1.4;
  }
}

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
            overflow-x: hidden;
            background: white;
        }

        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.3s ease;
            background: transparent;
        }

        header.scrolled {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid #dbeafe;
        }

        .header-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
        }

        /* 로고 */
        .logo {
            display: flex;
            align-items: center;
            margin-left: -100px;
        }

        .logo-image {
            height: 100px;
            transition: transform 0.3s ease;
        }

        .logo:hover .logo-image {
            transform: scale(1.02);
        }

        /* 네비게이션 */
        nav {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        nav > a {
            position: relative;
            color: #374151;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        nav > a:hover,
        nav > a.active {
            color: #1e3a8a;
        }

        /* 밑줄 애니메이션 */
        nav > a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(to right, #1e3a8a, #1e40af);
            transition: width 0.3s ease;
        }

        nav > a:hover::after,
        nav > a.active::after {
            width: 100%;
        }

        /* 드롭다운 컨테이너 */
        .nav-item-with-dropdown {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
        }

        .chevron-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.3s ease;
        }

        .nav-item-with-dropdown:hover .chevron-icon {
            transform: rotate(180deg);
        }

        /* 드롭다운 메뉴 */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            width: 192px;
            background: white;
            border: 1px solid #dbeafe;
            border-radius: 8px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            padding: 8px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .nav-item-with-dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu a {
            display: block;
            padding: 8px 16px;
            color: #374151;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .dropdown-menu a:hover {
            background: #eff6ff;
            color: #1e3a8a;
        }

        /* 모바일 메뉴 버튼 */
        .mobile-menu-button {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .mobile-menu-button svg {
            width: 24px;
            height: 24px;
            color: #1e3a8a;
        }

        /* 모바일 메뉴 */
        .mobile-menu {
            display: none;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-top: 1px solid #dbeafe;
            padding: 16px;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-menu a {
            display: block;
            padding: 12px 16px;
            color: #374151;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.2s ease;
            margin-bottom: 4px;
        }

        .mobile-menu a:hover,
        .mobile-menu a.active {
            background: #eff6ff;
            color: #1e3a8a;
        }

        .mobile-submenu {
            padding-left: 16px;
            margin-top: 4px;
        }

        .mobile-submenu a {
            font-size: 0.875rem;
            color: #6b7280;
        }

        /* ========== 섹션 컨테이너 ========== */
        #members {
            padding: 80px 0;
            background: white;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* ========== 헤더 ========== */
        .section-header {
            text-align: center;
            margin-bottom: 64px;
        }

        .section-title {
            font-size: 2.0rem;
            color: #1e3a8a;
            margin-bottom: 16px;
            font-weight: bold;
        }

        .section-subtitle {
            color: #6b7280;
            font-size: 1.125rem;
        }

        .members-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 32px;
            /* 기존 1000px -> 1300px으로 변경 (화면을 더 꽉 채우게 됨) */
            max-width: 1300px; 
            margin: 0 auto;
            width: 100%; /* 부모 컨테이너 너비에 맞춤 */
        }

        /* ========== 멤버 카드 (가로형 Flex) ========== */
        .member-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.3s ease;
            display: flex; /* 좌우 배치를 위한 Flex */
            flex-direction: column; /* 모바일 기본은 세로 */
        }

        @media (min-width: 768px) {
            .member-card {
                flex-direction: row; /* PC에서는 가로 배치 */
                align-items: stretch;
            }
        }

        .member-card:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
            border-color: #bfdbfe;
        }

        /* ========== [Left] 프로필 사이드 ========== */
        .member-profile-side {
            background: linear-gradient(to bottom, #eff6ff, #ffffff);
            padding: 32px 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            border-bottom: 1px solid #e5e7eb;
        }

        @media (min-width: 768px) {
            .member-profile-side {
                width: 320px; /* 좌측 고정 너비 */
                flex-shrink: 0;
                border-bottom: none;
                border-right: 1px solid #e5e7eb;
                justify-content: center;
            }
        }

        .member-image-wrapper {
            width: 140px;
            height: 180px; /* 증명사진 비율 */
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            background-color: #1e3a8a;
        }

        .member-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .member-card:hover .member-image {
            transform: scale(1.05);
        }

        .member-name-wrapper { margin-bottom: 12px; }
        .member-name { color: #1e3a8a; font-size: 1.25rem; }
        .member-name-ko { font-weight: 700; margin-right: 6px; }
        .member-name-en { color: #6b7280; font-size: 0.95rem; font-weight: 400; }

        .degree-info {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #374151;
            font-size: 0.9rem;
            margin-bottom: 4px;
        }
        
        .degree-detail { display: flex; align-items: center; gap: 6px; }
        .degree-divider { color: #d1d5db; font-size: 0.8rem; }
        .degree-en { color: #6b7280; font-size: 0.85rem; }

        .major-info {
            color: #6b7280;
            font-size: 0.85rem;
            margin-bottom: 16px;
        }

        .email-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background-color: white;
            border: 1px solid #dbeafe;
            border-radius: 20px;
            color: #4b5563;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.2s;
        }

        .email-link:hover {
            background-color: #eff6ff;
            color: #1e3a8a;
            border-color: #1e3a8a;
        }

        /* ========== [Right] 스펙 사이드 ========== */
        .member-specs-side {
            flex-grow: 1;
            padding: 32px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        /* 연구 관심 분야 */
        .research-section { margin-bottom: 20px; }
        
        .research-header {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #1e3a8a;
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 12px;
        }

        .research-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .research-tag {
            padding: 6px 14px;
            background-color: #f3f4f6;
            color: #374151;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: background 0.2s;
        }
        
        .member-card:hover .research-tag {
            background-color: #dbeafe;
            color: #1e3a8a;
        }

        /* 구분선 */
        .specs-divider {
            height: 1px;
            background-color: #e5e7eb;
            margin: 10px 0 24px 0;
            width: 100%;
        }

        /* 상세 스펙 (논문/프로젝트) */
        .specs-section { flex-grow: 1; }
        
        .specs-header {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #1e3a8a;
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 16px;
        }

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

        .spec-item {
            position: relative;
            padding-left: 16px;
            margin-bottom: 10px;
            font-size: 0.95rem;
            color: #4b5563;
            line-height: 1.6;
        }

        .spec-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            width: 6px;
            height: 6px;
            background-color: #93c5fd; /* 연한 파랑 */
            border-radius: 50%;
        }
        
        .member-card:hover .spec-item::before {
            background-color: #1e3a8a; /* 호버시 진한 파랑 */
        }


/* ========== 반응형 (모바일) ========== */
@media (max-width: 768px) {
    
    /* [핵심 수정] 데스크탑 메뉴(긴 줄)를 숨깁니다 */
    nav {
        display: none;
    }

    /* [핵심 수정] 햄버거 버튼을 화면에 표시합니다 */
    .mobile-menu-button {
        display: block; /* 기존 none에서 block으로 변경 */
        padding: 4px;
    }

    /* 헤더 높이 및 여백 조정 */
    .header-inner {
        height: 60px;
        padding: 0 12px;
    }

    /* 로고 위치 초기화 (PC용 음수 마진 제거) */
    .logo {
        margin-left: 0;
    }

    /* 로고 이미지 크기 모바일에 맞게 축소 */
    .logo-image {
        height: 40px;
        width: auto;
    }
    
    /* 카드 레이아웃 모바일 최적화 (선택사항) */
    .member-card {
        flex-direction: column; /* 카드를 세로로 배치 */
    }
    
    .member-profile-side {
        width: 100%; /* 프로필 영역 꽉 차게 */
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}