@charset "utf-8";

:root {
  --wz-navy: #07345b;
  --wz-blue: #1686c3;
  --wz-gold: #d3ae52;
  --wz-black: #171a1f;
  --wz-text: #3d444c;
  --wz-gray: #747c85;
  --wz-line: #dee3e8;
  --wz-bg: #f4f6f8;
  --wz-white: #fff;
}
#bo_gall,
#bo_v,
#bo_w,
#bo_vc,
#bo_vc_w {
  width: 100%;
  color: var(--wz-text);
  font-family: "Pretendard", sans-serif;
  letter-spacing: -0.02em;
  box-sizing: border-box;
}
#bo_gall *,
#bo_v *,
#bo_w *,
#bo_vc *,
#bo_vc_w * {
  box-sizing: border-box;
}
#bo_gall a,
#bo_v a,
#bo_w a,
#bo_vc a {
  text-decoration: none;
}
.sound_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* 목록·뷰 공통 900 + 50 + 350 */
.hb_board_layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) 350px;
  align-items: start;
  gap: 50px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.hb_board_main {
  min-width: 0;
  width: 100%;
}
.hb_board_rank {
  position: sticky;
  top: 120px;
  min-width: 0;
  width: 100%;
}

/* 카테고리 */
.hb_wz_cate {
  margin: 0 0 32px;
  border-bottom: 1px solid var(--wz-line);
  overflow: hidden;
}
.hb_wz_cate #bo_cate_ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow-x: auto;
  list-style: none;
}
.hb_wz_cate li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.hb_wz_cate a {
  display: block;
  position: relative;
  padding: 0 2px 15px;
  color: var(--wz-gray);
  font-size: 16px;
  font-weight: 600;
}
.hb_wz_cate a:hover,
.hb_wz_cate a#bo_cate_on {
  color: var(--wz-navy);
}
.hb_wz_cate a#bo_cate_on:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--wz-blue);
}

/* 목록 상단 */
.hb_wz_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hb_wz_count {
  color: var(--wz-gray);
  font-size: 14px;
}
.hb_wz_count strong {
  color: var(--wz-navy);
}
.hb_wz_actions {
  display: flex;
  gap: 6px;
}
.hb_wz_actions a,
.hb_wz_actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--wz-line);
  background: #fff;
  color: var(--wz-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hb_wz_actions .btn_admin {
  background: #6b7280;
  color: #fff;
}
.hb_wz_actions .hb_wz_write {
  border-color: var(--wz-navy);
  background: var(--wz-navy);
  color: #fff;
}
.hb_wz_search {
  display: none;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--wz-line);
  background: var(--wz-bg);
}
.hb_wz_search.is_open {
  display: block;
}
.hb_wz_search_inner {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 45px 45px;
  max-width: 650px;
  margin: auto;
}
.hb_wz_search select,
.hb_wz_search input,
.hb_wz_search button {
  height: 44px;
  border: 1px solid #d5dbe1;
  background: #fff;
  font-size: 14px;
}
.hb_wz_search select,
.hb_wz_search input {
  padding: 0 12px;
}
.hb_wz_search input,
.hb_wz_search button {
  border-left: 0;
}
.hb_wz_search button {
  color: var(--wz-navy);
  cursor: pointer;
}
.hb_wz_admin_select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--wz-bg);
  font-size: 13px;
}
.hb_wz_admin_select button {
  margin-left: 4px;
  padding: 6px 8px;
  border: 1px solid #d5dbe1;
  background: #fff;
  color: var(--wz-text);
}

/* 웹진 목록 */
.hb_wz_list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--wz-navy);
  list-style: none;
}
.hb_wz_item {
  position: relative;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--wz-line);
}
.hb_wz_check {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 2;
}
.hb_wz_article {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}
.hb_wz_thumb {
  display: block;
  flex: 0 0 220px;
  height: 138px;
  overflow: hidden;
  background: #eef1f4;
}
.hb_wz_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hb_wz_thumb:hover img {
  transform: scale(1.025);
}
.hb_wz_text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: center;
  min-width: 0;
  padding: 0;
}
.hb_wz_subject_line {
  display: flex;
  align-items: center;
  min-height: 20px;
  margin-bottom: 5px;
  gap: 7px;
}
.hb_wz_category,
.hb_wz_notice {
  color: var(--wz-blue);
  font-size: 13px;
  font-weight: 700;
}
.hb_wz_notice {
  padding: 2px 6px;
  background: var(--wz-navy);
  color: #fff;
}
.hb_wz_text h3 {
  margin: 0 0 7px;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.hb_wz_text h3 a {
  display: block;
  color: var(--wz-black);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.hb_wz_text h3 a:hover {
  color: var(--wz-blue);
}
.hb_wz_summary {
  display: -webkit-box;
  margin: 0;
  color: #68717a;
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.hb_wz_summary a {
  color: inherit;
}
.hb_wz_info {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  color: var(--wz-gray);
  font-size: 13px;
}
.hb_wz_info span {
  position: relative;
  margin-right: 10px;
  padding-right: 11px;
}
.hb_wz_info span:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 10px;
  background: #d4d9de;
  transform: translateY(-50%);
}
.hb_wz_info span:last-child:after {
  display: none;
}
.hb_wz_writer {
  color: var(--wz-text);
  font-weight: 600;
}
.hb_webzine .empty_list {
  padding: 80px 15px;
  border-bottom: 1px solid var(--wz-line);
  color: var(--wz-gray);
  text-align: center;
}
.hb_wz_paging {
  margin-top: 38px;
  text-align: center;
}
.sv_member {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* 기사 상세 */
#bo_v.hb_news_view {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.hb_nv_header {
  position: relative;
  padding: 0px 0 15px;
  border-bottom: 1px solid var(--wz-line);
}
.hb_nv_category {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--wz-blue);
  font-size: 15px;
  font-weight: 700;
}
.hb_news_view #bo_v_title {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: var(--wz-black);
  font-size: 30px !important;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.hb_nv_info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  padding: 0 !important;
  border: 0 !important;
  color: var(--wz-gray);
  font-size: 13px;
}
.hb_nv_info span {
  position: relative;
  margin-right: 11px;
  padding-right: 12px;
}
.hb_nv_info span:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 11px;
  background: #d4d9de;
  transform: translateY(-50%);
}
.hb_nv_info span:last-child:after {
  display: none;
}
.hb_nv_writer {
  color: var(--wz-text);
  font-weight: 600;
}
.hb_nv_info .ip {
  margin-left: 3px;
  color: #9299a0;
  font-style: normal;
  font-weight: 400;
}
.hb_nv_manage {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 18px;
}
.hb_nv_manage a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--wz-line);
  background: #fff;
  color: #59616a;
  font-size: 12px;
}
.hb_nv_body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px 0 60px !important;
}
.hb_nv_body #bo_v_img {
  margin: 0 0 28px;
  text-align: center;
}
.hb_nv_body #bo_v_img img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 0 !important;
}
.hb_nv_body #bo_v_con {
  min-height: 240px;
  color: #292d32;
  font-size: 17px;
  line-height: 1.95;
  word-break: break-word;
}
.hb_nv_body #bo_v_con img {
  max-width: 100%;
  height: auto;
}
.hb_nv_body #bo_v_con p {
  margin: 0 0 1.2em;
}
.hb_nv_resource {
  width: 100%;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--wz-line);
  background: #f7f9fa;
}
.hb_nv_resource h2 {
  margin: 0 0 11px;
  color: var(--wz-navy);
  font-size: 15px;
}
.hb_nv_resource ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hb_nv_resource li + li {
  margin-top: 7px;
}
.hb_nv_resource a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wz-text);
  font-size: 13px;
}
.hb_nv_resource a span {
  margin-left: auto;
  color: #8a929a;
}
.hb_nv_nav {
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid #c8d0d8;
  list-style: none;
}
.hb_nv_nav li {
  border-bottom: 1px solid var(--wz-line);
}
.hb_nv_nav a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 5px;
  color: var(--wz-black);
}
.hb_nv_nav span {
  color: var(--wz-gray);
  font-size: 13px;
}
.hb_nv_nav strong {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.hb_nv_buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 22px;
}
.hb_nv_buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd2d9;
  background: #fff;
  color: var(--wz-text);
  font-size: 13px;
}
.hb_nv_buttons .btn_b02 {
  border-color: var(--wz-navy);
  background: var(--wz-navy);
  color: #fff;
}

/* 댓글 */
#bo_vc {
  margin: 40px 0 20px;
  padding: 24px;
  border-top: 2px solid var(--wz-navy);
  background: #f8f9fa;
}
#bo_vc h2 {
  margin: 0 0 16px;
  color: var(--wz-navy);
  font-size: 18px;
}
#bo_vc article {
  padding: 16px 0;
  border-top: 1px solid var(--wz-line);
}
#bo_vc p {
  font-size: 14px;
  line-height: 1.7;
}
#bo_vc_w {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--wz-line);
}
#bo_vc_w textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #d5dbe1;
}

/* 글쓰기 */
#bo_w {
  max-width: 1000px;
  margin: 0 auto;
}
.write_head {
  margin-bottom: 28px;
}
.write_head .write_label {
  margin-bottom: 9px;
  color: var(--wz-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.write_head h2 {
  margin: 0 0 10px;
  color: var(--wz-navy);
  font-size: 34px;
}
.write_head p {
  color: var(--wz-gray);
}
.write_card {
  padding: 28px;
  border: 1px solid var(--wz-line);
  background: #fff;
}
.write_div {
  margin-bottom: 22px;
}
.write_label_text {
  display: block;
  margin-bottom: 8px;
  color: var(--wz-navy);
  font-size: 14px;
  font-weight: 700;
}
.write_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.write_card .frm_input,
.write_card select,
.write_card textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d5dbe1;
  border-radius: 0;
}
.write_card .frm_input,
.write_card select {
  height: 44px;
  padding: 0 12px;
}
.write_content textarea {
  min-height: 220px;
}
.write_btn_wrap {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 20px;
}
.write_btn_wrap .btn_m,
.write_btn_wrap .btn_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--wz-navy);
  background: var(--wz-navy);
  color: #fff;
}
.write_btn_wrap .btn_b01 {
  border-color: #cbd2d9;
  background: #fff;
  color: var(--wz-text);
}

@media (max-width: 1050px) {
  .hb_board_layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
  .hb_wz_thumb {
    flex-basis: 200px;
    height: 125px;
  }
}
@media (max-width: 969px) {
  .hb_board_layout {
    display: block;
  }
  .hb_board_rank {
    position: static;
    width: 100%;
    margin-top: 55px;
  }
  .hb_wz_thumb {
    flex-basis: 220px;
    height: 138px;
  }
}
@media (max-width: 767px) {
  .hb_wz_cate {
    margin-bottom: 23px;
  }
  .hb_wz_cate #bo_cate_ul {
    gap: 21px;
  }
  .hb_wz_cate a {
    padding-bottom: 12px;
    font-size: 14px;
  }
  .hb_wz_actions span {
    display: none;
  }
  .hb_wz_search {
    padding: 10px;
  }
  .hb_wz_search_inner {
    grid-template-columns: 100px minmax(0, 1fr) 42px 42px;
  }
  .hb_wz_article {
    display: block;
  }
  .hb_wz_thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
  }
  .hb_wz_item {
    padding: 20px 0;
  }
  .hb_wz_text h3 {
    font-size: 17px;
  }
  .hb_wz_text h3 a {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hb_wz_summary {
    font-size: 13px;
  }
  .hb_wz_info {
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .hb_board_rank {
    margin-top: 45px;
  }
  .hb_nv_header {
    padding: 0 0 15px;
  }
  .hb_news_view #bo_v_title {
    font-size: 23px !important;
  }
  .hb_nv_info {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.8;
  }
  .hb_nv_body {
    padding: 38px 0 48px !important;
  }
  .hb_nv_body #bo_v_con {
    font-size: 16px;
    line-height: 1.85;
  }
  .hb_nv_nav {
    margin-top: 30px;
  }
  .hb_nv_nav a {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 15px 2px;
  }
  .hb_nv_nav strong {
    font-size: 13px;
  }
  .write_grid {
    grid-template-columns: 1fr;
  }
  .write_card {
    padding: 18px;
  }
  .write_btn_wrap {
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .hb_wz_search_inner {
    grid-template-columns: 85px minmax(0, 1fr) 40px;
  }
  .hb_wz_search_close {
    grid-column: 1/-1;
    border-top: 0 !important;
    border-left: 1px solid #d5dbe1 !important;
  }
  .hb_wz_info span:last-child {
    display: none;
  }
  .hb_nv_buttons {
    justify-content: center;
  }
  .write_btn_wrap {
    flex-direction: column-reverse;
  }
  .write_btn_wrap .btn_m,
  .write_btn_wrap .btn_submit {
    width: 100%;
  }
}

/* 메인 헤드라인 설정 */
.bo_w_flie {
  padding: 16px;
  border: 1px solid var(--wz-line);
  background: var(--wz-white);
}
.file_wr {
  margin-bottom: 8px;
}
.file_upload_label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px;
  border: 1px dashed #c8d1da;
  background: var(--wz-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.file_upload_label:hover {
  border-color: var(--wz-blue);
  background: var(--wz-white);
}
.file_upload_label i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wz-navy);
  color: var(--wz-white);
}
.file_upload_label span {
  color: var(--wz-black);
  font-size: 15px;
  font-weight: 700;
}
.file_upload_label em {
  color: var(--wz-gray);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}
.bo_w_flie .frm_file {
  display: none;
}
.file_desc_input {
  margin-top: 10px;
}
.file_del {
  display: block;
  margin-top: 10px;
  color: var(--wz-gray);
  font-size: 14px;
}

.hb_headline_check {position:relative}
.hb_headline_check input[type="checkbox"] {position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
.hb_headline_check label {display:flex;position:relative;flex-direction:column;justify-content:center;min-height:74px;padding:15px 20px 15px 58px;border:1px solid #dce3e9;background:#f7f9fb;color:#59636d;cursor:pointer}
.hb_headline_check label:before {content:"";position:absolute;top:50%;left:20px;width:22px;height:22px;border:2px solid #b8c1ca;background:#fff;transform:translateY(-50%)}
.hb_headline_check label:after {content:"";display:none;position:absolute;top:50%;left:28px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-60%) rotate(45deg)}
.hb_headline_check label strong {color:#1a222b;font-size:16px;line-height:1.4;font-weight:700}
.hb_headline_check label span {margin-top:3px;font-size:14px;line-height:1.5}
.hb_headline_check input[type="checkbox"]:checked + label {border-color:var(--wz-navy);background:#f1f6fa}
.hb_headline_check input[type="checkbox"]:checked + label:before {border-color:var(--wz-navy);background:var(--wz-navy)}
.hb_headline_check input[type="checkbox"]:checked + label:after {display:block}
.hb_headline_check input[type="checkbox"]:focus + label {outline:2px solid rgba(7,52,91,.22);outline-offset:2px}
@media (max-width:600px) {
  .bo_w_flie {
    padding: 13px;
  }
  .file_upload_label {
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 64px;
    padding: 14px;
  }
  .file_upload_label i {
    width: 34px;
    height: 34px;
  }
  .file_upload_label em {
    flex-basis: 100%;
    padding-left: 44px;
  }
  .hb_headline_check label {min-height:68px;padding:13px 15px 13px 52px}
  .hb_headline_check label:before {left:16px}
  .hb_headline_check label:after {left:24px}
}
