/* ============================================================
   NEWS DISPLAY BLOCK — style.css  v3.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-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; inset-inline-start: 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; inset-inline-start: 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; inset-inline-start: 16px; inset-inline-end: 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; inset-inline-start: 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; inset-inline-start: 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; inset-inline-start: 12px; inset-inline-end: 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; inset-inline-start: 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; inset-inline-start: 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; inset-inline-start: 24px; inset-inline-end: 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; inset-inline-start: 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; inset-inline-start: 8px; inset-inline-end: 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; inset-inline-start: 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; inset-inline-start: 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; inset-inline-start: 24px; inset-inline-end: 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; inset-inline-start: 0; inset-inline-end: 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; inset-inline-start: 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; inset-inline-start: 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; inset-inline-start: 14px; inset-inline-end: 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;
    inset-inline-start: 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;
    inset-inline-start: 16px;
    inset-inline-end: 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;
    inset-inline-start: 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;
    inset-inline-start: 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;
    inset-inline-start: 12px;
    inset-inline-end: 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;
    inset-inline-start: 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:var(--nb-stack-text,#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:var(--nb-stack-sub,#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:var(--nb-stack-text,#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;
    }

}


/* ===================================================
   BIG SLIDER LAYOUT (one full-width slide, text over image)
   =================================================== */
.nb-bigslider {
    position: relative;
    border-radius: var(--nb-radius-lg);
    overflow: hidden;
    background: var(--nb-bg2);
}
/* base slider layout — works before / without Swiper (editor preview) */
.nb-bigslider .swiper { overflow: hidden; }
.nb-bigslider .swiper-wrapper { display: flex; }
.nb-bigslider .swiper-slide { flex: 0 0 100%; width: 100%; }

.nb-bigslide-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
}
.nb-bigslide-img,
.nb-bigslide-link .nb-no-thumb {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}
.nb-bigslide-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}
.nb-bigslide-cat {
    position: absolute; top: 16px; inset-inline-start: 16px; z-index: 6;
    background: var(--nb-accent); color: #fff;
    font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    line-height: 1.4;
    padding: 5px 10px; border-radius: 5px;
}
.nb-bigslide-body {
    position: absolute; inset-inline-start: 16px; inset-inline-end: 16px; bottom: 18px; z-index: 6;
}
.nb-bigslide-title {
    color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-bigslide-excerpt {
    color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.5;
    margin: 0 0 10px; max-width: 760px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-bigslide-meta {
    display: flex; flex-wrap: wrap; gap: 4px;
    font-size: 12px; font-weight: 700; color: #fff;
}

.nb-bigslider-arrow {
    position: absolute; top: 50%; z-index: 10;
    transform: translateY(-50%);
    width: 48px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    color: #fff; cursor: pointer;
    opacity: .9;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.55));
    transition: opacity var(--nb-trans), color var(--nb-trans), transform var(--nb-trans);
}
.nb-bigslider-arrow svg { width: 36px; height: 36px; display: block; }
.nb-bigslider-prev { inset-inline-start: 14px; }
.nb-bigslider-next { inset-inline-end: 14px; }
.nb-bigslider-arrow:hover,
.nb-bigslider-arrow:focus { background: none; color: var(--nb-accent); opacity: 1; outline: none; }
.nb-bigslider-arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.nb-bigslider-prev:hover { transform: translateY(-50%) translateX(-2px); }
.nb-bigslider-next:hover { transform: translateY(-50%) translateX(2px); }
.nb-bigslider-arrow.swiper-button-lock { display: none; }

@media (max-width: 900px) {
    .nb-bigslide-img, .nb-bigslide-link .nb-no-thumb { height: 340px; }
}
@media (max-width: 540px) {
    .nb-bigslide-img, .nb-bigslide-link .nb-no-thumb { height: 260px; }
    .nb-bigslide-title { font-size: 16px; }
    .nb-bigslide-excerpt { display: none; }
    .nb-bigslider-arrow { width: 36px; }
    .nb-bigslider-arrow svg { width: 26px; height: 26px; }
    .nb-bigslider-prev { inset-inline-start: 4px; }
    .nb-bigslider-next { inset-inline-end: 4px; }
}

/* ===================================================
   FIXES
   =================================================== */
/* 1 column was selectable in the editor but had no rule */
.nb-grid1[data-columns="1"],
.nb-card-overlay-grid[data-columns="1"] { grid-template-columns: 1fr; }

/* data-columns is always present and used to override the responsive rules */
@media (max-width: 1080px) { .nb-grid1[data-columns="3"], .nb-grid1[data-columns="4"] { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .nb-card-overlay-grid[data-columns="3"], .nb-card-overlay-grid[data-columns="4"] { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px)  { .nb-grid1[data-columns], .nb-card-overlay-grid[data-columns] { grid-template-columns: 1fr; } }

/* keyframes (previously printed into wp_head on every page, missing in the editor) */
@keyframes nb-spin { to { transform: rotate(360deg); } }
@keyframes nb-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes nb-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* ####################################################################
   v3.0
   #################################################################### */

/* ── v2 → v3 markup fixes (same look) ──────────────────────────────── */
.nb-bigslide-meta > * { color: inherit; font-size: inherit; }
.nb-ticker-dup { display: contents; }
.nb-ticker:hover .nb-ticker-inner,
.nb-ticker:focus-within .nb-ticker-inner { animation-play-state: paused; }
.nb-news-block .screen-reader-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* overlay cards: no date → the title sits on the bottom edge */
.nb-no-date .nb-hero2-title,
.nb-no-date .nb-hero2side-title { bottom: 16px; }
.nb-no-date .nb-hero2-small-title,
.nb-no-date .nb-hero2side-small-title { bottom: 12px; }
.nb-no-date .nb-hero3-small-title { bottom: 8px; }

/* ── Section header ────────────────────────────────────────────────── */
.nb-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 0 0 16px;
}
.nb-head-main { min-width: 0; }
.nb-head-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25;
    color: var(--nb-c-title, var(--nb-text));
}
.nb-head-icon { flex: 0 0 auto; color: var(--nb-accent); }
.nb-head-desc { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--nb-c-meta, var(--nb-muted)); }
.nb-head-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    color: var(--nb-accent);
}
.nb-head-link svg { width: 16px; height: 16px; transition: transform var(--nb-trans); }
.nb-head-link:hover svg { transform: translateX(2px); }
[dir="rtl"] .nb-head-link svg { transform: scaleX(-1); }
.nb-head-link:focus-visible { outline: 2px solid var(--nb-c-btn-focus, var(--nb-accent)); outline-offset: 2px; border-radius: 4px; }
.nb-head-divider { padding-bottom: 12px; border-bottom: 2px solid var(--nb-border); }
.nb-head-center { flex-direction: column; text-align: center; }
.nb-head-center .nb-head-title { justify-content: center; }

/* ── Read more ─────────────────────────────────────────────────────── */
.nb-readmore {
    display: inline-block; margin-top: 8px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    color: var(--nb-accent);
}
.nb-readmore:hover { text-decoration: underline; }

/* ── Continuation grid (posts beyond a hero composition) ───────────── */
.nb-grid1.nb-cont-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.nb-cont-grid:empty { display: none; }
@media (max-width: 1024px) { .nb-grid1.nb-cont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .nb-grid1.nb-cont-grid { grid-template-columns: 1fr; } }

/* ── Pager (links; works without JS) ───────────────────────────────── */
.nb-pager .nb-prev,
.nb-pager .nb-next,
.nb-pager .nb-page,
.nb-pager .nb-more {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--nb-c-btn-bg, var(--nb-bg));
    border: 1.5px solid var(--nb-border);
    color: var(--nb-c-btn-text, var(--nb-text));
    font-size: 13px; font-weight: 600; line-height: 1;
    padding: 7px 16px; border-radius: 8px;
    text-decoration: none; cursor: pointer;
    transition: all var(--nb-trans);
}
.nb-pager .nb-page { min-width: 34px; padding: 8px 10px; }
.nb-pager .nb-more { padding: 10px 24px; }
.nb-pager a.nb-prev:hover,
.nb-pager a.nb-next:hover,
.nb-pager a.nb-page:hover,
.nb-pager a.nb-more:hover {
    border-color: var(--nb-c-btn-hover-bg, var(--nb-accent));
    color: var(--nb-c-btn-hover-text, var(--nb-accent));
    background: var(--nb-c-btn-hover-bg, #fff);
}
.nb-pager a:active { background: var(--nb-c-btn-active-bg, var(--nb-c-btn-hover-bg, #fff)); color: var(--nb-c-btn-active-text, var(--nb-accent)); }
.nb-pager a:focus-visible { outline: 2px solid var(--nb-c-btn-focus, var(--nb-accent)); outline-offset: 2px; }
.nb-pager .nb-current {
    background: var(--nb-c-btn-active-bg, var(--nb-accent));
    border-color: var(--nb-c-btn-active-bg, var(--nb-accent));
    color: var(--nb-c-btn-active-text, #fff);
    cursor: default;
}
.nb-pager [aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.nb-page-gap { color: var(--nb-muted); padding: 0 2px; }
.nb-end { font-size: 13px; color: var(--nb-c-meta, var(--nb-muted)); }
.nb-is-loading .nb-pager a { pointer-events: none; opacity: .6; }
.nb-pager .nb-more.nb-busy::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: nb-spin .75s linear infinite;
}

/* loading: the old content stays in place (and comes back if the request fails) */
.nb-swapping > :not(.nb-loading-overlay) { visibility: hidden; }
.nb-loading-overlay.nb-sk-over {
    display: block; overflow: hidden; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nb-error {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
    margin-top: 14px; padding: 10px 14px;
    border: 1px solid #f1b5b5; border-radius: 8px; background: #fdf2f2; color: #8a1f1f;
    font-size: 13.5px;
}
.nb-error .nb-retry {
    border: 1.5px solid currentColor; background: #fff; color: inherit;
    font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 6px; cursor: pointer;
}
.nb-sentinel { height: 1px; }

/* ── Slider pause button ───────────────────────────────────────────── */
.nb-slider, .nb-bigslider { position: relative; }
.nb-slider-pause {
    position: absolute; z-index: 11; top: 10px; inset-inline-end: 10px;
    width: 32px; height: 32px; padding: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(0,0,0,.5); color: #fff; box-shadow: none;
}
.nb-slider-pause svg { width: 16px; height: 16px; }
.nb-slider-pause[aria-pressed="true"] { background: var(--nb-accent); }
.nb-slider-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nb-bigslider .swiper-pagination { bottom: 8px; }

/* ── Photo gallery ─────────────────────────────────────────────────── */
.nb-layout-photo_gallery,
.nb-layout-video_grid {
    background: var(--nb-c-section-bg, var(--nb-bg));
    padding: 18px;
    border-radius: var(--nb-radius-lg);
}
.nb-gallery { display: grid; gap: 10px; }
.nb-gal-item {
    position: relative; margin: 0; overflow: hidden;
    border-radius: var(--nb-radius);
    background: var(--nb-bg2);
}
.nb-gal-link { display: block; height: 100%; position: relative; color: #fff; text-decoration: none; }
.nb-gal-img, .nb-gal-link .nb-no-thumb {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.nb-gal-item:hover .nb-gal-img { transform: scale(1.04); }
.nb-gal-link:focus-visible { outline: 3px solid var(--nb-c-btn-focus, var(--nb-accent)); outline-offset: -3px; }

.nb-layout-photo_gallery .nb-news-block-content { container-type: inline-size; }
.nb-gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: var(--nb-mosaic-row, clamp(64px, 15vw, 170px));
    grid-auto-flow: dense;
}
@supports (width: 1cqw) {
    .nb-gallery-mosaic { grid-auto-rows: var(--nb-mosaic-row, clamp(56px, 19cqw, 260px)); }
}
.nb-gallery-mosaic .nb-gal-item:nth-child(4n+1) { grid-column: 1; grid-row: span 2; }
.nb-gallery-mosaic .nb-gal-item:nth-child(4n+2) { grid-column: 2; }
.nb-gallery-mosaic .nb-gal-item:nth-child(4n+3) { grid-column: 1; }
.nb-gallery-mosaic .nb-gal-item:nth-child(4n+4) { grid-column: 2; grid-row: span 2; }

.nb-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nb-gallery-grid .nb-gal-img, .nb-gallery-grid .nb-no-thumb { aspect-ratio: 4 / 3; height: auto; }

.nb-gallery-masonry { display: block; columns: 3; column-gap: 10px; }
.nb-gallery-masonry .nb-gal-item { break-inside: avoid; margin-bottom: 10px; }
.nb-gallery-masonry .nb-gal-img { height: auto; }

.nb-gal-zoom, .nb-gal-count {
    position: absolute; z-index: 3; inset-inline-end: 8px; bottom: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: 12px; font-weight: 700; line-height: 1;
    pointer-events: none;
}
.nb-gal-zoom { padding: 0; width: 28px; }
.nb-gal-zoom svg, .nb-gal-count svg { width: 14px; height: 14px; }
.nb-gal-cap {
    position: absolute; z-index: 2; inset-inline: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 2px;
    padding: 28px 44px 10px 12px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
    color: #fff; pointer-events: none;
}
.nb-gal-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.nb-gal-caption { font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.88); }
.nb-news-block .nb-gal-cap .nb-d { font-size: 11px; color: rgba(255,255,255,.85); }

@media (max-width: 1024px) { .nb-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nb-gallery-masonry { columns: 2; } }
@media (max-width: 600px)  { .nb-layout-photo_gallery, .nb-layout-video_grid { padding: 14px; } }

/* ── Video ─────────────────────────────────────────────────────────── */
.nb-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nb-video { min-width: 0; }
.nb-video-thumb {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--nb-radius);
    background: #111; color: #fff; text-decoration: none;
}
.nb-video-img, .nb-video-thumb .nb-no-thumb {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.nb-video:hover .nb-video-img { transform: scale(1.04); }
.nb-video-thumb:focus-visible { outline: 3px solid var(--nb-c-btn-focus, var(--nb-accent)); outline-offset: 2px; }
.nb-play {
    position: absolute; inset: 0; margin: auto;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--nb-c-play, rgba(0,0,0,.55)); color: #fff;
    border: 2px solid rgba(255,255,255,.92);
    transition: transform var(--nb-trans), background var(--nb-trans);
}
.nb-play svg { width: 20px; height: 20px; margin-inline-start: 2px; }
.nb-video-thumb:hover .nb-play { transform: scale(1.08); background: var(--nb-c-play, var(--nb-accent)); }
.nb-duration {
    position: absolute; inset-inline-end: 8px; bottom: 8px;
    background: rgba(0,0,0,.78); color: #fff;
    font-size: 11px; font-weight: 600; line-height: 1;
    padding: 4px 6px; border-radius: 4px;
}
.nb-video-body { padding-top: 10px; }
.nb-video-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.nb-video-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-video-title a:hover { color: var(--nb-accent); }
.nb-video-list { display: flex; flex-direction: column; gap: 16px; }
.nb-video-list .nb-video { display: flex; gap: 14px; align-items: flex-start; }
.nb-video-list .nb-video-thumb { flex: 0 0 38%; max-width: 240px; }
.nb-video-list .nb-video-body { flex: 1; min-width: 0; padding-top: 0; }
.nb-video-slider .swiper-slide { height: auto; }
.nb-video-slider.nb-slider .swiper { padding-bottom: 28px; }
.nb-video-thumb.nb-playing .nb-play,
.nb-video-thumb.nb-playing .nb-duration,
.nb-video-thumb.nb-playing .nb-i { display: none; }
.nb-video-thumb video, .nb-video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

@media (max-width: 1024px) { .nb-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .nb-video-grid { grid-template-columns: 1fr; } }

/* ── Lightbox / video modal ────────────────────────────────────────── */
.nb-lb {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; flex-direction: column;
    background: rgba(10,10,12,.94); color: #fff;
    font-family: inherit;
}
.nb-lb[hidden] { display: none; }
.nb-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 52px; }
.nb-lb-count { font-size: 13px; font-weight: 600; opacity: .85; }
.nb-lb-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-lb-tools { display: flex; gap: 6px; }
.nb-lb button {
    width: 40px; height: 40px; margin: 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; cursor: pointer; box-shadow: none;
    background: rgba(255,255,255,.12); color: #fff;
    font-size: 13px; font-weight: 700; line-height: 1;
}
.nb-lb button:hover { background: rgba(255,255,255,.24); }
.nb-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nb-lb button[aria-pressed="false"] { opacity: .55; }
.nb-lb button svg { width: 20px; height: 20px; }
.nb-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 56px; touch-action: pan-y; }
.nb-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 4px; }
.nb-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.nb-lb-prev { inset-inline-start: 8px; }
.nb-lb-next { inset-inline-end: 8px; }
.nb-lb-cap { padding: 10px 16px 16px; text-align: center; font-size: 13.5px; line-height: 1.45; min-height: 20px; }
.nb-lb-cap[hidden] { display: none; }
.nb-lb-player { width: min(100%, 1100px); aspect-ratio: 16 / 9; max-height: 100%; background: #000; border-radius: 6px; overflow: hidden; }
.nb-lb-player video, .nb-lb-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.nb-lb-fallback { color: #fff; font-size: 13px; text-decoration: underline; }
.nb-lb-msg { font-size: 14px; opacity: .85; }
html.nb-lb-open { overflow: hidden; }
@media (max-width: 600px) { .nb-lb-stage { padding: 0 6px; } .nb-lb-nav { background: rgba(0,0,0,.45) !important; } }

/* ####################################################################
   Per-block overrides — only active when the block sets the value.
   All variables live on the block's own wrapper.
   #################################################################### */

/* typography */
.nb-news-block.nb-o-ts-d .nb-t:not(.nb-t-big), .nb-news-block.nb-o-ts-d .nb-t:not(.nb-t-big) a, .nb-news-block.nb-o-ts-d .nb-t-ov:not(.nb-t-big) { font-size: var(--nb-ts-d); }
.nb-news-block.nb-o-tsb-d .nb-t-big, .nb-news-block.nb-o-tsb-d .nb-t-big a { font-size: var(--nb-tsb-d); }
.nb-news-block.nb-o-tw .nb-t, .nb-news-block.nb-o-tw .nb-t a, .nb-news-block.nb-o-tw .nb-t-ov { font-weight: var(--nb-tw); }
.nb-news-block.nb-o-tlh .nb-t, .nb-news-block.nb-o-tlh .nb-t a, .nb-news-block.nb-o-tlh .nb-t-ov { line-height: var(--nb-tlh); }
.nb-news-block.nb-o-tcl .nb-t > a, .nb-news-block.nb-o-tcl .nb-t-ov, .nb-news-block.nb-o-tcl span.nb-t {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--nb-tcl); overflow: hidden;
}
.nb-news-block.nb-ta-left .nb-t, .nb-news-block.nb-ta-left .nb-t-ov { text-align: start; }
.nb-news-block.nb-ta-center .nb-t, .nb-news-block.nb-ta-center .nb-t-ov { text-align: center; }
.nb-news-block.nb-ta-right .nb-t, .nb-news-block.nb-ta-right .nb-t-ov { text-align: end; }
.nb-news-block.nb-o-xs .nb-x, .nb-news-block.nb-o-xs .nb-x-ov { font-size: var(--nb-xs); }
.nb-news-block.nb-o-xcl .nb-x, .nb-news-block.nb-o-xcl .nb-x-ov {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--nb-xcl); overflow: hidden;
}
.nb-news-block.nb-o-ms .nb-m, .nb-news-block.nb-o-ms .nb-m > *, .nb-news-block.nb-o-ms .nb-d { font-size: var(--nb-ms); }

/* columns / gaps / padding */
.nb-news-block.nb-o-cols :is(.nb-grid, .nb-grid1:not(.nb-cont-grid), .nb-card-overlay-grid, .nb-video-grid, .nb-gallery-grid) {
    grid-template-columns: repeat(var(--nb-cols-d), minmax(0, 1fr)) !important;
}
.nb-news-block.nb-o-cols :is(.nb-masonry, .nb-gallery-masonry) { columns: var(--nb-cols-d); }
.nb-news-block.nb-o-gap-d :is(.nb-grid, .nb-grid1, .nb-card-overlay-grid, .nb-video-grid, .nb-video-list, .nb-gallery, .nb-hero, .nb-hero2, .nb-hero2-grid, .nb-hero3, .nb-hero3-row, .nb-magazine, .nb-hero2side, .nb-hero2side-grid, .nb-stack-news) { gap: var(--nb-gap-d); }
.nb-news-block.nb-o-gap-d :is(.nb-masonry, .nb-gallery-masonry) { column-gap: var(--nb-gap-d); }
.nb-news-block.nb-o-gap-d :is(.nb-masonry-item, .nb-gallery-masonry .nb-gal-item) { margin-bottom: var(--nb-gap-d); }
.nb-news-block.nb-o-pad-d { padding: var(--nb-pad-d); }

@media (max-width: 1024px) {
    .nb-news-block.nb-o-ts-t .nb-t:not(.nb-t-big), .nb-news-block.nb-o-ts-t .nb-t:not(.nb-t-big) a, .nb-news-block.nb-o-ts-t .nb-t-ov:not(.nb-t-big) { font-size: var(--nb-ts-t); }
    .nb-news-block.nb-o-tsb-t .nb-t-big, .nb-news-block.nb-o-tsb-t .nb-t-big a { font-size: var(--nb-tsb-t); }
    .nb-news-block.nb-o-cols :is(.nb-grid, .nb-grid1:not(.nb-cont-grid), .nb-card-overlay-grid, .nb-video-grid, .nb-gallery-grid) {
        grid-template-columns: repeat(var(--nb-cols-t), minmax(0, 1fr)) !important;
    }
    .nb-news-block.nb-o-cols :is(.nb-masonry, .nb-gallery-masonry) { columns: var(--nb-cols-t); }
    .nb-news-block.nb-o-gap-t :is(.nb-grid, .nb-grid1, .nb-card-overlay-grid, .nb-video-grid, .nb-video-list, .nb-gallery, .nb-hero, .nb-hero2, .nb-hero2-grid, .nb-hero3, .nb-hero3-row, .nb-magazine, .nb-hero2side, .nb-hero2side-grid, .nb-stack-news) { gap: var(--nb-gap-t); }
    .nb-news-block.nb-o-gap-t :is(.nb-masonry, .nb-gallery-masonry) { column-gap: var(--nb-gap-t); }
    .nb-news-block.nb-o-gap-t :is(.nb-masonry-item, .nb-gallery-masonry .nb-gal-item) { margin-bottom: var(--nb-gap-t); }
    .nb-news-block.nb-o-pad-t { padding: var(--nb-pad-t); }
}
@media (max-width: 600px) {
    .nb-news-block.nb-o-ts-m .nb-t:not(.nb-t-big), .nb-news-block.nb-o-ts-m .nb-t:not(.nb-t-big) a, .nb-news-block.nb-o-ts-m .nb-t-ov:not(.nb-t-big) { font-size: var(--nb-ts-m); }
    .nb-news-block.nb-o-tsb-m .nb-t-big, .nb-news-block.nb-o-tsb-m .nb-t-big a { font-size: var(--nb-tsb-m); }
    .nb-news-block.nb-o-cols :is(.nb-grid, .nb-grid1:not(.nb-cont-grid), .nb-card-overlay-grid, .nb-video-grid, .nb-gallery-grid) {
        grid-template-columns: repeat(var(--nb-cols-m), minmax(0, 1fr)) !important;
    }
    .nb-news-block.nb-o-cols :is(.nb-masonry, .nb-gallery-masonry) { columns: var(--nb-cols-m); }
    .nb-news-block.nb-o-gap-m :is(.nb-grid, .nb-grid1, .nb-card-overlay-grid, .nb-video-grid, .nb-video-list, .nb-gallery, .nb-hero, .nb-hero2, .nb-hero2-grid, .nb-hero3, .nb-hero3-row, .nb-magazine, .nb-hero2side, .nb-hero2side-grid, .nb-stack-news) { gap: var(--nb-gap-m); }
    .nb-news-block.nb-o-gap-m :is(.nb-masonry, .nb-gallery-masonry) { column-gap: var(--nb-gap-m); }
    .nb-news-block.nb-o-gap-m :is(.nb-masonry-item, .nb-gallery-masonry .nb-gal-item) { margin-bottom: var(--nb-gap-m); }
    .nb-news-block.nb-o-pad-m { padding: var(--nb-pad-m); }
}

/* card box */
.nb-news-block.nb-o-bw .nb-card { border: var(--nb-bw) solid var(--nb-border); }
.nb-news-block.nb-o-sh .nb-card { box-shadow: var(--nb-card-shadow); }
.nb-news-block.nb-o-hsh .nb-card:hover { box-shadow: var(--nb-hover-shadow); }

/* images */
.nb-news-block.nb-o-ratio .nb-i { aspect-ratio: var(--nb-ratio); height: auto; }
.nb-news-block.nb-o-ratio .nb-gallery-mosaic .nb-i { aspect-ratio: auto; height: 100%; }
.nb-news-block.nb-o-ratio .nb-video-thumb { aspect-ratio: var(--nb-ratio); }
.nb-news-block.nb-o-ratio .nb-video-thumb .nb-i { aspect-ratio: auto; height: 100%; }
.nb-news-block.nb-o-fit .nb-i { object-fit: var(--nb-fit); }
.nb-news-block.nb-o-pos .nb-i { object-position: var(--nb-pos); }

/* colours */
.nb-news-block.nb-c-section-bg { background: var(--nb-c-section-bg); border-radius: var(--nb-radius-lg); }
.nb-news-block.nb-c-section-bg:not([class*="nb-o-pad-"]) { padding: 18px; }
.nb-news-block.nb-c-title .nb-t, .nb-news-block.nb-c-title .nb-t a { color: var(--nb-c-title); }
.nb-news-block.nb-c-title .nb-t a:hover { color: var(--nb-c-title-hover, var(--nb-accent)); }
.nb-news-block.nb-c-title-hover .nb-t a:hover { color: var(--nb-c-title-hover); }
.nb-news-block.nb-c-excerpt .nb-x { color: var(--nb-c-excerpt); }
.nb-news-block.nb-c-meta .nb-m, .nb-news-block.nb-c-meta .nb-m > *, .nb-news-block.nb-c-meta .nb-d { color: var(--nb-c-meta); }
.nb-news-block.nb-c-meta .nb-ov ~ .nb-d, .nb-news-block.nb-c-meta .nb-ov ~ * .nb-d, .nb-news-block.nb-c-meta .nb-ov ~ * .nb-m > * { color: var(--nb-c-overlay-text, rgba(255,255,255,.85)); }
.nb-news-block.nb-c-overlay-text .nb-t-ov, .nb-news-block.nb-c-overlay-text .nb-x-ov,
.nb-news-block.nb-c-overlay-text .nb-ov ~ .nb-d, .nb-news-block.nb-c-overlay-text .nb-ov ~ * .nb-d, .nb-news-block.nb-c-overlay-text .nb-ov ~ * .nb-m > * { color: var(--nb-c-overlay-text); }
.nb-news-block.nb-c-badge-bg .nb-b { background: var(--nb-c-badge-bg); border-color: var(--nb-c-badge-bg); }
.nb-news-block.nb-c-badge-text .nb-b { color: var(--nb-c-badge-text); }
.nb-news-block.nb-c-overlay .nb-ov { background: linear-gradient(180deg, transparent 25%, var(--nb-c-overlay) 100%); }

/* hover behaviour */
.nb-news-block.nb-hover-none .nb-card, .nb-news-block.nb-hover-none .nb-card:hover { transform: none; }
.nb-news-block.nb-hover-none .nb-card:hover .nb-i { transform: none; }
.nb-news-block.nb-hover-lift .nb-card { transition: transform var(--nb-trans), box-shadow var(--nb-trans); }
.nb-news-block.nb-hover-lift .nb-card:hover { transform: translateY(-4px); }
.nb-news-block.nb-hover-zoom .nb-i { transition: transform .35s ease; }
.nb-news-block.nb-hover-zoom .nb-card:hover .nb-i { transform: scale(1.06); }

/* reveal — cards are only hidden once the script has marked the block (.nb-js) */
.nb-js.nb-reveal .nb-card:not(.nb-done) {
    transition: opacity var(--nb-an-dur, 500ms) ease, transform var(--nb-an-dur, 500ms) ease;
    transition-delay: calc(var(--nb-an-delay, 0ms) + var(--nb-i, 0) * var(--nb-an-stagger, 60ms));
}
.nb-js.nb-reveal-fade .nb-card:not(.nb-in) { opacity: 0; }
.nb-js.nb-reveal-slide-up .nb-card:not(.nb-in) { opacity: 0; transform: translateY(24px); }
.nb-js.nb-reveal-zoom .nb-card:not(.nb-in) { opacity: 0; transform: scale(.96); }

/* dark mode */
.nb-news-block.nb-dark-on {
    --nb-text: #f4f4f5; --nb-muted: #a1a1aa; --nb-border: #3f3f46; --nb-bg: #18181b; --nb-bg2: #27272a;
    --nb-stack-text: #f4f4f5; --nb-stack-sub: #d4d4d8;
}
@media (prefers-color-scheme: dark) {
    .nb-news-block.nb-dark-auto {
        --nb-text: #f4f4f5; --nb-muted: #a1a1aa; --nb-border: #3f3f46; --nb-bg: #18181b; --nb-bg2: #27272a;
        --nb-stack-text: #f4f4f5; --nb-stack-sub: #d4d4d8;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nb-news-block *, .nb-lb * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .nb-js.nb-reveal .nb-card { opacity: 1 !important; transform: none !important; }
    .nb-news-block .nb-card:hover, .nb-news-block .nb-card:hover .nb-i { transform: none !important; }
    .nb-ticker-inner { animation: none !important; }
    .nb-ticker-track { overflow-x: auto; }
    .nb-ticker-dup { display: none; }
    .nb-news-block [class*="nb-sk-"] { animation: none !important; }
    .nb-spinner, .nb-pager .nb-more.nb-busy::before { animation-duration: 1.6s !important; }
}

/* placeholders inside media tiles stay centred */
.nb-video-thumb .nb-no-thumb,
.nb-gal-link .nb-no-thumb { display: flex; }

/* Themes that underline every content link (e.g. Astra) must not restyle the block's controls.
   The pager and header link are new markup, so this applies to all blocks; card links only in v3
   blocks, so that existing (v2) blocks look exactly as before. */
.nb-news-block .nb-pager a[data-nb-page],
.nb-news-block .nb-head a.nb-head-link,
.nb-news-block.nb-v3 :is(.nb-t a, a.nb-b, a.nb-ticker-item, .nb-card > a, .swiper-slide > a, a.nb-gal-link, a.nb-video-thumb, a.nb-readmore) { text-decoration: none; }
.nb-news-block.nb-v3 a.nb-readmore:hover { text-decoration: underline; }
