@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");
.notice-detail-page {
  --nd-green: #176b45;
  --nd-green-dark: #105437;
  --nd-text: #20352a;
  --nd-muted: #738078;
  --nd-border: #e2eae4;
  color: var(--nd-text);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: #fff;
}
.notice-detail-page *,
.notice-detail-page *::before,
.notice-detail-page *::after {
  box-sizing: border-box;
}
.notice-detail-page a {
  color: inherit;
  text-decoration: none;
}
.nd-container {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}
.nd-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 22%,
      rgba(255, 255, 255, 0.8) 0 5px,
      transparent 6px
    ),
    radial-gradient(
      circle at 92% 68%,
      rgba(255, 255, 255, 0.58) 0 10px,
      transparent 11px
    ),
    linear-gradient(125deg, #eff8ef 0%, #f8fbf3 54%, #e2f3e6 100%);
  padding: 24px 0 58px;
}
.nd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #78877c;
  font-size: 13px;
}
.nd-breadcrumb a:hover {
  color: var(--nd-green);
}
.nd-breadcrumb strong {
  color: #355443;
  font-weight: 700;
}
.nd-hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 48px;
}
.nd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nd-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.nd-eyebrow span {
  font-size: 8px;
}
.nd-hero-copy h1 {
  margin: 13px 0 10px;
  color: #1e422f;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -1.8px;
  line-height: 1.2;
}
.nd-hero-copy p {
  margin: 0;
  color: #617469;
  font-size: 16px;
  line-height: 1.8;
}
.nd-hero-mark {
  position: absolute;
  color: rgba(23, 107, 69, 0.13);
  pointer-events: none;
}
.nd-hero-mark--one {
  right: 9%;
  top: 54px;
  font-size: 100px;
  transform: rotate(12deg);
}
.nd-hero-mark--two {
  right: 22%;
  bottom: 18px;
  font-size: 52px;
  transform: rotate(-15deg);
}
.nd-content-section {
  padding: 56px 0 86px;
}
.nd-article {
  overflow: hidden;
  border: 1px solid var(--nd-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 72, 48, 0.055);
}
.nd-article-header {
  padding: 34px 40px 28px;
  border-bottom: 1px solid var(--nd-border);
}
.nd-title-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.nd-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e8f5eb;
  color: var(--nd-green);
  font-size: 12px;
  font-weight: 800;
}
.nd-pinned {
  color: #a36516;
  font-size: 12px;
  font-weight: 700;
}
.nd-title {
  margin: 0;
  color: #20372a;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.9px;
  overflow-wrap: anywhere;
}
.nd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  color: #738078;
  font-size: 13px;
}
.nd-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nd-meta-label {
  color: #9aa59e;
}
.nd-meta-divider {
  width: 1px;
  height: 13px;
  background: #dce5de;
}
.nd-article-body {
  min-height: 230px;
  padding: 38px 40px 52px;
  color: #3f5045;
  font-size: 16px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nd-empty-content {
  color: #8a968e;
}
.nd-article-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: #f6faf6;
  border-top: 1px solid #e9f0ea;
}
.nd-footer-icon {
  font-size: 19px;
}
.nd-article-footer p {
  margin: 0;
  color: #748278;
  font-size: 13px;
}
.nd-post-navigation {
  margin-top: 18px;
  border-top: 1px solid var(--nd-border);
  border-bottom: 1px solid var(--nd-border);
}
.nd-post-link {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 19px 20px;
  border-bottom: 1px solid #edf1ed;
  transition: background 0.18s ease;
}
.nd-post-link:last-child {
  border-bottom: 0;
}
a.nd-post-link:hover {
  background: #f7fbf7;
}
.nd-post-direction {
  color: #64756a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nd-post-direction span {
  margin-right: 7px;
  color: var(--nd-green);
  font-size: 16px;
}
.nd-post-title {
  overflow: hidden;
  color: #33483a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-post-link--empty .nd-post-title {
  color: #9aa49d;
}
.nd-actions {
  display: flex;
  justify-content: center;
  margin: 30px 0 54px;
}
.nd-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid var(--nd-green);
  border-radius: 12px;
  background: var(--nd-green);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.nd-list-button:hover {
  background: var(--nd-green-dark);
  transform: translateY(-1px);
}
.nd-list-button span {
  font-size: 18px;
}
.nd-help {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px 27px;
  border: 1px solid #dcebe0;
  border-radius: 16px;
  background: linear-gradient(110deg, #f2faf3, #fbfdf8);
}
.nd-help-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dff0e3;
  color: var(--nd-green);
  font-size: 22px;
  font-weight: 800;
}
.nd-help-copy {
  flex: 1;
  min-width: 0;
}
.nd-help-copy strong {
  color: #2a4835;
  font-size: 14px;
}
.nd-help-copy p {
  margin: 6px 0 0;
  color: #7b897f;
  font-size: 13px;
}
.nd-help-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nd-green) !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.nd-help-link span {
  font-size: 17px;
  transition: transform 0.18s ease;
}
.nd-help-link:hover span {
  transform: translateX(4px);
}
@media (max-width: 700px) {
  .nd-container {
    width: min(calc(100% - 32px), 1120px);
  }
  .nd-hero {
    padding: 19px 0 42px;
  }
  .nd-hero-copy {
    padding-top: 35px;
  }
  .nd-hero-copy p {
    max-width: 90%;
    font-size: 14px;
  }
  .nd-hero-mark--one {
    right: 1%;
    top: 70px;
    font-size: 65px;
  }
  .nd-hero-mark--two {
    right: 9%;
    bottom: 9px;
    font-size: 34px;
  }
  .nd-content-section {
    padding: 30px 0 55px;
  }
  .nd-article {
    border-radius: 15px;
  }
  .nd-article-header {
    padding: 25px 22px 22px;
  }
  .nd-meta-row {
    gap: 10px;
    font-size: 12px;
  }
  .nd-meta-item {
    gap: 5px;
  }
  .nd-article-body {
    min-height: 190px;
    padding: 26px 22px 36px;
    font-size: 15px;
  }
  .nd-article-footer {
    padding: 16px 22px;
  }
  .nd-post-link {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 17px 12px;
  }
  .nd-post-title {
    font-size: 13px;
  }
  .nd-help {
    flex-wrap: wrap;
    gap: 12px;
    padding: 19px;
  }
  .nd-help-copy {
    flex-basis: calc(100% - 60px);
  }
  .nd-help-link {
    margin-left: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notice-detail-page *,
  .notice-detail-page *::before,
  .notice-detail-page *::after {
    transition: none !important;
  }
}

/* =========================================
   NOTICE ATTACHMENTS
========================================= */

.nd-attachments {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid #eae9df;
  border-radius: 16px;
  background: #fbfaf6;
}

.nd-attachment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.nd-attachment-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #83916a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.nd-attachment-heading h3 {
  margin: 0;
  color: #30372b;
  font-size: 21px;
  font-weight: 800;
}

.nd-attachment-heading p {
  margin: 8px 0 0;
  color: #8b8c80;
  font-size: 13px;
}

.nd-attachment-count {
  flex-shrink: 0;
  padding: 8px 13px;
  border: 1px solid #e4e6d9;
  border-radius: 30px;
  background: #fff;
  color: #75845c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* 이미지 갤러리 */

.nd-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.nd-image-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eae9e2;
  border-radius: 11px;
  background: #fff;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nd-image-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(51, 59, 41, 0.09);
}

.nd-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f0efe8;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.nd-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.nd-image-button:hover img {
  transform: scale(1.06);
}

.nd-image-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #566747;
  font-size: 17px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.nd-image-button:hover .nd-image-zoom {
  opacity: 1;
  transform: translateY(0);
}

.nd-image-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: #77796f;
  font-size: 12px;
}

.nd-image-caption span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-image-file-icon {
  flex-shrink: 0;
  color: #87966d;
  font-size: 16px;
}

/* 동영상 */

.nd-video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.nd-video-item {
  overflow: hidden;
  border: 1px solid #e7e7de;
  border-radius: 12px;
  background: #fff;
}

.nd-video-player {
  overflow: hidden;
  background: #20221e;
  aspect-ratio: 16 / 9;
}

.nd-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nd-video-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.nd-video-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eef1e6;
  color: #758858;
  font-size: 12px;
}

.nd-video-caption div {
  min-width: 0;
}

.nd-video-caption strong {
  display: block;
  overflow: hidden;
  color: #42483b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-video-caption small {
  display: block;
  margin-top: 5px;
  color: #999b90;
  font-size: 11px;
}

/* 이미지 확대 모달 */

.nd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(20, 23, 18, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.nd-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.nd-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  max-height: 90vh;
}

.nd-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.nd-lightbox-content p {
  margin: 15px 0 0;
  color: #fff;
  font-size: 13px;
}

.nd-lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nd-attachments {
    padding: 22px 16px;
  }

  .nd-image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nd-video-list {
    grid-template-columns: 1fr;
  }

  .nd-image-caption {
    padding: 10px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .nd-attachment-heading h3 {
    font-size: 19px;
  }

  .nd-attachment-heading p {
    font-size: 11px;
  }

  .nd-attachment-count {
    padding: 7px 9px;
    font-size: 9px;
  }

  .nd-lightbox {
    padding: 15px;
  }
}
