/*공통*/
.board_header {display: flex; justify-content: space-between; align-items: flex-end; width: 100%; padding: 0; box-sizing: border-box;}

.board_total {font-size: 18px; font-weight: 700;}
.search_bar {display: flex; align-items: center; border: 1px solid #ccc; border-radius: 999px; overflow: hidden; width: 400px; height: 48px; background: #fff; position: relative; box-sizing: border-box;}

.custom_select_wrap {position: relative; display: flex; align-items: center;}
.custom_select_wrap select {appearance: none; -webkit-appearance: none; -moz-appearance: none; border: none; padding: 0 40px 0 20px; font-size: 16px; background: transparent; outline: none; cursor: pointer; height: 48px; font-family: inherit;}
.custom_select_wrap::after {content: "\ea4e"; font-family: "remixicon"; font-size: 22px;  position: absolute; right: -10px; top: 50%; transform: translateY(-50%); pointer-events: none;}

.search_bar input[type="text"] {flex: 1; border: none; font-size: 16px; padding: 0 20px; outline: none; height: 48px; font-family: inherit; box-sizing: border-box;}
.search_bar button {border: none; background: transparent; padding: 0 16px;}
.ri-search-line:before {font-size: 20px;}

.board_container, .gallery_container {max-width: 1280px; width: 100%; margin: 20px auto;}
.notice-label {display: flex; border-radius: 8px; background: tomato; color: #fff; font-weight: 600;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5px 3px;
  font-size: 16px;
}}

/*페이지네이션*/
.pagination {display:flex; justify-content:center; align-items:center; margin:30px 0; width:auto;}
.pagination ul {display:flex; gap:5px;}
.pagination li {display:flex; justify-content:center; align-items:center; border:none; color:#ccc; border-radius:8px; transition:0.3s ease; white-space:nowrap;}
.pagination li:hover:not(.active) {background:#666; color:#fff;}
.pagination .active {display: flex; height:100%; border-radius:8px; background:#666; color:#fff; font-weight:600; text-align:center; justify-content: center; align-items: center;}
.pagination a {padding:5px 13px; font-size:16px;}
.pagination a:hover {color: #fff;}

/* 화살표 버튼 (처음, 이전, 다음, 끝) */
.pagination li:first-child a,
.pagination li:nth-child(2) a,
.pagination li:nth-last-child(2) a,
.pagination li:last-child a {width:35px; height:35px; display:flex; justify-content:center; align-items:center; padding:0;}

.pagination i {font-size:20px;}

/*no data 상태 영역*/
.ui-empty {width: 100%; border: 2px solid #777; border-left: none; border-right: none; text-align: center; color: #999; min-height: 400px; display: flex; justify-content: center; align-items: center;}

/*gallery*/
.gallery_container {width: 100%; display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; box-sizing: border-box;}

.gallery_item {width: 32%; margin-bottom: 20px;} /* height: 400px;  */
.gallery_item a {flex-direction: column; align-items: flex-start;}

.gallery_img {width: 100%; height: 230px; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 20px; display: block; border: 1px solid #eee; overflow: hidden; object-fit: cover;}
.gallery_info {padding: 10px 10px 0;}

.gallery_title {font-size: 18px; font-weight: 700; line-height: 2; margin: 20px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: calc(1.2em * 2);}

.board_meta {display: flex; justify-content: left; margin-top: 10px; font-size: 14px; color: #666; gap: 15px;}
.board_writer, .board_date, .board_views {white-space: nowrap;}

/*gallery_empty*/
.gallery .inner {flex-direction: column;}
.gallery_empty {width: 100%; border: 2px solid #777; border-left: none; border-right: none; text-align: center; color: #999; min-height: 400px; display: flex; justify-content: center; align-items: center;}

/*board_list*/
.board_box {display: flex; flex-direction: column; justify-content: flex-start; min-height: 520px; box-sizing: border-box;}
.board_table {width: 100%; border-collapse: collapse; table-layout: fixed; color: #666; font-size: 16px;}

.board_table thead {border-top: 2px solid #777; border-bottom: 1px solid #ccc;}
.board_table thead th {text-align: center; padding: 10px; font-weight: 700; background: #F5F5F5; font-size: 20px; color: #222;}

.board_table thead th.list_num {width: 4%;}
.board_table thead th.list_title {width: 45%;}
.board_table thead th.list_date {width: 10%;}
.board_table thead th.list_views {width: 6%}
.board_table thead th.list_writer {width: 10%}
.board_table thead th.list_status {width: 9%;}
.board_table thead th.list_file {width: 6%;}

.board_table.hio thead th.list_num {width: 10%;}
.board_table.hio thead th.list_space {width: 20%;}
.board_table.hio thead th.list_name {width: 15%;}
.board_table.hio thead th.list_people {width: 30%;}
.board_table.hio thead th.list_date {width: 25%;}

.board_table.hio th {border-right: 1px solid #ccc;}
.board_table.hio td {font-size: 18px; color: #222; 
  /* border-right: 1px solid #ccc; */
}
.board_table.hio th:last-child, .board_table.hio td:last-child {border-right: none;}
.board_table.hio tbody tr:hover {background: none;}

@media (max-width: 768px) {
  .board_table.hio tr > *:nth-child(3) {
    border: 1px solid #ccc;
    background-color: aliceblue;  
  }
}

.board_table tbody {min-height: 620px;}
.board_table tbody tr {transition: 0.3s ease; border-bottom: 1px solid #ccc;}
.board_table tbody tr:hover {background: #fafafa;}

.board_table tbody td {text-align: center; padding: 10px; font-size: 18px;}
.board_table tbody td a {text-align: left; width: 100%; display: block; padding: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}

.board_table tbody td.list_title {text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.board_table tbody td.list_title .lock {display: flex; align-items: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

.pending, .complete, .ing {display: inline-flex; justify-content: center; align-items: center; width: 56px; padding: 4px 0; border-radius: 4px; font-size: 14px; box-sizing: border-box;}
.ing {color: #0082FF; background: #E6F3FF;}
.pending {color: #fff; background: #2c5f88;}
.complete {color: #666; background: #eee;}

/*hio*/
.board_top {width: 100%; display: flex; justify-content: flex-end; align-items: center; margin-bottom: 30px;}
.board_year {width: 150px; height: 50px; border: 1px solid #ccc; border-radius: 999px; padding: 10px 20px; font-size: 20px; font-weight: 700; line-height: 1; color: #222; appearance: auto; -webkit-appearance: menulist; -moz-appearance: menulist; cursor: pointer;}
.board_year:focus {outline: none; border-color: #bdbdbd;}


/*board_view*/
.view {border-bottom: none; margin-bottom: 20px;}

.board_detail_header {display: flex; flex-direction: column; width: 100%; justify-content: center; align-items: flex-start; border-top: 2px solid #777; border-bottom: 1px solid #ccc; padding: 20px;}
.board_num {display: inline-block; margin-right: 15px; line-height: 35px; padding: 0 10px; vertical-align: middle; text-align: center; color: #fff; background: #555; font-weight: 600;}

.board_thumbnail {width: 100%; aspect-ratio: 1.6 / 1; background-color: #f5f5f5; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; margin: 0; padding: 0;}
.board_title {font-size: 24px; font-weight: bold; margin-bottom: 10px; color: #222;}

.board_detail_header .board_info {display: flex; gap: 40px; color: #666; font-size: 16px; margin-bottom: 0;}
.board_info li {font-size: 20px;}
.board_info li strong {margin-right: 6px;}

.board_detail_content {min-height: 400px; display: flex; flex-direction: column; font-size: 16px; line-height: 1.8; color: #333; padding: 20px 30px 20px; border-bottom: 1px solid #e0e0e0;}
.board_detail_content img {display: block; margin: 0 auto; max-width: 100%; width: 100%; max-width: 800px; height: auto; margin-bottom: 20px;}

.board_detail_file {margin-top: 20px; padding-bottom: 20px; font-size: 18px; border-bottom: 1px solid #e0e0e0;}
.board_detail_file .file_download {color: #22577a; margin-left: 10px;}

.board_detail_buttons {display: flex; justify-content: right; margin: 20px 0; text-align: right; gap: 10px;}
.board_detail_buttons .btn_cmn {padding: 5px 20px; background: #3e505c; color: #fff; cursor: pointer; font-size: 20px; transition: background .3s ease; height: 40px;}
.board_detail_buttons .btn_cmn:hover {background: #333;}

/*boar_empty*/
.board_table .board_empty {height: 500px; display: table-row}
.board_table .board_empty td {width: 100%; min-height: 500px; margin: 0 auto; text-align: center; color: #999; font-size: 16px; vertical-align: middle;}
.board_table .board_empty:hover {background: none;}

@media screen and (max-width: 1100px) {
  .gallery_item {width: 48%;}
}

@media screen and (max-width: 768px) {
  /*공통*/
  .board_header {width: 100%; box-sizing: border-box; flex-direction: column; align-items: flex-start; margin-bottom: 10px; }
  .board_total {order: 2;}
  
  .board_info li {font-size: 14px;}
  
  .search_bar {width: 100% !important; max-width: 100%; flex: 1 1 100%; order: 1; margin-bottom: 20px;}
  .search_bar input, .custom_select_wrap select {width: 100%; min-width: 0; box-sizing: border-box;}

  .pagination {flex-wrap: wrap; justify-content: center;}

  .pagination a {width: 30px; height: 30px;}

  /*gallery*/
  .gallery_item {width: 100%;}

  /*board*/
  .board_table thead {display: none;}

  .board_table tbody tr:first-child {border-top: 2px solid #777;}
  .board_table tr {display: flex; flex-direction: row; border-bottom: none; flex-wrap: wrap; padding-bottom: 10px;}
  
  .board_table tbody tr {display: flex;}

  .board_table tr > *:nth-child(2){width:80%;}
  .board_table tbody td a{display: block; width:100%; padding:5px; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

  .board_table td {display: flex; align-items: center; text-align: left !important; font-size: 16px; word-break: break-word; box-sizing: border-box; padding: 5px 10px !important}
  .board_table td.list_num {display: none;}
  .board_table th.list_writer {padding-left: 10px; font-size: 15px; color: #555;}

  #board_detail .board_table .list_title {width: 100%; font-size: 18px;}
  #board_detail .board_table .list_title a {padding: 20px 0;}
  #board_detail .board_table .list_writer {margin-left: 10px;}
  .board_detail_content { padding: 0px; }

  .board_table tbody td.list_writer,
  .board_table tbody td.list_date,
  .board_table tbody td.list_status,
  .board_table thead td.list_period,
  .board_table tbody td.list_views {display: inline-block;}

  .board_table .board_empty td {display: flex; justify-content: center; align-items: center;}
  .board_info li strong {display: block;}

}

@media screen and (max-width: 370px) {
  .board_title {line-height: 1.8; font-size: 20px;}
  .board_info {gap: 20px;}
  .board_info strong {display: none;}
  .board_meta {font-size: 12px; gap: 10px;}
}

.board_write_btn {
  text-align: right;
  margin-top: 10px;
}
.btn-write {
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-write:hover {
  background: #555;
}

.board_write_form {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  background: #fafafa;
}
.form_row {
  margin-bottom: 15px;
}
.form_row label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form_row input[type="text"],
.form_row input[type="date"],
.form_row input[type="file"] {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.btn-submit {
  background: #007bff;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-submit:hover {
  background: #0056b3;
}
.strong {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.input-write {
    width: 100%;
    min-width: 110px;
    height: 38px;
    font-size: 16px;
    color: #222;
    border: 1px solid #d0d0d0;
    padding: 0 8px;
    box-sizing: border-box;
    background: #fff;
}
.write-sec-title {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  width: 20%;
}