﻿@charset "utf-8";

/* ==========================================================================
   1. 디자인 토큰 (CSS Variables)
   ========================================================================== */
:root {
    /* 색상 */
    --primary-color:    #003876; /* 연세 블루 */
    --secondary-color:  #001E42; /* 다크 네이비 */
    --gold-color:       #C4A44A; /* 연세 골드 */
    --link-color:       #4682B4;
    --link-hover-color: #0056b3;
    --accent-color:     #8A8D8F;
    --text-color:       #333;
    --bg-color:         #f9f9f9;
    --white:            #ffffff;

    /* 그림자 */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.10);

    /* 둥근 모서리 */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* 레이아웃 */
    --max-width: 1200px;
}

/* ==========================================================================
   2. 초기화 (Reset)
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans KR', 'Segoe UI', Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a   { text-decoration: none; color: inherit; transition: 0.2s ease-in-out; }
ul  { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 본문 콘텐츠 영역의 클래스 없는 목록은 기본 불릿 복원 */
#content ul:not([class]),
#content ol:not([class]) {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
#content ul:not([class]) { list-style: disc; }
#content ol:not([class]) { list-style: decimal; }
#content ul:not([class]) li,
#content ol:not([class]) li { margin-bottom: 0.4em; }

/* ==========================================================================
   3. 접근성 (Accessibility)
   ========================================================================== */
/* Skip-to-content 링크 */
.skip-link {
    position: absolute;
    top: -100%;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* 키보드 포커스 표시 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* 저자 강조 */
.author-highlight {
    font-weight: inherit;
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
}

/* ==========================================================================
   4. 헤더 & 네비게이션
   ========================================================================== */
#header-wrapper {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
}

.logo {
    text-align: center;
    padding: 25px 20px 20px;
    width: 100%;
    border-bottom: 1px solid #f1f1f1;
    transition: padding 0.3s ease;
}
.logo h1 a {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    transition: font-size 0.3s ease;
}
.logo h2 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 5px;
    transition: all 0.3s ease;
}

/* 햄버거 버튼 (PC 숨김) */
.menu-toggle {
    display: none;
    position: absolute;
    top: 30px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1100;
}

nav { width: 100%; background-color: var(--white); }

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
}
.nav-menu > li { position: relative; }

.nav-menu > li > a {
    display: block;
    padding: 15px 25px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}
.nav-menu > li > a:hover {
    color: var(--primary-color);
    background-color: #f4f7fa;
}
.nav-menu > li > a.current {
    color: var(--primary-color);
    background-color: #f4f7fa;
    border-bottom: 3px solid var(--gold-color);
    padding-bottom: 12px;
}

/* 드롭다운 (PC) */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    z-index: 2000;
}
.nav-menu > li:hover .dropdown,
.nav-menu > li:focus-within .dropdown { opacity: 1; visibility: visible; }

.dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding-left: 25px;
}

/* ==========================================================================
   5. 메인 레이아웃
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    flex: 1;
}
.container.full-width { display: block; }
.full-width #content { width: 100%; border: none; padding: 0; box-shadow: none; background: transparent; }

/* 사이드바 */
#sidebar {
    flex: 0 0 260px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    border: 1px solid #eee;
}
#sidebar h3 {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-top: 0;
}
#sidebar ul + h3 {
    margin-top: 28px;
}
.sidemenu li a {
    display: block;
    padding: 10px 5px;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
    color: #555;
}
.sidemenu li a:hover        { color: var(--primary-color); padding-left: 10px; font-weight: 500; }
.sidemenu li a.current      { color: var(--primary-color); font-weight: 700; padding-left: 10px; border-left: 3px solid var(--primary-color); }

/* 콘텐츠 */
#content {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

/* 본문 제목 */
#content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: var(--primary-color);
    margin: 1.8em 0 0.6em;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
#content h3:first-child { margin-top: 0; }

/* h3에 section-title 클래스가 붙은 경우 — 멤버 프로필 페이지의 주요 섹션 제목 */
#content h3.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin: 1.8em 0 0.8em;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--primary-color);
    padding-bottom: 14px;
    margin: 0 0 30px;
    border-bottom: 2px solid #eee;
}

/* 본문 링크 */
.research-list a,
.news-list a,
#content p a,
#content li a {
    color: var(--link-color);
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}
.research-list a:hover,
.news-list a:hover,
#content p a:hover,
#content li a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* ==========================================================================
   6. 컴포넌트 — 뉴스 & 연구 목록
   ========================================================================== */
/* 공통: research / news / publication 목록 */
.research-list li,
.news-list li {
    color: #444;
    margin-bottom: 12px;
}

/* research-list (disc 불릿, publication 포함) */
.research-list li {
    list-style-type: disc;
    margin-left: 20px;
    font-weight: 400;
}

/* news-list (컬러 불릿) */
.news-list li {
    position: relative;
    padding-left: 15px;
    font-size: 0.95rem;
}
.news-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* News archive link */
.news-more { text-align: right; margin-top: 10px; }
.news-more a { color: var(--primary-color); font-weight: bold; }
.news-more a:hover { text-decoration: underline; }

/* Section horizontal rule */
hr.section-sep {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 28px 0;
}

/* Sidebar contact info */
.sidebar-contact {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-top: 0;
}

/* ==========================================================================
   7. 컴포넌트 — 멤버 카드
   ========================================================================== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.member-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d1d9e6;
}
.member-img {
    flex-shrink: 0;
    width: 100px;
    height: 125px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #eee;
}
.member-img img    { width: 100%; height: 100%; object-fit: cover; }
.member-info       { display: flex; flex-direction: column; justify-content: center; font-size: 0.9rem; }
.member-info h4    { font-size: 1.1rem; margin-bottom: 5px; color: var(--primary-color); }
.member-info span  { display: block; margin-bottom: 2px; color: #555; }
.member-info .email { font-size: 0.85rem; color: #777; margin-top: 5px; }
.member-card.pi-card     { border-left: 5px solid var(--primary-color); background-color: #fbfdff; }
.member-section          { margin-bottom: 50px; }
.member-info .member-title { font-weight: bold; }

/* ==========================================================================
   8. 컴포넌트 — 콜랩시블 & 연구 섹션
   ========================================================================== */
.research-section { margin-bottom: 60px; scroll-margin-top: 180px; }

/* 요약 박스 (Areas of Research) */
.research-summary-box {
    background-color: #f4f8fb;
    margin: -30px -30px 60px -30px;
    padding: 50px 30px;
    border-bottom: 1px solid #dae1e7;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.research-summary-box .section-title {
    margin-top: 0;
    border-bottom-color: #c0d0e0;
    color: var(--primary-color);
}
.research-summary-box .research-list {
    margin-bottom: 0;
}
.research-summary-box .research-list li {
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.research-summary-box .research-list li:last-child {
    margin-bottom: 0;
}

.wrap-collabsible { margin-top: 20px; }


.lbl-toggle {
    display: inline-block;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-align: center;
    padding: 6px 15px;
    background: transparent;
    color: var(--link-color);
    border: 1px solid var(--link-color);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 10px;
    list-style: none;
}
.lbl-toggle::-webkit-details-marker { display: none; }
.lbl-toggle::marker               { display: none; }
.lbl-toggle:hover                 { background: var(--link-color); color: #fff; }
details.wrap-collabsible[open] > .lbl-toggle { background: var(--link-color); color: #fff; }

details[open] > .content-inner { animation: fadeSlideIn 0.25s ease; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content-inner {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin-top: 15px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
#content .content-inner h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 15px;
    padding-bottom: 8px;
}
.content-inner p { margin-bottom: 15px; }

.img-container {
    text-align: center;
    margin: 30px 0;
    background: #fafafa;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
}
.img-container img { box-shadow: var(--shadow-sm); }

/* 연구 이미지 3열 그리드 */
.research-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}
.research-img-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.research-img-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fafafa;
    padding: 6px;
}
.research-img-grid figcaption {
    font-size: 0.78rem;
    color: #555;
    text-align: center;
    padding: 6px 8px;
    line-height: 1.4;
    background: #f4f4f4;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   9. 컴포넌트 — 미디어 (동영상 & 갤러리)
   ========================================================================== */
.video-gallery-container {
    background: #1a1a1a;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbs-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 15px 5px 5px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #555 #222;
}

/* 커스텀 스크롤바 */
.video-thumbs-scroll::-webkit-scrollbar { height: 8px; }
.video-thumbs-scroll::-webkit-scrollbar-track { background: #222; border-radius: var(--radius-sm); }
.video-thumbs-scroll::-webkit-scrollbar-thumb { background: #555; border-radius: var(--radius-sm); }
.video-thumbs-scroll::-webkit-scrollbar-thumb:hover { background: #777; }


.video-thumb-item {
    flex: 0 0 130px; /* 썸네일 고정 너비 */
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #000;
}
.video-thumb-item:hover {
    border-color: #fff;
    transform: translateY(-3px);
}

/* 1. 썸네일 기본 밝기를 올려서 사진이 잘 보이게 수정 */
.video-thumb-item img {
    width: 100%;
    height: 73px; /* 16:9 비율 */
    object-fit: cover;
    opacity: 0.85; /* 기본 0.5 -> 0.85로 밝게 수정 */
    transition: opacity 0.3s ease;
}
.video-thumb-item:hover img {
    opacity: 1; /* 마우스 오버 시 원본 밝기 */
}

/* 2. 플레이 아이콘 배경 제거 및 drop-shadow 적용 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.2s ease;
    /* 삼각형 모양을 따라 진한 그림자 생성 */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9)); 
}

/* 마우스 오버 시 아이콘 살짝 확대 */
.video-thumb-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}

/* 3. 재생 삼각형(▶) 디자인 */
.play-icon::after {
    content: '';
    /* 배경이 없어졌으므로 삼각형 크기를 살짝 키움 */
    border-top: 8px solid transparent; 
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff; 
    transition: border-left-color 0.2s ease;
}

/* 마우스 오버 시 삼각형 색상을 유튜브 레드로 변경 */
.video-thumb-item:hover .play-icon::after {
    border-left-color: var(--gold-color);
}

.masonry-grid { columns: 4 220px; column-gap: 14px; }
.photo-card   { break-inside: avoid; margin-bottom: 14px; }
.photo-thumb  {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.photo-thumb:hover { opacity: 0.88; border-color: #bbb; }
.photo-title  { font-size: 0.88rem; font-weight: 400; color: #666; margin: 6px 0 0; line-height: 1.4; word-break: keep-all; }

/* ==========================================================================
   10. 컴포넌트 — 프로필 (멤버 상세 페이지)
   ========================================================================== */
.profile-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 50px;
    padding: 10px 0;
}
.profile-photo {
    flex-shrink: 0;
    width: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
}
.profile-photo img    { width: 100%; }
.profile-info         { flex: 1; padding-top: 5px; }
.profile-info h2      { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 5px; font-weight: 700; }
.profile-info .degrees { font-size: 1rem; color: #777; margin-bottom: 20px; font-weight: 300; }
.profile-affiliation  { font-size: 1rem; line-height: 1.6; color: #333; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 25px; }
.profile-contact      { font-size: 1rem; line-height: 1.8; color: #555; }
.profile-contact div  { display: flex; align-items: center; gap: 10px; }
.profile-contact strong { color: var(--primary-color); font-weight: 600; min-width: 60px; }

/* ==========================================================================
   11. 푸터 (Footer)
   ========================================================================== */
#footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 20px;
    margin-top: auto;
    border-top: 3px solid var(--gold-color);
}
#footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-logo {
    width: 100%;
    max-width: 180px;
    opacity: 0.9;
    flex-shrink: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.footer-logo:hover { opacity: 1; transform: scale(1.03); }
#footer .footer-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#footer p {
    margin: 1px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #aaa;
}
#footer a { color: #ccc; }
#footer a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   12. 반응형 (Mobile — max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .logo           { padding: 15px 50px; }
    .logo h1 a      { font-size: 1.25rem; line-height: 1.1; }
    .logo h2        { font-size: 0.9rem; margin-top: 3px; line-height: 1.2; }

    .menu-toggle {
        display: block;
        left: 20px;
        right: auto;
        top: 25px;
        transform: none;
        margin-top: 0;
    }

    /* 스크롤 시 헤더 축소 */
    #header-wrapper.scrolled .menu-toggle   { top: -5px; }
    #header-wrapper.scrolled .logo          { padding: 10px 50px; }
    #header-wrapper.scrolled .logo h1 a    { font-size: 0; display: block; }
    #header-wrapper.scrolled .logo h1 a::after {
        content: "CEM Group";
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary-color);
        display: inline-block;
        line-height: 1;
    }
    #header-wrapper.scrolled .logo h2 { display: none; }

    /* 모바일 네비게이션 */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 100px;
        width: 100%;
        background-color: var(--white);
        border-bottom: 2px solid var(--primary-color);
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.active  { display: flex; }
    .nav-menu > li    { width: 100%; border-top: 1px solid #f1f1f1; }
    .nav-menu > li > a { padding: 15px 20px; font-size: 1rem; width: 100%; }

    /* 모바일 드롭다운 (항상 펼침) */
    .dropdown {
        display: block;
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #fcfcfc;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        border-top: 1px dashed #eee;
    }
    .dropdown li a { padding: 10px 15px; font-size: 0.9rem; color: #666; }

    /* 레이아웃 */
    .container { flex-direction: column; }
    #sidebar   { order: 2; margin-top: 20px; width: 100%; }
    #content   { width: 100%; }

    /* 푸터 */
    #footer .footer-content { flex-direction: column; gap: 15px; text-align: center; }
    #footer .footer-info    { text-align: center; }
    .footer-logo            { max-width: 140px; }

    /* 프로필 */
    .profile-section        { flex-direction: column; align-items: center; text-align: center; }
    .profile-photo          { width: 160px; margin-bottom: 25px; }
    .profile-contact div    { justify-content: center; }
    .profile-info h2        { font-size: 1.5rem; }

    /* 갤러리 */
    .masonry-grid { columns: 2 160px; }

    /* Hero A */
    .hero-a { min-height: 320px; padding: 50px 20px; }
    .hero-a h2 { font-size: 1.5rem; }

    /* 연구 이미지 그리드: 모바일에서 2열 */
    .research-img-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* 동영상 썸네일: 모바일에서 축소 (130px → 90px) */
    .video-thumb-item       { flex: 0 0 90px; }
    .video-thumb-item img   { height: 51px; } /* 90 * 9/16 ≈ 51px (16:9 유지) */
}

@media (max-width: 480px) {
    .member-grid        { grid-template-columns: 1fr; }
    .masonry-grid       { columns: 1; }
    .content-inner      { padding: 15px; }

    /* 소형 폰: 1열로 전체 폭 표시 */
    .research-img-grid  { grid-template-columns: 1fr; }

    /* 동영상 썸네일: 소형 폰에서 더 축소 (90px → 72px) */
    .video-thumb-item       { flex: 0 0 72px; }
    .video-thumb-item img   { height: 41px; } /* 72 * 9/16 ≈ 40.5px */
}

/* ==========================================================================
   13. 컴포넌트 — 라이트박스 (Photo Gallery)
   ========================================================================== */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#lightbox.active { display: flex; }

#lightbox-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

#lightbox-content {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
}

#lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

#lightbox-caption {
    color: #ddd;
    text-align: center;
    padding: 12px 20px 0;
    font-size: 0.9rem;
    max-width: 700px;
    line-height: 1.5;
}

#lightbox-close {
    position: fixed;
    top: 14px; right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    padding: 0 6px;
}

#lightbox-prev,
#lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    padding: 14px 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    z-index: 10001;
    transition: background 0.2s;
}
#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ==========================================================================
   14. 컴포넌트 — 히어로 섹션 (Hero A: Full Background Image)
   ========================================================================== */

/* Hero A: 풀 배경 이미지 + 오버레이 */
.hero-a {
    background:
        linear-gradient(rgba(0, 30, 66, 0.72), rgba(0, 30, 66, 0.80)),
        url('img/hero_page.png') center / cover no-repeat;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 70px 20px;
}
.hero-a .hero-inner { max-width: 760px; }
.hero-a h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-a .subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}
.hero-a .gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold-color);
    margin: 0 auto 28px;
}
.hero-a .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}
.hero-a .hero-tags span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--gold-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #a8893c; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
