/**
 * 글 목록 전용 스타일 (post_list.php)
 * - 리스트형 레이아웃: 썸네일(좌) + 제목/요약/메타(우)
 */

.heeb__content--list {
    padding-bottom: 32px;
}

/* ------------------------------------------------------------------
 * 목록 헤더
 * ------------------------------------------------------------------ */

.blog-list-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* ------------------------------------------------------------------
 * 카테고리 대표 이미지
 * ------------------------------------------------------------------ */

.blog-list-header__img {
    /* 큰 화면에서 가로를 꽉 채우지 않고 최대 폭까지만 → 가운데 정렬 */
    max-width: 960px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
}

.blog-list-header__img img {
    display: block;
    width: 100%;
    /* 화면이 커지면 높이도 함께 커져 상하 잘림 완화 (최소 260px ~ 최대 460px) */
    height: clamp(260px, 30vw, 460px);
    object-fit: cover;
}

@media (max-width: 640px) {
    .blog-list-header__img img {
        height: 200px;
        border-radius: 12px;
    }
}

.blog-list-header__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 6px;
}

.blog-list-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 13px;
    color: #9ca3af;
}

.blog-list-header__breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.blog-list-header__breadcrumb a:hover {
    text-decoration: underline;
}

.blog-list-header__breadcrumb span {
    color: #d1d5db;
    font-size: 15px;
    line-height: 1;
}

.blog-list-header__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: #111827;
}

.blog-list-header__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* ------------------------------------------------------------------
 * 서브카테고리 탭 (상위 카테고리 진입 시 표시)
 * ------------------------------------------------------------------ */

.blog-list-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.blog-list-sub-nav__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-list-sub-nav__chip:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.5);
    color: #4f46e5;
}

/* ------------------------------------------------------------------
 * 글 목록 (리스트)
 * ------------------------------------------------------------------ */

.blog-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-post-list__item {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    transition: background-color 0.2s ease;
}

.blog-post-list__item:last-child {
    border-bottom: none;
}

.blog-post-list__item:hover {
    background-color: rgba(249, 250, 251, 0.8);
}

/* ------------------------------------------------------------------
 * 한 행 = 썸네일 + 본문
 * ------------------------------------------------------------------ */

.blog-post-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
    padding: 20px 0;
    box-sizing: border-box;
}

.blog-post-row__thumb {
    flex-shrink: 0;
    display: block;
    width: 200px;
    min-height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-row__thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.blog-post-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 10;
}

.blog-post-row__body {
    flex: 1;
    gap: 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
}

.blog-post-row__meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.blog-post-row__category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.blog-post-row__sub-cate {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.blog-post-row__date {
    font-size: 13px;
    color: #9ca3af;
    flex-shrink: 0;
}

.blog-post-row__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: #111827;
}

.blog-post-row__title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-row__title a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.blog-post-row__excerpt {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-row__meta-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 12px;
    color: #9ca3af;

}

.blog-post-row__reading-time {
    flex-shrink: 0;
}

.blog-post-row__dot {
    font-size: 14px;
    line-height: 1;
    color: #d1d5db;
}

.blog-post-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ------------------------------------------------------------------
 * 반응형: 모바일에서 썸네일 위로
 * ------------------------------------------------------------------ */

@media (max-width: 640px) {
    .blog-post-row {
        flex-direction: column;
        gap: 14px;
        padding: 18px 0;
    }

    .blog-post-row__thumb {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .blog-post-row__thumb img {
        aspect-ratio: 16 / 10;
    }

    .blog-post-row__title {
        font-size: 16px;
    }

    .blog-post-row__excerpt {
        -webkit-line-clamp: 2;
    }

    .blog-list-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .blog-list-header__title {
        font-size: 20px;
    }
}
