@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', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    animation: fadeIn 0.3s ease;
}

ul, ol, li { 
    list-style: none; /* 점 제거 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 컨테이너 공통 여백 */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 네비게이션 보완: 로고 추가 */
.logo-area img { 
    height: 65px; /* 로고 크기 키움 */
    width: auto;
    display: block;
}

.main-header { 
    background-color: #e8f0de; /* 요청하신 색상 */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: space-between; 
    margin: 0 auto; 
    padding: 0 40px;
    width: 100%;
}
.nav-container { 
    display: flex; 
    align-items: center;    /* 핵심: 로고와 메뉴를 수직 중앙으로 정렬 */
    justify-content: space-between; 
    width: 90%;             /* 혹은 100% (양쪽 끝 여백 조절용) */
    max-width: 1400px;      /* 너무 퍼지지 않게 최대치만 설정 */
    margin: 0 auto; 
    padding: 10px 100px;
    position: relative;
}

.nav-menu {
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    align-items: center;
}
.nav-menu a { 
    font-weight: 500; 
    font-size: 1.3rem; 
    color: #333;
    text-decoration: none;
}
.nav-menu a:hover { color: #bdcaad; }

.mobile-nav{
    display:none;

    position:fixed;
    top:85px;
    left:0;
    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): 세로 길이 조절 및 글자 위치(이미지 위로) */
.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; /* 이미지 레이어 */
}

/* --- 학술행사(Conference) 페이지 전용 스타일 --- */

.conference-section {
    padding: 80px 0;
    background-color: #f9fbf4; /* 연한 배경색으로 카드 강조 */
}

/* 3개씩 나열되는 그리드 */
.conference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

/* 개별 카드 디자인 */
.conference-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* 자연스러운 음영 */
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #eee;
}

/* 카드 상단 제목 영역 */
.card-header {
    padding: 25px 20px;
    background: #fff;
}

.card-header h3 {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    font-weight: 700;
}

/* 카드 이미지 영역 */
.card-body img {
    width: 100%;
    height: 300px; /* 이미지 높이 고정 */
    object-fit: fill;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    display: block;
}

/* 카드 하단 정보 영역 */
.card-info {
    padding: 25px 20px;
    text-align: left; /* 정보는 왼쪽 정렬 */
}

.card-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-info p strong {
    color: #333;
    font-weight: 700;
    margin-right: 5px;
}



/* 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: 900px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items:center; }
    .nav-menu { gap: 20px; }
}

/* --- 모바일 대응 --- */
@media (max-width: 992px) {
    .conference-grid {
        grid-template-columns: repeat(2, 1fr); /* 태블릿 2열 */
    }
}

@media (max-width: 600px) {
        .conference-grid {
        grid-template-columns: 1fr; /* 모바일 1열 */
        gap: 30px;
    }
    .card-header h3 { font-size: 1rem; }

    .nav-menu{
        display:none;
    }

    /* 햄버거 보이기 */
    .hamburger{
        display:flex;
    }

    /* 햄버거 클릭 시 */
    .mobile-nav.active{
        display:flex;
    }

    .nav-container{
        padding:10px 20px;
    }

    .hamburger{
        margin-left:auto;
    }
}