/* ========== 기본 리셋 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    line-height: 1.6;
}

/* ========== 헤더 스타일 ========== */
header {
    background-color: #D21034; /* Hartford Red */
    color: #FFFFFF;
    padding: 10px 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========== 네비게이션 메뉴 (데스크톱) ========== */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* ========== 모바일 토글 버튼 ========== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
}
/* 네비게이션에서 현재 페이지 표시 */
.navbar ul li a.active {
    font-weight: bold;
    border-bottom: 2px solid #fff;  /* 흰색 밑줄 */
    /* 또는 배경색, 폰트색 등 원하는 강조 스타일 */
}

/* ========== 반응형: 화면 폭이 768px 이하인 경우 ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;  /* 햄버거 버튼 표시 */
    }

    /* 처음에는 메뉴 숨김 */
    nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        flex-direction: column;
        background-color: #D21034;
        width: 200px;
        padding: 20px;
        gap: 10px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    /* 토글 활성화 시 나타나는 메뉴 */
    nav ul.active {
        transform: translateX(0);
    }
}

/* ========== 메인 컨텐츠 ========== */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

h1 {
    margin-bottom: 20px;
}

/* ========== 푸터 스타일 ========== */
footer {
    background-color: #f2f2f2;
    padding: 10px 20px;
    text-align: center;
    color: #555;
}

/* 로고 이미지 크기 조정 */
.husl-logo {
    height: 50px;      /* 원하는 크기로 조절 */
    object-fit: contain;  /* 이미지 비율 유지 */
    margin-right: 10px; /* 텍스트와 간격 */
    vertical-align: middle;
}

/* navbar-brand가 flex 컨테이너 안에서 정렬되도록 조정 */
.navbar-brand {
    display: flex;
    align-items: center;
}

/* navbar-brand 안의 텍스트(선택 사항) 스타일 */
.navbar-brand span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFFFFF; /* 헤더가 빨간 배경이면 텍스트는 흰색 등으로 */
}
strong {
    color: #D21034; /* 연구실 메인 컬러 */
}

/* ============================= 슬라이더 스타일 ============================= */

/* 슬라이더 전체 컨테이너 */
.image-slider {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
}


/* 각 슬라이드 (이미지 컨테이너) */
.slide {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 가로:세로 = 16:9 비율 유지 */
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 이전/다음 버튼 스타일 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 8px 16px;
    margin-top: -22px;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 3px;
    user-select: none;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* ========== 반응형(모바일) ========== */
@media (max-width: 768px) {
    .image-slider {
        max-width: 100%;
        margin: 20px auto;
    }
}


/* ========== YouTube 비디오 섹션 공통 스타일 ========== */
.video-section {
    max-width: 800px;      /* 섹션의 최대 너비 */
    margin: 40px auto;     /* 가운데 정렬, 위아래 여백 */
    padding: 0 20px;       /* 좌우 패딩(선택) */
}

/* iframe을 반응형으로 감싸기 위한 컨테이너 */
.video-container {
    position: relative;
    width: 100%;
    /* 16:9 비율을 맞추기 위해 아래 패딩값을 사용 */
    padding-bottom: 56.25%; /* (9 / 16) x 100 = 56.25% */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
}

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


/* 사람들 전체 섹션 공통 */
.people-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 테이블 스타일 (3열) */
.people-table {
    width: 100%;
    border-collapse: separate; /* 혹은 collapse */
    border-spacing: 0 20px;    /* 행 간격 */
}

.people-table td {
    vertical-align: top;
    width: 33.33%;
    padding: 10px;
}

/* 공통 카드 스타일 */
.person-card {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
}

.person-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.person-card h2 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
    color: #333;
}

.person-card .role {
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
}

.person-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Principal Investigator card (예: 더 크게 보여줄 수도 있음) */
.pi-card {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
    background-color: #fffafc;
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 20px;
}

.pi-card img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.pi-card h2 {
    margin-bottom: 6px;
    color: #D21034; /* 색 강조 */
}

/* ===== 반응형: 모바일에서 테이블을 세로로 쌓기 ===== */
@media (max-width: 768px) {
    .people-table, .people-table tr, .people-table td {
        display: block;
        width: 100%;
    }
    /* 테이블 셀 사이 간격 */
    .people-table td {
        margin-bottom: 20px;
    }
    /* 이미지 사이즈도 살짝 줄이기 */
    .person-card img {
        width: 100px;
        height: 100px;
    }
}


.profile-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-detail h1 {
    margin-bottom: 10px;
    color: #D21034; /* 포인트 컬러 */
}

.profile-top {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.profile-top img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.profile-info .role {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

/* 반응형 */
@media (max-width: 768px) {
    .profile-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-top img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}


/* ========== Publication 페이지 공통 스타일 ========== */
.pub-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    margin-bottom: 50px;
}

.pub-section h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #D21034; /* 포인트 컬러 */
}

/* 정렬/리스트 스타일 */
.pub-list {
    margin-left: 20px; /* 리스트와 제목 간격 */
    line-height: 1.6;
}
.pub-list li {
    margin-bottom: 10px;
}

/* 예시: 논문 제목이나 핵심 정보 강조 */
.pub-list strong {
    color: #333;
}

/* 반응형(모바일에서 폰트 크기 줄이는 등) */
@media (max-width: 768px) {
    .pub-section {
        padding: 0 10px;
    }
    .pub-section h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .pub-list {
        margin-left: 15px;
    }
}
