/* ============================================================
   NEWS DISPLAY BLOCK — style.css  v2.0
   ============================================================ */

/* ── CSS custom props ──────────────────────────────────────── */
.nb-news-block {
    --nb-accent:   #e63946;
    --nb-radius:   10px;
    --nb-radius-lg:16px;
    --nb-shadow:   0 2px 12px rgba(0,0,0,.08);
    --nb-shadow-md:0 6px 24px rgba(0,0,0,.12);
    --nb-trans:    .22s ease;
    --nb-text:     #1a1a2e;
    --nb-muted:    #6b7280;
    --nb-border:   #e5e7eb;
    --nb-bg:       #ffffff;
    --nb-bg2:      #f9fafb;
    box-sizing: border-box;
}
.nb-news-block *, .nb-news-block *::before, .nb-news-block *::after {
    box-sizing: inherit;
}

/* ── Shared atoms ──────────────────────────────────────────── */
.nb-cat-badge {
    display: inline-block;
    background: var(--nb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
}
.nb-cat-sm {
    display: inline-block;
    background: var(--nb-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
}
.nb-title { margin: 0 0 6px; }
.nb-title a {
    color: var(--nb-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--nb-trans);
}
.nb-title a:hover { color: var(--nb-accent); }
.nb-excerpt {
    font-size: 13.5px;
    color: var(--nb-muted);
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--nb-muted);
    margin-top: 4px;
}
.nb-date, .nb-author, .nb-readtime { font-size: 12px; color: var(--nb-muted); }
.nb-readtime { color: var(--nb-accent); }

/* ── No thumb placeholder ──────────────────────────────────── */
.nb-no-thumb {
    width: 100%;
    background: var(--nb-bg2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nb-no-thumb svg { width: 48px; height: 36px; opacity: .5; }

/* ── No results ────────────────────────────────────────────── */
.nb-no-results {
    text-align: center;
    padding: 48px 16px;
    color: var(--nb-muted);
    font-size: 15px;
}
.nb-no-results svg { display: block; margin: 0 auto 12px; opacity: .3; }

/* ── Pager ─────────────────────────────────────────────────── */
.nb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.nb-pager .nb-prev,
.nb-pager .nb-next {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--nb-bg);
    border: 1.5px solid var(--nb-border);
    color: var(--nb-text);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--nb-trans);
    line-height: 1;
}
.nb-pager .nb-prev:hover:not([disabled]),
.nb-pager .nb-next:hover:not([disabled]) {
    border-color: var(--nb-accent);
    color: var(--nb-accent);
    background: #fff;
}
.nb-pager button[disabled] { opacity: .4; cursor: not-allowed; }
.nb-pager-info {
    font-size: 13px;
    color: var(--nb-muted);
    padding: 0 4px;
    min-width: 56px;
    text-align: center;
}

/* ── Loading overlay (spinner mode) ───────────────────────── */
.nb-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(2px);
    z-index: 20;
    border-radius: var(--nb-radius);
}
.nb-spinner {
    width: 38px;
    height: 38px;
    border: 3.5px solid rgba(0,0,0,.08);
    border-top-color: var(--nb-accent);
    border-radius: 50%;
    animation: nb-spin .75s linear infinite;
}

/* ── Shimmer skeleton shared ───────────────────────────────── */
.nb-sk-pulse {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: nb-shimmer 1.4s infinite linear;
    border-radius: var(--nb-radius);
}

/* ===================================================
   GRID LAYOUT
   =================================================== */
.nb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.nb-grid[data-columns="1"] { grid-template-columns: 1fr; }
.nb-grid[data-columns="2"] { grid-template-columns: repeat(2,1fr); }
.nb-grid[data-columns="3"] { grid-template-columns: repeat(3,1fr); }
.nb-grid[data-columns="4"] { grid-template-columns: repeat(4,1fr); }

.nb-grid .nb-item {
    background: var(--nb-bg);
    border: 1px solid var(--nb-border);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--nb-trans), transform var(--nb-trans);
}
.nb-grid .nb-item:hover {
    box-shadow: var(--nb-shadow-md);
    transform: translateY(-3px);
}
.nb-grid .nb-thumb-link { display: block; overflow: hidden; }
.nb-grid .nb-thumb-link img,
.nb-grid .nb-thumb-link .nb-no-thumb {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--nb-trans);
}
.nb-grid .nb-item:hover .nb-thumb-link img { transform: scale(1.04); }
.nb-grid .nb-item-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.nb-grid .nb-title a { font-size: 15px; -webkit-line-clamp: 2; }
.nb-grid .nb-excerpt { -webkit-line-clamp: 2; }

@media (max-width: 1080px) { .nb-grid[data-columns="4"] { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)  { .nb-grid { grid-template-columns: 1fr !important; } }

/* ===================================================
   LIST LAYOUT
   =================================================== */
.nb-list { display: flex; flex-direction: column; gap: 0; }
.nb-list-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--nb-border);
    align-items: flex-start;
    text-decoration: none;
    transition: background var(--nb-trans);
}
.nb-list-item:first-child { padding-top: 0; }
.nb-list-item:last-child { border-bottom: none; }
.nb-list-thumb { flex: 0 0 100px; }
.nb-list-img, .nb-list-thumb .nb-no-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--nb-radius);
    display: block;
}
.nb-list-body { flex: 1; }
.nb-list-body .nb-title a { font-size: 14.5px; }

@media (max-width: 480px) {
    .nb-list-thumb { flex: 0 0 80px; }
    .nb-list-img, .nb-list-thumb .nb-no-thumb { width: 80px; height: 60px; }
}

/* ===================================================
   SLIDER LAYOUT
   =================================================== */
.nb-slider { --swiper-theme-color: var(--nb-accent); }
.nb-slide {
    background: var(--nb-bg);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    border: 1px solid var(--nb-border);
}
.nb-slide-thumb { display: block; overflow: hidden; }
.nb-slide-img, .nb-slide-thumb .nb-no-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform var(--nb-trans);
}
.nb-slide:hover .nb-slide-img { transform: scale(1.04); }
.nb-slide-body { padding: 14px 16px 16px; }
.nb-slide-body .nb-title a { font-size: 15px; }
.nb-slider .swiper-button-next,
.nb-slider .swiper-button-prev {
    background: rgba(255,255,255,.9);
    box-shadow: var(--nb-shadow);
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--nb-text);
}
.nb-slider .swiper-button-next::after,
.nb-slider .swiper-button-prev::after { font-size: 14px; font-weight: 700; }

/* ===================================================
   HERO LAYOUT
   =================================================== */
.nb-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}
.nb-hero-big-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--nb-radius-lg);
    text-decoration: none;
}
.nb-hero-big-img,
.nb-hero-big-link .nb-no-thumb {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform var(--nb-trans);
}
.nb-hero-big-link:hover .nb-hero-big-img { transform: scale(1.04); }
.nb-hero-big-link .nb-hero-big-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}
.nb-hero-big-link .nb-hero-cat {
    position: absolute; top: 14px; left: 14px; z-index: 5;
    background: var(--nb-accent);
    color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 5px;
}
.nb-hero-big-body { margin-top: 14px; }
.nb-hero-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.nb-hero-title a { color: var(--nb-text); text-decoration: none; transition: color var(--nb-trans); }
.nb-hero-title a:hover { color: var(--nb-accent); }

.nb-hero-side { display: flex; flex-direction: column; gap: 14px; }
.nb-hero-small {
    display: flex; gap: 12px; align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nb-border);
}
.nb-hero-small:last-child { border-bottom: none; padding-bottom: 0; }
.nb-hero-small-thumb { flex: 0 0 82px; display: block; border-radius: var(--nb-radius); overflow: hidden; }
.nb-hero-small-img, .nb-hero-small-thumb .nb-no-thumb {
    width: 82px; height: 64px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-hero-small:hover .nb-hero-small-img { transform: scale(1.06); }
.nb-hero-small-body { flex: 1; }
.nb-hero-small-body .nb-small-title {
    font-size: 14px; font-weight: 700; line-height: 1.35;
    margin: 4px 0 5px;
}
.nb-hero-small-body .nb-small-title a {
    color: var(--nb-text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--nb-trans);
}
.nb-hero-small-body .nb-small-title a:hover { color: var(--nb-accent); }

@media (max-width: 860px) { .nb-hero { grid-template-columns: 1fr; } }

/* ===================================================
   HERO 2 LAYOUT (full image overlay)
   =================================================== */
.nb-hero2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.nb-hero2-big { position: relative; border-radius: var(--nb-radius-lg); overflow: hidden; }
.nb-hero2-big-link { display: block; text-decoration: none; }
.nb-hero2-big-img, .nb-hero2-big-link .nb-no-thumb {
    width: 100%; height: 420px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-hero2-big:hover .nb-hero2-big-img { transform: scale(1.04); }
.nb-hero2-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.0) 30%, rgba(0,0,0,.72) 100%);
}
.nb-hero2-cat {
    position: absolute; top: 16px; left: 16px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 5px;
}
.nb-hero2-title {
    position: absolute; bottom: 48px; left: 16px; right: 16px;
    z-index: 6; color: #fff; font-size: 20px; font-weight: 800;
    line-height: 1.25; margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-hero2-title a { color: inherit; text-decoration: none; }
.nb-hero2-date {
    position: absolute; bottom: 16px; left: 16px; z-index: 6;
    font-size: 12px; color: rgba(255,255,255,.85);
}

.nb-hero2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.nb-hero2-small { position: relative; border-radius: var(--nb-radius-lg); overflow: hidden; }
.nb-hero2-small-link { display: block; text-decoration: none; }
.nb-hero2-small-img, .nb-hero2-small-link .nb-no-thumb {
    width: 100%; height: 200px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-hero2-small:hover .nb-hero2-small-img { transform: scale(1.05); }
.nb-hero2-cat-sm {
    position: absolute; top: 10px; left: 10px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 4px;
}
.nb-hero2-small-title {
    position: absolute; bottom: 34px; left: 12px; right: 12px;
    z-index: 6; color: #fff; font-size: 13px; font-weight: 700;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-hero2-small-title a { color: inherit; text-decoration: none; }
.nb-hero2-small-date {
    position: absolute; bottom: 12px; left: 12px; z-index: 6;
    font-size: 11px; color: rgba(255,255,255,.8);
}

@media (max-width: 900px) { .nb-hero2 { grid-template-columns: 1fr; } .nb-hero2-big-img,.nb-hero2-big-link .nb-no-thumb{height:320px;} }
@media (max-width: 540px) { .nb-hero2-grid { grid-template-columns: 1fr; } .nb-hero2-small-img,.nb-hero2-small-link .nb-no-thumb{height:200px;} }

/* ===================================================
   HERO 3 LAYOUT (big cover + bottom row)
   =================================================== */
.nb-hero3 { display: flex; flex-direction: column; gap: 16px; }
.nb-hero3-big { position: relative; border-radius: var(--nb-radius-lg); overflow: hidden; }
.nb-hero3-big-link { display: block; text-decoration: none; }
.nb-hero3-big-img, .nb-hero3-big-link .nb-no-thumb {
    width: 100%; height: 420px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-hero3-big:hover .nb-hero3-big-img { transform: scale(1.03); }
.nb-hero3-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.75) 100%);
}
.nb-hero3-cat {
    position: absolute; top: 18px; left: 18px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 5px;
}
.nb-hero3-big-body {
    position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 6;
}
.nb-hero3-title {
    color: #fff; font-size: 26px; font-weight: 800;
    line-height: 1.2; margin: 0 0 8px;
    text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.nb-hero3-excerpt { color: rgba(255,255,255,.85); font-size: 14px; margin: 0 0 8px; line-height: 1.5; }
.nb-hero3-big-body .nb-date { color: rgba(255,255,255,.8); font-size: 12.5px; }

.nb-hero3-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.nb-hero3-small { position: relative; border-radius: var(--nb-radius); overflow: hidden; }
.nb-hero3-small-link { display: block; text-decoration: none; }
.nb-hero3-small-img, .nb-hero3-small-link .nb-no-thumb {
    width: 100%; height: 130px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-hero3-small:hover .nb-hero3-small-img { transform: scale(1.06); }
.nb-hero3-cat-sm {
    position: absolute; top: 8px; left: 8px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 6px; border-radius: 3px;
}
.nb-hero3-small-title {
    position: absolute; bottom: 24px; left: 8px; right: 8px; z-index: 6;
    color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-hero3-small-title a { color: inherit; text-decoration: none; }
.nb-date-sm { position: absolute; bottom: 8px; left: 8px; z-index: 6; font-size: 10.5px; color: rgba(255,255,255,.8); }

@media (max-width: 900px) { .nb-hero3-row { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .nb-hero3-row { grid-template-columns: repeat(2,1fr); } .nb-hero3-big-img,.nb-hero3-big-link .nb-no-thumb{height:280px;} .nb-hero3-title{font-size:20px;} }

/* ===================================================
   FEATURED LIST
   =================================================== */
.nb-featured-list { display: flex; flex-direction: column; gap: 0; }
.nb-featured-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid var(--nb-border);
}
.nb-featured-item:first-child { padding-top: 0; }
.nb-featured-item:last-child { border-bottom: none; padding-bottom: 0; }
.nb-featured-thumb { flex: 0 0 140px; display: block; border-radius: var(--nb-radius); overflow: hidden; }
.nb-featured-img, .nb-featured-thumb .nb-no-thumb {
    width: 140px; height: 96px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-featured-item:hover .nb-featured-img { transform: scale(1.05); }
.nb-featured-body { flex: 1; }
.nb-featured-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.nb-featured-title a { color: var(--nb-text); text-decoration: none; transition: color var(--nb-trans); }
.nb-featured-title a:hover { color: var(--nb-accent); }

@media (max-width: 480px) {
    .nb-featured-thumb { flex: 0 0 90px; }
    .nb-featured-img, .nb-featured-thumb .nb-no-thumb { width: 90px; height: 70px; }
}

/* ===================================================
   GRID1 LAYOUT (compact card)
   =================================================== */
.nb-grid1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.nb-grid1[data-columns="2"] { grid-template-columns: repeat(2,1fr); }
.nb-grid1[data-columns="3"] { grid-template-columns: repeat(3,1fr); }

.nb-grid1-item {
    background: var(--nb-bg);
    border: 1px solid var(--nb-border);
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--nb-trans), transform var(--nb-trans);
}
.nb-grid1-item:hover { box-shadow: var(--nb-shadow-md); transform: translateY(-3px); }
.nb-grid1-thumb-link { display: block; overflow: hidden; }
.nb-grid1-img, .nb-grid1-thumb-link .nb-no-thumb {
    width: 100%; height: 180px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-grid1-item:hover .nb-grid1-img { transform: scale(1.04); }
.nb-grid1-body { padding: 12px 14px 14px; }
.nb-grid1-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.nb-grid1-title a {
    color: var(--nb-text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--nb-trans);
}
.nb-grid1-title a:hover { color: var(--nb-accent); }

@media (max-width: 1080px) { .nb-grid1 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px)  { .nb-grid1 { grid-template-columns: 1fr; } }

/* ===================================================
   SIMPLE LIST (numbered)
   =================================================== */
.nb-simple-list { display: flex; flex-direction: column; gap: 0; }
.nb-simple-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--nb-border);
}
.nb-simple-item:last-child { border-bottom: none; }
.nb-simple-num {
    flex: 0 0 36px; width: 36px; height: 36px;
    background: var(--nb-bg2);
    border: 1.5px solid var(--nb-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--nb-accent);
    line-height: 1; margin-top: 2px;
}
.nb-simple-body { flex: 1; }
.nb-simple-body .nb-title a { font-size: 15px; -webkit-line-clamp: 2; }

/* ===================================================
   MAGAZINE LAYOUT
   =================================================== */
.nb-magazine {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}
.nb-mag-feature { position: relative; border-radius: var(--nb-radius-lg); overflow: hidden; }
.nb-mag-feature-link { display: block; text-decoration: none; }
.nb-mag-feature-img, .nb-mag-feature-link .nb-no-thumb {
    width: 100%; height: 520px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-mag-feature:hover .nb-mag-feature-img { transform: scale(1.03); }
.nb-mag-feature-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.8) 100%);
}
.nb-mag-cat {
    position: absolute; top: 18px; left: 18px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 5px;
}
.nb-mag-feature-body {
    position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 6;
}
.nb-mag-feature-title {
    color: #fff; font-size: 22px; font-weight: 800; line-height: 1.25; margin: 0 0 8px;
    text-shadow: 0 2px 14px rgba(0,0,0,.5);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-mag-excerpt { color: rgba(255,255,255,.85); font-size: 13.5px; margin: 0 0 8px; line-height: 1.5; }
.nb-mag-feature-body .nb-date { color: rgba(255,255,255,.75); font-size: 12px; }

.nb-mag-right { display: flex; flex-direction: column; gap: 0; }
.nb-mag-small {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--nb-border);
}
.nb-mag-small:last-child { border-bottom: none; }
.nb-mag-small-link { flex: 0 0 82px; display: block; border-radius: var(--nb-radius); overflow: hidden; text-decoration: none; }
.nb-mag-small-img, .nb-mag-small-link .nb-no-thumb {
    width: 82px; height: 64px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-mag-small:hover .nb-mag-small-img { transform: scale(1.06); }
.nb-mag-small-body { flex: 1; }
.nb-mag-small-title { font-size: 14px; font-weight: 700; margin: 4px 0 5px; line-height: 1.35; }
.nb-mag-small-title a {
    color: var(--nb-text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--nb-trans);
}
.nb-mag-small-title a:hover { color: var(--nb-accent); }

@media (max-width: 900px) { .nb-magazine { grid-template-columns: 1fr; } .nb-mag-feature-img,.nb-mag-feature-link .nb-no-thumb{height:320px;} }

/* ===================================================
   MASONRY LAYOUT
   =================================================== */
.nb-masonry {
    columns: 3;
    column-gap: 16px;
}
.nb-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    background: var(--nb-bg);
    border: 1px solid var(--nb-border);
    transition: box-shadow var(--nb-trans);
}
.nb-masonry-item:hover { box-shadow: var(--nb-shadow-md); }
.nb-masonry-thumb { display: block; overflow: hidden; text-decoration: none; }
.nb-masonry-img, .nb-masonry-thumb .nb-no-thumb {
    width: 100%; height: 200px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-masonry-tall .nb-masonry-img, .nb-masonry-tall .nb-masonry-thumb .nb-no-thumb { height: 280px; }
.nb-masonry-item:hover .nb-masonry-img { transform: scale(1.04); }
.nb-masonry-overlay {
    position: absolute; top: 0; left: 0; right: 0;
    height: 100%; pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
}
.nb-masonry-cat {
    position: absolute; top: 10px; left: 10px; z-index: 5;
    background: var(--nb-accent); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 4px;
}
.nb-masonry-body { padding: 12px 14px 14px; }
.nb-masonry-title { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; }
.nb-masonry-title a {
    color: var(--nb-text); text-decoration: none; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--nb-trans);
}
.nb-masonry-title a:hover { color: var(--nb-accent); }

@media (max-width: 900px) { .nb-masonry { columns: 2; } }
@media (max-width: 540px) { .nb-masonry { columns: 1; } }

/* ===================================================
   TICKER / BREAKING NEWS
   =================================================== */
.nb-ticker {
    display: flex;
    align-items: center;
    border-radius: var(--nb-radius);
    overflow: hidden;
    height: 44px;
}
.nb-ticker-label {
    flex: 0 0 auto;
    background: var(--nb-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 6px;
}
.nb-ticker-track { flex: 1; overflow: hidden; height: 100%; position: relative; }
.nb-ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    animation: nb-ticker 35s linear infinite;
}
.nb-ticker-item {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 0 24px;
    white-space: nowrap;
    transition: color var(--nb-trans);
}
.nb-ticker-item:hover { color: var(--nb-accent); }
.nb-ticker-sep { color: rgba(255,255,255,.3); padding: 0 2px; }

/* ===================================================
   CARD OVERLAY LAYOUT
   =================================================== */
.nb-card-overlay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.nb-card-overlay-grid[data-columns="2"] { grid-template-columns: repeat(2,1fr); }
.nb-card-overlay-grid[data-columns="4"] { grid-template-columns: repeat(4,1fr); }

.nb-co-item { position: relative; border-radius: var(--nb-radius-lg); overflow: hidden; }
.nb-co-link { display: block; text-decoration: none; }
.nb-co-img, .nb-co-link .nb-no-thumb {
    width: 100%; height: 240px; object-fit: cover; display: block;
    transition: transform var(--nb-trans);
}
.nb-co-item:hover .nb-co-img { transform: scale(1.05); }
.nb-co-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.78) 100%);
}
.nb-co-cat {
    position: absolute; top: 12px; left: 12px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 5px;
}
.nb-co-body {
    position: absolute; bottom: 16px; left: 14px; right: 14px; z-index: 6;
}
.nb-co-title {
    color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-co-body .nb-date { font-size: 12px; color: rgba(255,255,255,.75); }

@media (max-width: 900px) { .nb-card-overlay-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .nb-card-overlay-grid { grid-template-columns: 1fr; } }

/* ===================================================
   SKELETON SHIMMER STATES
   =================================================== */
.nb-sk-pulse {
    background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%);
    background-size: 800px 100%;
    animation: nb-shimmer 1.3s infinite linear;
    border-radius: var(--nb-radius);
}
/* grid skeleton */
.nb-sk-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.nb-sk-card { height: 240px; border-radius: var(--nb-radius-lg); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
/* list skeleton */
.nb-sk-list { display: flex; flex-direction: column; gap: 12px; }
.nb-sk-list-row { height: 72px; border-radius: var(--nb-radius); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
/* hero2 skeleton */
.nb-sk-hero2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nb-sk-big { height: 420px; border-radius: var(--nb-radius-lg); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
.nb-sk-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-sk-sm { height: 200px; border-radius: var(--nb-radius-lg); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
/* hero skeleton */
.nb-sk-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.nb-sk-hero-big { height: 320px; border-radius: var(--nb-radius-lg); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
.nb-sk-hero-side { display: flex; flex-direction: column; gap: 12px; }
.nb-sk-hero-row { height: 68px; border-radius: var(--nb-radius); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
/* hero3 skeleton */
.nb-sk-hero3 { display: flex; flex-direction: column; gap: 16px; }
.nb-sk-hero3-big { height: 420px; border-radius: var(--nb-radius-lg); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }
.nb-sk-hero3-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.nb-sk-hero3-sm { height: 130px; border-radius: var(--nb-radius); background: linear-gradient(90deg,#f3f3f3 25%,#ebebeb 50%,#f3f3f3 75%); background-size: 800px 100%; animation: nb-shimmer 1.3s infinite linear; }

@media (max-width: 768px) { .nb-sk-hero2,.nb-sk-hero { grid-template-columns: 1fr; } }

















/* ===================================================
   HERO 2 SIDE LAYOUT (1 big + 2 side)
   =================================================== */

.nb-hero2side {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

/* BIG */

.nb-hero2side-big {
    position: relative;
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
}

.nb-hero2side-big-link {
    display: block;
    text-decoration: none;
}

.nb-hero2side-big-img,
.nb-hero2side-big-link .nb-no-thumb {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform var(--nb-trans);
}

.nb-hero2side-big:hover .nb-hero2side-big-img {
    transform: scale(1.04);
}

.nb-hero2side-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.0) 30%,
        rgba(0,0,0,.72) 100%
    );
}

.nb-hero2side-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;

    background: var(--nb-accent);
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;

    padding: 4px 10px;
    border-radius: 5px;
}

.nb-hero2side-title {
    position: absolute;
    bottom: 48px;
    left: 16px;
    right: 16px;

    z-index: 6;

    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;

    margin: 0;

    text-shadow: 0 2px 12px rgba(0,0,0,.4);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nb-hero2side-title a {
    color: inherit;
    text-decoration: none;
}

.nb-hero2side-date {
    position: absolute;
    bottom: 16px;
    left: 16px;

    z-index: 6;

    font-size: 12px;
    color: rgba(255,255,255,.85);
}

/* RIGHT */

.nb-hero2side-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.nb-hero2side-small {
    position: relative;
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
}

.nb-hero2side-small-link {
    display: block;
    text-decoration: none;
}

.nb-hero2side-small-img,
.nb-hero2side-small-link .nb-no-thumb {
    width: 100%;
    height: 204px;
    object-fit: cover;
    display: block;
    transition: transform var(--nb-trans);
}

.nb-hero2side-small:hover .nb-hero2side-small-img {
    transform: scale(1.05);
}

.nb-hero2side-cat-sm {
    position: absolute;
    top: 10px;
    left: 10px;

    z-index: 6;

    background: var(--nb-accent);
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;

    padding: 3px 7px;
    border-radius: 4px;
}

.nb-hero2side-small-title {
    position: absolute;
    bottom: 34px;
    left: 12px;
    right: 12px;

    z-index: 6;

    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nb-hero2side-small-title a {
    color: inherit;
    text-decoration: none;
}

.nb-hero2side-small-date {
    position: absolute;
    bottom: 12px;
    left: 12px;

    z-index: 6;

    font-size: 11px;
    color: rgba(255,255,255,.8);
}

/* MOBILE */

@media (max-width: 900px) {

    .nb-hero2side {
        grid-template-columns: 1fr;
    }

    .nb-hero2side-big-img,
    .nb-hero2side-big-link .nb-no-thumb {
        height: 320px;
    }

}

@media (max-width: 540px) {

    .nb-hero2side-small-img,
    .nb-hero2side-small-link .nb-no-thumb {
        height: 200px;
    }

}
















/* ===================================================
   STACK NEWS LAYOUT
   =================================================== */

.nb-stack-news{
    display:flex;
    flex-direction:column;
    gap:22px;
}

/* BIG */

.nb-stack-big{
}

.nb-stack-big-link{
    display:block;
    text-decoration:none;
}

.nb-stack-big-img,
.nb-stack-big-link .nb-no-thumb{
    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
    border-radius:8px;
}

.nb-stack-big-body{
    padding-top:18px;
}

.nb-stack-big00 {
	display: flex;
    gap: 10px;
}

.nb-stack-cat{
    font-size: 12px;
    color: gray;
    border: 1px solid #ececec;
    padding: 0px 4px;
    border-radius: 5px;
}

.nb-stack-big-title{
    font-size: 18px;
    text-decoration: none;
    line-height:1.3;
    font-weight:800;
    margin:14px 0;
}

.nb-stack-big-title a{
    color:#222;
    text-decoration:none;
}

.nb-stack-meta{
    margin-bottom:0;
	font-size: 12px;
    border: 1px solid #ececec;
    padding: 0px 4px;
    border-radius: 5px;
}

.nb-stack-date{
    font-size: 12px;
    color: gray;
    border-radius: 5px;
}

.nb-stack-excerpt{
    font-size:16px;
    line-height:1.5;
    color:#444;
}

/* SMALL */

.nb-stack-small-wrap{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.nb-stack-small{
    display:flex;
    gap:16px;
    align-items:flex-start;
}

.nb-stack-small-thumb{
    width:120px;
    min-width:120px;
    display:block;
}

.nb-stack-small-img,
.nb-stack-small-thumb .nb-no-thumb{
    width:120px;
    height:78px;
    object-fit:cover;
    border-radius:4px;
    display:block;
}

.nb-stack-small-body{
    flex:1;
}

.nb-stack-small-title{
    font-size:16px;
    line-height:1.45;
    font-weight:700;
    margin:0 0 8px;
}

.nb-stack-small-title a{
    color:#222;
    text-decoration:none;
}

.nb-stack-small-date{
    font-size:13px;
    color:#888;
}

/* MOBILE */

@media(max-width:768px){

    .nb-stack-big-img,
    .nb-stack-big-link .nb-no-thumb{
        height:250px;
    }

    .nb-stack-big-title{
        font-size:22px;
    }

    .nb-stack-excerpt{
        font-size:15px;
    }

    .nb-stack-small-thumb{
        width:100px;
        min-width:100px;
    }

    .nb-stack-small-img,
    .nb-stack-small-thumb .nb-no-thumb{
        width:100px;
        height:70px;
    }

}







