/* Search */
.search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.search form {
  max-width: 340px;
  width: 100%;
}
.search-inner {
  border-radius: 50px;
  background: #f5f5f5;
  overflow: hidden;
}

.search .search-input {
  position: relative;
  height: 54px;
  padding-right: 50px;
}

.search input {
  width: 100%;
  height: 100%;
  padding-left: 30px;
  font-size: 1.8rem;
  background: #f5f5f5;
}
.search input::placeholder {
  font-weight: 300;
  font-family: "Outfit", sans-serif;
}
.search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
}
.search button img {
  width: 24px;
  display: block;
}
@media screen and (max-width: 1200px) {
  .search input {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 1024px) {
  .search {
    justify-content: center;
  }
  .search form {
    max-width: 580px;
  }

  .search input {
    padding: 0px 20px;
  }
}
@media screen and (max-width: 768px) {
  .search form {
    max-width: 440px;
  }

  .search .search-input {
    height: 44px;
  }

  .search input {
    font-size: 1.6rem;
  }
  .search button {
    width: 44px;
  }
}
@media screen and (max-width: 576px) {
  .search form {
    max-width: 100%;
  }

  .search .search-select {
    width: 80px;
    height: 36px;
  }

  .search .search-input {
    height: 36px;
  }

  .search input {
    padding: 0px 16px;
    font-size: 1.4rem;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
}

.pagination a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  margin: 0px 7px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  text-align: center;
  font-size: 1.8rem;
  transition: all ease-out 0.15s;
}

.pagination a:not(.current) {
  cursor: pointer;
}

.pagination a.current {
  color: var(--primary-color-1);
  font-weight: 800;
}

.pagination a.pagination-prev,
.pagination a.pagination-next {
  background-color: #f5f5f5;
}

.pagination a.pagination-prev {
  background-image: url("/asset/img/bbs/pg_prev.svg");
  background-size: cover;
}

.pagination a.pagination-next {
  background-image: url("/asset/img/bbs/pg_next.svg");
  background-size: cover;
}

@media screen and (max-width: 1200px) {
  .pagination a {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 1024px) {
  .pagination {
    margin-top: 80px;
  }

  .pagination a {
    width: 30px;
    height: 30px;
    margin: 0px 4px;
  }
}
@media screen and (max-width: 768px) {
  .pagination {
    margin-top: 60px;
  }

  .pagination a {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 576px) {
  .pagination {
    margin-top: 40px;
  }

  .pagination a {
    width: 26px;
    height: 26px;
    margin: 0px 2px;
    font-size: 1.4rem;
  }
}

/* News List */
.bbs-news {
  padding-bottom: 150px;
}
.bbs-news .table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #898989;
}

.bbs-news .table tr {
  border-bottom: 1px solid #d9d9d9;
}

.bbs-news .table th,
.bbs-news .table td {
  height: 60px;
  padding: 10px;
  font-size: 1.8rem;
  font-weight: 400;
}

.bbs-news .table td a {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bbs-news.inquiry-list .table td.name span {
  display: inline-block;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bbs-news .table .status {
  color: var(--primary-color-1);
}

.bbs-news .table .status.pending {
  color: #de0000;
}

@media screen and (max-width: 1200px) {
  .bbs-news .table th,
  .bbs-news .table td {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 1024px) {
  .bbs-news .table th,
  .bbs-news .table td {
    height: 50px;
    padding: 6px;
  }
}
@media screen and (max-width: 768px) {
  .bbs-news {
    padding-bottom: 70px;
  }
  .bbs-news .table thead {
    display: none;
  }

  .bbs-news .table {
    display: block;
  }

  .bbs-news .table tbody {
    display: block;
  }

  .bbs-news .table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 6px 4px;
  }

  .bbs-news .table th,
  .bbs-news .table td {
    position: relative;
    height: auto;
    padding: 4px 6px;
    font-size: 1.4rem;
  }

  .bbs-news .table td.no {
    order: 2;
  }

  .bbs-news .table td.no::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background-color: #999;
  }

  .bbs-news .table td.subject {
    width: 100%;
    order: 1;
  }

  .bbs-news .table td.data {
    order: 3;
  }
  .bbs-news.inquiry-list .table td.name {
    order: 3;
    text-align: left;
    width: 60px;
  }
  .bbs-news.inquiry-list .table td.status {
    order: 4;
  }
  .bbs-news.inquiry-list .table td.data {
    order: 5;
  }
}
@media screen and (max-width: 576px) {
  .bbs-news .table tr {
    padding: 4px 2px;
  }

  .bbs-news .table th,
  .bbs-news .table td {
    font-size: 1.3rem;
  }
}

/* Board Case List */
.board-case {
  padding: 0 0 150px;
}
.board-case .list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 24px;
  row-gap: 30px;
}

.board-case .list li {
  background: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
}
.board-case .list li a {
  display: block;
}

.board-case .list .thumb {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 484 / 380;
  overflow: hidden;
}

.board-case .list .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.board-case .list li .con {
  padding: 40px 30px;
}

.board-case .list .subject {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}
.board-case .list .text {
  font-size: 2rem;
  color: #474747;
  line-height: 1.6;
  margin-top: 20px;

  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (min-width: 1201px) {
  .board-case .list li:hover .thumb img {
    transform: scale(1.08);
  }
}
@media screen and (max-width: 1200px) {
  .board-case .list .subject {
    font-size: 1.8rem;
  }
  .board-case .list .text {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 768px) {
  .board-case{
        padding: 0 0 70px;
  }
  .board-case .list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 30px;
  }

  .board-case .list li .con {
    padding: 24px 20px;
  }
  .board-case .list .subject {
    font-size: 1.6rem;
  }
  .board-case .list .text {
    margin-top: 10px;
    font-size: 1.4rem;
  }
}

/* Board View */

/* Board View */
.bbs-view {
  padding-bottom: 150px;
}
.bbs-view-head {
  padding: 42px 0px;
  border-top: 2px solid #898989;
  border-bottom: 1px solid #b1b1b1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.bbs-view-head .notice {
  color: var(--primary-color-1);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--primary-color-1);
}
.bbs-view-head .subject {
  margin-bottom: 30px;
}
.bbs-view-area {
  min-height: 380px;
  padding: 30px 0px;
}

.bbs-view-file {
  padding: 20px 0px;
  border-bottom: 1px solid #d9d9d9;
}

.bbs-view-file .file {
  padding: 20px 30px;
  border-radius: 10px;
  background-color: #f5f5f5;
}

.bbs-view-file .file a {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bbs-view-file .file i {
  display: block;
  width: 20px;
  height: 20px;
  background: url("/asset/img/common/ico_file.svg") no-repeat center/contain;
}

.bbs-view-file .file span {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: calc(100% - 40px);
}

.bbs-view-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}
.bbs-view-nav a {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}
.bbs-view-nav .nav-next,
.bbs-view-nav .nav-prev {
  width: 100%;
  max-width: 196px;
}
.bbs-view-nav .nav-next {
  align-items: flex-end;
}
.bbs-view-nav .nav-prev .btn,
.bbs-view-nav .nav-next .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #e6f1fd;
  height: 50px;
  width: 140px;
  border-radius: 30px;
}

.bbs-view-nav .nav-prev i,
.bbs-view-nav .nav-next i {
  display: flex;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
}

.bbs-view-nav .nav-prev i {
  background-position: center;
  background-image: url("/asset/img/bbs/view_btn_prev.svg");
}

.bbs-view-nav .nav-next i {
  background-position: center;
  background-image: url("/asset/img/bbs/view_btn_next.svg");
}

.bbs-view-nav .nav-prev span,
.bbs-view-nav .nav-next span {
}

.bbs-view-nav .nav-prev p,
.bbs-view-nav .nav-next p {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.bbs-view-nav .nav-prev {
  left: 0;
}

.bbs-view-nav .nav-next {
  right: 0;
  text-align: right;
}

.bbs-view-nav .nav-back {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 320px;
  height: 60px;
  background-color: var(--primary-color-1);
  font-weight: 700;
  color: #fff;
  border-radius: 60px;
}

.bbs-view-nav .nav-edit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 60px;
  background-color: #fff;
  font-weight: 700;
  border: 1px solid var(--primary-color-1);
  color: var(--primary-color-1);
  border-radius: 60px;
}

@media screen and (max-width: 1200px) {
  .bbs-view-nav .nav-prev,
  .bbs-view-nav .nav-next {
    max-width: 320px;
  }
.bbs-view-nav .nav-edit,
  .bbs-view-nav .nav-back {
    font-size: 1.8rem;
  }
}
@media screen and (max-width: 1024px) {
  .bbs-view-head {
    padding: 20px 0px;
  }

  .bbs-view-head .data {
    padding-left: 20px;
  }

  .bbs-view-head .data::before {
    width: 16px;
    height: 14px;
    background-size: auto 14px;
  }

  .bbs-view-area {
    min-height: 300px;
    padding: 20px 0px;
  }

  .bbs-view-file {
    padding: 14px 0px;
  }

  .bbs-view-file .file {
    padding: 14px 20px;
  }

  .bbs-view-file .file a {
    gap: 12px;
  }

  .bbs-view-file .file i {
    width: 14px;
    height: 14px;
    background-size: auto 14px;
  }

  .bbs-view-file .file span {
    width: calc(100% - 26px);
  }

  .bbs-view-nav {
    margin-top: 30px;
  }

  .bbs-view-nav .nav-prev,
  .bbs-view-nav .nav-next {
    max-width: 260px;
  }

  .bbs-view-nav .nav-prev i,
  .bbs-view-nav .nav-next i {
    width: 24px;
    height: 24px;
    background-size: 16px;
  }

  .bbs-view-nav .nav-prev span,
  .bbs-view-nav .nav-next span {
    margin: 14px 0px;
  }
.bbs-view-nav .nav-edit,
  .bbs-view-nav .nav-back {
    max-width: 240px;
    height: 60px;
  }
}
@media screen and (max-width: 768px) {
  .bbs-view-head .data::before {
    width: 14px;
    height: 12px;
    background-size: auto 12px;
  }

  .bbs-view-file .file a {
    gap: 8px;
  }

  .bbs-view-file .file span {
    width: calc(100% - 22px);
  }

  .bbs-view-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .bbs-view-nav .nav-prev,
  .bbs-view-nav .nav-next {
    max-width: none;
    width: calc(50% - 10px);
    order: 1;
  }
.bbs-view-nav .nav-edit,
  .bbs-view-nav .nav-back {
    order: 3;
    position: relative;
    left: unset;
    bottom: unset;
    transform: none;
    max-width: 180px;
    height: 54px;
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 576px) {
  .bbs-view-head {
    padding: 14px 0px;
  }

  .bbs-view-head .data {
    padding-left: 14px;
  }

  .bbs-view-head .data::before {
    width: 12px;
    height: 10px;
    background-size: auto 10px;
  }

  .bbs-view-area {
    padding: 14px 0px;
  }

  .bbs-view-file {
    padding: 10px 0px;
  }

  .bbs-view-file .file {
    padding: 10px 14px;
  }

  .bbs-view-file .file a {
    gap: 6px;
  }

  .bbs-view-file .file i {
    width: 12px;
    height: 12px;
    background-size: auto 12px;
  }

  .bbs-view-file .file span {
    width: calc(100% - 18px);
  }

  .bbs-view-nav {
    margin-top: 20px;
  }

  .bbs-view-nav .nav-prev i,
  .bbs-view-nav .nav-next i {
    height: 8px;
    background-size: auto 8px;
  }

  .bbs-view-nav .nav-prev span,
  .bbs-view-nav .nav-next span {
    margin: 10px 0px;
  }
.bbs-view-nav .nav-edit,
  .bbs-view-nav .nav-back {
    max-width: 140px;
    height: 40px;
    font-size: 1.4rem;
  }
}
/* Board Modal */
.bbs-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  visibility: hidden;
  z-index: 9999;
}

.bbs-modal .modal-con {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.bbs-modal .modal-con-wrap {
  position: relative;
  width: 100%;
}

.bbs-modal .swiper {
  overflow: hidden;
  width: 100%;
}

.bbs-modal .swiper .img {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: calc(559 / 380 * 100%);
  overflow: hidden;
  border-radius: 20px;
}

.bbs-modal .swiper .img img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bbs-modal .swiper .con {
  margin-top: 30px;
}

.bbs-modal .swiper .subject {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.bbs-modal .prev,
.bbs-modal .next {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  z-index: 10;
}

.bbs-modal .prev {
  left: -100px;
  background-image: url("/asset/img/bbs/si_prev.svg");
}

.bbs-modal .next {
  right: -100px;
  background-image: url("/asset/img/bbs/si_next.svg");
}

.bbs-modal .swiper-button-disabled {
  display: none;
}

.bbs-modal .modal-bak {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.bbs-modal.open {
  display: flex;
  align-items: center;
  visibility: visible;
}

@media screen and (max-width: 1200px) {
  .bbs-modal .swiper .subject {
    font-size: 2rem;
  }
}
@media screen and (max-width: 1024px) {
  .bbs-modal .prev,
  .bbs-modal .next {
    width: 40px;
    height: 40px;
  }

  .bbs-modal .prev {
    left: -60px;
  }

  .bbs-modal .next {
    right: -60px;
  }

  .bbs-modal .swiper .con {
    margin-top: 20px;
  }
}
@media screen and (max-width: 768px) {
  .bbs-modal .swiper .subject {
    font-size: 1.8rem;
  }
}
@media screen and (max-width: 576px) {
  .bbs-modal .modal-con {
    max-width: 220px;
  }

  .bbs-modal .modal-con-wrap {
    max-width: 220px;
  }

  .bbs-modal .prev,
  .bbs-modal .next {
    width: 30px;
    height: 30px;
  }

  .bbs-modal .prev {
    left: -40px;
  }

  .bbs-modal .next {
    right: -40px;
  }

  .bbs-modal .swiper .img {
    padding-top: calc(323 / 220 * 100%);
  }

  .bbs-modal .swiper .con {
    margin-top: 12px;
  }

  .bbs-modal .swiper .subject {
    font-size: 1.4rem;
  }
}
/*  */

/* 문의하기 뷰 */
.inquiry-view {
  padding-bottom: 150px;
}
.inquiry-view .bbs-view-area {
  padding: 40px 0;
  border-bottom: 1px solid #898989;
}
.inquiry-view .bbs-view-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.inquiry-view .bbs-view-nav .nav-back {
  position: initial;
  left: initial;
  top: initial;
  transform: initial;
}
.inquiry-view .view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.inquiry-view .view-title {
  width: 90%;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

/* 메타 */
.inquiry-view .view-meta {
  padding: 16px 0;
  border-bottom: 1px solid #898989;
}
.inquiry-view .meta {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 50px;
  line-height: 2.3;
}

/* 답변 */
.view-reply {
  margin-top: 60px;
  padding: 40px;
  border: 1px solid #b1b1b1;
  background: #f5f5f5;
  min-height: 300px;
}
.reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #898989;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
  .inquiry-view .bbs-view-area {
    min-height: 300px;
    padding: 20px 0px;
  }
  .view-reply {
    margin-top: 40px;
    padding: 20px;

    min-height: 250px;
  }
}
@media screen and (max-width: 992px) {
}
@media (max-width: 768px) {
  .inquiry-view .view {
    padding: 16px;
  }
  .inquiry-view .view-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .inquiry-view .meta {
    grid-template-columns: 120px 1fr;
  }
  .view-reply {
    margin-top: 32px;
    padding: 16px;

    min-height: 200px;
  }
}

@media (max-width: 576px) {
  .inquiry-view .bbs-view-area {
    padding: 14px 0px;
  }
}
