/*공통*/
.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; width: 100%; max-width: 600px; align-items: center; border: 2px solid #444; 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 {width:120px;height: 44px;border-radius:0; appearance: none; -webkit-appearance: none; -moz-appearance: none; border: none; padding: 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: 15px; top: 50%; transform: translateY(-50%); pointer-events: none;}

.search_bar input[type="text"] {flex: 1; border: none; font-size: 16px; padding: 0; 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;}

/*페이지네이션*/
.pagination {display:flex; justify-content:center; align-items:center; margin:30px 0; width:auto;}
.pagination ul {display:flex; gap:5px; padding: 0; margin: 0;}
.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; justify-content: center; align-items: center; height:100%; border-radius:8px; background:#666; color:#fff; font-weight:600; text-align:center;}
.pagination a {padding:5px 13px; font-size:16px;}

/* 화살표 버튼 (처음, 이전, 다음, 끝) */
.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%; 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);}

/*gallery_empty*/
.gallery .inner {flex-direction: column;}

/*board_lists new*/
.notice-table{table-layout:fixed;}
.notice-table tbody tr:first-child{border-top:2px solid #222;}
.notice-table tbody tr{border-bottom:1px solid #e9ecef;}
.notice-table td{padding:15px 10px;vertical-align:middle;}
.notice-table tbody td:nth-child(1){width: 6%;font-size:28px;text-align:center;color:#A5C2C5;font-weight:700;}
.notice-table tbody td:nth-child(2){width: 64%; text-align:left;}
.notice-table tbody td:nth-child(2) a{display:flex;align-items:center;gap:6px;max-width:100%;color:#222;line-height:1.6;}
.notice-table tbody td:nth-child(2) a:hover{color:#0B6A71;}
.notice-table tbody td:nth-child(3){width:15%;text-align:right;color:#6c757d;}
.notice-table tbody td:nth-child(3) span:nth-child(2){margin:0 10px;color:#c8c8c8;}
.notice-table tbody td:nth-child(4){width: 6%;text-align:center;}

.btn-arrow{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #d9d9d9;border-radius:50%;color:#9aa0a6;text-decoration:none;transition:background .2s ease,border-color .2s ease,color .2s ease;}
.notice-table tbody td:nth-child(2) a:hover .btn-arrow{border-color:transparent; background:#238070; color:#fff;}
.btn-arrow.active{border-color:#238070;background:#238070;color:#fff;}

/*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; background: #3e505c; color: #fff; border-radius: 999px; cursor: pointer; font-size: 16px; transition: background .3s ease;}
.board_detail_buttons .btn_cmn:hover {background: #333;}

/*boar no data*/
.board_empty {width: 100%; height: 500px; display: flex; justify-content: center; align-items: center; color: #999; font-size: 16px; margin: 0 auto; border-top: 2px solid #000; border-bottom: 1px solid #eee; margin-bottom: 20px;}

@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: 120px; box-sizing: border-box;}

  .pagination {flex-wrap: wrap; justify-content: center;}

  .pagination a,
  .pagination .active,
  .pagination .pag_pd,
  .pagination li:first-child a,
  .pagination li:nth-child(2) a,
  .pagination li:nth-last-child(2) a,
  .pagination li:last-child a {display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; line-height:1; box-sizing:border-box;}

  /*gallery*/
  .gallery_item {width: 100%;}

  /*board new*/
.notice-table{width:100%;}
.notice-table tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #e9ecef;width:100%;}
.notice-table tbody td{display:block;border:0;padding:6px 0;}
.notice-table tbody td:nth-child(1){order:1;flex:0 0 auto;font-size:22px;color:#A5C2C5;font-weight:700; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.notice-table tbody td:nth-child(2){order:2;flex:1 1 0;min-width:0;padding-right:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.notice-table tbody td:nth-child(2) a{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#222;}
.notice-table tbody td:nth-child(4){order:3;flex:0 0 30px;display:flex;justify-content:flex-end;}
.notice-table tbody td:nth-child(3){order:4;flex:0 0 100%;padding-left: 10px; font-size:14px;color:#6c757d;display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.notice-table tbody td:nth-child(3) .bar{margin:0 6px;color:#c8c8c8;}
.btn-arrow{width:30px;height:30px;}
  
}

@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;}
}

/* 게시판 목록 공통: 1차 작업 전 엠텍·썬시멘트의 board.css 기준. */
.publishing-board {font-family:'Pretendard GOV', sans-serif; line-height:1.5; letter-spacing:-0.5px; color:#222;}
.publishing-board a {color:inherit; letter-spacing:inherit;}
.publishing-board .board_header {letter-spacing:-0.3px; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; padding: 0; box-sizing: border-box;}
.publishing-board .board_total {font-size: 18px; font-weight: 700;}
.publishing-board .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;}
.publishing-board .custom_select_wrap {position: relative; display: flex; align-items: center; flex:0 0 auto;}
.publishing-board .custom_select_wrap select {width:auto; min-width:0; 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;}
.publishing-board .custom_select_wrap::after {content: ""; font-family: "remixicon"; font-size: 22px;  position: absolute; right: -10px; top: 50%; transform: translateY(-50%); pointer-events: none;}
.publishing-board .search_bar input[type="text"] {flex:1 1 0; min-width:0; border: none; font-size: 16px; padding: 0 20px; outline: none; height: 48px; font-family: inherit; box-sizing: border-box;}
.publishing-board .search_bar button {flex:0 0 auto; align-self:stretch; align-items:center; justify-content:center; border:none; background:transparent; padding:0 16px;}
.publishing-board .search_bar .ri-search-line {font-size:20px; line-height:1;}
.publishing-board .ri-search-line:before {font-size: 20px;}
.publishing-board .board_container {letter-spacing:-0.3px; max-width: 1280px; width: 100%; margin: 20px auto;}
.publishing-board .pagination {letter-spacing:-0.3px; display:flex; justify-content:center; align-items:center; margin:30px 0; width:fit-content; align-self:center;}
.publishing-board .pagination ul {display:flex; gap:5px;}
.publishing-board .pagination li {display:flex; justify-content:center; align-items:center; border:none; color:#ccc; border-radius:8px; transition:0.3s ease; white-space:nowrap;}
.publishing-board .pagination li:hover:not(.active) {background:#666; color:#fff;}
.publishing-board .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;}
.publishing-board .pagination a {padding:5px 13px; font-size:16px;}
.publishing-board .pagination a:hover {color: #fff;}
.publishing-board .pagination li:first-child a, .publishing-board .pagination li:nth-child(2) a, .publishing-board .pagination li:nth-last-child(2) a, .publishing-board .pagination li:last-child a {width:35px; height:35px; display:flex; justify-content:center; align-items:center; padding:0;}
.publishing-board .pagination i {font-size:20px;}
.publishing-board .board_box {display: flex; flex-direction: column; justify-content: flex-start; min-height: 520px; box-sizing: border-box;}
.publishing-board .board_table {width: 100%; border-collapse: collapse; table-layout: fixed; color: #666; font-size: 16px;}
.publishing-board .board_table thead {border-top: 2px solid #777; border-bottom: 1px solid #ccc;}
.publishing-board .board_table thead th {text-align:center; padding:18px 10px; font-size:16px; font-weight:700; line-height:1.5; color:inherit; background:transparent;}
.publishing-board .board_table thead th.list_num {width: 4%;}
.publishing-board .board_table thead th.list_title {width: 45%;}
.publishing-board .board_table thead th.list_date {width: 10%;}
.publishing-board .board_table thead th.list_views {width: 6%}
.publishing-board .board_table thead th.list_writer {width: 10%}
.publishing-board .board_table thead th.list_status {width: 9%;}
.publishing-board .board_table thead th.list_file {width: 6%;}
.publishing-board .board_table tbody {min-height: 620px;}
.publishing-board .board_table tbody tr {transition: 0.3s ease; border-bottom: 1px solid #ccc;}
.publishing-board .board_table tbody tr:hover {background: #fafafa;}
.publishing-board .board_table tbody td {text-align:center; padding:10px; font-size:16px; line-height:1.5;}
.publishing-board .board_table tbody td a, .publishing-board .board_table tbody td .board_subject {text-align: left; width: 100%; display: block; padding: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.publishing-board .board_table tbody td.list_title {text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.publishing-board .board_table tbody td.list_title .lock {display: flex; align-items: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.publishing-board .board_table .board_empty {height: 500px; display: table-row}
.publishing-board .board_table .board_empty td {width: 100%; min-height: 500px; margin: 0 auto; text-align: center; color: #999; font-size: 16px; vertical-align: middle;}
.publishing-board .board_table .board_empty:hover {background: none;}
@media screen and (max-width: 768px) {
  .publishing-board .board_header {width: 100%; box-sizing: border-box; flex-direction: column; align-items: flex-start; margin-bottom: 10px;}
  .publishing-board .board_total {order: 2;}
  .publishing-board .search_bar {width: 100%; max-width: 100%; flex: 1 1 100%; order: 1; margin-bottom: 20px;}
  .publishing-board .search_bar input, .publishing-board .custom_select_wrap select {width: 100%; min-width: 0; box-sizing: border-box;}
  .publishing-board .pagination {flex-wrap: wrap; justify-content: center;}
  .publishing-board .pagination a,
  .publishing-board .pagination .active,
  .publishing-board .pagination .pag_pd,
  .publishing-board .pagination li:first-child a,
  .publishing-board .pagination li:nth-child(2) a,
  .publishing-board .pagination li:nth-last-child(2) a,
  .publishing-board .pagination li:last-child a {display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; line-height:1; box-sizing:border-box;}
  .publishing-board .board_table thead {display: none;}
  .publishing-board .board_table tbody tr:first-child {border-top: 2px solid #777;}
  .publishing-board .board_table tr {display: flex; flex-direction: row; border-bottom: none; flex-wrap: wrap; padding-bottom: 10px;}
  .publishing-board .board_table tbody tr {display: flex;}
  .publishing-board .board_table tr > *:nth-child(2) {width:90%;}
  .publishing-board .board_table tbody td a, .publishing-board .board_table tbody td .board_subject {display: block; width:100%; padding:5px; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .publishing-board .board_table td {display:flex; align-items:center; word-break:break-word; box-sizing:border-box;}
  .publishing-board .board_table tbody td {text-align:left; padding:5px 10px;}
  .publishing-board .board_table td.list_num {display: none;}
  .publishing-board .board_table th.list_writer {padding-left: 10px; font-size: 15px; color: #555;}
  .publishing-board .board_table tbody td.list_writer, .publishing-board .board_table tbody td.list_date, .publishing-board .board_table tbody td.list_status, .publishing-board .board_table thead td.list_period, .publishing-board .board_table tbody td.list_views {display: inline-block;}
  .publishing-board .board_table .board_empty td {display: flex; justify-content: center; align-items: center;}
}

@media screen and (max-width:768px) {
  html:has(.pagination), body:has(.pagination) {min-width:0;}
  .pagination i {display:flex; align-items:center; justify-content:center; line-height:1;}
  .pagination i::before {display:block; line-height:1;}
}
