@charset "utf-8";
/* ******************** 게시판 · 폼 프로그램 공통 ******************** */

/* 게시판 상단 검색 */
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.board-top .total { font-size: var(--fs15); color: #667; }
.board-top .total b { color: var(--c_base1); font-weight: 800; }
.board-top.search-right { justify-content: flex-end; margin-bottom: 14px; }
.board-search { display: flex; gap: 8px; }
.board-search select { flex: 0 0 150px; width: 150px; height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--border1); border-radius: 8px; font-size: var(--fs14); color: #333; background: #fff url(/images/common/icon_select_arrow.svg) no-repeat calc(100% - 12px) 50% / 12px 12px; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.board-search select::-ms-expand { display: none; }
.board-search input { width: 320px; height: 44px; padding: 0 14px; border: 1px solid var(--border1); border-radius: 8px; font-size: var(--fs14); }
.board-search button { width: 56px; height: 44px; padding: 0; border-radius: 8px; background: var(--c_base1) url(/images/common/icon_search_white.svg) no-repeat 50% 50% / 20px 20px; transition: var(--ani); text-indent: -9999px;}
.board-search button:hover { background-color: var(--c_base3); }

/* 목록 상단 레코드 정보 (전체 건수 / 현재 페이지) */
.list-info { padding-bottom: 12px; font-size: var(--fs15); color: #556; }
.list-info b { color: var(--c_base1); font-weight: 800; }

/* 게시판 리스트 */
.board-list { width: 100%; border-top: 2px solid var(--c_base1); border-collapse: collapse; }
.board-list th, .board-list td { padding: 16px 10px; border-bottom: 1px solid var(--border1); font-size: var(--fs15); text-align: center; }
.board-list th { background: #f7f9fc; font-weight: 800; color: #222; }
.board-list td { color: #667; }
.board-list td.subject { text-align: left; }
.board-list td.subject a { color: #1c2b3f; font-weight: 500; }
.board-list td.subject a:hover { color: var(--c_base1); text-decoration: underline !important; }
.board-list tbody tr:hover { background: #fafcff; }
.board-list .notice-flag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 100px; background: var(--c_base1); color: #fff; font-size: var(--fs12); font-weight: 800; }

/* 갤러리형 */
.gallery-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gallery-list .item { border: 1px solid var(--border1); border-radius: 16px; overflow: hidden; background: #fff; transition: var(--ani); }
.gallery-list .item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17,38,73,.12); }
.gallery-list .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg1); }
.gallery-list .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.gallery-list .item:hover .thumb img { transform: scale(1.06); }
.gallery-list .txt { padding: 18px 20px 22px; }
.gallery-list .txt h5 { font-size: var(--fs17); font-weight: 800; color: #1c2b3f; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-list .txt .date { margin-top: 10px; font-size: var(--fs14); color: #8892a4; }

/* 게시판 뷰 */
.board-view { border-top: 2px solid var(--c_base1); }
.board-view .view-head { padding: 26px 20px; border-bottom: 1px solid var(--border1); }
.board-view .view-head h4 { font-size: var(--fs24); font-weight: 800; color: #111; line-height: 1.45; }
.board-view .view-head .info { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: var(--fs14); color: #8892a4; }
.board-view .view-body { padding: 40px 20px; border-bottom: 1px solid var(--border1); font-size: var(--fs16); line-height: 1.9; color: #555; }
.board-view .view-file { padding: 16px 20px; border-bottom: 1px solid var(--border1); font-size: var(--fs14); background: #fafbfd; }

/* 페이징 */
.paging { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.paging a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--border1); border-radius: 8px; font-size: var(--fs14); color: #667; background: #fff; transition: var(--ani); }
.paging a:hover { border-color: var(--c_base1); color: var(--c_base1); }
.paging a.on { background: var(--c_base1); border-color: var(--c_base1); color: #fff; font-weight: 800; }

/* 하단 버튼 */
.board-btns { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }

/* 반응형 */
@media (max-width: 1249px) {
	.gallery-list { grid-template-columns: repeat(2, 1fr); }
	.board-search input { width: 220px; }
}
@media (max-width: 767px) {
	.board-top.search-right { justify-content: stretch; }
	/* 셀렉트는 윗줄 100%, 검색 인풋 + 버튼은 아랫줄 */
	.board-search { width: 100%; flex-wrap: wrap; }
	.board-search select { flex: 0 0 100%; width: 100%; }
	.board-search input { flex: 1 1 0%; width: auto; min-width: 0; }
	.board-search button { flex: 0 0 56px; width: 56px; }
	.gallery-list { grid-template-columns: 1fr; }
	.board-list .hidden-xs { display: none !important; }
}
