/* Main Styles */
:root {
    --primary-color: #4a9d5b;
    --secondary-color: #d8e4dd;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --text-light: #555;
    --text-lighter: #666;
    --text-lightest: #777;
}

body {
    font-family: 'Bitter', serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: #357a45;
    text-decoration: none;
}

.section-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;    
}


/* .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 70px;
    background-color: var(--primary-color);
} */

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title-text {
    border-bottom: 3px solid var(--primary-color);
}

.section-subtitle {
    color: #555;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #000;
    font-size: 1.5rem;
}

.nav-link {
    color: #000 !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

/* Bootstrap dropdown-toggle 캐럿(▼) 보더 제거 — 밑줄 애니메이션과 충돌 방지 */
.nav-link.dropdown-toggle::after {
    border: none;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 0.25rem;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
}

/* Jumbotron / Hero Section */
.hero-section {
    background: url('../images/hero_bg.png') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}

.hero-section .btn-outline-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Research Themes */
.research-themes .list-group-item {
    border-right: none;
    padding: 1rem;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
}

.research-themes .list-group-item:hover {
    border-left: 3px solid var(--primary-color);
    background-color: rgba(74, 157, 91, 0.05);
    transform: translateX(5px);
}

/* Cards */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--secondary-color);
    border-bottom: none;
    font-weight: 600;
    color: var(--text-color);
}

.contact-icon {
    color: var(--primary-color);
    width: 20px;
    margin-right: 10px;
    font-size: 18px;
    text-align: center;
}

.contact-card i {
    composes: contact-icon;
}

.contact-item i {
    composes: contact-icon;
}

/* News Card */
.news-card .card-body {
    padding: 0;
}

.news-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.news-item p {
    margin-bottom: 0;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
}

#map {
    box-shadow: var(--shadow-md);
    border-radius: 0.5rem;
    overflow: hidden;
}

.map-info-window {
    padding: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 0;
    position: relative;
}

/* Footer links 스타일 추가 */
.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

/* 네비게이션 스페이서 스타일 추가 */
.nav-spacer {
    padding-top: 110px; /* 네비게이션 바와 상단 바를 모두 수용할 수 있는 크기로 늘림 */
}

/* 상단 로그인 바 스타일 */
.top-bar {
    background-color: var(--secondary-color);
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1031; /* 네비게이션 바보다 높은 z-index */
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-bar-link {
    color: var(--text-color);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0 10px;
    display: inline-block;
    line-height: 31px;
}

.top-bar-link:hover, .top-bar-link.active {
    color: #357a45;
    text-decoration: none;
}

/* 언어 전환 토글 */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    line-height: 31px;
}

.lang-btn {
    color: var(--text-lighter);
    text-decoration: none;
    padding: 0 4px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Animation Effects */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in.visible {
    opacity: 1;
}

/* Dropdown 메뉴 show 클래스 추가 */
.dropdown-menu.show {
    display: block;
}

/* bg-light 클래스 커스텀 스타일 추가 */
.bg-light {
    background-color: var(--light-bg) !important;
}

.text-secondary {
    color: #6c757d !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    /* 모바일에서 top-bar와 navbar 조정 */
    .top-bar {
        position: static;
    }
    
    .navbar.fixed-top {
        top: 0 !important;
    }
    
    .nav-spacer {
        padding-top: 76px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-item {
        padding: 0.75rem;
    }
}

/* Publications Page Styles */
.publication-year {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
}

.publication-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.pub-authors {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.pub-journal {
    font-style: italic;
    color: var(--text-lighter);
}

.pub-metadata {
    font-size: 0.9rem;
    color: var(--text-lightest);
    margin-top: 8px;
}

.pub-abstract {
    margin-top: 15px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.year-navigation {
    position: sticky;
    top: 100px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
    padding: 15px;
    margin-bottom: 20px;
    z-index: 10;
    height: calc(100vh - 150px);
    overflow-y: auto;
}

.year-nav-btn {
    display: block;
    margin-bottom: 10px;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.year-nav-btn:hover, .year-nav-btn.active {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.publications-main {
    height: 100%;
}

.year-anchor {
    display: block;
    position: relative;
    top: -15px;
    visibility: hidden;
}

@media (max-width: 767.98px) {
    .year-navigation {
        height: auto;
        max-height: 200px;
        margin-bottom: 30px;
    }
    
    .year-nav-btn {
        display: inline-block;
        margin-right: 10px;
    }
}

/* Professor Page Styles */
.profile-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.badge {
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Lab Name Styling */
.lab-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
}

/* Media Queries for Lab Name Responsiveness */
@media (min-width: 992px) {
    .lab-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .lab-name {
        font-size: 0.9rem;
    }
}

/* 대시보드 스타일 */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.list-group-item:hover {
    background-color: rgba(74, 157, 91, 0.1);
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* 로그인 페이지 스타일 */
.login-page {
    background-color: var(--light-bg);
    min-height: calc(100vh - 76px - 200px);  /* 네비게이션과 푸터 높이를 뺀 값 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    font-weight: 600;
}

.login-form .input-group-text {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.login-form .form-control {
    border-left: none;
}

/* 대시보드 스타일 */
.dashboard-sidebar {
    position: sticky;
    top: 100px;
}

.dashboard-content {
    min-height: 500px;
}

/* 테이블 스타일 */
.table-hover tbody tr:hover {
    background-color: rgba(74, 157, 91, 0.05);
}

.table thead th {
    border-top: none;
    background-color: #f8f9fa;
}

.badge {
    padding: 6px 10px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
}

/* 버튼 스타일 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3a8549;
    border-color: #3a8549;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover, .btn-success:focus {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 알림 메시지 스타일 */
.alert {
    border: none;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 모달 스타일 */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--light-bg);
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    background-color: var(--light-bg);
} 