/* ================= 공통 레이아웃 ================= */
.board-list {
    margin-top: 10px;
}

/* 상단: 건수 + 검색 */
.board-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.board-list .tbl-caption {
    font-size: 14px;
    color: #777;
}

.board-list .tbl-caption strong {
    font-weight: 600;
    color: #222;
}

/* 검색 영역 */
.tbl-search {
    flex-shrink: 0;
}

.tbl-search .search-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tbl-search select {
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #fff;
}

.tbl-search .search-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
}

.tbl-search .search-input-wrap input[type="text"] {
    border: none;
    padding: 0 8px;
    height: 32px;
    font-size: 13px;
    min-width: 160px;
}

.tbl-search .search-input-wrap input[type="text"]::placeholder {
    color: #bbb;
}

.tbl-search .search-input-wrap button {
    border: none;
    padding: 0 14px;
    height: 32px;
    font-size: 13px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* 테이블 (PC) */
.ko-board-list.notice {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #111;
    font-size: 14px;
}

.ko-board-list.notice th,
.ko-board-list.notice td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.ko-board-list.notice th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

.ko-board-list.notice td.left {
    text-align: left;
}

.ko-board-list.notice tr:hover td {
    background: #fffdf4;
}

/* 중요공지 줄 */
.ko-board-list.notice .vital-area {
    background: #fff8e1;
}

.ko-board-list.notice .vital-area:hover td {
    background: #fff2c8;
}

.ko-board-list.notice .vital {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: #ff9800;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* NEW 배지 */
.ko-board-list.notice .badge-new {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    color: #ff5722;
    background: #fff0e7;
    font-weight: 600;
}

/* 더보기 버튼 */
.board-more-wrap {
    margin: 20px 0 10px;
    text-align: center;
}

.board-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.board-more-btn span {
    margin-left: 4px;
    font-size: 13px;
    color: #555;
}

@media screen and (max-width: 768px) {
    /* 폰트/패딩만 살짝 줄이기 정도만 */
    .ko-board-list.notice th,
    .ko-board-list.notice td {
        padding: 8px 6px;
        font-size: 13px;
    }

    .board-list-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tbl-search {
        width: 100%;
    }

    .tbl-search .search-wrap {
        width: 100%;
    }

    .tbl-search .search-input-wrap {
        flex: 1;
    }

    .tbl-search .search-input-wrap input[type="text"] {
        flex: 1;
        min-width: 0;
    }
}


.board-more-wrap {
    margin: 20px 0 10px;
    text-align: center;
}

.board-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.board-more-btn span {
    margin-left: 4px;
    font-size: 13px;
    color: #555;
}


/* 공지사항 테이블 caption 숨기기 (세로 글씨 방지) */
.ko-board-list.notice caption {
    display: none;
}

/* PC용 숫자 페이징 래퍼 */
.board-paging-pc {
    margin: 20px 0 10px;
}

/* 모바일용 더보기 래퍼 – 기본은 숨김 (PC) */
.board-more-wrap {
    margin: 20px 0 10px;
    text-align: center;
    display: none;    /* PC에서는 안 보이게 */
}

.board-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.board-more-btn span {
    margin-left: 4px;
    font-size: 13px;
    color: #555;
}

/* 공지사항 테이블 caption 숨기기 (세로 글씨 방지) */
.ko-board-list.notice caption {
    display: none;
}

/* ================= 반응형 ================= */
@media screen and (max-width: 768px) {
    /* 리스트는 기존 사이트 스타일 유지, 패딩/폰트만 축소 */
    .ko-board-list.notice th,
    .ko-board-list.notice td {
        padding: 8px 6px;
        font-size: 13px;
    }

    .board-list-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tbl-search {
        width: 100%;
    }

    .tbl-search .search-wrap {
        width: 100%;
    }

    .tbl-search .search-input-wrap {
        flex: 1;
    }

    .tbl-search .search-input-wrap input[type="text"] {
        flex: 1;
        min-width: 0;
    }

    /* 모바일에서는 숫자 페이징 숨기고, 더보기만 표시 */
    .board-paging-pc {
        display: none;
    }

    .board-more-wrap {
        display: block;
    }
}
