@charset "utf-8";
/* ==================================================================
 * news 스킨 — 목록 카드 (지역과 인재 notice.php 디자인 이식)
 *  - 게시판 레이아웃(main)에는 template.css 가 없으므로 필요한 디자인 토큰을
 *    이 파일 안에서 자체 정의한다. (.skin-news 스코프)
 * ================================================================== */
.board-list.skin-news {
    --c-primary:      #0E4C63;
    --c-primary-dark: #08303F;
    --c-accent:       #1fc9ff;
    --c-ink:          #171E24;
    --c-sub:          #6C7885;
    --radius:         16px;
    --shadow-sm:      0 2px 10px rgba(14, 76, 99, .06);
    --shadow-md:      0 12px 36px rgba(14, 76, 99, .10);
    --ease:           cubic-bezier(.22, .61, .36, 1);
    /* sub_board.css 의 .board-list(기본 스킨 <ul>용) margin:0 / border-top 을 상쇄하고
       컨테이너를 가운데 정렬(헤더 container-xxl 폭과 동일) */
    width: 100%;
    max-width: var(--container, 1480px);
    margin-inline: auto;
    padding: 10px var(--gutter, 24px) 0;
    border-top: 0;
    list-style: none;
}

/* 전체 건수 */
.skin-news .notice__count {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--c-sub);
}
.skin-news .notice__count strong { color: var(--c-primary); font-weight: 700; }

.skin-news .notice__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skin-news .notice__item {
    position: relative;
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--c-line);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.skin-news .notice__item > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.skin-news .notice__item:hover { transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px var(--c-accent), var(--shadow-md);}

.skin-news .notice__thumb {
    position: relative;
    aspect-ratio: 4 / 2.6;
    overflow: hidden;
    background: #eef3f6;
}
.skin-news .notice__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .7s var(--ease);
}
.skin-news .notice__item:hover .notice__thumb img { transform: scale(1.06); }
.skin-news .notice__noimg {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, #dfeaf0, #eef3f6);
}

/* 썸네일 위 분류 배지 */
.skin-news .notice__cate {
    position: absolute; left: 16px; top: 16px; z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    color: #fff;
    background: rgba(8, 48, 63, .72);
    backdrop-filter: blur(4px);
}

.skin-news .notice__body { position: relative; padding: 28px 28px 32px; }
.skin-news .notice__date {
    display: block;
    font-size: 13px; font-weight: 700; letter-spacing: .06em;
    color: var(--c-accent);
    margin-bottom: 10px;
}
.skin-news .notice__title {
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 19px; font-weight: 700;
    line-height: 1.45; letter-spacing: -.03em;
    color: var(--c-ink);
    margin-bottom: 10px;
    transition: color .25s var(--ease);
}
.skin-news .notice__item:hover .notice__title { color: var(--c-primary); }
.skin-news .notice__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15.5px; line-height: 1.6;
    color: var(--c-sub);
}

.skin-news .notice__empty {
    padding: 70px 0; text-align: center; color: var(--c-sub);
}

/* ==================================================================
 * 공통 위젯 (검색 / 페이지네이션 / 글쓰기 버튼)
 *  - list_common.php 가 출력하지만 news 스킨 CSS 만 로드되므로 여기서 스타일 정의
 *  - 지역과 인재 팔레트로 통일
 * ================================================================== */
.board-list.skin-news .board-search {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-bottom: 22px;
}
.board-list.skin-news .board-search input[type=text] {
    width: 260px; max-width: 60vw;
    padding: 10px 14px;
    border: 1px solid var(--c-line, #E2E8ED);
    border-radius: 999px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s var(--ease);
}
.board-list.skin-news .board-search input[type=text]:focus { border-color: var(--c-accent); }
.board-list.skin-news .board-search button {
    padding: 10px 22px;
    border: 0; border-radius: 999px;
    background: var(--c-primary); color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background .2s var(--ease);
}
.board-list.skin-news .board-search button:hover { background: var(--c-primary-dark); }

.board-list.skin-news .board-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-top: 44px;
}

.board-list.skin-news .pagination {
    display: flex; align-items: center; gap: 4px;
    margin-inline: auto;
}
.board-list.skin-news .pagination a,
.board-list.skin-news .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--c-line, #E2E8ED);
    border-radius: 10px;
    color: var(--c-body, #3D4954);
    font-size: 15px; text-decoration: none;
    transition: all .2s var(--ease);
}
.board-list.skin-news .pagination a:hover { border-color: var(--c-accent); color: var(--c-primary); }
.board-list.skin-news .pagination .current {
    background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700;
}

/* 글쓰기 버튼 */
.board-list.skin-news .btn-write {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 0 28px;
    border-radius: 999px;
    background: var(--c-primary); color: #fff;
    font-size: 15px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.board-list.skin-news .btn-write:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

/* 글쓰기만 있고 페이지네이션이 없을 때 우측 정렬 */
.board-list.skin-news .board-actions:not(:has(.pagination)) { justify-content: flex-end; }

/* Responsive */
@media (max-width: 1024px) {
    .skin-news .notice__list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
    .skin-news .notice__list { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .skin-news .notice__body { padding: 24px 14px 26px; }
    .board-list.skin-news .board-search { justify-content: stretch; }
    .board-list.skin-news .board-search input[type=text] { flex: 1; max-width: none; }
}
