@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Regular.otf') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Bold.otf') format('woff2');
    font-weight: 700;
}

/* 기본 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    animation: fadeIn 0.3s ease;
}
a {
    text-decoration: none;
    color: inherit;
}

ul, ol { list-style: none; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 1. 네비게이션: Sticky 설정 및 배경색 수정 */
.main-header { 
    background-color: #e8f0de; /* 요청하신 색상 */
    padding: 20px 40px; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nav-container {
    max-width:1200px;
    margin:0 auto;

    display:flex;
    justify-content:center;
    align-items:center;

    position:relative;
}

.nav-menu { display: flex; justify-content: center; gap: 60px; }
.nav-menu a { font-weight: 700; font-size: 1.3rem; color: #444; }
.nav-menu a:hover { color: #bdcaad; }

.logo-area{
    display:none;
}

.logo-area img{
    height:60px;
    display:block;
}

.mobile-nav{
    display:none;

    position:absolute;
    top:100%;

    left:50%;
    transform:translateX(-50%);

    width:100vw;

    margin:0;
    padding:20px 0;

    list-style:none;

    background:#e8f0de;

    flex-direction:column;
    align-items:center;
    gap:20px;

    z-index:999;
}

.mobile-nav a{
    color:#333;
    text-decoration:none;
    font-size:1.3rem;
    font-weight:500;
}

.mobile-nav a:hover{
    color:#bdcaad;
}

/* 햄버거 버튼 */
.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.hamburger span{
    width:28px;
    height:3px;
    background:#a1a1a1;
    border-radius:3px;
}

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(6px,6px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(5px,-5px);
}

.hamburger span{
    transition:.3s;
}

/* 메인 비주얼 */
/* .hero { position: relative; width: 100%; height: 450px; display: flex; align-items: center; justify-content: center; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(0.8); }
.hero-content { text-align: center; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 15px; font-family: 'Merriweather', serif; } */

.hero { 
    position: relative; 
    width: 100%; 
    height: auto; 
    overflow: hidden; 
}
.hero img { 
    display: block;
    top: 0;
    left: 0;
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    z-index: 1; /* 이미지 레이어 */
}

/* .hero-content { 
    position: absolute;
    bottom: 60px; 하단에서 60px 띄움
    left: 80px;   왼쪽에서 80px 띄움 
    z-index: 2;   /이미지보다 위에 배치 
    text-align: left;  왼쪽 정렬 
    color: white;
}

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px;
    /* font-family: 'Merriweather', serif; 
    /* 글자가 배경색에 묻히지 않도록 그림자 추가 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

.hero-content p { 
    font-size: 1.2rem; 
    line-height: 1.5;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
} */

/* 2. info-item: 가로 배치 및 이미지/텍스트 정렬 */
.info-section { max-width: 1100px; margin: 100px auto; padding: 0 40px; }
.info-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 60px; 
    margin-bottom: 120px; 
}
.info-item.reverse { 
    flex-direction: row-reverse; /* 이미지 왼쪽, 글 오른쪽 */
}
.info-text { flex: 1.2; }
.info-image { flex: 1; text-align: center; }
.info-image img { width: 100%; max-width: 500px; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.info-text h2 { font-size: 1.8rem; color: #7b9160; margin-bottom: 25px; border-bottom: 2px solid #e8f0de; display: inline-block; padding-bottom: 5px; }
.highlight { font-size: 1.1rem; margin-bottom: 20px; color: #222; }
.info-text ol li, .info-text ul li { margin-bottom: 12px; color: #555; font-size: 1rem; }

/* 3. 학술행사: 중앙 정렬 및 여백 확보 */
.gallery-section { background: #fdfdfd; padding: 100px 0; }
.section-title { 
    text-align: center; /* 제목 중앙 정렬 */
    font-size: 2rem; 
    margin-bottom: 60px; 
    color: #333;
}
.gallery-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 60px; /* 좌우 충분한 여백 */
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3개씩 나열 */
    gap: 30px; 
}
.gallery-grid img { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* 4. 푸터: 가운데 정렬 및 배경색 수정 */
.main-footer { 
    background-color: #e8f0de; /* 네비게이션과 동일한 색상 */
    padding: 80px 20px; 
    text-align: center; /* 전체 가운데 정렬 */
    border-top: 1px solid #d8e4c8;
}
.footer-logo { width: 130px; margin-bottom: 25px; }
.footer-content h3 { font-size: 1.6rem; margin-bottom: 20px; color: #444; }
.footer-content p { color: #666; font-size: 0.95rem; margin-bottom: 8px; }
.copyright { margin-top: 40px; opacity: 0.5; font-size: 0.85rem; }

/* 반응형 모바일 (작은 화면에서는 세로로 전환) */
@media (max-width: 768px) {
    .info-item, .info-item.reverse { flex-direction: column; text-align: center; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
    /* 데스크탑 메뉴 숨김 */
    .nav-menu{
        display:none;
    }

    /* 햄버거 보이기 */
    .hamburger{
        display:flex;
    }

    /* 햄버거 클릭 시 */
    .mobile-nav.active{
        display:flex;
    }

    .nav-container{
        padding:10px 20px;
    }

    .hamburger{
        margin-left:auto;
        display:flex;
    }
    
    .logo-area{
        display:block;
    }

    .nav-container{
        justify-content:space-between;
        padding:10px 20px;
    }
}