/* 게시판 관련 CSS 작성 */

/* ===== 텍스트 게시판 { ===== */
/* 공통 { */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--color-black); }
.board-total .count { color: var(--color-point-salmon); font-weight: 600; }
.board-select-area { display: flex; align-items: stretch; justify-content: flex-end; gap:10px;  }
.board-select-wrap { min-width: 100px; }
.board-select { height: 40px; padding: 8px 36px 8px 14px; border: 1px solid #CCCCCC; border-radius: 5px; background: var(--color-white); font-size: var(--text-16); }
.board-select-wrap > i { right: 10px; font-size: 20px; }
/* } 공통 */

/* 보드-타입A (공지사항) - 목록 { */
.board-typeA .board-table { width: 100%; table-layout: fixed; }
.board-typeA .board-table thead { height: 60px; background: #F8F8FA; font-weight: 600; }
.board-typeA .board-table tbody tr { height: 60px; }
.board-table th, .board-table td { padding: 12px; border-bottom: 1px solid #D9D9D9; border-right: 1px solid #D9D9D9; }
.board-table th:last-child, .board-table td:last-child { border-right: 0; }
/* 제목 셀: 테이블이 콘텐츠 폭으로 늘어나지 않도록 제한 후 말줄임 */
.board-table .title { overflow: hidden; }
.board-table .title a { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; color: inherit; }
.board-table .title a:hover { text-decoration: underline; font-weight: 500; }
.board-table .title .board-badge { font-weight: 600; }
.board-table .title .board-badge.purple { color: var(--color-main-light); }
.board-table .title .board-badge.blue { color: #284CFF; }
/* } 보드-타입A (공지사항) - 목록 */

/* 보드-타입B (관련문서) - 목록 { */
.board-typeB .board-body > .item { border-bottom: 1px solid #E5E5E5; }
.board-typeB .board-body > .item > article { display: flex; align-items: flex-start; gap: 32px; padding: 32px 0; }
.board-typeB .post-num { flex: 0 0 auto; min-width: 3ch; font-size: var(--text-16); line-height: 1.5; padding-top: 3px; }
.board-typeB .post-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.board-typeB .post-tit { color: #1E1E1E; line-height: 1.4; }
.board-typeB .post-desc { color: #666666; font-size: var(--text-16); line-height: 1.6; }
.board-typeB .post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.board-typeB .post-actions .i-btn { padding-left: 18px; padding-right: 18px; color: #727272; }
.board-typeB .post-actions .i-btn > i { color: var(--color-black); }
.board-typeB .post-actions .i-btn:hover { color: var(--color-black); }
.board-typeB .post-time { flex: 0 0 auto; color: #333333; font-size: var(--text-16); line-height: 1.5; padding-top: 3px; white-space: nowrap; }
/* } 보드-타입B (관련문서) - 목록 */
/* ===== } 텍스트 게시판 ===== */

/* ===== 갤러리 게시판 { ===== */
/* 공통 { */
.thum-wrap { width: 100%; overflow: hidden; }
.thum-wrap > .thum-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.post:hover .thum-wrap > .thum-img { transform: scale(1.1); }
.post:hover .post-tit { text-decoration: underline; }
/* } 공통 */

/* 갤러리-타입A (논문) - 목록 { */
.gallery-typeA { --gallery-typeA-gap-horizontal: 50px; --gallery-typeA-gap-vertical: 134px; --gallery-typeA-cols: 4; display: grid; grid-template-columns: repeat(var(--gallery-typeA-cols), 1fr); align-items: stretch; justify-content: space-between; gap: var(--gallery-typeA-gap-horizontal) var(--gallery-typeA-gap-vertical); }
.gallery-typeA > .item { min-width: 0; }
.gallery-typeA > .item > article { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px }
.gallery-typeA > .item > article .thum-wrap { aspect-ratio: 300/423; }
/* } 갤러리-타입A (논문) - 목록 */

/* 갤러리-타입B (뉴스) - 목록 { */
.gallery-typeB { --gallery-typeB-gap-horizontal: 50px; --gallery-typeB-gap-vertical: 80px; --gallery-typeB-cols: 3; display: grid; grid-template-columns: repeat(var(--gallery-typeB-cols), 1fr); align-items: stretch; justify-content: space-between; gap: var(--gallery-typeB-gap-horizontal) var(--gallery-typeB-gap-vertical); }
.gallery-typeB > .item { min-width: 0; }
/* .gallery-typeB > .item > article { min-width: 0; }
.gallery-typeB > .item > article > a { min-width: 0; }
.gallery-typeB > .item > article > a > div { min-width: 0; } */
.gallery-typeB > .item > article > a { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; }
.gallery-typeB > .item > article .thum-wrap { aspect-ratio: 473/275; }
.gallery-typeB > .item > article .post-txt { width: 100%; display: flex; flex-direction: column; }
.gallery-typeB > .item > article .post-time { color: #777777; }
/* } 갤러리-타입B (뉴스) - 목록 */
/* ===== } 갤러리 게시판 ===== */

/* 게시판 - 페이지네이션(공통) { */
.board-pagination { display: flex; align-items: stretch; justify-content: center; gap: 12px; margin-top: 70px; }
.board-pagination .btn-wrap { display: flex; align-items: stretch; gap: 5px; }
.pagi-btn { aspect-ratio: 1/1; width: 40px; }
.pagi-btn.arrow { border-color: #DDDDDD; background: var(--color-white); color: #777777; }
.pagi-btn.active, .pagi-btn:hover { border-color: transparent; background: #3A3A3A; color: var(--color-white); }
/* } 게시판 - 페이지네이션(공통) */

/* 게시판 - 상세(공통) { */
.board-view { border-top: 2px solid var(--color-black); }
.board-view .board-view-header { padding: 40px 20px 15px; border-bottom: 1px solid #CCCCCC; }
.board-view .board-view-header .board-view-title { display: flex; align-items: center; justify-self: center; }
.board-view .board-view-header .board-view-meta { margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; }
.board-view .board-view-header .board-view-meta > .item { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.board-view .board-view-header .board-view-meta > .item dd { color: #7A7A7A; }
.board-view .board-view-header .board-view-meta > .item.author { margin-right: 18px; position: relative; }
.board-view .board-view-header .board-view-meta > .item.author::after { content: ''; position: absolute; width: 1px; height: 70%; background: #CCCCCC; top: 15%; right: -18px; }
.board-view .board-view-header .board-view-meta > .item.view { margin-left: 18px; }
.board-view .board-view-header .board-view-meta > .item.date { margin-left: 24px; }
.board-view .board-view-content { min-height: 280px; padding: 25px 30px; border-bottom: 1px solid #CCCCCC; }
.board-view .board-view-attachments { border-bottom: 1px solid #CCCCCC; padding: 20px 40px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 60px; }
.board-view .board-view-attachments-list > li:not(:last-child) { margin-bottom: 10px; }
.board-view .board-view-attachments-list .file-download { display: flex; align-items: flex-start; justify-content: flex-start; }
.board-view .board-view-attachments-list .file-name { color: #267EE3; word-break: break-all; text-decoration: underline; font-size: var(--text-16); font-weight: 500; }
.board-view .file-icon { display: inline-block; width: 28px; height: 28px; margin-right: 15px; flex-shrink: 0; font-size: 0; background: no-repeat center / contain; vertical-align: middle; }
.board-view .file-icon.doc { background-image: url('../img/file-icon-doc.svg'); }
.board-view .file-icon.pdf { background-image: url('../img/file-icon-pdf.svg'); }
.board-view .file-icon.file { background-image: url('../img/file-icon-file.svg'); }
.board-view .file-icon.xls { background-image: url('../img/file-icon-xls.svg'); }
.board-view .file-icon.img { background-image: url('../img/file-icon-img.svg'); }
.board-view .file-icon.ppt { background-image: url('../img/file-icon-ppt.svg'); }
.board-view .file-icon.hwp { background-image: url('../img/file-icon-hwp.svg'); }
.board-view .file-icon.zip { background-image: url('../img/file-icon-zip.svg'); }
.board-view .file-icon.video { background-image: url('../img/file-icon-video.svg'); }
.board-view .board-view-post-nav { margin-top: 60px; }
.board-view .board-view-post-nav .arrow-wrap { display: flex; align-items: center; justify-content: space-between; }
.board-view .board-view-post-nav .arrow-wrap .btn-view-arrow { display: flex; align-items: center; gap: 8px; color: #999999; transition: .3s; }
.board-view .board-view-post-nav .arrow-wrap .btn-view-arrow:hover { font-weight: 700; color: var(--color-main); }
.board-view .board-view-post-nav .btn-view-list { margin: 34px auto; }
/* } 게시판 - 상세(공통) */

/* ====================  반응형 ==================== */
@media screen and (max-width:1440px) {}
@media screen and (max-width:1024px) {}
@media screen and (max-width:768px) {
  /* board-typeA: 테이블 → 카드형 리스트 */
  .board-typeA .board-table { table-layout: auto; }
  .board-typeA .board-table colgroup { display: none; }
  .board-typeA .board-table thead { display: none; }
  .board-typeA .board-table, .board-typeA .board-table tbody { display: block; width: 100%; }
  .board-typeA .board-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; height: auto; padding: 16px 0; border-bottom: 1px solid #D9D9D9; }
  .board-typeA .board-table th, .board-typeA .board-table td { display: block; width: auto; padding: 0; border: 0; background: transparent; }
  /* 번호·조회수 숨김 */
  .board-typeA .board-table .number, .board-typeA .board-table .views { display: none; }
  /* 제목: 전체 폭 + badge는 인라인 텍스트 흐름 + 2줄 말줄임 */
  .board-typeA .board-table .title { flex: 0 0 100%; width: 100%; order: 1; overflow: hidden; }
  .board-typeA .board-table .title a { display: -webkit-box; max-width: 100%; overflow: hidden; white-space: normal; word-break: break-all; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; }
  /* 메타: 작성자 · 날짜 · 첨부 */
  .board-typeA .board-table .author, .board-typeA .board-table .date, .board-typeA .board-table .file { display: inline-flex; align-items: center; gap: 6px; color: #777777; font-size: var(--text-16); line-height: 1.4; white-space: nowrap; }
  .board-typeA .board-table .author { order: 2; }
  .board-typeA .board-table .date { order: 3; }
  .board-typeA .board-table .file { order: 4; }
  .board-typeA .board-table .date::before, .board-typeA .board-table .file:not(:empty)::before { content: ''; display: inline-block; width: 1px; height: 12px; margin-right: 6px; background: #D0D0D0; }
  .board-typeA .board-table .file:empty, .board-typeA .board-table .file:not(:has(i)) { display: none; }
  .board-typeA .board-table .file i { font-size: 18px; color: #999999; }
}
@media screen and (max-width:480px) {}