@charset "utf-8";

/* =====================================================
   공지사항 게시판 스킨 (skin/board/notice)
   PC 1920 기준 1rem = 10px, 모바일 375 기준
   ===================================================== */
.notice .inner {width: 94rem; margin: 0 auto;}

/* 비주얼 */
.notice .sv {position: relative; height: 78rem; padding-top: 36.2rem; background: url(img/sv.jpg) no-repeat center / cover; color: #fff; text-align: center;}
.notice .sv::before {content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4);}
.notice .sv .tit {position: relative; font-size: 5rem; font-weight: 700; line-height: 7rem; text-shadow: 0 0 1rem #000;}

/* 목록 상단 : 건수 + 검색 */
.notice .bo_list {padding: 13rem 0 25rem;}
.notice .bo_list .inner {display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;}
.notice .bo_top {font-size: 1.4rem; line-height: 3rem; letter-spacing: -0.028rem;}
.notice .sch {display: flex; align-items: center; gap: 0.6rem;}
.notice .sch input {width: 18rem; height: 2.6rem; padding: 0 0.8rem; border: 1px solid #e9e9e9; border-radius: 0.4rem; background: #fff; font-family: inherit; font-size: 1.3rem; letter-spacing: -0.026rem; color: #161616;}
.notice .sch input::placeholder {color: #c4c4c4; opacity: 1;}
.notice .sch input:focus {outline: none; border-color: #bebebe;}
.notice .sch button {display: block; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; background: none; cursor: pointer;}
.notice .sch button img {display: block; width: 100%;}

/* 목록 */
.notice .list {width: 100%; margin-top: 0.65rem; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; font-size: 1.4rem; letter-spacing: -0.028rem;}
.notice .list li {border-bottom: 1px solid #bebebe;}
.notice .list li:last-child {border-bottom: 0;}
.notice .list .hd, .notice .list li a {display: grid; grid-template-columns: 7rem 62.4rem 9rem 6rem 9.6rem; align-items: center; min-height: 6.6rem; line-height: 3rem; color: #000;}
.notice .list .hd {font-weight: 600;}
.notice .list .meta {display: contents;}
.notice .list .num, .notice .list .hit, .notice .list .date {text-align: center;}
.notice .list .date {padding-left: 1rem;}
.notice .list .subject {padding-left: 2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.notice .list .name {padding-left: 1.1rem;}
.notice .list .notice_tag {display: inline-block; margin-right: 0.8rem; padding: 0 0.7rem; border-radius: 0.3rem; background: #222664; font-size: 1.1rem; font-style: normal; font-weight: 500; line-height: 2rem; color: #fff; vertical-align: 0.1rem;}
.notice .list .is_notice .subject {font-weight: 600;}
.notice .list .ico {display: none;}
.notice .list .empty {padding: 4rem 0; font-size: 1.4rem; color: #666; text-align: center;}

/* 목록 하단 : 페이지 번호 + 글쓰기 */
.notice .bo_btm {position: relative; display: flex; justify-content: space-between; align-items: flex-start; width: 100%; min-height: 2.6rem; margin-top: 1.65rem;}
.notice .pg_wrap {display: block; margin: 0; padding: 0; text-align: left;}
.notice .pg {display: flex; gap: 0.4rem;}
.notice .pg_page, .notice .pg_current {display: block; width: 2.6rem; height: 2.6rem; margin: 0; padding: 0; border: 0; border-radius: 0.4rem; background: #e9e9e9; font-size: 1.4rem; font-weight: 400; line-height: 2.6rem; letter-spacing: -0.028rem; color: #222; text-align: center;}
.notice .pg_current {background: #222664; color: #fff;}
.notice .pg_start, .notice .pg_prev, .notice .pg_next, .notice .pg_end {font-size: 0; background-repeat: no-repeat; background-position: center; background-size: 2.4rem;}
.notice .pg_prev {background-image: url(img/ic_arrow.svg);}
.notice .pg_start {background-image: url(img/ic_arrow2.svg);}
.notice .pg_next {background-image: url(img/ic_arrow.svg); transform: scaleX(-1);}
.notice .pg_end {background-image: url(img/ic_arrow2.svg); transform: scaleX(-1);}
.notice .btn_write {display: block; width: 2.6rem; height: 2.6rem;}
.notice .btn_write img {display: block; width: 100%;}

/* 상세 */
.notice .bo_view {padding: 13rem 0 25rem;}
.notice .vhead {display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 1.55rem; border-bottom: 1px solid #bebebe;}
.notice .vhead .cate {font-size: 1.4rem; line-height: 3rem; letter-spacing: -0.028rem; color: #a2a2a2;}
.notice .vhead .subject {margin-top: -0.2rem; font-size: 1.8rem; font-weight: 600; line-height: 3rem; letter-spacing: -0.036rem; color: #000;}
.notice .vhead .meta {display: flex; align-items: center; gap: 2rem; margin-bottom: -0.5rem; font-size: 1.4rem; line-height: 3rem; letter-spacing: -0.028rem; color: #000; white-space: nowrap;}
.notice .vhead .meta span {display: inline-flex; align-items: center; gap: 0.6rem;}
.notice .vhead .meta img {width: 1.6rem; height: 1.6rem;}
.notice .vcon {min-height: 52rem; padding: 6.15rem 1rem 6rem; border-bottom: 1px solid #bebebe; font-size: 1.4rem; line-height: 3rem; letter-spacing: -0.028rem; color: #000; word-break: break-all;}
.notice .vcon img {max-width: 100%; height: auto;}
.notice .vfile {padding: 1.4rem 1rem; border-bottom: 1px solid #bebebe; font-size: 1.3rem; line-height: 2.4rem;}
.notice .vfile a {color: #333; text-decoration: underline;}
.notice .vbtm {display: flex; justify-content: space-between; align-items: center; margin-top: 1.65rem;}
.notice .vnav {display: flex; align-items: center; gap: 0.4rem;}
.notice .vnav .prev, .notice .vnav .next {display: block; width: 2.6rem; height: 2.6rem; border-radius: 0.4rem; background: #e9e9e9 url(img/ic_arrow.svg) no-repeat center / 2.4rem; font-size: 0;}
.notice .vnav .next {transform: scaleX(-1);}
.notice .vnav span {opacity: 0.4;}
.notice .vnav .adm {display: flex; gap: 0.4rem; margin-left: 1rem;}
.notice .vnav .adm a {display: block; padding: 0 0.9rem; border: 1px solid #ddd; border-radius: 0.4rem; font-size: 1.2rem; line-height: 2.4rem; color: #666;}
.notice .vbtm .tolist {font-size: 1.4rem; line-height: 3rem; letter-spacing: -0.028rem; color: #a2a2a2;}

/* 글쓰기 (그누보드 기본 폼 다듬기) */
.notice .bo_write {padding: 13rem 0 25rem;}
.notice .bo_write #bo_w {font-size: 1.4rem;}
.notice .bo_write #bo_w .write_div {margin: 1.2rem 0;}
.notice .bo_write #bo_w .frm_input, .notice .bo_write #bo_w textarea, .notice .bo_write #bo_w .file_wr {box-sizing: border-box; box-shadow: none !important; border: 1px solid #d5d5d5; border-radius: 0.4rem; font-family: inherit;}
.notice .bo_write #bo_w .frm_input {height: 4.4rem; padding: 0 1.2rem; font-size: 1.4rem; color: #161616;}
.notice .bo_write #bo_w .frm_input:focus {outline: none; border-color: #222664;}
.notice .bo_write #bo_w .bo_w_link .frm_input {padding-left: 5rem;}

/* 공지·비밀글 등 체크 옵션 */
.notice .bo_write #bo_w .bo_w_select {display: flex; flex-wrap: wrap; gap: 2.4rem;}
.notice .bo_write #bo_w .bo_w_select .chk_box {list-style: none;}
.notice .bo_write .write_div .chk_box input[type="checkbox"] + label {display: inline-flex; align-items: center; gap: 0.8rem; padding-left: 0; font-size: 1.4rem; font-weight: 500; color: #333; cursor: pointer;}
.notice .bo_write .write_div .chk_box input[type="checkbox"] + label:hover {color: #222664;}
.notice .bo_write .write_div .chk_box input[type="checkbox"] + label span {position: static; float: none; display: flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; margin: 0; border: 1px solid #bebebe; border-radius: 0.4rem; background: #fff; transition: 0.2s;}
.notice .bo_write .write_div .chk_box input[type="checkbox"] + label span::after {content: ''; width: 0.5rem; height: 0.9rem; margin-top: -0.2rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;}
.notice .bo_write .write_div .chk_box input[type="checkbox"]:checked + label {color: #222664;}
.notice .bo_write .write_div .chk_box input[type="checkbox"]:checked + label span {border-color: #222664; background: #222664;}
.notice .bo_write .write_div .chk_box input[type="checkbox"]:checked + label span::after {opacity: 1;}

/* 파일 첨부 */
.notice .bo_write #bo_w .bo_w_flie .file_wr {display: flex; align-items: center; height: 4.4rem; padding: 0 1rem 0 0; margin: 0; background: #fff;}
.notice .bo_write #bo_w .bo_w_flie .lb_icon {position: static; flex: none; width: 4.2rem; height: 4.2rem; line-height: 4.2rem; font-size: 1.6rem; color: #b2b2b2; text-align: center;}
.notice .bo_write #bo_w .bo_w_flie input[type="file"] {flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none; font-family: inherit; font-size: 1.3rem; line-height: normal; color: #333;}
.notice .bo_write #bo_w .bo_w_flie .frm_input {margin: 0.8rem 0 0;}

/* 취소 · 작성완료 */
.notice .bo_write #bo_w .btn_confirm {display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 2.4rem;}
.notice .bo_write #bo_w .btn_cancel, .notice .bo_write #bo_w .btn_submit {display: inline-flex; align-items: center; justify-content: center; height: 4.4rem; margin: 0; padding: 0 2.6rem; border-radius: 0.6rem; font-family: inherit; font-size: 1.5rem; font-weight: 500; line-height: 1; cursor: pointer;}
.notice .bo_write #bo_w .btn_cancel {border: 1px solid #bebebe; background: #fff; color: #333;}
.notice .bo_write #bo_w .btn_submit {border: 1px solid #222664; background: #222664; color: #fff;}
.notice .bo_write #bo_w .btn_submit:hover {background: #1a1e4f;}

@media all and (max-width: 880px){
    .notice .inner {width: auto; margin: 0 2.75rem;}
    .notice .sv .tit {font-size: 3.6rem; line-height: 5rem;}

    /* 목록 : 제목 / 글쓴이·조회·날짜, 건수 바와 검색은 페이지 번호 아래 */
    .notice .bo_list {padding: 8rem 0 12rem;}
    .notice .bo_list .inner {flex-direction: column; align-items: stretch;}
    .notice .bo_top {order: 3; height: 3.8rem; margin-top: 1.3rem; border-radius: 0.4rem; background: #f1f1f1; line-height: 3.8rem; text-align: center;}
    .notice .sch {order: 4; position: relative; margin-top: 0.6rem;}
    .notice .sch input {width: 100%; height: 3.8rem; padding: 0 4rem; font-size: 1.2rem; letter-spacing: -0.024rem; text-align: center;}
    .notice .sch button {position: absolute; right: 0.7rem; top: 0.6rem;}
    .notice .list {order: 1; margin-top: 0; border-bottom-color: #bebebe;}
    .notice .list .hd {display: none;}
    .notice .list li a {display: block; min-height: 0; padding: 1.25rem 0.65rem 0.75rem;}
    .notice .list .num {display: none;}
    .notice .list .subject {display: block; padding: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.032rem; white-space: normal;}
    .notice .list .meta {display: flex; align-items: center; gap: 2rem;}
    .notice .list .name, .notice .list .hit, .notice .list .date {display: inline-flex; align-items: center; gap: 0.6rem; padding: 0; text-align: left;}
    .notice .list .ico {display: block; width: 1.6rem; height: 1.6rem;}
    .notice .bo_btm {order: 2; justify-content: center; margin-top: 1.8rem;}
    .notice .btn_write {position: absolute; right: 0; top: 0;}

    /* 상세 */
    .notice .bo_view {padding: 6.5rem 0 8rem;}
    .notice .vhead {display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cate meta" "subject subject"; align-items: center; padding-bottom: 1.2rem;}
    .notice .vhead .left {display: contents;}
    .notice .vhead .cate {grid-area: cate;}
    .notice .vhead .subject {grid-area: subject; margin-top: 0.8rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.032rem;}
    .notice .vhead .meta {grid-area: meta; margin: 0;}
    .notice .vcon {min-height: 0; padding: 3.6rem 0;}
    .notice .vfile {padding: 1.2rem 0;}
    .notice .vbtm {margin-top: 4.55rem;}

    /* 글쓰기 */
    .notice .bo_write {padding: 6.5rem 0 8rem;}
}
