/* 공지사항 스킨 v3 — 입체 카드 + 에디토리얼 리딩 (2026-08-01)
 *
 * 입체감 체계
 *  · 표면: 카드에 미세한 상단광 그라데이션(위가 살짝 밝음) → 종이가 아니라 '패널'로 읽힘
 *  · 그림자 3층: ①윤곽(1px 근접) ②중간(6~10px) ③환경광(24~40px, 아주 옅게)
 *  · 아이콘 타일: 카테고리색 그라데이션 + 안쪽 하이라이트 + 타일 자체 그림자 = 떠 있는 버튼감
 *  · 페이지 배경에 옅은 라디얼 글로우 → 흰 카드가 배경에서 분리되어 떠 보임
 *  · 호버: 3px 리프트 + 그림자 심화 + 화살표 슬라이드 (누를 수 있다는 어포던스)
 */

/* ── 페이지 틀 ── */
.kt-ntc { max-width: 880px; margin: 0 auto; position: relative; }
.kt-ntc::before { /* 배경 깊이: 헤더 뒤 옅은 글로우 */
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: min(720px, 90%); height: 260px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,138,253,.09), rgba(58,138,253,0) 70%);
}
.kt-ntc > * { position: relative; z-index: 1; }

/* ── 페이지 헤더 ── */
.kt-pagehead { text-align: left; padding: 6px 2px 22px; }
.kt-pagehead-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .22em;
  color: #2b7bf0; background: linear-gradient(135deg, #eaf2fe, #f2f7ff); border: 1px solid #d8e6fc;
  border-radius: 999px; padding: 5px 12px 4px; margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(43,123,240,.08); }
.kt-pagehead h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #10151c; margin: 0 0 8px; }
.kt-pagehead p { font-size: 15px; color: #66707d; margin: 0; }

.kt-ntc-adm { text-align: right; margin: -4px 0 12px; }
.kt-ntc-adm a { font-size: 13px; font-weight: 700; color: #6e7987; text-decoration: none;
  border: 1px solid #dde3ea; border-radius: 9px; padding: 8px 14px;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(17,24,39,.06); }
.kt-ntc-adm a:hover { color: #2b7bf0; border-color: #b9d4fd; }

/* ── 카드 리스트 ── */
.kt-ntc-list { display: flex; flex-direction: column; gap: 16px; }

.kt-ntc-card { display: flex; align-items: flex-start; gap: 20px; position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e6ebf2; border-radius: 18px; padding: 26px 26px 26px 24px;
  text-decoration: none; color: inherit; overflow: hidden;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, .05),
    0 6px 14px -4px rgba(17, 24, 39, .06),
    0 24px 40px -18px rgba(17, 24, 39, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.kt-ntc-card::before { /* 상단 헤어라인 — 카테고리색으로 살짝 물듦 */
  content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 3px;
  border-radius: 0 0 4px 4px; opacity: .55; transition: opacity .18s; }
.kt-ntc-card.t-inf::before { background: linear-gradient(90deg, #5b9bfd, #2563eb); }
.kt-ntc-card.t-svc::before { background: linear-gradient(90deg, #34c07a, #0f8a4f); }
.kt-ntc-card.t-pol::before { background: linear-gradient(90deg, #a678e8, #6d3fa4); }
.kt-ntc-card:hover { transform: translateY(-3px); border-color: #d3e2fa;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, .05),
    0 10px 22px -6px rgba(43, 123, 240, .14),
    0 34px 60px -22px rgba(17, 24, 39, .14); }
.kt-ntc-card:hover::before { opacity: 1; }

/* 아이콘 타일 — 입체의 중심 */
.kt-ntc-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -6px 12px rgba(0,0,0,.12) inset,
              0 8px 16px -6px rgba(17,24,39,.28);
  transition: transform .18s ease; }
.kt-ntc-ico svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.t-inf .kt-ntc-ico { background: linear-gradient(145deg, #5b9bfd 0%, #2563eb 100%); }
.t-svc .kt-ntc-ico { background: linear-gradient(145deg, #34c07a 0%, #0f8a4f 100%); }
.t-pol .kt-ntc-ico { background: linear-gradient(145deg, #a678e8 0%, #6d3fa4 100%); }
.kt-ntc-card:hover .kt-ntc-ico { transform: scale(1.06) rotate(-3deg); }

.kt-ntc-main { flex: 1 1 auto; min-width: 0; }
.kt-ntc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.kt-ntc-meta time { font-size: 13px; font-weight: 600; color: #8792a0; letter-spacing: .01em; }
.kt-ntc-cat { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.t-inf .kt-ntc-cat { background: #e8f1fe; color: #1d5fc4; }
.t-svc .kt-ntc-cat { background: #e5f6ec; color: #177140; }
.t-pol .kt-ntc-cat { background: #f4ecfb; color: #6d3fa4; }

.kt-ntc-tt { display: block; font-size: 19px; font-weight: 800; color: #141b24;
  letter-spacing: -.02em; line-height: 1.45; margin-bottom: 8px;
  transition: color .15s; }
.kt-ntc-card:hover .kt-ntc-tt { color: #1d5fc4; }
.kt-ntc-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; color: #5a6572; line-height: 1.78; }

/* 이동 화살표 — 호버 때 살아난다 */
.kt-ntc-go { flex: 0 0 auto; align-self: center; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #b5bfcb;
  background: #f4f6f9; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 3px rgba(17,24,39,.06);
  transition: transform .18s ease, background .18s, color .18s; }
.kt-ntc-go svg { width: 16px; height: 16px; }
.kt-ntc-card:hover .kt-ntc-go { transform: translateX(4px); color: #fff;
  background: linear-gradient(145deg, #5b9bfd, #2563eb);
  box-shadow: 0 6px 12px -4px rgba(43,123,240,.45); }

.kt-ntc-empty { background: linear-gradient(180deg, #fff, #fafbfd);
  border: 1px dashed #d3d9e2; border-radius: 16px;
  padding: 52px; text-align: center; color: #8a95a3;
  box-shadow: 0 10px 24px -14px rgba(17,24,39,.08); }

/* ── 본문(view) ── */
.kt-ntv { max-width: 800px; margin: 0 auto; }
.kt-ntv-shell { /* 본문도 한 장의 패널로 — 목록과 같은 입체 문법 */
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid #e6ebf2; border-radius: 20px; padding: 40px 44px;
  box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 10px 24px -8px rgba(17,24,39,.07),
              0 32px 56px -24px rgba(17,24,39,.10); }
.kt-ntv-head { padding: 0 0 22px; border-bottom: 1px solid #e8ecf1; margin-bottom: 28px; }
.kt-ntv-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: #141c26;
  line-height: 1.4; margin: 12px 0 0; }
.kt-ntv-body { font-size: 16px; line-height: 1.9; color: #2e3743; max-width: 700px; }
.kt-ntv-body p { margin: 0 0 16px; }
.kt-ntv-body h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800;
  color: #17202b; letter-spacing: -.015em; margin: 34px 0 14px; }
.kt-ntv-body h2::before { content: ''; width: 5px; height: 19px; border-radius: 3px;
  background: linear-gradient(180deg, #5b9bfd, #2563eb); flex: 0 0 auto;
  box-shadow: 0 2px 5px rgba(43,123,240,.35); }
.kt-ntv-body ul, .kt-ntv-body ol { margin: 0 0 16px; padding-left: 22px; }
.kt-ntv-body li { margin-bottom: 8px; }
.kt-ntv-body li::marker { color: #2b7bf0; }
.kt-ntv-body a { color: #1d5fc4; font-weight: 700; text-underline-offset: 3px; }
.kt-ntv-body b, .kt-ntv-body strong { color: #17202b; }
.kt-ntv-body .kt-ntv-box { background: #f6f9ff; border: 1px solid #dbe7fb; border-radius: 12px;
  padding: 18px 22px; margin: 0 0 16px; font-size: 15px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.kt-ntv-foot { margin-top: 34px; border-top: 1px solid #e8ecf1; padding-top: 18px; }
.kt-ntv-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kt-ntv-nav a { font-size: 14.5px; font-weight: 700; color: #3d4753; text-decoration: none;
  padding: 11px 18px; border: 1px solid #dde3ea; border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 3px rgba(17,24,39,.06);
  transition: transform .15s, box-shadow .15s, border-color .15s, color .15s; }
.kt-ntv-nav a:hover { border-color: #2b7bf0; color: #2b7bf0; transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(43,123,240,.25); }
.kt-ntv-nav a.ls { background: linear-gradient(145deg, #232d3a, #10151c); color: #fff; border-color: #17202b;
  box-shadow: 0 6px 14px -6px rgba(16,21,28,.5); }
.kt-ntv-adm { text-align: right; margin: 14px 0 0; }
.kt-ntv-adm a { font-size: 12.5px; color: #8a95a3; margin-left: 10px; }

/* 모션 최소화 선호 존중 */
@media (prefers-reduced-motion: reduce) {
  .kt-ntc-card, .kt-ntc-ico, .kt-ntc-go, .kt-ntv-nav a { transition: none; }
  .kt-ntc-card:hover { transform: none; }
}

@media (max-width: 640px) {
  .kt-pagehead h1 { font-size: 24px; }
  .kt-ntc-card { gap: 14px; padding: 20px 16px 20px 16px; border-radius: 16px; }
  .kt-ntc-ico { width: 44px; height: 44px; border-radius: 13px; }
  .kt-ntc-ico svg { width: 22px; height: 22px; }
  .kt-ntc-go { display: none; }
  .kt-ntc-tt { font-size: 16.5px; }
  .kt-ntc-sum { font-size: 14.5px; }
  .kt-ntv-shell { padding: 26px 20px; border-radius: 16px; }
  .kt-ntv-head h1 { font-size: 21px; }
  .kt-ntv-body { font-size: 15.5px; }
  .kt-ntv-nav a { padding: 10px 13px; font-size: 13.5px; }
}
