.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, .board_container {max-width: 1280px; width: 100%; margin: 20px auto;}

.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: block; height: 100%; border-radius: 8px; background: #666; color: #fff; font-weight: 600; text-align: center;}
.pagination a {padding: 5px 13px; font-size: 16px;}
.pagination .pag_pd {width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; padding: 0;}
.pagination i {font-size: 20px;}

/*gallery*/
.gallery_container {width: 100%; display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; box-sizing: border-box;}

.gallery_item {width: 32%; height: 400px; margin-bottom: 20px;}
.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: 10px;}
.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: 18px 10px; font-weight: 700;}

.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.job thead th.list_title {width: 50%;}
.board_table.job thead th.list_status {width: 8%;}
.board_table.job thead th.list_period {width: 20%;}

.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;}
.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;}

/*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 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 {display: flex; margin-top: 20px; padding-bottom: 20px; font-size: 18px; border-bottom: 1px solid #e0e0e0;}
.board_detail_file .file_download {display: inline rgb(23, 80, 106); margin-left: 20px; color: #22577a; }

.board_detail_buttons {display: flex; justify-content: right; margin: 20px 0; text-align: right;}
.board_detail_buttons .btn_cmn {padding: 5px 20px; margin-left: 10px; background: #3e505c; color: #fff; border: none; border-radius: 999px; cursor: pointer; font-size: 16px; transition: background .3s ease;}
.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:90%;}
  .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}
  .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_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;}
  
}