/* 전체 스타일 */
body {
    font-family: 'Nanum Gothic', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* 컨텐츠 정렬 */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 구분선 스타일 */
.divider {
    border: none;
    border-top: 2px solid #ddd;
    margin: 30px auto;
    width: 80%;
}

/* 게시글 미리보기 스타일 */
.post-preview {
    border-bottom: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.15);
}

.post-preview h3 {
    font-size: 20px;
    margin-top: 0;
}

.post-preview p {
    font-size: 16px;
    color: #555;
}

/* 헤더를 상대 위치로 설정하여 메뉴가 헤더 아래로 나오게 함 */
.header-container {
    position: relative; /* 메뉴가 헤더를 기준으로 정렬되도록 설정 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    background-color: #fff;
    border-bottom: 2px solid #ddd;
}

/* 사이트 제목 */
.site-title {
    display: flex;
    flex-direction: column;
}
.site-title h1 {
    font-size: 26px;
    margin: 0;
    font-weight: bold;
}
.site-title p {
    font-size: 14px;
    color: #777;
    margin: 4px 0 0;
}

/* 사이트 제목 링크 스타일 */
.site-title a {
    text-decoration: none;  /* 밑줄 제거 */
    color: inherit;  /* 기본 색상 유지 */
    font-weight: bold;
}

/* 네비게이션 메뉴 */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}
.nav-menu li a:hover {
    color: #007BFF;
}

/* 모바일 메뉴 버튼 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* 소개글 스타일 */
.intro {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 50px auto;
    max-width: 800px;
}

/* "전체 글 보기" 버튼 */
.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #555;
    border: 1px solid #d1d1d1;
    cursor: pointer;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    text-align: center;
}

/* 마우스 올렸을 때 */
.read-more:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
}

/* 클릭했을 때 */
.read-more:active {
    transform: translateY(1px);
}

/* 게시글 스타일 */
#articles {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* 푸터 스타일 */
footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #ddd;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;  /* 세로 방향 정렬 */
    align-items: center;  /* 가로 정렬 */
    justify-content: center; /* 세로 정렬 */
    width: 100%;
}

/* 푸터 내 링크 스타일 */
footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}



    /* 미리보기 스타일 */
.post-preview {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.post-preview h3 {
    margin-top: 0;
}

.post-preview p {
    font-size: 16px;
    color: #666;
}

/* 모바일 네비게이션 메뉴 */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%; /* 헤더 바로 아래 위치 */
        left: 0;
        width: 100%;
        background-color: #fff;
        display: none;
        flex-direction: column;
        border-bottom: 2px solid #ddd;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000; /* 다른 요소 위에 보이도록 설정 */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px;
        text-align: center;
    }

    /* 햄버거 메뉴 버튼 */
    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        background: none;
        border: none;
    }
}