/* /www/forum/assets/css/style.css */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Pretendard',-apple-system,BlinkMacSystemFont,sans-serif;background:#F7F8FA;color:#111827;font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:inherit}
img{max-width:100%;display:block}
ul,ol{list-style:none}

/* 공통 레이아웃 */
.nw-main{max-width:1200px;margin:0 auto;padding:40px 24px 60px}
.nw-grid{display:grid;grid-template-columns:1fr 312px;gap:36px;align-items:start}

/* 히어로 */
.nw-hero{background:#0B1F4B;color:#fff;padding:64px 24px 72px;position:relative;overflow:hidden}
.nw-hero-overlay{position:absolute;inset:0;background:radial-gradient(ellipse 70% 60% at 60% 50%,rgba(29,78,216,.2),transparent);pointer-events:none}
.nw-hero-inner{max-width:1200px;margin:0 auto;position:relative;z-index:1}
.nw-hero-eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(29,78,216,.22);border:1px solid rgba(29,78,216,.4);border-radius:100px;padding:5px 14px;font-size:12px;color:#93C5FD;margin-bottom:20px;letter-spacing:.04em}
.nw-hero-dot{width:6px;height:6px;border-radius:50%;background:#3B82F6;display:inline-block}
.nw-hero-title{font-family:'Noto Serif KR',Georgia,serif;font-size:clamp(26px,3.8vw,46px);font-weight:600;line-height:1.28;margin-bottom:16px;letter-spacing:-.02em;max-width:680px}
.nw-hero-sub{font-size:15.5px;color:rgba(255,255,255,.68);max-width:560px;line-height:1.7;margin-bottom:32px}
.nw-hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.nw-hero-stats{display:flex;gap:40px;margin-top:52px;padding-top:32px;border-top:1px solid rgba(255,255,255,.1);flex-wrap:wrap}
.nw-stat-num{font-size:30px;font-weight:700;color:#fff;font-family:'Noto Serif KR',serif;line-height:1.1}
.nw-stat-label{font-size:12px;color:rgba(255,255,255,.45);letter-spacing:.04em;margin-top:4px}

/* 버튼 */
.nw-btn-p{background:#1D4ED8;color:#fff;border:none;border-radius:8px;padding:12px 26px;font-size:14px;font-weight:600;display:inline-block}
.nw-btn-o{background:transparent;color:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:12px 26px;font-size:14px;display:inline-block}

/* 섹션 헤더 */
.nw-sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:12px;border-bottom:2px solid #E2E6EC}
.nw-sh-title{font-size:12px;font-weight:700;letter-spacing:.08em;color:#4B5563;text-transform:uppercase}
.nw-sh-link{font-size:13px;color:#1D4ED8;font-weight:500}

/* 카드 */
.nw-card{background:#fff;border:1px solid #E2E6EC;border-radius:8px;padding:20px;margin-bottom:10px;transition:box-shadow .18s,border-color .18s}
.nw-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.09);border-color:#CBD5E1}
.nw-card-feat{border-left:3px solid #1D4ED8;background:linear-gradient(to right,rgba(239,246,255,.5),#fff)}
.nw-card-top{display:flex;align-items:center;gap:7px;margin-bottom:10px;flex-wrap:wrap}
.nw-tag{display:inline-flex;align-items:center;background:#EFF6FF;color:#1D4ED8;border-radius:4px;padding:3px 9px;font-size:11.5px;font-weight:600}
.nw-badge-pick{background:#FEF9C3;color:#854D0E;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:700}
.nw-badge-new{background:#F0FDF4;color:#166534;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:700}
.nw-card-title{font-family:'Noto Serif KR',Georgia,serif;font-size:17px;font-weight:600;color:#111827;line-height:1.4;margin-bottom:5px;letter-spacing:-.01em}
.nw-card-title:hover{color:#1D4ED8}
.nw-card-sub{font-size:13.5px;color:#4B5563;margin-bottom:14px;line-height:1.55}
.nw-card-author{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.nw-av{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#0B1F4B,#1D4ED8);display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;color:#fff;flex-shrink:0}
.nw-author-name{font-size:13px;font-weight:600;color:#111827;display:flex;align-items:center;gap:4px}
.nw-author-aff{font-size:12px;color:#9CA3AF}
.nw-card-meta{display:flex;align-items:center;gap:16px;font-size:12px;color:#9CA3AF;flex-wrap:wrap}

/* 분야별 그리드 */
.nw-cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:14px}
.nw-cat-box{background:#fff;border:1px solid #E2E6EC;border-radius:8px;overflow:hidden}
.nw-cat-head{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #E2E6EC}
.nw-cat-item{padding:12px 16px;border-bottom:1px solid #E2E6EC;transition:background .12s;display:block;color:inherit}
.nw-cat-item:last-child{border-bottom:none}
.nw-cat-item:hover{background:#F7F8FA}
.nw-cat-item-title{font-size:13px;font-weight:500;color:#111827;margin-bottom:5px;line-height:1.4}
.nw-cat-item-meta{font-size:11.5px;color:#9CA3AF;display:flex;gap:10px}

/* 활동 카드 */
.nw-act-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.nw-act-card{border-radius:8px;padding:24px;color:#fff;display:block;transition:transform .18s}
.nw-act-card:hover{transform:translateY(-2px)}
.nw-act-icon{width:40px;height:40px;border-radius:8px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.nw-act-icon svg{width:20px;height:20px;stroke:#93C5FD;stroke-width:1.5;fill:none}
.nw-act-title{font-size:15px;font-weight:700;margin-bottom:7px}
.nw-act-desc{font-size:12.5px;color:rgba(255,255,255,.58);line-height:1.55}
.nw-act-num{font-size:28px;font-weight:800;color:#fff;margin-top:14px;line-height:1.1}
.nw-act-unit{font-size:11px;color:rgba(255,255,255,.38);letter-spacing:.04em}

/* 사이드바 */
.nw-sidebar{display:flex;flex-direction:column;gap:20px}
.nw-widget{background:#fff;border:1px solid #E2E6EC;border-radius:8px;overflow:hidden}
.nw-widget-head{padding:13px 16px;border-bottom:1px solid #E2E6EC;font-size:11.5px;font-weight:700;letter-spacing:.07em;color:#4B5563;text-transform:uppercase;background:#F7F8FA}
.nw-trending{display:flex;align-items:flex-start;gap:12px;padding:11px 16px;border-bottom:1px solid #E2E6EC;transition:background .12s;display:flex}
.nw-trending:last-child{border-bottom:none}
.nw-trending:hover{background:#F7F8FA}
.nw-trending-num{font-size:19px;font-weight:800;color:#E2E6EC;width:22px;flex-shrink:0;text-align:center;line-height:1.25}
.nw-trending-title{font-size:13px;font-weight:500;color:#111827;line-height:1.4;margin-bottom:3px}
.nw-trending-meta{font-size:11.5px;color:#9CA3AF}
.nw-tags-wrap{padding:14px 16px;display:flex;flex-wrap:wrap;gap:7px}
.nw-tag-pill{background:#F7F8FA;border:1px solid #E2E6EC;color:#4B5563;border-radius:100px;padding:5px 12px;font-size:12px;transition:all .12s;white-space:nowrap;display:inline-block}
.nw-tag-pill:hover{background:#EFF6FF;border-color:#1D4ED8;color:#1D4ED8}
.nw-expert-item{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #E2E6EC;transition:background .12s}
.nw-expert-item:last-child{border-bottom:none}
.nw-expert-item:hover{background:#F7F8FA}
.nw-expert-av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#0B1F4B,#1D4ED8);display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;color:#fff;flex-shrink:0}
.nw-widget-foot{padding:11px 16px;text-align:center;border-top:1px solid #E2E6EC;font-size:13px;color:#1D4ED8;font-weight:500}
.nw-divider{border:none;border-top:1px solid #E2E6EC;margin:36px 0}

/* 페이지 히어로 (서브페이지) */
.nw-page-hero{background:#0B1F4B;padding:48px 24px 56px;color:#fff}
.nw-page-hero-inner{max-width:1200px;margin:0 auto}
.nw-eyebrow{font-size:12px;color:#93C5FD;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}
.nw-page-title{font-family:'Noto Serif KR',serif;font-size:clamp(24px,3vw,36px);font-weight:600;margin-bottom:10px}
.nw-page-sub{font-size:15px;color:rgba(255,255,255,.65);max-width:520px}

/* 페이지네이션 */
.nw-pager{display:flex;justify-content:center;gap:4px;margin-top:28px}
.nw-pager a{width:34px;height:34px;border:1px solid #E2E6EC;background:#fff;border-radius:6px;font-size:13px;color:#4B5563;display:flex;align-items:center;justify-content:center;transition:all .14s}
.nw-pager a:hover{border-color:#1D4ED8;color:#1D4ED8}
.nw-pager a.on{background:#1D4ED8;border-color:#1D4ED8;color:#fff;font-weight:600}

/* 반응형 */
@media(max-width:900px){.nw-grid{grid-template-columns:1fr}}
@media(max-width:768px){
  .nw-hero{padding:40px 20px 48px}
  .nw-hero-stats{gap:24px;margin-top:32px}
  .nw-stat-num{font-size:24px}
  .nw-main{padding:24px 16px 40px}
  .nw-cat-grid{grid-template-columns:1fr}
  .nw-act-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .nw-act-grid{grid-template-columns:1fr}
  .nw-hero-actions{flex-direction:column}
}
@media(min-width:769px){
  #mobile-menu{display:none !important}
}

/* 게시글/공지 본문에 삽입된 이미지 */
.nw-rich-content img{max-width:100%;height:auto;border-radius:6px;display:block;margin:12px 0}
[contenteditable="true"] img{cursor:grab}
