/* 게시판 (PC 시안: 목록 줄 65, 쪽번호 35칸, 사진형 4칸 310, 글쓰기 폭 1200, 첨부 줄 1200x50, 댓글 버튼 80x40) — 2026-11-07 */
.bd { padding-bottom: 20px; }
/* 시안: 검색줄(오른쪽) 아래에 "전체 N개"(왼쪽), 그 아래 표. 열 순서 번호·제목·첨부파일·작성자·작성일·조회수 */
.bd-top { display: flex; flex-direction: column-reverse; align-items: stretch; margin-bottom: 24px; }
.bd-top .bd-search { align-self: flex-end; }
.bd-total { margin: 53px 0 0 38px; font-size: 18px; }
.bd-search { display: flex; gap: 10px; align-items: center; }
.bd-search select, .bd-sc-btn { height: 44px; padding: 0 36px 0 16px; border: 1px solid var(--c-line); border-radius: 5px; background: #fff url(/assets/img/icon_filter_arrow_down.png) right 12px center / 13px no-repeat; font-size: 18px; appearance: none; min-width: 180px; }
.bd-sc-btn { cursor: pointer; text-align: left; background-image: url(/assets/img/icon_filter_search.png); background-size: 20px; min-width: 160px; }
.bd-kw { position: relative; width: 465px; }
.bd-kw input { width: 100%; height: 44px; padding: 0 50px 0 20px; border: 1px solid var(--c-line); border-radius: 5px; font-size: 18px; }
.bd-kw input::placeholder { color: var(--c-gray); }
.bd-kw button { position: absolute; right: 9px; top: 9px; width: 26px; height: 26px; border: 0; background: url(/assets/img/icon_filter_search.png) center / 26px no-repeat; cursor: pointer; }

/* 목록형 */
.bd-list { width: 100%; border-collapse: collapse; border-top: 2px solid var(--c-text); font-size: 18px; }
.bd-list th { height: 65px; font-weight: 600; border-bottom: 1px solid var(--c-line); }
.bd-list td { height: 65px; text-align: center; border-bottom: 1px solid var(--c-line); }
.bd-list td.t { text-align: left; padding: 0 20px; }
.bd-list td.t a { display: inline-block; max-width: calc(100% - 60px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.bd-list td.t a:hover { color: var(--c-point); }
.bd-list .c-no { width: 100px; } .bd-list .c-school { width: 200px; } .bd-list .c-name { width: 160px; }
.bd-list .c-date { width: 150px; } .bd-list .c-file { width: 110px; } .bd-list .c-hit { width: 100px; }
.bd-list td.c-school { font-size: 16px; color: var(--c-sub); }
.bd-list tr.is-notice { background: #fafafa; }
.tag-notice { display: inline-block; width: 45px; height: 22px; line-height: 22px; border-radius: 3px; background: var(--c-red); color: #fff; font-size: 16px; }
.cmt-n { color: var(--c-point); font-size: 16px; }
.ico-lock { display: inline-block; width: 14px; height: 16px; margin-right: 6px; vertical-align: -1px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 1 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1zm2 0h4V5a2 2 0 1 0-4 0v2z' fill='%23808080'/%3E%3C/svg%3E"); }
.ico-file { display: inline-block; width: 20px; height: 20px; background: url(/assets/img/icon_folder.png) center / 20px no-repeat; vertical-align: middle; }
.bd-empty { padding: 70px 0 !important; height: auto !important; text-align: center; color: var(--c-gray); }
.bd-empty img { width: 180px; }
.bd-empty p { margin: 14px 0 0; }

/* 사진형 */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 27px; margin: 0; padding: 30px 0 0; list-style: none; border-top: 2px solid var(--c-text); }
.gal a { display: block; }
.gal-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f3f3 url(/assets/img/img_education_empty.png) center / 60% no-repeat; border-radius: 4px; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal a:hover .gal-img img { transform: scale(1.04); }
.gal strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 16px; font-size: 20px; font-weight: 500; line-height: 1.45; }
.gal em { display: block; margin-top: 6px; font-style: normal; font-size: 15px; color: var(--c-gray); }

/* 쪽번호 (시안: 35칸 테두리, 지금 쪽은 채움) + 글쓰기 */
.bd-bottom { position: relative; margin-top: 40px; min-height: 44px; }
.bd .pager { margin: 0; gap: 15px; }
.bd .pager a { width: 35px; min-width: 35px; height: 35px; line-height: 33px; border: 1px solid var(--c-navy); border-radius: 3px; color: var(--c-navy); font-size: 18px; }
.bd .pager a.on { background: var(--c-navy); color: #fff; font-weight: 500; }
.bd .pager .pg-arrow { border-color: transparent; }
.bd-write { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 44px; border-radius: 5px; background: var(--c-navy); color: #fff; font-size: 18px; }

/* 학교 고르기 창 */
.sc-pop { width: 520px; max-width: calc(100% - 32px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.sc-pop::backdrop { background: rgba(0,0,0,.4); }
.sc-pop-in { position: relative; padding: 34px 30px 26px; }
.sc-pop-t { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.sc-pop-s input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 6px; font-size: 17px; }
.sc-pop-list { max-height: 360px; overflow-y: auto; margin: 14px 0 0; padding: 0; list-style: none; }
.sc-pop-list a { display: block; padding: 12px 10px; border-bottom: 1px solid var(--c-line2); font-size: 17px; }
.sc-pop-list a:hover, .sc-pop-list a.on { color: var(--c-point); font-weight: 600; }
.sc-pop-x { position: absolute; right: 22px; top: 26px; width: 29px; height: 29px; border: 0; background: url(/assets/img/btn_close.png) center / 21px no-repeat; cursor: pointer; }

/* 보기 */
.wrap.bd-view { width: 1200px; }   /* 시안: 글보기 폭 1200, 위 1px 남색 줄, 제목 줄 70 / 작성정보 줄 60 */
.bd-view .v-head { padding: 0; border-top: 1px solid var(--c-navy); border-bottom: 1px solid var(--c-line); }
.v-head h2 { display: flex; align-items: center; min-height: 70px; margin: 0; padding: 10px 30px; border-bottom: 1px solid var(--c-line); font-size: 20px; font-weight: 500; }
.v-head h2 .bar, .v-meta .bar { margin: 0 12px; color: #ccc; }
.v-meta { display: flex; align-items: center; min-height: 60px; margin: 0; padding: 8px 30px; font-size: 18px; font-weight: 300; color: var(--c-gray); }
.v-body { padding: 40px 30px 60px; border-bottom: 1px solid var(--c-line); font-size: 18px; line-height: 1.8; }
.v-photo { margin: 0 0 20px; text-align: center; }
.v-photo img { max-width: 100%; height: auto; }
.v-content { overflow-wrap: anywhere; }
.v-content img { max-width: 100%; height: auto; }
.v-content table { border-collapse: collapse; max-width: 100%; }
.v-content td, .v-content th { border: 1px solid var(--c-line); padding: 6px 10px; }
.v-content iframe { max-width: 100%; }
.v-files { display: flex; border-bottom: 1px solid var(--c-line); }
.v-files strong { flex: 0 0 176px; display: flex; align-items: center; justify-content: center; background: #f7f7f7; font-size: 20px; font-weight: 400; }
.v-files ul { margin: 0; padding: 22px 30px; list-style: none; font-size: 20px; }
.v-files li + li { margin-top: 10px; }
.v-files a:hover { color: var(--c-point); text-decoration: underline; }
.v-files em { font-style: normal; font-size: 15px; color: var(--c-gray); }

/* 확장자 아이콘 */
.fk { display: inline-block; width: 25px; height: 25px; margin-right: 10px; vertical-align: -6px; border-radius: 4px; background: #9aa3ad; position: relative; }
.fk::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; content: "FILE"; letter-spacing: -.5px; }
.fk-hwp { background: #2f8fd6; } .fk-hwp::after { content: "HWP"; }
.fk-doc { background: #2b579a; } .fk-doc::after { content: "DOC"; }
.fk-xls { background: #217346; } .fk-xls::after { content: "XLS"; }
.fk-ppt { background: #d24726; } .fk-ppt::after { content: "PPT"; }
.fk-pdf { background: #d93025; } .fk-pdf::after { content: "PDF"; }
.fk-zip { background: #7d5bbe; } .fk-zip::after { content: "ZIP"; }
.fk-img { background: #0e90b1; } .fk-img::after { content: "IMG"; }

/* 댓글 */
.v-cmt { margin-top: 80px; border-top: 1px solid var(--c-navy); }
.v-cmt h3 { margin: 0 0 20px; padding: 0 30px; line-height: 60px; border-bottom: 1px solid var(--c-line); font-size: 20px; font-weight: 600; }
.v-cmt > :not(h3) { margin-left: 30px; margin-right: 30px; }
.cmt-write, .cmt-edit { position: relative; border: 1px solid var(--c-line); border-radius: 8px; padding: 18px 18px 64px; }
.cmt-write textarea, .cmt-edit textarea { width: 100%; height: 70px; border: 0; resize: vertical; font-size: 18px; outline: none; }
.cmt-write:focus-within, .cmt-edit:focus-within { border-color: var(--c-point); box-shadow: 0 0 0 3px rgba(14,144,177,.35); }   /* 24번: 입력칸 초점 표시 (칸 테두리 대신 상자 전체) */
.cmt-write textarea::placeholder { color: var(--c-gray); font-size: 20px; }
.cmt-write button, .cmt-edit button { position: absolute; right: 14px; bottom: 14px; width: 80px; height: 40px; border: 1px solid #707070; border-radius: 5px; background: var(--c-dark); color: #fff; font-size: 18px; font-weight: 500; cursor: pointer; }
.cmt-login { padding: 20px; border: 1px solid var(--c-line); border-radius: 8px; color: var(--c-gray); }
.cmt-login a { color: var(--c-point); text-decoration: underline; }
.cmt-list { margin: 10px 0 0; padding: 0; list-style: none; }
.cmt-list li { position: relative; padding: 30px 0; border-bottom: 1px solid var(--c-line2); }
.cmt-who { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.cmt-who span { margin-left: 10px; }
.cmt-who em { margin-left: 8px; font-style: normal; font-size: 14px; font-weight: 400; color: var(--c-gray); }
.cmt-text { margin: 0; font-size: 18px; padding-right: 200px; }
.cmt-btns { position: absolute; right: 0; bottom: 30px; display: flex; gap: 8px; }
.cmt-btns form { margin: 0; }
.cmt-btns button { width: 80px; height: 40px; border: 1px solid #707070; border-radius: 5px; font-size: 18px; font-weight: 500; cursor: pointer; background: #fff; }
.cmt-btns .b-dark { background: var(--c-dark); color: #fff; }
.cmt-edit { margin-top: 12px; }

.v-btns { max-width: 572px; margin: 60px auto 0; }
.v-btns .btn { flex: 1; }
.v-btns form { flex: 1; margin: 0; display: flex; }
.v-btns form .btn { flex: 1; }
.v-nav { display: grid; grid-template-columns: 144px 1fr; margin: 80px 0 0; border-top: 1px solid var(--c-navy); border-bottom: 1px solid var(--c-navy); font-size: 18px; }
.v-nav dt:last-of-type, .v-nav dd:last-of-type { border-bottom: 0; }
.v-nav dt, .v-nav dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.v-nav dt { padding-left: 32px; font-size: 20px; }
.v-nav dd a, .v-nav dd span { color: var(--c-gray); }
.v-nav dd a:hover { color: var(--c-point); }

/* 글쓰기 */
.bd-form form { width: 1200px; max-width: 100%; margin: 0 auto; }
.form-err { margin: 0 0 20px; padding: 14px 18px; background: #fff3f3; border-radius: 6px; }
.f-row { margin-bottom: 20px; }
.f-title { display: flex; align-items: center; gap: 20px; }
.f-title input { flex: 1; height: 44px; padding: 0 20px; border: 1px solid var(--c-line); border-radius: 5px; background: #f7f7f7; font-size: 18px; }
.f-title input::placeholder { color: var(--c-gray); font-weight: 300; }
.f-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.f-chk input { width: 25px; height: 25px; accent-color: var(--c-navy); }
.f-school-sel { width: 400px; height: 44px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 5px; font-size: 18px; }
.f-school { margin: 0; font-size: 18px; }
.f-row textarea#bd_content { width: 100%; height: 520px; }
.f-blk { margin-top: 40px; }
.f-blk h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.f-help { margin: 0 0 12px; font-size: 15px; color: var(--c-gray); }
.f-note { margin: 0 0 12px; font-size: 18px; color: var(--c-red); }
.f-photos { display: flex; flex-wrap: wrap; gap: 5px; }
.ph, .ph-add { position: relative; width: 88px; height: 88px; background: #eee; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-del, .f-del { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; background: url(/assets/img/icon_image_delete.png) center / 18px no-repeat; cursor: pointer; }
.ph-del input, .f-del input, .ph-add input { position: absolute; opacity: 0; pointer-events: none; }
.ph.del-on img, .f-files li.del-on span { opacity: .3; text-decoration: line-through; }
.ph-add { display: block; background: #fff url(/assets/img/icon_image_add.png) center / 27px no-repeat; border: 1px solid var(--c-line); cursor: pointer; }
.ph-add input { width: 1px; height: 1px; }
.f-file-pick { display: flex; align-items: center; gap: 20px; }
.f-file-pick .f-note { margin: 0; }
.f-file-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 46px; border: 1px solid var(--c-line); border-radius: 5px; background: #f7f7f7; font-size: 18px; cursor: pointer; overflow: hidden; }
.f-file-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-files { margin: 20px 0 0; padding: 0; list-style: none; }
.f-files li { position: relative; display: flex; align-items: center; height: 50px; margin-bottom: 8px; padding: 0 50px 0 20px; border: 1px solid var(--c-line); border-radius: 6px; font-size: 18px; }
.f-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-files li em { font-style: normal; color: var(--c-gray); font-size: 15px; }
.f-files .f-del { position: absolute; right: 16px; top: 15px; }
.f-files li.new { border-style: dashed; }
.f-btns { width: 572px; max-width: 100%; margin: 60px auto 0; }

@media (max-width: 1024px) {
  .bd-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .bd-top .bd-search { align-self: stretch; }
  .bd-search { flex-wrap: wrap; }
  .bd-search select, .bd-sc-btn { min-width: 0; flex: 0 0 auto; height: 42px; font-size: 15px; }
  .bd-kw { width: auto; flex: 1; min-width: 180px; }
  .bd-kw input { height: 42px; font-size: 15px; }
  .bd-total { margin: 0; font-size: 15px; }
  /* 모바일 목록: 표를 줄 카드로 (시안: 제목 한 줄 + 작성자|날짜|조회수) */
  .bd-list, .bd-list tbody, .bd-list tr, .bd-list td { display: block; }
  .bd-list colgroup, .bd-list thead { display: none; }
  .bd-list tr { position: relative; padding: 16px 4px; border-bottom: 1px solid var(--c-line); }
  .bd-list td { height: auto; border: 0; text-align: left; font-size: 13px; color: var(--c-gray); display: inline; }
  .bd-list td:first-child { display: none; }
  .bd-list tr.is-notice td:first-child { display: inline; }
  .bd-list td.t { display: block; padding: 0 0 6px; font-size: 16px; color: var(--c-text); }
  .bd-list td.c-school { display: block; font-size: 13px; }
  .bd-list td.c-hit::before { content: "조회수 "; }
  .bd-list td.c-file { display: none; }
  .bd-list td.c-name::after, .bd-list td.c-date::after { content: " | "; color: #ccc; }
  .bd-list td.t::after, .bd-list td.c-school::after { content: none !important; }
  .bd-list tr:not(.is-notice) td.t { padding-right: 24px; }
  .tag-notice { width: auto; padding: 0 6px; height: 18px; line-height: 18px; font-size: 12px; margin-bottom: 6px; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; padding-top: 20px; }
  .gal strong { font-size: 15px; margin-top: 10px; }
  .gal em { font-size: 12px; }
  .bd-bottom { display: flex; flex-direction: column-reverse; gap: 20px; align-items: stretch; }
  .bd-write { position: static; width: auto; align-self: flex-end; height: 40px; font-size: 15px; padding: 0 20px; }
  .bd .pager { gap: 6px; }
  .bd .pager a { width: 30px; min-width: 30px; height: 30px; line-height: 28px; font-size: 14px; }
  .bd-view .v-head { padding: 0; }
  .v-head h2 { font-size: 17px; min-height: 54px; padding: 10px 4px; }
  .v-meta { font-size: 13px; min-height: 44px; padding: 6px 4px; }
  .v-body { padding: 24px 4px 40px; font-size: 15px; }
  .v-files { flex-direction: column; }
  .v-files strong { flex: none; padding: 10px; font-size: 15px; justify-content: flex-start; }
  .v-files ul { padding: 14px 4px; font-size: 14px; }
  .v-cmt { margin-top: 40px; }
  .v-cmt h3 { padding: 0 4px; line-height: 48px; font-size: 16px; }
  .v-cmt > :not(h3) { margin-left: 0; margin-right: 0; }
  .cmt-who { font-size: 15px; }
  .cmt-text { font-size: 14px; padding-right: 0; }
  .cmt-btns { position: static; margin-top: 12px; justify-content: flex-end; }
  .cmt-btns button, .cmt-write button, .cmt-edit button { width: 64px; height: 34px; font-size: 14px; }
  .cmt-write textarea::placeholder { font-size: 15px; }
  .v-btns { margin-top: 40px; }
  .v-nav { grid-template-columns: 80px 1fr; font-size: 14px; margin-top: 40px; }
  .v-nav dt { padding-left: 6px; font-size: 14px; }
  .f-title { flex-wrap: wrap; gap: 12px; }
  .f-title input { flex: 1 1 100%; font-size: 15px; }
  .f-chk { font-size: 15px; }
  .f-school-sel { width: 100%; }
  .f-blk h3 { font-size: 16px; }
  .f-note { font-size: 14px; }
  .f-file-pick { flex-direction: column; align-items: flex-start; gap: 8px; }
  .f-files li { font-size: 14px; height: 44px; }
  .ph, .ph-add { width: 70px; height: 70px; }
}

/* 우리학교 바로가기 */
.ico-home { display: inline-block; width: 25px; height: 25px; background: url(/assets/img/icon_homepage.png) center / 25px no-repeat; vertical-align: middle; }
.sch-list td.addr { font-size: 16px; color: var(--c-sub); }
@media (max-width: 1024px) { .sch-list td:nth-last-child(1)::before { content: none; } .sch-list td:nth-last-child(2) { display: inline; } }
