/* ═══════════ NORVAS — Blog ═══════════ */
.nv-blog { padding: 20px 0 80px; }
.nv-blog-search { position: relative; max-width: 520px; margin: 28px auto 0; display: flex; align-items: center; background: #fff; border: 1px solid var(--nv-line); border-radius: 16px; box-shadow: var(--nv-sh); padding: 6px 6px 6px 46px; }
.nv-blog-search i { position: absolute; left: 18px; color: var(--nv-muted); }
.nv-blog-search input { flex: 1; border: 0; outline: 0; font: 500 1rem var(--nv-font); background: transparent; padding: 9px 4px; min-width: 0; color: var(--nv-ink); }
.nv-blog__result { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--nv-bg-soft); margin-bottom: 24px; color: var(--nv-text); }
.nv-blog__empty { text-align: center; padding: 60px 20px; }
.nv-blog__empty h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.nv-blog__empty p { color: var(--nv-muted); margin-bottom: 20px; }

/* Featured */
.nv-post-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--nv-r-xl); overflow: hidden; background: #fff; border: 1px solid var(--nv-line); text-decoration: none; color: var(--nv-ink); margin-bottom: 32px; transition: box-shadow .3s var(--nv-ease), transform .3s var(--nv-ease); }
.nv-post-featured:hover { box-shadow: var(--nv-sh-lg); transform: translateY(-3px); color: var(--nv-ink); }
.nv-post-featured__img { min-height: 320px; background: var(--nv-bg-tint); overflow: hidden; }
.nv-post-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--nv-ease); display: block; }
.nv-post-featured:hover img { transform: scale(1.04); }
.nv-post-featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.nv-post-featured__body h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.2; margin: 0; }
.nv-post-featured__body p { color: var(--nv-muted); margin: 0; line-height: 1.7; }
@media (max-width: 860px) { .nv-post-featured { grid-template-columns: 1fr; } .nv-post-featured__img { min-height: 220px; aspect-ratio: 16 / 9; } .nv-post-featured__body { padding: 26px; } }

.nv-post__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--nv-grad-soft); color: var(--nv-primary); font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.nv-post__ph { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--nv-grad); }

/* Grid */
.nv-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.nv-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nv-line); border-radius: var(--nv-r-lg); overflow: hidden; text-decoration: none; color: var(--nv-ink); transition: transform .3s var(--nv-ease), box-shadow .3s var(--nv-ease); }
.nv-post:hover { transform: translateY(-4px); box-shadow: var(--nv-sh); color: var(--nv-ink); }
.nv-post__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--nv-bg-tint); }
.nv-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--nv-ease); }
.nv-post:hover .nv-post__img img { transform: scale(1.05); }
.nv-post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nv-post__body h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin: 0; }
.nv-post__body p { color: var(--nv-muted); font-size: .92rem; line-height: 1.6; margin: 0 0 6px; flex: 1; }
.nv-post__meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .8rem; color: var(--nv-muted); }
.nv-post__meta i { margin-right: 4px; }

/* Pager */
.nv-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 48px; flex-wrap: wrap; }
.nv-pager__nums { display: flex; gap: 6px; align-items: center; }
.nv-pager a { text-decoration: none; }
.nv-pager__nums a, .nv-pager__btn { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--nv-line); display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--nv-text); font-weight: 600; font-size: .9rem; background: #fff; transition: all .15s; }
.nv-pager__nums a:hover, .nv-pager__btn:hover { border-color: var(--nv-primary); color: var(--nv-primary); }
.nv-pager__nums a.is-current { background: var(--nv-ink); border-color: var(--nv-ink); color: #fff; }
.nv-pager__gap { color: var(--nv-muted); padding: 0 4px; }
@media (max-width: 520px) { .nv-pager__btn span { display: none; } }

/* ═══════════ Article ═══════════ */
.nv-read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--nv-grad); z-index: 1100; transition: width .1s linear; }
.nv-article-hero { padding: 56px 0 36px; background: radial-gradient(900px 300px at 50% -20%, #ece9ff, transparent 70%); text-align: center; }
.nv-article-hero .nv-crumbs { justify-content: center; }
.nv-article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.12; max-width: 860px; margin: 0 auto 18px; }
.nv-article-hero__meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: var(--nv-muted); font-size: .9rem; }
.nv-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--nv-grad); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: .9rem; }
.nv-article-hero__author { display: inline-flex; align-items: center; gap: 10px; color: var(--nv-ink); font-weight: 600; }
.nv-article-cover { max-width: 1040px; margin: 0 auto 8px; padding: 0 24px; }
.nv-article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--nv-r-xl); box-shadow: var(--nv-sh-lg); display: block; }

.nv-article { padding: 40px 0 72px; }
.nv-article__grid { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 48px; justify-content: center; }
.nv-article__aside { position: sticky; top: 96px; align-self: start; }
.nv-toc { font-size: .86rem; }
.nv-toc h4 { font: 700 .72rem var(--nv-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nv-muted); margin: 0 0 12px; }
.nv-toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--nv-line); color: var(--nv-muted); text-decoration: none; line-height: 1.4; transition: color .15s, border-color .15s; }
.nv-toc a:hover { color: var(--nv-ink); }
.nv-toc a.is-active { color: var(--nv-primary); border-left-color: var(--nv-primary); font-weight: 600; }
.nv-share { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.nv-share h4 { font: 700 .72rem var(--nv-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nv-muted); margin: 0 0 4px; }
.nv-share__row { display: flex; gap: 8px; flex-wrap: wrap; }
.nv-share__row a, .nv-share__row button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--nv-line); background: #fff; display: grid; place-items: center; color: var(--nv-text); text-decoration: none; cursor: pointer; transition: all .15s; }
.nv-share__row a:hover, .nv-share__row button:hover { border-color: var(--nv-primary); color: var(--nv-primary); transform: translateY(-2px); }
.nv-article__body h2, .nv-article__body h3 { scroll-margin-top: 96px; }
.nv-author-card { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--nv-r-lg); background: var(--nv-bg-soft); margin-top: 48px; }
.nv-author-card .nv-avatar { width: 56px; height: 56px; font-size: 1.2rem; flex: none; }
.nv-author-card strong { display: block; font-size: 1.02rem; }
.nv-author-card p { margin: 2px 0 0; color: var(--nv-muted); font-size: .9rem; }
.nv-article-cta { margin-top: 32px; padding: 28px; border-radius: var(--nv-r-lg); background: var(--nv-ink); color: rgba(255,255,255,.75); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.nv-article-cta::before { content: ''; position: absolute; width: 320px; height: 320px; right: -100px; top: -160px; background: radial-gradient(circle, rgba(124,58,237,.5), transparent 65%); }
.nv-article-cta > * { position: relative; }
.nv-article-cta h3 { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0 0 4px; }
.nv-article-cta p { margin: 0; font-size: .92rem; }
.nv-mobile-share { display: none; }
@media (max-width: 1100px) {
  .nv-article__grid { grid-template-columns: minmax(0, 720px); }
  .nv-article__aside, .nv-article__spacer { display: none; }
  .nv-mobile-share { display: flex; margin-top: 32px; }
}
