/* ==============================================================
   Notice Board Skin — view (detail) styles + pagination override
   ============================================================== */

/* ---------------------------------------------------------------
   View (detail) page  — mirrors promo-detail-* from layout.css
   --------------------------------------------------------------- */

.notice-detail-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.notice-detail-head {
  padding: 24px 40px;
  border-top: 2px solid #222;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.notice-detail-title {
  color: #000;
  font-family: Pretendard, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  margin-bottom: 12px;
}

.notice-detail-meta {
  display: flex;
  gap: 20px;
}

.notice-detail-meta span {
  color: #888;
  font-family: Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.notice-detail-meta span strong {
  color: #555;
  font-weight: 500;
}

.notice-detail-content {
  padding: 40px;
  border-bottom: 1px solid #eee;
  color: #000;
  font-family: Pretendard, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.notice-detail-content p {
  margin-bottom: 20px;
}

.notice-detail-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.notice-detail-files {
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
}

/* disabled nav buttons */
.ui-board-nav-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1200px) {
  .notice-detail-inner {
    padding: 0 20px 60px;
  }

  .notice-detail-head {
    padding: 24px 32px;
  }

  .notice-detail-title {
    font-size: 28px;
    line-height: 40px;
  }

  .notice-detail-content {
    padding: 32px;
  }

  .notice-detail-files {
    padding: 20px 32px;
  }
}

@media (max-width: 768px) {
  .notice-detail-inner {
    padding: 0 20px 40px;
  }

  .notice-detail-head {
    padding: 20px 0;
    margin-bottom: 24px;
  }

  .notice-detail-title {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 12px;
    word-break: keep-all;
  }

  .notice-detail-meta {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .notice-detail-meta span {
    font-size: 13px;
    line-height: 20px;
  }

  .notice-detail-content {
    padding: 24px 0;
    font-size: 15px;
    line-height: 24px;
    word-break: keep-all;
  }

  .notice-detail-content p {
    margin-bottom: 16px;
  }

  .notice-detail-files {
    padding: 16px 0;
  }
}

/* ---------------------------------------------------------------
   Pagination — framework produces .adm-pagination/.adm-pagebtn HTML
   --------------------------------------------------------------- */

.notice-pagination .adm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Page number links */
.notice-pagination a.adm-pagebtn {
  position: relative;
  color: #868686;
  font-family: "Wanted Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.notice-pagination a.adm-pagebtn:hover {
  color: #000;
}

/* Current page */
.notice-pagination .adm-pagebtn.is-active {
  position: relative;
  color: #000;
  font-family: "Wanted Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 2px;
}

.notice-pagination .adm-pagebtn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: #000;
  border-radius: 2px;
}

/* Prev arrow */
.notice-pagination .adm-pagebtn--prev {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 20px;
  background: url('/images/layout/page-arrow-left.svg') no-repeat center / contain;
  font-size: 0;
  color: transparent;
}

.notice-pagination .adm-pagebtn--prev a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  color: transparent;
}

/* Next arrow */
.notice-pagination .adm-pagebtn--next {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-left: 20px;
  background: url('/images/layout/page-arrow-right.svg') no-repeat center / contain;
  font-size: 0;
  color: transparent;
}

.notice-pagination .adm-pagebtn--next a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  color: transparent;
}

/* Hide 처음/마지막 */
.notice-pagination .adm-pagination > span.adm-pagebtn:not(.adm-pagebtn--prev):not(.adm-pagebtn--next):not(.is-active) {
  display: none;
}

@media (max-width: 768px) {
  .notice-pagination .adm-pagination {
    gap: 12px;
    flex-wrap: wrap;
  }

  .notice-pagination .adm-pagebtn--prev {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }

  .notice-pagination .adm-pagebtn--next {
    width: 24px;
    height: 24px;
    margin-left: 8px;
  }
}
