@charset "utf-8";

/* =========================================================
   e-madeinkorea.com 최신글 카드 스킨
   - 기존 그린 컬러톤 유지
   - 리스트 → 2열 미니 카드형
   - PC/모바일 반응형
   ========================================================= */

.lat_food_latest {
    float:left;
    width:352px;
    min-height:615px;
    position:relative;
    margin-bottom:20px;
    overflow:hidden;
    box-sizing:border-box;
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:12px;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lat_food_latest:hover {
    border-color:#d7e8c0;
    box-shadow:0 8px 22px rgba(58, 92, 36, .08);
    transform:translateY(-2px);
}

/* 헤더 */
.lat_food_latest .lat_head {
    height:44px;
    padding:0 14px 0 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    position:relative;
    box-sizing:border-box;
    background:linear-gradient(180deg, #ffffff 0%, #e9f7da 100%);
    border-bottom:1px solid #dceccd;
}

.lat_food_latest .lat_head:before {
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:2px;
    background:#b7e08a;
}

.lat_food_latest .lat_title {
    min-width:0;
    margin:0;
    padding:0;
    line-height:1;
    font-size:14px;
    font-weight:700;
}

.lat_food_latest .lat_title a {
    display:block;
    color:#4e7d2f;
    text-decoration:none;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.lat_food_latest .lat_title a:hover {
    color:#3f6825;
}

.lat_food_latest .lt_more {
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:4px;
    color:#719456;
    font-size:11px;
    font-weight:600;
    text-decoration:none;
    transition:color .2s ease;
}

.lat_food_latest .lt_more:hover {
    color:#4e7d2f;
}

/* 카드 영역 */
.lat_food_latest .lat_cards {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    padding:10px;
    box-sizing:border-box;
}

.lat_food_latest .lat_card {
    min-width:0;
    min-height:0;
    position:relative;
    overflow:hidden;
    border:1px solid #edf0e9;
    background:#fff;
    border-radius:9px;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lat_food_latest .lat_card:hover {
    border-color:#cfe5b8;
    box-shadow:0 5px 14px rgba(78, 125, 47, .10);
    transform:translateY(-2px);
}

.lat_food_latest .lat_card.is_notice {
    background:#f8fcf4;
    border-color:#dceccd;
}

.lat_food_latest .lat_card_link {
    display:block;
    height:100%;
    padding:0;
    box-sizing:border-box;
    color:#333;
    text-decoration:none;
}


/* 썸네일 */
.lat_food_latest .lat_thumb { position:relative; width:100%; aspect-ratio:16 / 9; overflow:hidden; background:#f2f7ed; border-bottom:1px solid #edf0e9; border-radius:9px; }
.lat_food_latest .lat_thumb img { display:block; width:100%; height:100%; object-fit:cover; object-position:center calc(50% - 20px); transition:transform .3s ease; }
.lat_food_latest .lat_card:hover .lat_thumb img { transform:scale(1.04); }
.lat_food_latest .lat_thumb.no_thumb { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #f7fbf3 0%, #e9f7da 100%); }
.lat_food_latest .lat_noimg { color:#a9c58e; font-size:24px; }
.lat_food_latest .lat_card_body { display:flex; min-height:82px; padding:9px 10px 8px; box-sizing:border-box; flex-direction:column; }

/* 배지 */
.lat_food_latest .lat_badges {
    min-height:16px;
    display:flex;
    align-items:center;
    gap:3px;
    margin-bottom:4px;
}

.lat_food_latest .lat_badges:empty {
    display:none;
}

.lat_food_latest .new_icon,
.lat_food_latest .hot_icon,
.lat_food_latest .notice_icon,
.lat_food_latest .secret_icon {
    display:inline-flex;
    height:15px;
    padding:0 4px;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    border-radius:4px;
    font-size:8px;
    line-height:15px;
    font-weight:700;
}

.lat_food_latest .notice_icon {
    color:#4e7d2f;
    background:#e9f7da;
    border:1px solid #d4e9be;
}

.lat_food_latest .secret_icon {
    padding:0 5px;
    color:#62756a;
    background:#f1f4f2;
}

.lat_food_latest .new_icon {
    color:#fff;
    background:#ff6f6f;
}

.lat_food_latest .hot_icon {
    color:#fff;
    background:#e52955;
}

/* 제목 */
.lat_food_latest .lat_subject {
    display:-webkit-box;
    min-height:32px;
    overflow:hidden;
    color:#2f332d;
    font-size:13px;
    line-height:16px;
    font-weight:600;
    word-break:keep-all;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    transition:color .2s ease;
}

.lat_food_latest .lat_card:hover .lat_subject {
    color:#4e7d2f;
}

/* 메타 정보 */
.lat_food_latest .lat_meta {
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:auto;
    padding-top:5px;
    color:#9a9f97;
    font-size:10px;
    line-height:1;
}

.lat_food_latest .lat_meta i {
    font-size:10px;
}

.lat_food_latest .lt_cmt {
    color:#719456;
}

.lat_food_latest .lat_arrow {
    margin-left:auto;
    color:#b8c2b2;
    transition:transform .2s ease, color .2s ease;
}

.lat_food_latest .lat_card:hover .lat_arrow {
    color:#5f8f3a;
    transform:translateX(2px);
}

/* 빈 게시판 */
.lat_food_latest .empty_li {
    grid-column:1 / -1;
    min-height:176px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:7px;
    color:#a0a59c;
    font-size:12px;
    border:1px dashed #dfe7d8;
    background:#fbfdf9;
    border-radius:9px;
}

.lat_food_latest .empty_li i {
    color:#a9c58e;
    font-size:21px;
}

/* 모바일 */
@media (max-width:768px) {
    .lat_food_latest {
        float:none;
        width:100%;
        min-height:0;
        border-radius:10px;
    }

    .lat_food_latest .lat_head {
        height:46px;
        padding-left:15px;
    }

    .lat_food_latest .lat_cards {
        gap:8px;
        padding:9px;
    }

    .lat_food_latest .lat_card_body {
        min-height:86px;
    }
}

/* 아주 작은 모바일에서는 1열 */
@media (max-width:390px) {
    .lat_food_latest .lat_cards {
        grid-template-columns:1fr;
    }

    .lat_food_latest .lat_card,
    .lat_food_latest .lat_card_link {
        min-height:76px;
    }
}

/* YouTube iframe 자동 썸네일 */
.lat_food_latest .lat_thumb.youtube_thumb {position:relative;background:#111}
.lat_food_latest .lat_thumb.youtube_thumb img {width:100%;height:100%;object-fit:cover;object-position:center calc(50% - 20px);display:block}
