@import url('../information.css');

@media (min-width: 1025px) {
  .info-page-top--exh {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    background: none !important;
  }

  .info-page-top--exh .header-bg {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    align-self: start;
    background: #011D20 !important;
    background-color: #011D20 !important;
    box-shadow: none !important;
  }

  .info-page-top--exh .exh-hero {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
    width: 100%;
    min-width: 0;
  }

  .info-page-top--exh .header-inner {
    background: transparent !important;
  }

  .info-page-top--exh .info-subnav {
    grid-row: 3;
    grid-column: 1;
    z-index: 2;
    margin-top: 0 !important;
  }
}

.info-page-top--center .nav-item--current > .nav-link {
  color: #fdd000;
}

.exh-hero {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 64px;
  box-sizing: border-box;
  overflow: hidden;
}

.exh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  background-color: #fff;
}

.exh-hero__bg img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.45) contrast(0.92) saturate(0.85);
}

.exh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
  opacity: 1;
  pointer-events: none;
}

.exh-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #000 !important;
}

.exh-hero__inner h1 {
  color: #000 !important;
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 800;
  line-height: 130%;
  letter-spacing: -0.03em;
}

.exh-hero__inner p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 168%;
  letter-spacing: -0.02em;
  color: #000 !important;
}

/* info-subnav spacing/width is standardized in information.css */

/* ----- 본문 ----- */
.notice-content {
  background: #fff;
  padding: 64px 24px 96px;
}

.notice-content-inner {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 플로팅 */
.notice-floats {
  position: fixed;
  top: 50%;
  right: max(16px, calc((100vw - var(--content-max-width)) / 2 + 16px));
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-floats__online {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0F6055;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.notice-floats__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* 게시판 헤더 */
.notice-board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.notice-board__head .content-title-wrap {
  display: inline-block;
  margin-bottom: 0;
  flex-shrink: 0;
}

.notice-board__title {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #011D20;
}

/* 검색 */
.notice-search {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.notice-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.notice-search__icon {
  position: absolute;
  left: 12px;
  color: #999;
  pointer-events: none;
}

.notice-search__input {
  width: 260px;
  max-width: 100%;
  height: 44px;
  padding: 0 12px 0 40px;
  border: 1px solid #ddd;
  border-right: none;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  box-sizing: border-box;
}

.notice-search__input::placeholder {
  color: #aaa;
}

.notice-search__input:focus {
  outline: none;
  border-color: #0F6055;
}

.notice-search__filter {
  position: relative;
}

.notice-search__select {
  height: 44px;
  min-width: 88px;
  padding: 0 32px 0 16px;
  border: none;
  background: #228380;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 테이블 */
.notice-table-wrap {
  margin-bottom: 40px;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.notice-table thead tr {
  border-top: 2px solid #011D20;
  border-bottom: 1px solid #ddd;
}

.notice-table th {
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #333;
  text-align: center;
  background: #fff;
}

.notice-table__col-no {
  width: 88px;
}

.notice-table__col-date {
  width: 120px;
}

.notice-table__col-views {
  width: 100px;
}

.notice-table__col-title {
  text-align: left;
}

.notice-table tbody tr {
  border-bottom: 1px solid #eee;
}

.notice-table td {
  padding: 16px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: center;
  vertical-align: middle;
}

.notice-table td.notice-table__title-cell {
  text-align: left;
}

.notice-table__link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.notice-table__title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.notice-table__attach {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  color: #888;
}

.notice-table__link:hover {
  color: #0F6055;
  text-decoration: underline;
}

.notice-table__link:hover .notice-table__attach {
  color: #0F6055;
}

.notice-table tr.is-pinned td {
  font-weight: 800;
  color: #111;
}

.notice-table tr.is-pinned .notice-table__link {
  font-weight: 800;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.notice-table__empty {
  margin: 48px 0;
  text-align: center;
  font-size: 15px;
  color: #888;
}

/* 페이지네이션 */
.notice-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.notice-pagination__btn,
.notice-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.notice-pagination__page.is-active {
  border-color: #0F6055;
  background: #0F6055;
  color: #fff;
  font-weight: 800;
}

.notice-pagination__btn:disabled,
.notice-pagination__btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

a.notice-pagination__btn,
a.notice-pagination__page {
  text-decoration: none;
}

.notice-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: #999;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .notice-floats {
    right: 16px;
  }
}

@media (max-width: 767px) {
  .notice-content {
    padding: 28px 16px 64px;
  }

  .notice-board__head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .notice-search {
    width: 100%;
  }

  .notice-search__field {
    flex: 1;
  }

  .notice-search__input {
    width: 100%;
  }

  .notice-table-wrap {
    margin-bottom: 32px;
  }

  .notice-table thead {
    display: none;
  }

  .notice-table,
  .notice-table tbody {
    display: block;
    width: 100%;
  }

  .notice-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .notice-table tbody tr:last-child {
    border-bottom: 1px solid #e8e8e8;
  }

  .notice-table td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
    vertical-align: top;
  }

  .notice-table td:first-child {
    order: 1;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    color: #111;
  }

  .notice-table td.notice-table__date-cell {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
  }

  .notice-table td.notice-table__views-cell {
    order: 3;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
  }

  .notice-table td.notice-table__title-cell {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    margin-top: 10px;
    text-align: left;
  }

  .notice-table__link {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #111;
  }

  .notice-table__title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .notice-table tr.is-pinned .notice-table__link {
    font-weight: 800;
  }

  .notice-table tr.is-pinned td {
    font-weight: inherit;
  }

  .notice-badge {
    min-width: 0;
    padding: 3px 8px;
    border-radius: 2px;
    background: #c62828;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .notice-table__col-no,
  .notice-table__col-views,
  .notice-table__col-date {
    width: auto;
  }

  .notice-pagination {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
  }

  .notice-pagination::-webkit-scrollbar {
    display: none;
  }

  .notice-pagination__btn,
  .notice-pagination__page {
    flex-shrink: 0;
    min-width: 30px;
    height: 32px;
    padding: 0 6px;
    font-size: 13px;
  }

  .notice-pagination__ellipsis {
    flex-shrink: 0;
    min-width: 18px;
    height: 32px;
    font-size: 12px;
  }
}

/* 게시글 상세 */
.board-view__head {
  margin-bottom: 20px;
}

.board-view__back {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #0F6055;
  text-decoration: none;
}

.board-view__back:hover {
  text-decoration: underline;
}

.board-view__error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #fff2f0;
  color: #cf1322;
  font-size: 14px;
}

.board-view__article {
  border: 1px solid #e8e8e8;
  background: #fff;
}

.board-view__header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #ececec;
  background: #f7f7f7;
}

.board-view__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
  color: #111;
  letter-spacing: -0.02em;
}

.board-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
  font-size: 13px;
  color: #666;
}

.board-view__meta div {
  display: flex;
  gap: 8px;
}

.board-view__meta dt {
  margin: 0;
  font-weight: 700;
  color: #999;
}

.board-view__meta dd {
  margin: 0;
}

.board-view__body {
  padding: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-break: break-word;
}

.board-view__body img {
  max-width: 100%;
  height: auto;
}

.board-view__body table {
  width: 100%;
  border-collapse: collapse;
}

.board-view__body table th,
.board-view__body table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.board-view__files {
  margin: 0;
  padding: 16px 24px 24px;
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.board-view__files-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #333;
}

.board-view__file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-view__file-item {
  margin: 0 0 8px;
}

.board-view__file-item:last-child {
  margin-bottom: 0;
}

.board-view__file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: #0F6055;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.board-view__file-link:hover {
  text-decoration: underline;
}

.board-view__file-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #666;
}

.board-view__file-name--muted {
  color: #888;
  font-size: 14px;
}
