/* 기본 & 공통 스타일 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; color: #555; background-color: #FFFFFF; }
a { text-decoration: none; color: inherit; }
.inner, #header { max-width: 1200px; margin: 0 auto; position: relative; }
ul, li { list-style: none; }


/* --- 헤더 (2단 구조) --- */
#header {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- 헤더 윗줄 (제목, 검색, 모바일 버튼) --- */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}

.header-top .logo a {
    font-size: 28px;
    font-weight: normal;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box input[type="text"] {
    display: none;
}

.search-box button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    font-size: 0;
    cursor: pointer;
}

/* --- 헤더 아랫줄 (메뉴) --- */
.header-bottom {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-bottom .gnb ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-bottom .gnb li a {
    padding: 0 20px;
    font-size: 15px;
    color: #666;
}


/* --- 레이아웃 --- */
#content-container { display: flex; justify-content: space-between; padding: 40px 20px; }
#content { width: 70%; }
#sidebar { width: 26%; }
#footer { text-align: center; padding: 40px 20px; color: #888; border-top: 1px solid #eee; }


/* --- 글 목록 & 본문 --- */
.post-item { background: #fff; padding: 30px; margin-bottom: 20px; border: 1px solid #eee; border-radius: 5px; }
.post-item h2 a { font-size: 22px; color: #333; }
.post-item .meta { margin: 10px 0; font-size: 13px; color: #999; }
.post-item .meta .date:before { content: '·'; margin: 0 5px; }
.post-item .summary { margin-bottom: 20px; font-size: 15px; line-height: 1.7; }
.post-item .more-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid [##_var_point-color_##];
    color: [##_var_point-color_##];
    border-radius: 5px;
    font-size: 14px;
}

.article-view .article-header h1 { font-size: 32px; margin-bottom: 10px; }
.article-view .article-body { line-height: 1.8; margin: 30px 0; }


/* --- 본문 내부 콘텐츠 스타일 --- */
.article-view .article-body ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 16px 0;
}
.article-view .article-body li {
    list-style: inherit;
    padding-left: 5px;
    margin-bottom: 8px;
}

.article-view .article-body ol {
    list-style-type: decimal; 
    padding-left: 20px;       
    margin: 16px 0;           
}

/* --- 사이드바 위젯 --- */
.widget { background: #fff; padding: 20px; margin-bottom: 20px; border: 1px solid #eee; }
.widget h3 { font-size: 16px; color: #333; padding-bottom: 10px; border-bottom: 1px solid #eee; margin-bottom: 15px; }

/* 최근글 위젯 */
.recent-posts li { display: flex; margin-bottom: 15px; }
.recent-posts .thumb { width: 60px; height: 60px; background-color: #eee; margin-right: 15px; }
.recent-posts .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-posts .info { flex: 1; }
.recent-posts .info a { font-size: 15px; }
.recent-posts .info .date { font-size: 12px; color: #999; margin-top: 5px; }

/* 태그 위젯 */
.tag-cloud a { display: inline-block; margin: 0 5px 5px 0; padding: 5px 10px; background-color: #f2f2f2; border-radius: 3px; font-size: 13px; }


/* --- 커버: 이미지 리스트형 --- */
.cover-image-list {
    margin-bottom: 40px;
}

.cover-image-list .cover-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.cover-image-list .list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cover-image-list .list-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-image-list .list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.cover-image-list .list-item .thumbnail {
    width: 100%;
    padding-top: 66.67%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

.cover-image-list .list-item .info { padding: 15px; background-color: #fff; }
.cover-image-list .list-item .info h3 { font-size: 16px; font-weight: bold; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.cover-image-list .list-item .info .summary { font-size: 14px; color: #666; height: 40px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 12px; }
.cover-image-list .list-item .info .meta-info { font-size: 12px; color: #999; }
.cover-image-list .list-item .info .meta-info .date:before { content: '·'; margin: 0 6px; }


/* --- 모바일 메뉴 버튼 (햄버거) --- */
.mobile-menu-btn {
    display: none;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    margin-left: 10px;
    padding: 6px;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    margin: 4px 0;
}


/* --- 반응형 --- */
@media (max-width: 1024px) {
    #content-container { flex-direction: column; }
    #content, #sidebar { width: 100%; }
    #sidebar { margin-top: 40px; }
    .cover-image-list .list-container { grid-template-columns: repeat(2, 1fr); }
    .header-top .logo a { font-size: 22px; }
    .header-bottom { display: none; }
    .mobile-menu-btn { display: block; }

    .gnb.is-active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 1000;
        padding-top: 100px;
        text-align: center;
    }
    .gnb.is-active ul { flex-direction: column; }
    .gnb.is-active li a { font-size: 24px; padding: 20px 0; display: block; }
}

@media (max-width: 768px) {
    .cover-image-list .list-container { grid-template-columns: 1fr; }
    .post-item h2 a { font-size: 20px; }
    .article-view .article-header h1 { font-size: 26px; }
}