/* =====================================================================
   css/notice.css - 📢 공지 팝업 (2.4.9) : 홈페이지(js/notice.js)와 관리자 미리 보기에서 같이 씀
   · 사진 틀은 늘 같은 크기(가로:세로 4:3). 사진은 잘리지 않게 통째로, 빈 곳은 그 사진을 흐리게 깐 배경
   ===================================================================== */
.ntc-overlay{position:fixed;inset:0;z-index:4000;background:rgba(10,24,36,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.ntc-box{position:relative;width:min(420px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.35);font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif;color:#1d2b3a}
.ntc-x{position:absolute;top:8px;right:8px;z-index:2;width:34px;height:34px;border-radius:50%;border:0;background:#ffffffe6;color:#123a56;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.ntc-img{position:relative;flex:none;aspect-ratio:4/3;overflow:hidden;background:#0b1a26}
.ntc-img::before{content:'';position:absolute;inset:-20px;background:var(--bg) center/cover no-repeat;filter:blur(18px) brightness(.75);transform:scale(1.1)}
.ntc-img img{position:relative;display:block;width:100%;height:100%;object-fit:contain}
.ntc-body{padding:16px 18px 6px;overflow-y:auto}
.ntc-body h2{margin:0 34px 8px 0;font-size:18.5px;line-height:1.35;color:#123a56;word-break:keep-all}
.ntc-img+.ntc-body h2{margin-right:0}
.ntc-text{font-size:14.5px;line-height:1.6;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
.ntc-btns{flex:none;display:flex;gap:8px;padding:10px 14px 14px;border-top:1px solid #edf1f4;margin-top:8px}
.ntc-btns button{flex:1;min-height:42px;border-radius:10px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;border:1.5px solid #c9d6df;background:#fff;color:#4b6475}
.ntc-btns button.strong{border-color:#176b87;background:#176b87;color:#fff}
@media(max-width:600px){   /* 휴대폰: 아래에서 올라오는 창 */
  .ntc-overlay{align-items:flex-end;padding:0}
  .ntc-box{width:100%;max-height:88vh;border-radius:18px 18px 0 0}
  .ntc-btns{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
}
/* 관리자 미리 보기: 겹쳐 띄우지 않고 그 자리에 */
.ntc-pv .ntc-box{max-height:none;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.ntc-pv .ntc-btns button{pointer-events:none}
/* 링크 (2.4.10): 내용 아래 주황 버튼 · 사진 누르기 · 내용 속 주소/전화 */
.ntc-go{display:flex;align-items:center;justify-content:center;margin:12px 0 4px;min-height:44px;border-radius:10px;background:#e8590c;color:#fff;font-size:15px;font-weight:800;text-decoration:none;box-shadow:0 3px 10px rgba(232,89,12,.3)}
.ntc-go:hover,.ntc-go:focus-visible{background:#c44a08;outline:none}
.ntc-img a{position:relative;display:block;width:100%;height:100%;cursor:pointer}
.ntc-img.has-link:hover img{filter:brightness(1.06)}
.ntc-text a{color:#176b87;text-decoration:underline;text-underline-offset:2px;font-weight:600;overflow-wrap:anywhere}
