/* =============================================
    게시판 공통 및 목록 스타일
============================================= */
.board_wrap {
  font-size: 16px;
  box-sizing: border-box;
  font-weight: 300;
}

.board_wrap h1 {
  font-size: 36px;
  font-weight: 500;
  margin: 10px 0 20px;
}

.board_wrap .board_list.type01 {
  border-top: 2px solid #222;
}

.board_wrap .board_list .tr {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.board_wrap .board_list.type01 .tr {
  height: 65px;
  border-bottom: 1px solid #dddddd;
}

.board_wrap .board_list .tr > div {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.board_wrap .board_list .tr:last-child {
  border-bottom: 1px solid #162b58;
}
.board_wrap .board_list.type01 .tr:not(.thead):hover {
  background: #eff7f8;
}

.board_wrap .board_list.type01 .tr > div {
  text-align: center;
  vertical-align: middle;
}

.board_wrap .board_list.type01 .tr .board_num {
  width: 95px;
}
.board_wrap .board_list.type01 .tr .board_view {
  width: 9%;
}
.board_wrap .board_list.type01 .tr .board_write_date {
  width: 10%;
}
.board_wrap .board_list.type01 .tr .board_writer {
  width: 12%;
}

.board_wrap .board_list.type01 .tr .board_tit {
  text-align: left;
}
.board_wrap .board_list.type01 .thead .board_tit {
  text-align: center;
}

.board_wrap .board_list.type01 .tr .board_tit a {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--main_color01);
  text-decoration: none;
}
.board_wrap .board_list.type01 .tr .board_tit a:hover {
  color: var(--point_color01);
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  font-size: 13px;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin: 0 4px;
  color: #666;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a.num:hover {
  background-color: #f0f0f0;
}

.pagination a.active {
  background-color: #4a148c;
  color: #fff;
  font-weight: bold;
}

.pagination .arrow {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* =============================================
    게시판 상세 보기 스타일
============================================= */
.board_view_wrap {
  border-top: 2px solid #222;
}

.board_view_head {
  padding: 30px 20px;
  border-bottom: 1px solid #ddd;
}
.board_view_head .tit {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.4;
}
.board_view_head .info_wrap {
  display: flex;
  font-size: 14px;
  color: #666;
}
.board_view_head .info_wrap > span {
  position: relative;
  margin-right: 15px;
  padding-right: 15px;
}
.board_view_head .info_wrap > span .label {
  font-weight: 500;
  color: #333;
  margin-right: 8px;
}
.board_view_head .info_wrap > span:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 12px;
  background: #ccc;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.board_view_cont {
  padding: 40px 20px;
  border-bottom: 1px solid #ddd;
  min-height: 250px;
  font-size: 15px;
  color: #535353;
  line-height: 1.7;
}

.file_attach {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #eee;
  background: #fdfdfd;
}
.file_attach strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 300;
}
.file_attach a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}
.file_attach a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../img/common/file.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.file_attach a:hover {
  color: var(--point_color01);
  text-decoration: underline;
}

.board_nav_wrap {
  border-bottom: 1px solid #162b58;
}
.board_nav_wrap > div {
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
}
.board_nav_wrap strong {
  display: inline-block;
  width: 120px;
  padding: 18px 0;
  text-align: center;
  background: #f8f8f8;
  font-weight: 300;
  font-size: 15px;
}
.board_nav_wrap a {
  flex: 1;
  padding: 0 20px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board_nav_wrap a:hover {
  color: var(--point_color01);
  text-decoration: underline;
}

.btn_wrap {
  margin-top: 40px;
  text-align: center;
}
.btn_wrap .btn_list {
  display: inline-block;
  padding: 12px 40px;
  background: #4a148c;
  color: #fff;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn_wrap .btn_list:hover {
  background: var(--point_color01);
}

/* =============================================
    게시판 반응형 스타일
============================================= */

@media screen and (max-width: 1250px) {
  .board_wrap .board_list.type01 .tr .board_write_date {
    width: 13%;
  }
}

@media screen and (max-width: 768px) {
  .board_wrap {
    font-size: 10px;
  }
  .board_wrap h1 {
    margin-top: 15px;
    font-size: 22px;
  }

  .board_wrap .board_list.type01 .tr {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    height: auto;
    padding: 15px 5px;
  }
  .board_wrap .board_list.type01 .thead {
    display: none;
  }
  .board_wrap .board_list.type01 .tr .board_num {
    display: none;
  }

  .board_wrap .board_list.type01 .tr .board_tit {
    width: 100%;
    padding: 0;
    margin-bottom: 0;
    order: 1;
  }
  .board_wrap .board_list.type01 .tr .board_tit a {
    line-height: 1.4;
    font-size: 14px;
  }

  .board_wrap .board_list.type01 .tr > div:not(.board_tit) {
    display: none;
  }

  .board_view_head {
    padding: 20px 10px;
  }
  .board_view_head .tit {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .board_view_head .info_wrap {
    display: block;
    font-size: 12px;
  }
  .board_view_head .info_wrap > span {
    margin: 0 0 5px 0;
    padding: 0;
  }
  .board_view_head .info_wrap > span:not(:last-child)::after {
    display: none;
  }

  .board_view_cont {
    padding: 25px 10px;
    min-height: 200px;
    font-size: 14px;
  }

  .file_attach {
    padding: 15px;
    margin-top: 25px;
  }
  .file_attach strong {
    font-size: 14px;
  }
  .file_attach a {
    font-size: 13px;
  }

  .board_nav_wrap strong {
    width: 80px;
    padding: 15px 0;
    font-size: 13px;
    flex-shrink: 0;
  }
  .board_nav_wrap a {
    padding: 0 10px;
    font-size: 13px;
  }

  .btn_wrap {
    margin-top: 30px;
  }
  .btn_wrap .btn_list {
    padding: 10px 30px;
    font-size: 14px;
  }
}
/* =============================================
    레이어 팝업 스타일
============================================= */

.layer_popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2001;
  width: 100%;
  height: 100vh;
  display: none;
  text-align: center;
}

.layer_popup.show {
  display: block;
}

.layer_popup .deemed {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1002;
}

.layer_popup:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.layer_popup .layer_wrap {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 1003;
  width: 80%;
  max-width: 850px;
  text-align: left;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 2px 5px 10px 0px rgba(0, 0, 0, 0.1);
}

.layer_popup .pop_wrap {
  position: relative;
}

.layer_popup .btn_pop_close {
  width: 50px;
  height: 50px;
  background: url(../img/common/ico_popup_btn_close.png) no-repeat;
  position: absolute;
  right: 30px;
  top: 30px;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.layer_popup .con_wrap {
  max-height: calc(100vh - 220px);
  padding: 10px;
  overflow-y: auto;
}

.layer_popup .con_wrap .desc {
  font-size: 18px;
  line-height: 1.7;
}

.layer_popup .btn_wrap {
  padding: 0 30px 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}

.layer_popup .btn_wrap .btn {
  width: 180px;
  height: 49px;
  font-size: 18px;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}

/* =============================================
    Iframe 팝업 특정 스타일
============================================= */

.layer_popup .iframe_wrap {
  width: 80%;
  max-width: 900px;
  height: 80%;
  overflow: auto;
}

.layer_popup .iframe_wrap .pop_wrap {
  height: 100%;
}

.layer_popup .iframe_wrap .con_wrap {
  padding: 0;
  height: calc(100% - 50px);
}

.layer_popup .iframe_wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.layer_popup.story-popup .iframe_wrap {
  width: 90%;
  max-width: 850px;
  height: auto;
  max-height: 90vh;
  overflow: hidden;
  background: #fff5f5;
}

.layer_popup.story-popup .iframe_wrap .pop_wrap {
  height: auto;
}

.layer_popup.story-popup .iframe_wrap .con_wrap {
  padding: 0;
  height: auto;
  overflow: visible;
  max-height: none;
}

.layer_popup.story-popup .iframe_wrap iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

/* =============================================
  팝업 반응형 스타일 (768px 이하)
============================================= */
@media screen and (max-width: 768px) {
  .layer_popup .layer_wrap {
    width: calc(100% - 40px);
  }

  .layer_popup .iframe_wrap {
    height: 80%;
  }

  .layer_popup .btn_pop_close {
    width: 32px;
    height: 32px;
    background: url(../img/common/ico_popup_btn_close_32.png) no-repeat;
    right: 10px;
    top: 10px;
  }

  .layer_popup .con_wrap {
    padding: 20px;
    max-height: calc(100vh - 120px);
  }
  .layer_popup .con_wrap .desc {
    font-size: 16px;
    line-height: 1.6;
  }

  .layer_popup .btn_wrap {
    flex-direction: column;
    padding: 0 20px 20px;
    gap: 10px;
    margin-top: 15px;
  }

  .layer_popup .btn_wrap .btn {
    width: 100%;
    margin-left: 0;
  }
}
/* =============================================
    일반 버튼 스타일 
============================================= */
.btn_by_bk {
  border: 1px solid #ddd;
  color: #676767;
  background: transparent;
  transition: all 0.3s;
}
.btn_by_bk:hover {
  background: #444;
  color: #fff;
}

.btn_bn_bl {
  border: 1px solid #19539a;
  background: #19539a;
  color: #fff;
  transition: all 0.3s;
}
.btn_bn_bl:hover {
  background: #fff;
  color: #19539a;
}

.btn_bn_navy {
  border: 1px solid #464f58;
  background: #464f58;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.btn_bn_navy:hover {
  background: #fff;
  color: #464f58;
}
