@charset "utf-8";

/*
    법무법인 강현 - 메인 카드형 최신글 스킨
    적용 위치: /skin/latest/kh_main_latest/style.css
*/

.kh-main-latest-card {
    width: 100%;
}

.kh-main-latest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.kh-main-latest-item {
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.kh-main-latest-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0,0,0,.11);
}

.kh-main-latest-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.kh-main-latest-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #F3F4F6;
}

.kh-main-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.kh-main-latest-item:hover .kh-main-latest-thumb img {
    transform: scale(1.05);
}

.kh-main-latest-body {
    padding: 20px 20px 22px;
}

.kh-main-latest-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.kh-main-latest-category {
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(200,169,106,.13);
    color: #9A7A37;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.kh-main-latest-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #1E2A38;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.kh-main-latest-title {
    display: -webkit-box;
    min-height: 54px;
    margin: 0;
    overflow: hidden;
    color: #1E2A38;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -0.05em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s ease;
}

.kh-main-latest-link:hover .kh-main-latest-title {
    color: #C8A96A;
}

.kh-main-latest-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 12px 0 0;
    overflow: hidden;
    color: #6B7280;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: -0.03em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kh-main-latest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 13px;
}

.kh-main-latest-meta span {
    position: relative;
}

.kh-main-latest-meta span + span::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 1px;
    height: 12px;
    background: #D1D5DB;
    transform: translateY(-50%);
}

.kh-main-latest-empty {
    padding: 44px 20px;
    text-align: center;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 12px;
}

.kh-main-latest-more-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    clear: both;
}

.kh-main-latest-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 4px;
    background: #1E2A38;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
}

.kh-main-latest-more:hover {
    background: #C8A96A;
    color: #fff !important;
}

@media (max-width: 900px) {
    .kh-main-latest-title {
        min-height: auto;
        font-size: 17px;
    }

    .kh-main-latest-desc {
        min-height: auto;
    }

    .kh-main-latest-more-wrap {
        justify-content: flex-end;
    }
}
