@charset "utf-8";
/* 호강이엔씨 테마 — 게시판 (시공사례 갤러리 / 공지사항 / 보기 / 글쓰기 / 댓글 / 페이징) */

.hk-bd { padding: clamp(56px, 6vw, 96px) 0 clamp(88px, 10vw, 150px); }
.hk-bd__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.hk-bd *, #bo_v *, #bo_w * { box-sizing: border-box; }

/* 목록 상단: 총 게시물 / 검색 */
.hk-bd__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.hk-bd__total { flex: none; white-space: nowrap; font-size: 15px; color: var(--sub); }
.hk-bd__total strong { color: var(--red); font-weight: 700; }
.hk-bd__total i { display: inline-block; width: 1px; height: 11px; margin: 0 8px; background: #c4c6ca; vertical-align: -1px; }
.hk-bd__sch { display: flex; gap: 6px; flex: 1; max-width: 520px; min-width: min(100%, 300px); margin: 0; }
.hk-bd__sch select { height: 46px; padding: 0 34px 0 14px; border: 1px solid var(--line-g); border-radius: 0; font-size: 14.5px; color: var(--ink); appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2317191c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.hk-bd__sch input[type=text] { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line-g); border-radius: 0; font-size: 14.5px; color: var(--ink); outline: none; background: #fff; }
.hk-bd__sch input[type=text]:focus { border-color: var(--ink); }
.hk-bd__sch button { flex: none; width: 46px; height: 46px; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hk-bd__sch button:hover { background: var(--red); }

.hk-bd__admin { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; font-size: 14px; color: var(--sub); border-bottom: 1px solid var(--line); }
.hk-bd__admin button { height: 36px; padding: 0 14px; border: 1px solid var(--line-g); background: #fff; font-size: 13.5px; cursor: pointer; }
.hk-bd__admin button:hover { border-color: var(--ink); }

.hk-bd__empty { padding: 120px 0; text-align: center; font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* 갤러리 */
.hk-gall { list-style: none; margin: 0; padding: clamp(36px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 3.6vw, 56px) clamp(16px, 1.8vw, 28px); }
.hk-gall > li { position: relative; }
.hk-gall__chk { position: absolute; left: 10px; top: 10px; z-index: 2; background: #fff; padding: 6px; line-height: 0; }
.hk-gall__a { display: flex; flex-direction: column; gap: 20px; color: var(--ink); }
.hk-gall__a:hover { color: var(--ink); }
.hk-gall__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e9eb; }
.hk-gall__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.hk-gall__a:hover .hk-gall__img img { transform: scale(1.07); }
.hk-gall__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #b9bcc0; font-size: 14px; }
.hk-gall__ov { position: absolute; inset: 0; background: rgba(16, 18, 21, .45); opacity: 0; transition: opacity .5s; display: grid; place-items: center; }
.hk-gall__ov span { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em; transform: scale(.8); transition: transform .5s var(--ease); }
.hk-gall__a:hover .hk-gall__ov { opacity: 1; }
.hk-gall__a:hover .hk-gall__ov span { transform: scale(1); }
.hk-gall__badge { position: absolute; right: 14px; top: 14px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; font-style: normal; }
.hk-gall__badge--n { background: var(--ink); }
.hk-gall__meta { display: flex; flex-direction: column; gap: 10px; }
.hk-gall__cat { font-size: 13px; font-weight: 700; color: var(--red); }
.hk-gall__meta h3 { margin: 0; font-size: clamp(17px, 1.3vw, 19px); font-weight: 700; line-height: 1.5; letter-spacing: -.02em; text-wrap: pretty; transition: color .3s; }
.hk-gall__meta h3 small { font-size: 13px; color: var(--red); font-weight: 600; }
.hk-gall__a:hover h3 { color: var(--red); }
.hk-gall__info { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.hk-gall__info i { width: 1px; height: 10px; background: var(--line-g); }
@media (max-width: 1023px) { .hk-gall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .hk-gall { grid-template-columns: 1fr; } }

/* 일반 게시판 테이블 */
.hk-tbl table { width: 100%; border-collapse: collapse; }
.hk-tbl caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hk-tbl th { padding: 16px 8px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--soft); border-bottom: 1px solid var(--line-g); }
.hk-tbl td { padding: 20px 8px; font-size: 15px; color: var(--sub); border-bottom: 1px solid var(--line); text-align: center; }
.hk-tbl .c-tit { text-align: left; }
.hk-tbl .c-tit a { color: var(--ink); font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; }
.hk-tbl .c-tit a:hover { color: var(--red); }
.hk-tbl .c-tit small { margin-left: 6px; color: var(--red); font-size: 13px; font-weight: 600; }
.hk-tbl .c-no { width: 80px; } .hk-tbl .c-date { width: 120px; } .hk-tbl .c-hit { width: 80px; } .hk-tbl .c-chk { width: 44px; }
.hk-tbl .is-notice td { background: #fafafa; }
.hk-tbl .is-notice .c-tit a { font-weight: 700; }
.hk-tbl .is-now td { background: #fff7f7; }
.hk-tbl__notice, .hk-tbl__new { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 800; font-style: normal; letter-spacing: .04em; }
.hk-tbl__notice { background: var(--ink); color: #fff; }
.hk-tbl__new { margin-left: 8px; background: var(--red); color: #fff; }
.hk-tbl__cat { margin-right: 10px; font-size: 13px !important; font-weight: 700 !important; color: var(--red) !important; }
.hk-tbl__empty { padding: 100px 0 !important; color: var(--muted); }
@media (max-width: 767px) {
  .hk-tbl thead { display: none; }
  .hk-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .hk-tbl td { display: block; padding: 0; border: 0; background: none !important; text-align: left; font-size: 13px; color: var(--muted); }
  .hk-tbl .c-tit { grid-column: 1 / -1; grid-row: 1; }
  .hk-tbl .c-no, .hk-tbl .c-date, .hk-tbl .c-hit { width: auto; }
  .hk-tbl .c-no { display: none; } .hk-tbl .is-notice .c-no { display: block; grid-row: 2; }
  .hk-tbl .c-chk { grid-column: 1 / -1; width: auto; }
  .hk-tbl .c-hit::before { content: "조회 "; }
  .hk-tbl .c-date { grid-row: 2; } .hk-tbl .c-hit { grid-row: 2; justify-self: end; }
  .hk-tbl .c-tit a { font-size: 16px; }
}

/* 페이징 */
.hk-bd__foot { margin-top: clamp(56px, 6vw, 88px); position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
.pg_wrap { float: none !important; display: block; margin: 0; text-align: center; }
.pg_wrap .pg { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pg_wrap .pg_page, .pg_wrap .pg_current {
  display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px !important; margin: 0 !important;
  border: 1px solid var(--line-g) !important; background: #fff !important; color: var(--sub) !important; font-size: 15px; font-weight: 500; line-height: 1 !important; border-radius: 0 !important;
  text-indent: 0 !important; overflow: visible; letter-spacing: 0;
}
.pg_wrap .pg_page:hover { border-color: var(--ink) !important; color: var(--ink) !important; background: #fff !important; }
.pg_wrap .pg_current { border-color: var(--ink) !important; background: var(--ink) !important; color: #fff !important; font-weight: 700; }
.pg_wrap .pg_start, .pg_wrap .pg_prev, .pg_wrap .pg_next, .pg_wrap .pg_end { font-size: 13px; background-image: none !important; }
.hk-bd__write { position: absolute; right: 0; height: 46px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700; }
.hk-bd__write:hover { background: var(--red); color: #fff; }
@media (max-width: 767px) { .hk-bd__write { position: static; } }

/* 게시글 보기 */
#bo_v { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 6vw, 96px) var(--pad) clamp(88px, 10vw, 150px); width: auto !important; font-size: 16px; }
#bo_v header { padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
#bo_v_title { margin: 0; font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; line-height: 1.4; letter-spacing: -.03em; display: flex; flex-direction: column; gap: 12px; }
#bo_v_title .bo_v_cate { font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: 0; }
.hk-v-meta { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--sub); }
#bo_v_info { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line-g); }
#bo_v_info > h2, #bo_v_atc_title, #bo_v_file > h2, #bo_v_link > h2, #bo_vc > h2, #bo_vc_w > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_v_info .profile_info { display: flex; align-items: center; gap: 12px; margin: 0; }
#bo_v_info .pf_img { display: none; }
#bo_v_info .profile_info_ct { font-size: 14px; color: var(--muted); line-height: 1.6; }
#bo_v_info .profile_info_ct br { display: none; }
#bo_v_info .profile_info_ct strong { font-weight: 500; margin-right: 12px; color: var(--muted); }
#bo_v_info .profile_info_ct a { color: inherit; }
#bo_v_top { margin: 0; }
#bo_v_top .btn_bo_user, #bo_v_bot .btn_bo_user { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; position: relative; }
#bo_v_top .btn, #bo_v_bot .btn, .btn_bo_user .btn { height: 40px; min-width: 40px; padding: 0 12px; line-height: 38px; border: 1px solid var(--line-g); background: #fff; color: var(--sub) !important; font-size: 14px; font-weight: 500; }
#bo_v_top .btn:hover { border-color: var(--ink); color: var(--ink) !important; }
.more_opt { display: none; position: absolute; right: 0; top: 46px; z-index: 5; min-width: 120px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--line-g); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.more_opt li a, .more_opt li button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 16px; background: none; border: 0; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.more_opt li a:hover { background: var(--soft); color: var(--red); }
#bo_v_atc { padding: clamp(32px, 4vw, 56px) 0; min-height: 200px; }
#bo_v_share { text-align: right; margin-bottom: 16px; }
#bo_v_img { text-align: center; }
#bo_v_img img { display: block; max-width: 100%; height: auto; margin: 0 auto 24px; }
#bo_v_con { font-size: 16.5px; line-height: 1.9; color: var(--body); word-break: break-all; overflow: hidden; }
#bo_v_con img { max-width: 100%; height: auto; }
#bo_v_con ul { list-style: disc; padding-left: 1.4em; }
#bo_v_con ol { list-style: decimal; padding-left: 1.4em; }
#bo_v_act { margin: 40px 0 0; text-align: center; }
#bo_v_act a, #bo_v_act .bo_v_good, #bo_v_act .bo_v_nogood { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--line-g); color: var(--sub); }
#bo_v_file, #bo_v_link { margin: 0 0 20px; padding: 20px 24px; background: var(--soft); }
#bo_v_file ul, #bo_v_link ul { margin: 0; padding: 0; list-style: none; }
#bo_v_file li, #bo_v_link li { padding: 8px 0; font-size: 14.5px; line-height: 1.6; color: var(--sub); }
#bo_v_file li a, #bo_v_link li a { color: var(--ink); }
#bo_v_file li a:hover, #bo_v_link li a:hover { color: var(--red); }
.bo_v_file_cnt, .bo_v_link_cnt { font-size: 12.5px; color: var(--muted); }
.bo_v_nb { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.bo_v_nb li { display: flex; align-items: center; gap: 20px; padding: 18px 8px; border-bottom: 1px solid var(--line-g); font-size: 15px; }
.bo_v_nb .nb_tit { flex: none; width: 90px; font-weight: 700; color: var(--ink); }
.bo_v_nb a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); }
.bo_v_nb a:hover { color: var(--red); }
.bo_v_nb .nb_date { flex: none; color: var(--muted); font-size: 13.5px; }

/* 댓글 */
#bo_vc { margin-top: 56px; }
#bo_vc article { padding: 22px 0; border-bottom: 1px solid var(--line); }
#bo_vc .bo_vc_hdinfo { font-size: 13px; color: var(--muted); }
#bo_vc .cmt_contents { margin-top: 8px; font-size: 15.5px; line-height: 1.75; color: var(--body); }
#bo_vc_empty { padding: 40px 0; text-align: center; color: var(--muted); }
#bo_vc_w { margin-top: 28px; }
#bo_vc_w textarea, #bo_vc_w .frm_input { width: 100%; border: 1px solid var(--line-g); padding: 14px 16px; font-size: 15px; border-radius: 0; }
#bo_vc_w textarea { height: 120px; resize: vertical; }
#bo_vc_w .btn_submit { height: 46px; padding: 0 28px; background: var(--ink); color: #fff; border: 0; font-weight: 700; cursor: pointer; }
#bo_vc_w .btn_submit:hover { background: var(--red); }

/* 글쓰기 */
#bo_w { max-width: 980px; margin: 0 auto; padding: clamp(56px, 6vw, 96px) var(--pad) clamp(88px, 10vw, 150px); }
#bo_w > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_w .write_div { margin: 0 0 12px; position: relative; }
#bo_w .bo_w_info { display: flex; gap: 8px; flex-wrap: wrap; }
#bo_w .bo_w_info .half_input { flex: 1; min-width: 180px; }
#bo_w .frm_input, #bo_w select, #bo_w textarea { border: 1px solid var(--line-g); background: #fff; border-radius: 0; padding: 0 16px; height: 50px; font-size: 15px; color: var(--ink); }
#bo_w select { width: 100%; }
#bo_w .full_input { width: 100%; }
#bo_w .frm_input:focus, #bo_w select:focus { border-color: var(--ink); outline: none; }
#bo_w .frm_file { width: 100%; padding: 12px 16px; height: auto; }
#bo_w .bo_w_flie .file_wr { padding: 0; }
#bo_w .lb_icon { display: inline-block; margin-right: 6px; color: var(--muted); }
#bo_w .bo_v_option { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
#bo_w .btn_confirm { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
#bo_w .btn_submit, #bo_w .btn_cancel { height: 54px; min-width: 140px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; border: 1px solid var(--ink); cursor: pointer; line-height: 1; }
#bo_w .btn_submit { background: var(--ink); color: #fff; }
#bo_w .btn_submit:hover { background: var(--red); border-color: var(--red); }
#bo_w .btn_cancel { background: #fff; color: var(--ink) !important; }
#bo_w .btn_cancel:hover { background: var(--soft); }
