/* 5. 폰트 설정 (Pretendard) */
@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;
}

.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; /* 이미지 레이어 */
}

/* .hero-content { 
    position: absolute; 
    bottom: 50px; 
    left: 60px; 
    z-index: 2; 
    color: white;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5); 
} */

/* 인사말 섹션 */
.greeting-section { padding: 150px 0; background: #fff; }
.greeting-wrap {
    display: flex;
    align-items: stretch;
    gap: 70px; 
}
.greeting-img { flex: 1; }
.greeting-img img {
    width: 450px;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.greeting-text {
    flex: 1.5;
    font-size: 1.05rem;
    line-height: 25px;
    color: #333;
    word-break: keep-all;
}

.container.greeting-wrap {
    padding: 0 50px;
}
    

/* 강사진 소개 섹션 */
.section-title { 
    text-align: center; /* 제목 중앙 정렬 */
    font-size: 2rem; 
    margin-bottom: 60px; 
    color: #333;
}
.instructors-section { padding: 150px 0; background: #f9fbf4; }
.instructor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 50px; }
.instructor-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.02);
}
.instructor-card img {
    width: 230px; 
    height: 325px;
    object-fit: cover;
    border-radius: 5px;
    margin: 0 auto 20px auto; 
    display: block;
}
.instructor-card h3 { font-size: 1.4rem; margin-bottom: 5px; color: #222; }
.instructor-card .role { color: #7b9160; font-weight: bold; margin-bottom: 20px; font-size: 0.95rem; }
.career-list { text-align: left; border-top: 1px solid #eee; padding-top: 20px; }
.career-list li { font-size: 0.85rem; color: #666; margin-bottom: 8px; position: relative; padding-left: 15px; }
.career-list li::before { content: "•"; position: absolute; left: 0; color: #7b9160; }

/* 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) {
    .greeting-wrap { flex-direction: column; }
    .greeting-img, .greeting-text { width: 100%; }
    
    .instructor-grid { grid-template-columns: 1fr; } /* 모바일에서는 1열로 나열 */
    
    .hero-content { left: 40px; bottom: 40px; }
    .hero-content h1 { font-size: 2.5rem; }
    .main-header {
    padding:0;
    }
    .nav-menu{
        display:none;
    }

    /* 햄버거 보이기 */
    .hamburger{
        display:flex;
    }

    /* 햄버거 클릭 시 */
    .mobile-nav.active{
        display:flex;
    }

    .nav-container{
        padding:10px 20px;
    }

    .hamburger{
        margin-left:auto;
    }
}