@charset "utf-8";

.blog-list-wrap {
    max-width: 1024px;
    margin: 0 auto;
    padding: 150px 0 80px;
}


/* 메인 배너 */
.blog-list-wrap .main-banner {
    width: 100%;
    height: 180px;
    background: url('../images/main-banner-bg.jpg') no-repeat center/cover;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.blog-list-wrap .main-banner .title {
    text-align: center;
    font-weight: 600;
}

.blog-list-wrap .main-banner .title h1 {
    font-size: 28px;

    margin-bottom: 12px;
    color: #fff;
}

.blog-list-wrap .main-banner .title p {
    color: #7789b2;
    font-size: 15px;
}

/* 카테고리 탭 */
.blog-list-wrap .category-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.blog-list-wrap .category-tabs a {
    font-size: 16px;
    color: #999;
    text-decoration: none;
    padding-bottom: 6px;
}

.blog-list-wrap .category-tabs a.active {
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #000;
}



/* 전체 그리드 */
.blog-list-wrap .blog-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 40px;
}



/* ===========================
   좌측: 리스트
=========================== */
.blog-list-wrap .blog-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-right: 40px;
    border-right: 1px solid #eee;
}

.blog-list-wrap .post-item a{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    gap: 20px;
}

.blog-list-wrap .post-item a:hover .post-title {
     text-decoration: underline;
}

.blog-list-wrap .post-left {
    flex: 1;
}

.blog-list-wrap .post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-list-wrap .post-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-list-wrap .post-meta {
    font-size: 13px;
    color: #999;
}



/* 썸네일 */
.blog-list-wrap .post-thumb {
    width: 140px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-list-wrap .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list-wrap .thumb-noimg {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-list-wrap .pagination {
    display: flex;
    gap: 6px;
    margin: 40px 0;
}

.blog-list-wrap .pagination a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.blog-list-wrap .pagination a.active {
    background: #333;
    color: #fff;
    border-color: #333;
}




/* ===========================
   우측 사이드바
=========================== */
.blog-list-wrap .blog-sidebar {
    /*
    position:sticky;
    top:40px;
    height:max-content;
*/
}

.blog-list-wrap .sidebar-section {
    margin-bottom: 40px;
}

.blog-list-wrap .sidebar-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}


/* 인기글 */
.blog-list-wrap .hot-item {
    margin-bottom: 14px;
}

.blog-list-wrap .hot-item a {
    display: block;
    color: #000;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
}

.blog-list-wrap .hot-item a:hover {
    text-decoration: underline;
}

.blog-list-wrap .hot-cate {
    font-size: 12px;
    color: #999;
}


/* 태그 클라우드 */
.blog-list-wrap .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-list-wrap .tag {
    display: inline-block;
    padding: 6px 10px;
    background: #f6f6f6;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

.blog-list-wrap .tag:hover {
    background: #e5e5e5;
}

@media (max-width:1040px) {
    .blog-list-wrap {
        padding: 150px 40px 80px;
    }
}

@media (min-width:769px) {
    .blog-list-wrap .main-banner .title p .mbr {
        display: none;
    }
}

@media (max-width:768px) {
    .blog-list-wrap {
        padding: 100px 20px 80px;
    }

    .blog-list-wrap .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-list-wrap .blog-sidebar {
        display: none;
    }

    .blog-list-wrap .main-banner .title h1 {
        font-size: 20px;
    }

    .blog-list-wrap .main-banner .title p {
        line-height: 1.4;
    }

    .blog-list-wrap .main-banner .title p .mbr {
        display: block;
    }
    
    .blog-list-wrap .post-item a{
        flex-direction: column-reverse;
    }
}
