@charset "utf-8";

/* ================================================
   웹진형 최근게시물 스킨 CSS
   ================================================ */

/* 컨테이너 */
.wz_lat {
    position: relative;
}
.wz_lat ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 개별 아이템 - 가로 배치 */
.wz_item {
    display: flex;
    align-items: flex-start;
    padding: 28px 24px;
    margin: 0 -24px;
    border-bottom: 1px solid #eef0f4;
    border-radius: 16px;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.wz_item:last-child {
    border-bottom-color: transparent;
}
.wz_item:hover {
    background-color: #ffffff;
    border-bottom-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    z-index: 10;
    position: relative;
}

/* 썸네일 영역 */
.wz_thumb_link {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    margin-right: 32px;
    border-radius: 10px;
    overflow: hidden;
    background: #edf0f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wz_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.wz_item:hover .wz_thumb {
    transform: scale(1.02);
    filter: brightness(1.02);
}
.wz_no_img {
    color: #c0c7d4;
    font-size: 32px;
}

/* 텍스트 콘텐츠 영역 */
.wz_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    padding: 5px 0;
}

/* 카테고리 태그 */
.wz_category {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #3b7ddd;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.wz_cat_dot {
    color: #bcc5d3;
    margin-left: 2px;
}

/* 제목 */
.wz_subject {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    line-height: 1.45;
    margin-bottom: 18px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.wz_subject:hover {
    color: #3b7ddd;
}

/* 뱃지 (N/Hot) */
.wz_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
}
.wz_new {
    background: #e6f9ee;
    color: #1db954;
}
.wz_hot {
    background: #fde8e8;
    color: #e8453c;
    font-size: 10px;
}

/* 메타 정보 (날짜, 작성자, 조회수 등) */
.wz_meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8892a4;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.wz_sep {
    margin: 0 10px;
    color: #d4d9e2;
    font-size: 8px;
}
.wz_comment_cnt {
    color: #3b7ddd;
    font-weight: 600;
}

/* 빈 게시물 */
.wz_empty {
    text-align: center;
    padding: 80px 0;
    color: #9ba3b5;
    font-size: 15px;
}

/* 더보기 버튼 */
.wz_more {
    position: absolute;
    top: -45px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e6ed;
    color: #6b7588;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.wz_more:hover {
    background: #f0f3f8;
    color: #3b7ddd;
    border-color: #c7d0de;
}
.wz_more .sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ================================================
   반응형
   ================================================ */
@media (max-width: 768px) {
    .wz_item {
        flex-direction: column;
        padding: 24px 0;
        margin: 0;
    }
    .wz_thumb_link {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-right: 0;
        margin-bottom: 16px;
    }
    .wz_content {
        min-height: auto;
    }
    .wz_subject {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .wz_more {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 16px;
        width: 100%;
    }
}