/* 게시판 관련 CSS 작성 */

/* ===== 텍스트 게시판 { ===== */
/* 공통 { */
.board-head { display: flex; align-items: flex-end; 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 { --select-pr: 36px; 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 { 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; }
.board-typeA .board-table .author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* } 보드-타입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; align-items: stretch; gap: 12px; }
.board-typeB .post-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.board-typeB .post-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.board-typeB .post-tit { min-width: 0; max-width: 100%; overflow: hidden; color: #1E1E1E; line-height: 1.4; }
.board-typeB .post-desc { min-width: 0; max-width: 100%; overflow: hidden; 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; }
.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: 8%; --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: 8%; --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 > a { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; min-width: 0; }
.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 { --pagi-size: 40px; --pagi-gap: 12px; --pagi-btn-gap: 5px; display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: var(--pagi-btn-gap); margin-top: 70px; }
.board-pagination > li { display: flex; flex: 0 0 auto; }
.board-pagination > .prev { margin-right: calc(var(--pagi-gap) - var(--pagi-btn-gap)); }
.board-pagination > .next { margin-left: calc(var(--pagi-gap) - var(--pagi-btn-gap)); }
.board-pagination > .disabled { pointer-events: none; }
.pagi-btn { aspect-ratio: 1/1; width: var(--pagi-size); min-width: var(--pagi-size); height: var(--pagi-size); padding: 0; flex-shrink: 0; }
.pagi-btn.arrow { border-color: #DDDDDD; background: var(--color-white); color: #777777; }
.board-pagination > .active .pagi-btn, .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('/resource/www/img/file-icon-doc.svg'); }
.board-view .file-icon.pdf { background-image: url('/resource/www/img/file-icon-pdf.svg'); }
.board-view .file-icon.file { background-image: url('/resource/www/img/file-icon-file.svg'); }
.board-view .file-icon.xls { background-image: url('/resource/www/img/file-icon-xls.svg'); }
.board-view .file-icon.img { background-image: url('/resource/www/img/file-icon-img.svg'); }
.board-view .file-icon.ppt { background-image: url('/resource/www/img/file-icon-ppt.svg'); }
.board-view .file-icon.hwp { background-image: url('/resource/www/img/file-icon-hwp.svg'); }
.board-view .file-icon.zip { background-image: url('/resource/www/img/file-icon-zip.svg'); }
.board-view .file-icon.video { background-image: url('/resource/www/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:1600px) {
  .gallery-typeA { --gallery-typeA-gap-vertical: 5%; }
  .gallery-typeB { --gallery-typeB-gap-vertical: 5%; }
  .board-table th, .board-table td { padding: 10px 8px; }
  .board-typeA .board-table thead, .board-typeA .board-table tbody tr { height: 54px; }
}
@media screen and (max-width:1440px) {
  .gallery-typeA { --gallery-typeA-gap-vertical: 30px; }
  .gallery-typeA > .item > article { gap: 10px; }
  .gallery-typeB { --gallery-typeB-gap-vertical: 30px; }
  .gallery-typeB > .item > article > a { gap: 10px; }
  .board-pagination { margin-top: 56px; }
  .board-select { padding: 8px 32px 8px 12px; }
  .board-select-wrap { --select-pr: 32px; }
  .board-table th, .board-table td { padding: 10px; }
  .board-typeA .board-table thead, .board-typeA .board-table tbody tr { height: 56px; }
  .board-typeA .board-table col:nth-child(1) { width: 72px !important; }
  .board-typeA .board-table col:nth-child(3) { width: 88px !important; }
  .board-typeA .board-table col:nth-child(4) { width: 150px !important; }
  .board-typeA .board-table col:nth-child(5) { width: 80px !important; }
  .board-typeA .board-table col:nth-child(6) { width: 120px !important; }

  .board-typeB .board-body > .item > article { gap: 28px; padding: 28px 0; }
  .board-typeB .post-main { gap: 20px; }

  .board-view .board-view-header { padding: 36px 18px 14px; }
  .board-view .board-view-content { min-height: 240px; padding: 22px 26px; }
  .board-view .board-view-attachments { padding: 18px 32px; gap: 48px; }
  .board-view .board-view-post-nav { margin-top: 52px; }
  .board-view .board-view-post-nav .btn-view-list { margin: 30px auto; }
}
@media screen and (max-width:1280px) {
  .gallery-typeA { --gallery-typeA-gap-vertical: 16px; --gallery-typeA-gap-horizontal: 44px; }
  .gallery-typeB { --gallery-typeB-gap-vertical: 16px; --gallery-typeB-gap-horizontal: 44px; }
  .board-pagination { --pagi-size: 36px; --pagi-gap: 8px; --pagi-btn-gap: 4px; margin-top: 48px; }
  .board-select { padding: 6px 32px 6px 12px; }
  .board-select-wrap { --select-pr: 32px; }
  .board-table th, .board-table td { padding: 10px 8px; }
  .board-typeA .board-table thead, .board-typeA .board-table tbody tr { height: 54px; }
  .board-typeA .board-table col:nth-child(1) { width: 64px !important; }
  .board-typeA .board-table col:nth-child(3) { width: 84px !important; }
  .board-typeA .board-table col:nth-child(4) { width: 140px !important; }
  .board-typeA .board-table col:nth-child(5) { width: 72px !important; }
  .board-typeA .board-table col:nth-child(6) { width: 112px !important; }

  .board-typeB .board-body > .item > article { gap: 24px; padding: 24px 0; }
  .board-typeB .post-body { gap: 10px; }
  .board-typeB .post-main { gap: 18px; }

  .board-view .board-view-header { padding: 32px 16px 12px; }
  .board-view .board-view-content { min-height: 200px; padding: 20px 22px; }
  .board-view .board-view-attachments { padding: 16px 24px; gap: 36px; }
  .board-view .file-icon { margin-right: 12px; }
  .board-view .board-view-post-nav { margin-top: 44px; }
  .board-view .board-view-post-nav .btn-view-list { margin: 28px auto; }
}
@media screen and (max-width:1024px) {
  .gallery-typeA { --gallery-typeA-gap-vertical: 16px; --gallery-typeA-gap-horizontal: 40px; }
  .gallery-typeA > .item > article { gap: 8px; }
  .gallery-typeB { --gallery-typeB-gap-vertical: 16px; --gallery-typeB-gap-horizontal: 40px; }
  .gallery-typeB > .item > article > a { gap: 8px; }
  .board-pagination { margin-top: 44px; }
  .board-select { height: 36px; padding: 6px 30px 6px 10px; }
  .board-select-wrap { --select-pr: 30px; }
  .board-select-wrap > i { font-size: 18px; }

  .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 0; height: auto; padding: 20px 10px; 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; }
  .board-typeA .board-table .title { flex: 0 0 100%; width: 100%; order: 1; overflow: hidden; }
  .board-typeA .board-table .title a { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; word-break: normal; font-size: var(--text-22); font-weight: 500; line-height: 1.45; 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-base); line-height: 1.4; white-space: nowrap; }
  .board-typeA .board-table .author { order: 2; overflow: visible; text-overflow: unset; }
  .board-typeA .board-table .date, .board-typeA .board-table .file { margin-left: 10px; padding-left: 10px; border-left: 1px solid #D0D0D0; }
  .board-typeA .board-table .date { order: 3; }
  .board-typeA .board-table .file { order: 4; }
  .board-typeA .board-table .file:empty, .board-typeA .board-table .file:not(:has(i)) { display: none; }
  .board-typeA .board-table .file i { font-size: 16px; color: #999999; }

  .board-typeB .board-body > .item > article { gap: 20px; padding: 22px 0; }
  .board-typeB .post-main { gap: 16px; }
  .board-typeB .post-actions .i-btn { padding-left: 16px; padding-right: 16px; }

  .board-view .board-view-header { padding: 28px 14px 12px; }
  .board-view .board-view-header .board-view-meta { margin-top: 8px; }
  .board-view .board-view-content { min-height: 180px; padding: 18px 16px; }
  .board-view .board-view-attachments { padding: 14px 16px; gap: 28px; }
  .board-view .file-icon { width: 24px; height: 24px; margin-right: 10px; }
  .board-view .board-view-post-nav { margin-top: 40px; }
  .board-view .board-view-post-nav .btn-view-list { margin: 24px auto; }
}
@media screen and (max-width:768px) {
  .gallery-typeA { --gallery-typeA-cols: 3; --gallery-typeA-gap-vertical: 12px; --gallery-typeA-gap-horizontal: 36px; }
  .gallery-typeA > .item > article { gap: 8px; }
  .gallery-typeB { --gallery-typeB-cols: 2; --gallery-typeB-gap-vertical: 12px; --gallery-typeB-gap-horizontal: 36px; }
  .gallery-typeB > .item > article > a { gap: 8px; }
  .board-pagination { --pagi-size: 34px; --pagi-gap: 8px; --pagi-btn-gap: 4px; margin-top: 40px; }
  .board-select { height: 34px; padding: 4px 24px 4px 8px; }
  .board-select-wrap { --select-pr: 24px; min-width: 70px; }
  .board-select-wrap > i { font-size: 16px; }

  .board-typeA .board-table tbody tr { gap: 8px 0; padding: 16px 5px; }
  .board-typeA .board-table .file i { font-size: 16px; } 
  .board-typeA .board-table .title a { font-size: var(--text-base); }
  .board-typeA .board-table .author, .board-typeA .board-table .date, .board-typeA .board-table .file { font-size: var(--text-16); }
  .board-head { gap: 5px; padding-bottom: 8px; }
  .board-select-area { gap: 5px; }

  .board-typeB .post-num { display: none; }
  .board-typeB .board-body > .item > article { gap: 16px; padding: 20px 0; }
  .board-typeB .post-body { gap: 18px; }
  .board-typeB .post-main { flex-direction: column; gap: 8px; }
  .board-typeB .post-txt { width: 100%; gap: 4px; }
  .board-typeB .post-time { padding-top: 0; }
  .board-typeB .post-actions { gap: 8px; }
  .board-typeB .post-actions .i-btn { padding-left: 14px; padding-right: 14px; }

  .board-view .board-view-header { padding: 24px 10px 10px; }
  .board-view .board-view-header .board-view-meta > .item.author { margin-right: 10px; }
  .board-view .board-view-header .board-view-meta > .item.author::after { right: -10px; }
  .board-view .board-view-header .board-view-meta > .item.view { margin-left: 10px; }
  .board-view .board-view-header .board-view-meta > .item.date { margin-left: 12px; }
  .board-view .board-view-content { min-height: 160px; padding: 16px 12px; }
  .board-view .board-view-attachments { padding: 12px 10px; gap: 20px; }
  .board-view .board-view-attachments-list > li:not(:last-child) { margin-bottom: 8px; }
  .board-view .file-icon { margin-right: 8px; }
  .board-view .board-view-post-nav { margin-top: 32px; }
  .board-view .board-view-post-nav .btn-view-list { margin: 20px auto; }
}
@media screen and (max-width:480px) {
  .gallery-typeA { --gallery-typeA-cols: 2; --gallery-typeA-gap-vertical: 10px; --gallery-typeA-gap-horizontal: 32px; }
  .gallery-typeB { --gallery-typeB-cols: 1; --gallery-typeB-gap-vertical: 10px; --gallery-typeB-gap-horizontal: 32px; }
  .board-pagination { width: 100%; --pagi-gap: 4px; --pagi-btn-gap: 2px; margin-top: 32px; }
  .board-pagination > li { flex: 1 1 0; max-width: var(--pagi-size); min-width: 0; }
  .board-pagination .pagi-btn { width: 100%; max-width: var(--pagi-size); min-width: 0; height: auto; }

  .board-typeA .board-table tbody tr { padding: 14px 0; }
  .board-typeA .board-table .title a { display: -webkit-box; white-space: normal; word-break: break-all; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .board-typeB .board-body > .item > article { padding: 18px 0; }
  .board-typeB .post-body { gap: 16px; }
  .board-typeB .post-main { gap: 6px; }
  .board-typeB .post-txt { gap: 4px; }
  .board-typeB .post-actions .i-btn { padding-left: 12px; padding-right: 12px; }

  .board-view .board-view-header { padding: 20px 8px 8px; }
  .board-view .board-view-header .board-view-meta { margin-top: 16px; flex-direction: column-reverse; align-items: flex-start; gap: 0px; }
  .board-view .board-view-header .board-view-meta > .item { justify-content: flex-start; }
  .board-view .board-view-header .board-view-meta > .item.author { margin-right: 0; }
  .board-view .board-view-header .board-view-meta > .item.author::after { display: none; }
  .board-view .board-view-header .board-view-meta > .item.view { margin-left: 0; }
  .board-view .board-view-header .board-view-meta > .item.date { margin-left: 0; margin-bottom: 8px; }
  .board-view .board-view-content { min-height: 140px; padding: 14px 8px; }
  .board-view .board-view-attachments { flex-direction: column; padding: 12px 8px; gap: 16px; }
  .board-view .board-view-attachments-list > li:not(:last-child) { margin-bottom: 6px; }
  .board-view .file-icon { width: 22px; height: 22px; }
  .board-view .board-view-post-nav { margin-top: 28px; }
  .board-view .board-view-post-nav .btn-view-list { margin: 16px auto; }
}