@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; /* 이미지 레이어 */
}

/* --- 자료실(Reference) 그리드 섹션 스타일 --- */

.reference-section {
    padding: 80px 0;
    background-color: #f9fbf4; /* 기존 페이지와 통일감 있는 연한 배경색 */
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px); /* 카드 너비(300px)로 3열 고정 */
    gap: 50px 30px;                               /* 요청하신 카드 사이 여백 20px */
    justify-items: center; /* 카드들을 가로 중앙에 배치 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 개별 카드 스타일 */
.reference-card {
    background: #ffffff;
    width: 300px; /* 카드의 전체 너비 */
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    /* 자연스러운 그림자 효과 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07); 
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 25px 0; /* 위 25px + 아래 25px = 카드끼리 만날 때 총 50px 여백 생성 */
}

/* 카드 상단 제목 영역 */
.card-header {
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.card-header span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7b9160; /* 강조 컬러 */
    letter-spacing: -0.5px;
}

/* 카드 이미지 영역 (고정 크기) */
.card-image-wrap {
    padding: 20px 0; /* 이미지 주변 여백 */
    background-color: #fff;
}

.card-image-wrap img {
    /* 웹플로우 설정값 반영 */
    width: 200px; 
    height: 250px; 
    
    /* 비율이 깨지더라도 전체가 꽉 차게 들어감 */
    object-fit: fill; 
    
    display: block;
    margin: 0 auto;
    border: 1px solid #eee; /* 이미지 경계선 */
}

/* 카드 하단 설명 영역 */
.card-content {
    /* padding: 20px; */
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px 25px 25px;
}

.card-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
    word-break: keep-all; /* 단어 단위 줄바꿈으로 가독성 향상 */
}

/* 구독 버튼 */
.subscribe-section{
    background:#f9fbf4;
    padding:70px 20px;
}

/* 구독 버튼 */
.subscribe-btn-wrap{
    text-align:center;
}

.subscribe-btn{
    display:inline-block;
    padding:16px 42px;

    background:#fff;
    color:#7b9160;

    border:3px solid #7b9160;
    border-radius:50px;

    font-size:1.2rem;
    font-weight:700;

    text-decoration:none;
    transition:.3s ease;
}

.subscribe-btn:hover{
    background:#7b9160;
    color:#fff;
}

/* 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: 992px) {
    .reference-grid {
        grid-template-columns: repeat(2, 1fr); /* 태블릿 2열 */
    }
}

@media (max-width: 768px) {

    /* 데스크톱 메뉴 숨김 */
    .nav-menu{
        display:none;
    }

    /* 햄버거 보이기 */
    .hamburger{
        display:flex;
    }

    /* 햄버거 클릭 시 */
    .mobile-nav.active{
        display:flex;
    }

    .nav-container{
        padding:10px 20px;
    }

    .hamburger{
        margin-left:auto;
    }

    .subscribe-btn{
    width:85%;
    max-width:320px;

    padding:14px 20px;
    font-size:1.05rem;
    }
}

@media (max-width: 650px) {
    .reference-grid {
        grid-template-columns: 1fr; /* 모바일 1열 */
    }
}

