@charset "utf-8";
/* 소식(news) 게시판 - Figma 6549:2812 : 2단 뉴스 리스트 */

.news-top{display:flex;justify-content:flex-end;align-items:flex-end;gap:20px;margin-bottom:20px;font-family:'Pretendard',sans-serif}
.news-total{display:flex;align-items:center;gap:11px;font-size:18px;color:#333;white-space:nowrap}
.news-total em{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;background:#e6e6e6;border-radius:3px;font-style:normal;font-size:15px;color:#333}
.news-search{display:flex;align-items:center;width:337px;max-width:46vw;height:50px;border-bottom:1px solid #919191}
.news-search input{flex:1;min-width:0;border:0;background:transparent;padding:0 4px 0 15px;font-size:16px;color:#333;outline:none;font-family:'Pretendard',sans-serif}
.news-search input::placeholder{color:#8d8d8d}
.news-search button{border:0;background:transparent;color:#555;font-size:18px;padding:0 6px;cursor:pointer}

.news-grid{display:grid;grid-template-columns:repeat(2,1fr);column-gap:40px}
.news-item-wrap{position:relative;min-width:0}
.news-item{display:flex;gap:30px;align-items:center;padding:30px 0;border-top:1px solid #0f0f0f;text-decoration:none;font-family:'Pretendard',sans-serif}
.news-text{flex:0 0 413px;max-width:380px;min-width:0;display:flex;flex-direction:column;gap:30px}
.news-tit{margin:0;font-size:20px;font-weight:500;color:#111;line-height:1.4;min-height:56px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-desc{margin:24px 0 0;font-size:17px;font-weight:400;color:#555;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-date{font-size:16px;color:#888;line-height:1.7}
.news-thumb{flex:1 1 0;min-width:0;height:252px;border-radius:10px;overflow:hidden;background:#ededed}
.news-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.news-thumb[data-empty="1"]{background:linear-gradient(135deg,#e9e9e9,#f4f4f4)}
.news-item:hover .news-tit{color:#f42500}
.news-item:hover .news-thumb img{transform:scale(1.05)}
.news-empty{grid-column:1/-1;text-align:center;padding:90px 0;color:#888;font-size:16px;border-top:1px solid #0f0f0f}

/* 페이징 */
.news-paging{margin-top:60px;text-align:center}
.news-paging .pg_wrap{display:inline-block}
.news-paging .pg{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.news-paging .pg_page,.news-paging .pg_current{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #ccc;border-radius:2px;font-size:15px;color:#555;text-decoration:none;background:#fff}
.news-paging .pg_current{background:#7d7d7d;border-color:#7d7d7d;color:#fff}
.news-paging .pg_page:hover{border-color:#f42500;color:#f42500}
.news-paging .pg_start,.news-paging .pg_prev,.news-paging .pg_next,.news-paging .pg_end{border-color:transparent}

.news-btns{display:flex;justify-content:center;gap:10px;margin-top:36px}
.news-btn{display:inline-flex;align-items:center;padding:12px 26px;border-radius:6px;background:#f42500;color:#fff;font-size:15px;font-weight:500;text-decoration:none}
.news-btn:hover{background:#e02200}
.news-btn--sub{background:#555}
.news-btn--sub:hover{background:#3f3f3f}

/* 반응형 */
@media (max-width:1024px){
    .news-grid{column-gap:24px}
    .news-text{flex-basis:42%}
    .news-tit{font-size:18px}
    .news-desc{font-size:15px;margin-top:16px}
    .news-thumb{height:200px}
}
@media (max-width:768px){
    .news-top{flex-direction:column;align-items:stretch;gap:14px}   /* Total ↑ / 검색 ↓ */
    .news-search{width:100%;max-width:none}
    .news-grid{grid-template-columns:1fr;column-gap:0}
    .news-item{gap:16px;padding:10px 0;align-items:center}
    .news-text{flex:1 1 auto;flex-basis:auto;gap:10px}
    .news-tit{font-size:16px;min-height:0}
    .news-desc{display:none}
    .news-date{font-size:11px}
    .news-thumb{flex:0 0 120px;width:120px;height:90px}
    .news-paging{margin-top:40px}
}
