/* ==========================================================================
   /notice 페이지 전용 CSS
   ----------------------------------------------------------------------------
   - 공지사항 페이지 (.page-notice, .nt-*)
   - notice/index.php 에서 style.css 다음에 로드.
   ========================================================================== */

/* ==========================================================================
   /notice · 공지사항 (라이트·테이블 톤)
   ========================================================================== */
.page-notice main { background: #fff; }

/* 페이지 헤드 */
.nt-head {
  padding: clamp(72px, 9vw, 128px) 0 clamp(36px, 4vw, 56px);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(38, 153, 251, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #F4F8FF 0%, #FAFBFD 100%);
  border-bottom: 1px solid #E6E9F0;
  text-align: center;
}
.nt-head__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin: 0 0 14px;
  line-height: 1.18;
}
.nt-head__sub {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
  color: #475569;
  margin: 0 auto;
  max-width: 520px;
  letter-spacing: -0.012em;
  word-break: keep-all;
}

/* 상단 탭 (공지사항 · 뉴스) */
.nt-tabs-section {
  padding-top: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid #EEF1F6;
}
.nt-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px; /* 활성 탭 하단선이 섹션 보더와 정렬되도록 */
}
.nt-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
  letter-spacing: -0.01em;
}
.nt-tab:hover { color: #0F172A; }
.nt-tab.is-active {
  color: #0F172A;
  font-weight: 700;
  border-bottom-color: #2699FB;
}
.nt-tab__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  background: #F1F4F8;
  color: #6B7280;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.nt-tab.is-active .nt-tab__count {
  background: #E0F0FF;
  color: #1664A9;
}

/* 리스트 섹션 */
.nt-list-section {
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
}

/* 필터 칩 */
.nt-filter {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.nt-filter__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #E2E7EE;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.012em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.nt-filter__chip:hover { border-color: #94A3B8; color: #0F172A; }
.nt-filter__chip.is-active {
  background: #0F172A;
  border-color: #0F172A;
  color: #fff;
}
.nt-filter__chip.is-active .nt-filter__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.nt-filter__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  background: #F1F3F7;
  color: #475569;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.nt-filter__empty {
  font-size: 14px;
  color: #94A3B8;
  text-align: center;
  padding: 40px 0;
  margin: 0;
  letter-spacing: -0.012em;
}

/* 리스트 — 테이블 행 톤 */
.nt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid #0F172A;
}
.nt-row {
  border-bottom: 1px solid #EEF1F6;
}
.nt-row.is-hidden { display: none; }
.nt-row__link {
  display: grid;
  grid-template-columns: 100px 1fr 100px 24px;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.nt-row__link:hover {
  background: #FAFBFD;
}
.nt-row__link:hover .nt-row__title { color: #2699FB; }
.nt-row__link:hover .nt-row__arrow { color: #2699FB; transform: translateX(4px); }

.nt-row__cat {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.005em;
  justify-self: start;
}
.nt-row__cat--공지 {
  background: #EFF6FF;
  color: #1664A9;
  border: 1px solid #DBE8F8;
}
.nt-row__cat--업데이트 {
  background: #F5F3FF;
  color: #6B21A8;
  border: 1px solid #DDD6FE;
}
.nt-row__cat--이벤트 {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
}

.nt-row__title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.018em;
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0;
  word-break: keep-all;
  text-align: left;
  justify-self: start;
  transition: color 0.15s;
}
.nt-row__title i {
  color: #2699FB;
  font-size: 14px;
  flex-shrink: 0;
}
.nt-row__date {
  font-size: 13.5px;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nt-row__arrow {
  font-size: 16px;
  color: #CBD5E1;
  justify-self: center;
  transition: color 0.15s, transform 0.15s;
}

/* 뉴스 row (외부 링크) — 카테고리 자리에 매체명, 제목 아래 한 줄 요약 */
.nt-row--news .nt-row__link { padding: 20px 8px; }
.nt-row__source {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1664A9;
  background: #EFF6FF;
  border: 1px solid #BFD9F6;
  border-radius: 999px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nt-row--news .nt-row__title {
  display: flex; flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding-left: 100px;
  font-size: 15.5px;
  line-height: 1.4;
}
.nt-row__summary {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  letter-spacing: -0.012em;
  line-height: 1.5;
}
.nt-list--news .nt-row__link:hover .nt-row__title { color: #1664A9; }
.nt-list--news .nt-row__link:hover .nt-row__summary { color: #4B5563; }

@media (max-width: 720px) {
  .nt-row__link {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 18px 8px;
  }
  .nt-row__cat { grid-row: 1; }
  .nt-row__title { grid-column: 2; grid-row: 1; font-size: 14.5px; }
  .nt-row__date { grid-column: 1 / span 2; grid-row: 2; text-align: left; font-size: 12.5px; padding-left: 0; }
  .nt-row__arrow { display: none; }
}

/* ─── 상세 페이지 ─── */
.nt-detail-head {
  padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(38, 153, 251, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #F4F8FF 0%, #FAFBFD 100%);
  border-bottom: 1px solid #E6E9F0;
}
/* 제목 영역도 본문(820px) 과 같은 폭으로 정렬해서 시각적으로 한 칼럼처럼 흐르게 */
.nt-detail-head .container {
  max-width: 820px;
}
.nt-detail__cat {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.nt-detail__cat--공지 {
  background: #EFF6FF; color: #1664A9; border: 1px solid #DBE8F8;
}
.nt-detail__cat--업데이트 {
  background: #F5F3FF; color: #6B21A8; border: 1px solid #DDD6FE;
}
.nt-detail__cat--이벤트 {
  background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA;
}
.nt-detail__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin: 0 0 18px;
  word-break: keep-all;
}
.nt-detail__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #6B7280;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.nt-detail__date::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #94A3B8;
  margin-right: 4px;
}

.nt-detail-body {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
}
.nt-detail__container {
  max-width: 820px;
}
.nt-detail__content > p:first-child {
  font-size: 17px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.7;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #E6E9F0;
}
.nt-detail__content {
  font-size: 15.5px;
  line-height: 1.85;
  color: #1F2937;
  letter-spacing: -0.012em;
  word-break: keep-all;
}
.nt-detail__content > * + * { margin-top: 16px; }
.nt-detail__content h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 32px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E6E9F0;
}
.nt-detail__content ul,
.nt-detail__content ol {
  padding-left: 22px;
  margin: 12px 0;
}
.nt-detail__content li { margin: 8px 0; }
.nt-detail__content p { margin: 0; }
.nt-detail__content a { color: #2699FB; font-weight: 600; }
.nt-detail__content b, .nt-detail__content strong { color: #0F172A; font-weight: 700; }
.nt-detail__content code {
  padding: 2px 6px;
  background: #F1F3F7;
  color: #1664A9;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'SF Mono', Menlo, monospace;
}

/* 이전/목록/다음 내비게이션 */
.nt-detail__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid #E6E9F0;
}
.nt-detail__nav-item,
.nt-detail__nav-list {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #E6E9F0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.nt-detail__nav-item:hover {
  border-color: #2699FB;
  background: #FAFBFD;
}
.nt-detail__nav-item--prev { align-items: flex-start; text-align: left; }
.nt-detail__nav-item--next { align-items: flex-end; text-align: right; }
.nt-detail__nav-item--disabled {
  background: #FAFBFD;
  color: #94A3B8;
  pointer-events: none;
}
.nt-detail__nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: -0.012em;
  display: inline-flex; align-items: center; gap: 4px;
}
.nt-detail__nav-item:hover .nt-detail__nav-label { color: #2699FB; }
.nt-detail__nav-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
          line-clamp: 1;
  -webkit-box-orient: vertical;
}
.nt-detail__nav-item--disabled .nt-detail__nav-title { color: #94A3B8; font-weight: 500; }

.nt-detail__nav-list {
  display: inline-flex; flex-direction: row;
  align-items: center; justify-content: center;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  background: #fff;
}
.nt-detail__nav-list:hover {
  background: #0F172A;
  color: #fff;
  border-color: #0F172A;
}
@media (max-width: 640px) {
  .nt-detail__nav {
    grid-template-columns: 1fr;
  }
  .nt-detail__nav-item--next { align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   뉴스 디테일 (/notice/news/?id={slug})
   ========================================================================== */
.nt-detail {
  padding: clamp(48px, 6vw, 80px) 0;
}
.nt-detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: -0.012em;
  margin-bottom: 28px;
  transition: color 0.18s ease-out;
}
.nt-detail__back:hover { color: #0F172A; }
.nt-detail__back i { font-size: 16px; }

.nt-detail__meta {
  display: flex; align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.nt-detail__source {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(160deg, #2699FB 0%, #5BB6FF 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px -6px rgba(38, 153, 251, 0.55);
}
.nt-detail__dot {
  width: 4px; height: 4px;
  background: #CBD5E1;
  border-radius: 50%;
}
.nt-detail__date {
  font-size: 13.5px;
  color: #64748B;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.nt-detail__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin: 0 0 22px;
  word-break: keep-all;
}

.nt-detail__lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: #334155;
  margin: 0 0 32px;
  padding: 18px 22px;
  background: #F4F8FF;
  border-left: 3px solid #2699FB;
  border-radius: 4px;
  font-weight: 500;
  word-break: keep-all;
}

.nt-detail__body {
  font-size: 16px;
  line-height: 1.85;
  color: #1F2937;
  letter-spacing: -0.012em;
  margin: 0 0 40px;
  word-break: keep-all;
  max-width: 720px;
}
.nt-detail__body strong, .nt-detail__body b { color: #0F172A; font-weight: 700; }

.nt-detail__cta {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid #E6E9F0;
}
.nt-detail__cta .btn i { font-size: 17px; }
.nt-detail__notice {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: #94A3B8;
  letter-spacing: -0.012em;
}

/* 다른 뉴스 영역 */
.nt-detail__related {
  padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 120px);
  background: #F8FAFC;
  border-top: 1px solid #E6E9F0;
}
.nt-detail__related-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
}

/* 404 — slug 매칭 실패 */
.nt-detail--notfound {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 0;
}
.nt-detail--notfound .nt-detail__title { margin-bottom: 16px; }
.nt-detail__notfound-desc {
  font-size: 16px;
  color: #64748B;
  margin: 0 0 32px;
}
