/*
Theme Name: Najbolje mesto
Theme URI: https://najboljemestozaporodicu.rs/
Author: OTPOR
Description: Moderna editorial/blog tema za Najbolje mesto za porodicu.
Version: 1.11.0
Text Domain: najbolje-mesto
*/

:root {
    --nm-ink: #0b1731;
    --nm-navy: #152b55;
    --nm-navy-2: #1f3f77;
    --nm-red: #e3131b;
    --nm-orange: #f36c21;
    --nm-violet: #963d96;
    --nm-blue: #1d8bc3;
    --nm-green: #74a946;
    --nm-paper: #f7f8fb;
    --nm-white: #fff;
    --nm-muted: #6e7890;
    --nm-line: rgba(11, 23, 49, .12);
    --nm-soft-line: rgba(255,255,255,.14);
    --nm-radius: 26px;
    --nm-shadow: 0 24px 60px rgba(11, 23, 49, .10);
    --nm-container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--nm-ink);
    background: var(--nm-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open,
body.search-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    color: #fff;
    background: var(--nm-red);
}

.nm-container {
    width: min(var(--nm-container), calc(100% - 48px));
    margin-inline: auto;
}

.nm-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   MASTHEAD + HEADER
   -------------------------------------------------------------------------- */

.nm-masthead {
    position: relative;
    z-index: 3;
    overflow: hidden;
    background: #f3f6fb;
    border-bottom: 1px solid var(--nm-line);
}

.nm-masthead img {
    width: 100%;
    height: clamp(120px, 16vw, 250px);
    object-fit: cover;
    object-position: center;
}

.nm-masthead::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background:
        linear-gradient(90deg,
            var(--nm-blue) 0 18%,
            var(--nm-orange) 18% 35%,
            var(--nm-violet) 35% 53%,
            var(--nm-green) 53% 69%,
            var(--nm-red) 69% 84%,
            var(--nm-navy) 84% 100%);
}

.nm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(247, 248, 251, .82);
    backdrop-filter: blur(18px) saturate(150%);
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.nm-header.is-scrolled {
    background: rgba(255,255,255,.94);
    border-color: var(--nm-line);
    box-shadow: 0 12px 38px rgba(11, 23, 49, .07);
}

.nm-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.nm-brand-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: var(--nm-red);
    box-shadow: 0 0 0 6px rgba(227,19,27,.09);
    transition: transform .25s ease;
}

.nm-brand:hover .nm-brand-dot {
    transform: scale(1.25);
}

.nm-nav {
    margin-left: auto;
}

.nm-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-nav a {
    position: relative;
    display: block;
    padding: 12px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #33405a;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nm-nav a:hover,
.nm-nav .current-menu-item > a {
    color: var(--nm-ink);
    background: #fff;
    transform: translateY(-1px);
}

.nm-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nm-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--nm-line);
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nm-icon-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(11,23,49,.20);
}

.nm-search-icon {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.nm-search-icon::after {
    content: "";
    width: 8px;
    height: 2px;
    position: absolute;
    right: -6px;
    bottom: -3px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
    border-radius: 2px;
}

.nm-menu-toggle {
    display: none;
}

.nm-menu-bars,
.nm-menu-bars::before,
.nm-menu-bars::after {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 5px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.nm-menu-bars {
    position: relative;
}

.nm-menu-bars::before,
.nm-menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nm-menu-bars::before { top: -6px; }
.nm-menu-bars::after { top: 6px; }

body.nav-open .nm-menu-bars {
    background: transparent;
}
body.nav-open .nm-menu-bars::before {
    top: 0;
    transform: rotate(45deg);
}
body.nav-open .nm-menu-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   HOME HERO
   -------------------------------------------------------------------------- */

.nm-home {
    overflow: hidden;
}

.nm-hero {
    position: relative;
    padding: clamp(44px, 7vw, 94px) 0 56px;
}

.nm-hero::before {
    content: "";
    position: absolute;
    width: min(760px, 65vw);
    aspect-ratio: 1;
    right: -18vw;
    top: -22vw;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(29,139,195,.14), rgba(150,61,150,.07) 42%, transparent 70%);
    pointer-events: none;
}

.nm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: center;
}

.nm-hero-copy {
    position: relative;
    z-index: 2;
}

.nm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--nm-navy);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nm-eyebrow::before {
    content: "";
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--nm-red);
}

.nm-hero-title {
    margin: 0;
    max-width: 820px;
    font-size: clamp(52px, 6.6vw, 105px);
    line-height: .91;
    letter-spacing: -.066em;
    font-weight: 950;
    text-wrap: balance;
}

.nm-hero-title a {
    transition: color .25s ease;
}

.nm-hero-title a:hover {
    color: var(--nm-navy-2);
}

.nm-hero-excerpt {
    max-width: 640px;
    margin: 28px 0 0;
    color: #526078;
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.55;
    font-weight: 500;
}

.nm-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 28px;
    color: var(--nm-muted);
    font-size: 13px;
    font-weight: 750;
}

.nm-post-meta > * + *::before {
    content: "•";
    margin-right: 16px;
    color: #b5bdca;
}

.nm-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--nm-navy);
    background: rgba(21,43,85,.07);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nm-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .02em;
}

.nm-arrow {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--nm-ink);
    transition: transform .25s ease, background .25s ease;
}

.nm-hero-link:hover .nm-arrow,
.nm-card:hover .nm-arrow,
.nm-feed-item:hover .nm-arrow {
    transform: translateX(5px) rotate(-5deg);
    background: var(--nm-red);
}

.nm-hero-media {
    position: relative;
    min-height: 600px;
    border-radius: 36px;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--nm-navy), #203d75 52%, #0e1730);
    box-shadow: var(--nm-shadow);
    transform: translateZ(0);
}

.nm-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 50%, rgba(8,18,39,.28)),
        linear-gradient(135deg, rgba(255,255,255,.08), transparent 35%);
    pointer-events: none;
}

.nm-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.nm-hero-media:hover img {
    transform: scale(1.035);
}

.nm-hero-fallback {
    min-height: 600px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.nm-hero-fallback-word {
    font-size: clamp(84px, 13vw, 190px);
    font-weight: 950;
    letter-spacing: -.09em;
    color: rgba(255,255,255,.92);
    transform: rotate(-7deg);
}

.nm-hero-fallback::before,
.nm-hero-fallback::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(.2px);
}

.nm-hero-fallback::before {
    width: 240px;
    height: 240px;
    left: -50px;
    bottom: 60px;
    background: var(--nm-red);
}
.nm-hero-fallback::after {
    width: 180px;
    height: 180px;
    right: -20px;
    top: 70px;
    background: var(--nm-orange);
    mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   MOVING STRIP
   -------------------------------------------------------------------------- */

.nm-marquee {
    position: relative;
    z-index: 3;
    overflow: hidden;
    color: #fff;
    background: var(--nm-ink);
    border-block: 1px solid rgba(255,255,255,.08);
}

.nm-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 200%;
    white-space: nowrap;
    animation: nmMarquee 28s linear infinite;
}

.nm-marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.nm-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 15px 22px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nm-marquee span::after {
    content: "✦";
    color: var(--nm-orange);
    font-size: 10px;
}

@keyframes nmMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   EDITORIAL GRID
   -------------------------------------------------------------------------- */

.nm-section {
    padding: clamp(72px, 8vw, 118px) 0;
}

.nm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 34px;
}

.nm-section-title {
    margin: 0;
    font-size: clamp(40px, 5vw, 74px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 950;
}

.nm-section-note {
    max-width: 440px;
    margin: 0;
    color: var(--nm-muted);
    font-size: 14px;
    line-height: 1.6;
}

.nm-editorial-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: repeat(2, minmax(240px, auto));
    gap: 18px;
}

.nm-card {
    --accent: var(--nm-blue);
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--nm-radius);
    color: #fff;
    background: var(--nm-ink);
    box-shadow: 0 18px 44px rgba(11,23,49,.08);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
    isolation: isolate;
}

.nm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 64px rgba(11,23,49,.14);
}

.nm-card--lead {
    grid-row: 1 / span 2;
    min-height: 580px;
}

.nm-card--wide {
    grid-column: 2 / span 2;
}

.nm-card-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.nm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.nm-card:hover .nm-card-media img {
    transform: scale(1.05);
}

.nm-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5,12,25,.04) 20%, rgba(5,12,25,.82) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 48%);
}

.nm-card.no-image::before {
    background:
        radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent) 82%, white), transparent 22%),
        linear-gradient(135deg, var(--nm-ink), color-mix(in srgb, var(--nm-ink) 82%, var(--accent)));
}

.nm-card.no-image::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    bottom: -50px;
    border: 3px solid rgba(255,255,255,.20);
    border-radius: 50%;
}

.nm-accent-0 { --accent: var(--nm-blue); }
.nm-accent-1 { --accent: var(--nm-orange); }
.nm-accent-2 { --accent: var(--nm-violet); }
.nm-accent-3 { --accent: var(--nm-green); }
.nm-accent-4 { --accent: var(--nm-red); }

.nm-card-content {
    min-height: inherit;
    padding: clamp(22px, 2.7vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.nm-card-top {
    margin-bottom: auto;
}

.nm-card .nm-category-chip {
    color: #fff;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

.nm-card-title {
    margin: 18px 0 0;
    font-size: clamp(25px, 2.3vw, 38px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 900;
    text-wrap: balance;
}

.nm-card--lead .nm-card-title {
    font-size: clamp(36px, 4vw, 62px);
}

.nm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.nm-card-date {
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 750;
}

.nm-card .nm-arrow {
    flex: 0 0 42px;
    color: var(--nm-ink);
    background: #fff;
}

/* --------------------------------------------------------------------------
   GIANT TYPE BAND
   -------------------------------------------------------------------------- */

.nm-type-band {
    position: relative;
    padding: 26px 0 34px;
    overflow: hidden;
    background: #fff;
    border-block: 1px solid var(--nm-line);
}

.nm-type-band-row {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 40px;
    transform: translateX(-3vw);
}

.nm-type-band-word {
    font-size: clamp(88px, 15vw, 230px);
    line-height: .78;
    font-weight: 950;
    letter-spacing: -.09em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px rgba(11,23,49,.16);
    text-transform: uppercase;
}

.nm-type-band-word.solid {
    color: var(--nm-red);
    -webkit-text-stroke: 0;
}

/* --------------------------------------------------------------------------
   LATEST FEED
   -------------------------------------------------------------------------- */

.nm-feed {
    background: #fff;
}

.nm-feed-list {
    border-top: 1px solid var(--nm-line);
}

.nm-feed-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(160px, 280px) minmax(0, 1fr) 56px;
    align-items: center;
    gap: clamp(18px, 3vw, 38px);
    padding: 24px 0;
    border-bottom: 1px solid var(--nm-line);
    transition: background .25s ease, padding-inline .25s ease;
}

.nm-feed-item:hover {
    padding-inline: 16px;
    background: #f7f8fb;
}

.nm-feed-number {
    color: #c7ccd6;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
}

.nm-feed-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(135deg, var(--nm-navy), #284f8f);
}

.nm-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.nm-feed-item:hover .nm-feed-thumb img {
    transform: scale(1.045);
}

.nm-feed-title {
    margin: 6px 0 8px;
    font-size: clamp(24px, 2.55vw, 40px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 900;
    text-wrap: balance;
}

.nm-feed-excerpt {
    max-width: 780px;
    margin: 0;
    color: var(--nm-muted);
    font-size: 14px;
    line-height: 1.55;
}

.nm-feed-arrow {
    display: flex;
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   EMPTY STATE / CURRENT LANDING DNA
   -------------------------------------------------------------------------- */

.nm-empty {
    padding: clamp(80px, 10vw, 150px) 0;
}

.nm-empty-grid {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: 60px;
    align-items: center;
}

.nm-empty-title {
    margin: 0;
    max-width: 840px;
    font-size: clamp(58px, 8vw, 118px);
    line-height: .88;
    letter-spacing: -.075em;
    font-weight: 950;
}

.nm-empty-copy {
    margin-top: 30px;
    font-size: clamp(21px, 2vw, 30px);
    line-height: 1.35;
    font-weight: 800;
}

.nm-empty-joke {
    color: var(--nm-red);
}

.nm-empty-art {
    min-height: 430px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 36px;
    background: var(--nm-ink);
}

.nm-empty-art::before,
.nm-empty-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.nm-empty-art::before {
    width: 260px;
    height: 260px;
    right: -70px;
    top: -40px;
    background: var(--nm-red);
}
.nm-empty-art::after {
    width: 180px;
    height: 180px;
    left: -30px;
    bottom: -30px;
    background: var(--nm-orange);
}
.nm-empty-art strong {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(70px, 10vw, 145px);
    letter-spacing: -.09em;
    transform: rotate(-8deg);
}

/* --------------------------------------------------------------------------
   ARCHIVES + SEARCH
   -------------------------------------------------------------------------- */

.nm-page-head {
    padding: clamp(64px, 8vw, 108px) 0 48px;
}

.nm-page-head-kicker {
    margin-bottom: 16px;
    color: var(--nm-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.nm-page-title {
    margin: 0;
    max-width: 1000px;
    font-size: clamp(54px, 7vw, 100px);
    line-height: .91;
    letter-spacing: -.065em;
    font-weight: 950;
    text-wrap: balance;
}

.nm-page-description {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--nm-muted);
    font-size: 17px;
    line-height: 1.65;
}

.nm-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 90px;
}

.nm-archive-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--nm-line);
    border-radius: 24px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.nm-archive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(11,23,49,.20);
    box-shadow: 0 22px 48px rgba(11,23,49,.08);
}

.nm-archive-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--nm-navy);
}

.nm-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.nm-archive-card:hover .nm-archive-image img {
    transform: scale(1.04);
}

.nm-archive-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.nm-archive-title {
    margin: 12px 0 10px;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 900;
}

.nm-archive-excerpt {
    margin: 0 0 24px;
    color: var(--nm-muted);
    font-size: 14px;
    line-height: 1.6;
}

.nm-archive-meta {
    margin-top: auto;
    color: #8a93a5;
    font-size: 12px;
    font-weight: 750;
}

.navigation.pagination {
    grid-column: 1 / -1;
    margin-top: 28px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    min-width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--nm-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 850;
}

.page-numbers.current,
.page-numbers:hover {
    color: #fff;
    background: var(--nm-ink);
    border-color: var(--nm-ink);
}

/* --------------------------------------------------------------------------
   SINGLE ARTICLE
   -------------------------------------------------------------------------- */

.nm-progress {
    position: fixed;
    z-index: 80;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

.nm-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--nm-red), var(--nm-orange), var(--nm-violet));
}

.nm-article-hero {
    padding: clamp(58px, 8vw, 110px) 0 44px;
}

.nm-article-head {
    width: min(1060px, 100%);
    margin: 0 auto;
    text-align: center;
}

.nm-article-title {
    margin: 18px 0 0;
    font-size: clamp(54px, 7.2vw, 108px);
    line-height: .91;
    letter-spacing: -.067em;
    font-weight: 950;
    text-wrap: balance;
}

.nm-article-lead {
    width: min(780px, 100%);
    margin: 30px auto 0;
    color: #536079;
    font-size: clamp(19px, 1.8vw, 25px);
    line-height: 1.55;
}

.nm-article-head .nm-post-meta {
    justify-content: center;
}

.nm-article-media {
    width: min(1420px, calc(100% - 48px));
    margin: 36px auto 0;
    overflow: hidden;
    border-radius: 32px;
    background: var(--nm-navy);
    box-shadow: var(--nm-shadow);
}

.nm-article-media img {
    width: 100%;
    max-height: 820px;
    object-fit: cover;
}

.nm-article-content {
    width: min(790px, calc(100% - 48px));
    margin: 58px auto 0;
    color: #192641;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 1.35vw, 21px);
    line-height: 1.82;
}

.nm-article-content > * {
    margin-top: 0;
    margin-bottom: 1.35em;
}

.nm-article-content h2,
.nm-article-content h3,
.nm-article-content h4 {
    margin-top: 1.6em;
    color: var(--nm-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.nm-article-content h2 {
    font-size: clamp(34px, 4vw, 54px);
}

.nm-article-content h3 {
    font-size: clamp(28px, 3vw, 40px);
}

.nm-article-content blockquote {
    margin: 2em -50px;
    padding: 26px 32px;
    border: 0;
    border-left: 6px solid var(--nm-red);
    background: #fff;
    font-size: 1.18em;
    line-height: 1.6;
    box-shadow: 0 18px 40px rgba(11,23,49,.06);
}

.nm-article-content a {
    color: var(--nm-navy-2);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.nm-article-content img {
    border-radius: 20px;
}

.nm-article-content .alignwide {
    width: min(1100px, calc(100vw - 48px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.nm-article-content .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}

.nm-post-nav {
    width: min(1100px, calc(100% - 48px));
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.nm-post-nav a {
    min-height: 180px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--nm-line);
    border-radius: 24px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.nm-post-nav a:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(11,23,49,.08);
}

.nm-post-nav-label {
    color: var(--nm-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nm-post-nav-title {
    margin-top: 18px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.03em;
}

.nm-related {
    padding: 90px 0 110px;
}

/* --------------------------------------------------------------------------
   PAGES / 404
   -------------------------------------------------------------------------- */

.nm-basic-page {
    padding: 76px 0 110px;
}

.nm-basic-page .nm-article-content {
    margin-top: 34px;
}

.nm-404 {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 60px 0;
}

.nm-404-inner {
    width: min(1000px, calc(100% - 48px));
    text-align: center;
}

.nm-404-code {
    margin: 0;
    color: var(--nm-red);
    font-size: clamp(120px, 25vw, 340px);
    line-height: .72;
    letter-spacing: -.1em;
    font-weight: 950;
}

.nm-404-title {
    margin: 36px 0 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 950;
}

.nm-404-copy {
    max-width: 620px;
    margin: 20px auto 30px;
    color: var(--nm-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SEARCH OVERLAY
   -------------------------------------------------------------------------- */

.nm-search-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    background: rgba(7,15,31,.94);
    backdrop-filter: blur(22px);
    transition: opacity .25s ease, visibility .25s ease;
}

body.search-open .nm-search-overlay {
    visibility: visible;
    opacity: 1;
}

.nm-search-panel {
    width: min(900px, 100%);
    color: #fff;
}

.nm-search-close {
    margin-left: auto;
    margin-bottom: 44px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.nm-search-title {
    margin: 0 0 24px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 950;
}

.nm-search-form {
    display: flex;
    gap: 10px;
}

.nm-search-input {
    flex: 1;
    min-width: 0;
    height: 62px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px;
    outline: 0;
    color: #fff;
    background: rgba(255,255,255,.08);
}

.nm-search-input:focus {
    border-color: #fff;
    background: rgba(255,255,255,.12);
}

.nm-search-submit {
    height: 62px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--nm-red);
    font-weight: 900;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.nm-footer {
    position: relative;
    overflow: hidden;
    padding: 70px 0 26px;
    color: rgba(255,255,255,.78);
    background: var(--nm-ink);
}

.nm-footer::before {
    content: "NAJBOLJE MESTO";
    position: absolute;
    left: -2vw;
    bottom: -5vw;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.07);
    font-size: clamp(90px, 15vw, 230px);
    line-height: .75;
    font-weight: 950;
    letter-spacing: -.08em;
    white-space: nowrap;
    pointer-events: none;
}

.nm-footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.nm-footer-brand {
    max-width: 650px;
}

.nm-footer-title {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 950;
}

.nm-footer-joke {
    margin: 18px 0 0;
    color: rgba(255,255,255,.62);
    font-size: 14px;
}

.nm-footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.nm-footer-nav a {
    font-size: 14px;
    font-weight: 750;
}

.nm-footer-nav a:hover {
    color: #fff;
}

.nm-footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 70px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--nm-soft-line);
    font-size: 12px;
    color: rgba(255,255,255,.48);
}

/* --------------------------------------------------------------------------
   REVEALS / MOTION
   -------------------------------------------------------------------------- */

.nm-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .7s cubic-bezier(.2,.8,.2,1),
        transform .7s cubic-bezier(.2,.8,.2,1);
}

.nm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nm-reveal[data-delay="1"] { transition-delay: .08s; }
.nm-reveal[data-delay="2"] { transition-delay: .16s; }
.nm-reveal[data-delay="3"] { transition-delay: .24s; }

.nm-hero-copy {
    animation: nmHeroCopy .72s cubic-bezier(.2,.8,.2,1) both;
}

.nm-hero-media {
    animation: nmHeroMedia .88s .07s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes nmHeroCopy {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nmHeroMedia {
    from { opacity: 0; clip-path: inset(0 0 100% 0 round 36px); transform: translateY(16px); }
    to { opacity: 1; clip-path: inset(0 0 0 0 round 36px); transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .nm-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .nm-hero-media,
    .nm-hero-media img,
    .nm-hero-fallback {
        min-height: 520px;
    }

    .nm-editorial-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .nm-card--lead {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 520px;
    }

    .nm-card--wide {
        grid-column: auto;
    }

    .nm-archive-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 860px) {
    .nm-container {
        width: min(100% - 32px, var(--nm-container));
    }

    .nm-masthead img {
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .nm-header-inner {
        min-height: 68px;
    }

    .nm-brand {
        max-width: calc(100vw - 150px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nm-menu-toggle {
        display: inline-grid;
    }

    .nm-nav {
        position: fixed;
        z-index: 60;
        top: 68px;
        left: 16px;
        right: 16px;
        max-height: calc(100vh - 92px);
        overflow: auto;
        padding: 14px;
        border: 1px solid var(--nm-line);
        border-radius: 22px;
        background: rgba(255,255,255,.98);
        box-shadow: 0 20px 60px rgba(11,23,49,.15);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    body.nav-open .nm-nav {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nm-nav ul {
        display: grid;
        gap: 4px;
    }

    .nm-nav a {
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 16px;
    }

    .nm-hero {
        padding-top: 42px;
    }

    .nm-hero-grid {
        grid-template-columns: 1fr;
    }

    .nm-hero-copy {
        order: 2;
    }

    .nm-hero-media {
        order: 1;
        min-height: 500px;
    }

    .nm-hero-media img,
    .nm-hero-fallback {
        min-height: 500px;
    }

    .nm-hero-title {
        font-size: clamp(52px, 12vw, 82px);
    }

    .nm-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nm-feed-item {
        grid-template-columns: 42px 150px minmax(0,1fr);
    }

    .nm-feed-arrow {
        display: none;
    }

    .nm-feed-excerpt {
        display: none;
    }

    .nm-empty-grid {
        grid-template-columns: 1fr;
    }

    .nm-empty-art {
        min-height: 330px;
    }

    .nm-post-nav {
        grid-template-columns: 1fr;
    }

    .nm-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .nm-container {
        width: calc(100% - 28px);
    }

    .nm-masthead img {
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .nm-masthead::after {
        height: 4px;
    }

    .nm-header-inner {
        gap: 8px;
    }

    .nm-brand {
        font-size: 14px;
    }

    .nm-brand-dot {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
        box-shadow: 0 0 0 4px rgba(227,19,27,.09);
    }

    .nm-hero {
        padding: 24px 0 38px;
    }

    .nm-hero-grid {
        gap: 26px;
    }

    .nm-hero-media {
        min-height: 355px;
        border-radius: 24px;
    }

    .nm-hero-media img,
    .nm-hero-fallback {
        min-height: 355px;
    }

    .nm-hero-title {
        font-size: clamp(43px, 13.2vw, 66px);
        line-height: .94;
    }

    .nm-hero-excerpt {
        margin-top: 20px;
        font-size: 17px;
    }

    .nm-post-meta {
        margin-top: 20px;
        gap: 8px 10px;
    }

    .nm-post-meta > * + *::before {
        margin-right: 10px;
    }

    .nm-hero-link {
        margin-top: 22px;
    }

    .nm-section {
        padding: 68px 0;
    }

    .nm-section-title {
        font-size: 46px;
    }

    .nm-editorial-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nm-card,
    .nm-card--lead,
    .nm-card--wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 420px;
    }

    .nm-card-title,
    .nm-card--lead .nm-card-title {
        font-size: 34px;
    }

    .nm-type-band {
        padding: 22px 0 28px;
    }

    .nm-type-band-word {
        font-size: 98px;
    }

    .nm-feed-item {
        grid-template-columns: 34px 92px minmax(0,1fr);
        gap: 12px;
        padding: 16px 0;
    }

    .nm-feed-item:hover {
        padding-inline: 0;
        background: transparent;
    }

    .nm-feed-thumb {
        border-radius: 12px;
    }

    .nm-feed-title {
        margin: 2px 0 0;
        font-size: 20px;
    }

    .nm-feed-content .nm-category-chip,
    .nm-feed-content .nm-archive-meta {
        display: none;
    }

    .nm-empty {
        padding: 64px 0 80px;
    }

    .nm-empty-title {
        font-size: clamp(52px, 16vw, 82px);
    }

    .nm-empty-copy {
        font-size: 20px;
    }

    .nm-page-head {
        padding: 50px 0 34px;
    }

    .nm-page-title {
        font-size: clamp(48px, 15vw, 72px);
    }

    .nm-archive-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nm-article-hero {
        padding: 42px 0 30px;
    }

    .nm-article-title {
        font-size: clamp(48px, 14vw, 72px);
    }

    .nm-article-lead {
        margin-top: 22px;
        font-size: 18px;
    }

    .nm-article-media {
        width: calc(100% - 28px);
        margin-top: 26px;
        border-radius: 20px;
    }

    .nm-article-content {
        width: calc(100% - 34px);
        margin-top: 38px;
        font-size: 18px;
        line-height: 1.75;
    }

    .nm-article-content blockquote {
        margin-inline: 0;
        padding: 22px;
    }

    .nm-article-content .alignwide {
        width: calc(100vw - 28px);
    }

    .nm-post-nav {
        width: calc(100% - 28px);
        margin-top: 56px;
    }

    .nm-related {
        padding: 64px 0 78px;
    }

    .nm-search-overlay {
        padding: 20px;
    }

    .nm-search-title {
        font-size: 52px;
    }

    .nm-search-form {
        display: grid;
    }

    .nm-footer {
        padding-top: 54px;
    }

    .nm-footer-bottom {
        margin-top: 50px;
        flex-direction: column;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .nm-reveal {
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   V1.1 — DOMEN AKTIVAN + STUDENTI POBEĐUJU
   ========================================================================== */

.nm-brand--domain {
    gap: 11px;
    color: var(--nm-ink);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.nm-brand--domain .nm-brand-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background: #16b364;
    box-shadow: 0 0 0 5px rgba(22,179,100,.11);
    animation: nmDomainPulse 1.8s ease-out infinite;
}

.nm-brand--domain:hover .nm-brand-dot {
    transform: none;
}

@keyframes nmDomainPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(22,179,100,.34),
            0 0 0 5px rgba(22,179,100,.10);
    }
    58% {
        box-shadow:
            0 0 0 9px rgba(22,179,100,0),
            0 0 0 5px rgba(22,179,100,.08);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(22,179,100,0),
            0 0 0 5px rgba(22,179,100,.10);
    }
}

/* Editorial STUDENTI POBEĐUJU block */
.nm-students {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 116px) 0;
    color: var(--nm-red);
    background:
        radial-gradient(circle at 82% 20%, rgba(227,19,27,.08), transparent 26%),
        linear-gradient(180deg, #fff 0%, #faf7f7 100%);
    border-block: 1px solid rgba(227,19,27,.14);
    isolation: isolate;
}

.nm-students::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(760px, 62vw);
    aspect-ratio: 1;
    left: -24vw;
    bottom: -38vw;
    border: clamp(46px, 6vw, 90px) solid rgba(227,19,27,.045);
    border-radius: 50%;
}

.nm-students-motion {
    position: absolute;
    z-index: -1;
    inset: 50% 0 auto;
    transform: translateY(-50%) rotate(-4deg);
    opacity: .10;
    overflow: hidden;
    pointer-events: none;
}

.nm-students-motion-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: nmStudentsMove 30s linear infinite;
}

.nm-students-motion-track span {
    padding-right: .35em;
    color: transparent;
    -webkit-text-stroke: 2px var(--nm-red);
    font-size: clamp(120px, 18vw, 290px);
    line-height: .74;
    font-weight: 950;
    letter-spacing: -.085em;
}

@keyframes nmStudentsMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.nm-students-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
    gap: clamp(42px, 7vw, 96px);
    align-items: center;
}

.nm-students-copy {
    min-width: 0;
}

.nm-students-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--nm-ink);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .18em;
}

.nm-students-kicker::before {
    content: "";
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: var(--nm-red);
}

.nm-students-title {
    margin: 0;
    display: grid;
    font-size: clamp(66px, 8.7vw, 138px);
    line-height: .76;
    letter-spacing: -.075em;
    font-weight: 950;
    text-transform: uppercase;
}

.nm-students-title span:last-child {
    margin-left: clamp(18px, 4vw, 72px);
    color: transparent;
    -webkit-text-stroke: clamp(2px, .16vw, 3px) var(--nm-red);
}

.nm-students-poster {
    position: relative;
    justify-self: end;
    width: min(470px, 100%);
    transform: rotate(2.5deg);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.nm-students-poster::before {
    content: "";
    position: absolute;
    inset: 8% -7% -8% 8%;
    z-index: -1;
    border-radius: 30px;
    background: var(--nm-red);
    opacity: .08;
    transform: rotate(-5deg);
}

.nm-students-poster img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(11,23,49,.13);
}

.nm-students-poster:hover {
    transform: rotate(-1deg) translateY(-6px);
}

@media (max-width: 860px) {
    .nm-students-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .nm-students-copy {
        text-align: center;
    }

    .nm-students-kicker {
        justify-content: center;
    }

    .nm-students-title {
        font-size: clamp(62px, 14vw, 104px);
    }

    .nm-students-title span:last-child {
        margin-left: 0;
    }

    .nm-students-poster {
        justify-self: center;
        width: min(430px, 84vw);
    }
}

@media (max-width: 620px) {
    .nm-brand--domain {
        max-width: none;
        font-size: 11px;
        letter-spacing: .065em;
    }

    .nm-students {
        padding: 64px 0 72px;
    }

    .nm-students-motion {
        opacity: .07;
    }

    .nm-students-motion-track span {
        font-size: 118px;
        -webkit-text-stroke-width: 1px;
    }

    .nm-students-title {
        font-size: clamp(52px, 15vw, 78px);
        line-height: .80;
    }

    .nm-students-poster {
        width: min(330px, 86vw);
        transform: rotate(1.5deg);
    }

    .nm-students-poster img {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-brand--domain .nm-brand-dot,
    .nm-students-motion-track {
        animation: none !important;
    }
}


/* ==========================================================================
   V1.2 — Udarni hero + mobile masthead fix + back to top
   ========================================================================== */

.nm-stance-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(46px, 7vw, 94px) 0 clamp(42px, 6vw, 76px);
    background:
        radial-gradient(circle at 80% 16%, rgba(227,19,27,.09), transparent 26%),
        radial-gradient(circle at 12% 82%, rgba(21,43,85,.07), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8f8fb 100%);
}

.nm-stance-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: min(680px, 62vw);
    aspect-ratio: 1;
    left: -20vw;
    top: 8%;
    border: clamp(30px, 5vw, 70px) solid rgba(21,43,85,.045);
    border-radius: 50%;
}

.nm-stance-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    gap: clamp(30px, 7vw, 96px);
    align-items: center;
}

.nm-stance-copy {
    min-width: 0;
}

.nm-stance-title {
    margin: 0;
    display: grid;
    gap: 2px;
    line-height: .82;
    letter-spacing: -.08em;
    font-weight: 950;
    text-transform: uppercase;
}

.nm-stance-serbia,
.nm-stance-mafija,
.nm-stance-ili {
    display: block;
}

.nm-stance-serbia {
    font-size: clamp(66px, 8.2vw, 136px);
    background: linear-gradient(180deg, #d8262d 0 33%, #18448c 33% 66%, #ffffff 66% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px rgba(11,23,49,.16);
    text-shadow: 0 14px 40px rgba(11,23,49,.08);
}

.nm-stance-ili {
    margin-left: clamp(4px, .9vw, 18px);
    color: #8690a3;
    font-size: clamp(18px, 1.5vw, 26px);
    letter-spacing: .30em;
    line-height: 1;
}

.nm-stance-mafija {
    font-size: clamp(72px, 8.7vw, 144px);
    color: var(--nm-ink);
    transform: translateX(clamp(0px, .9vw, 12px)) skewX(-5deg);
    text-shadow: 5px 5px 0 rgba(227,19,27,.16);
}

.nm-stance-text {
    max-width: 620px;
    margin: 24px 0 0;
    color: #556279;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.6;
}

.nm-stance-poster {
    position: relative;
    justify-self: end;
    width: min(460px, 100%);
    transform: rotate(2deg);
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.nm-stance-poster::before {
    content: "";
    position: absolute;
    inset: 7% -6% -7% 6%;
    z-index: -1;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(227,19,27,.12), rgba(21,43,85,.08));
    transform: rotate(-4deg);
}

.nm-stance-poster img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 72px rgba(11,23,49,.14);
}

.nm-stance-poster:hover {
    transform: rotate(-1deg) translateY(-6px);
}

.nm-latest-section {
    background: var(--nm-paper);
}

.nm-latest-section .nm-hero-grid--secondary {
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
}

.nm-latest-section .nm-hero-title--secondary {
    font-size: clamp(40px, 5vw, 76px);
    line-height: .94;
}

.nm-latest-section .nm-hero-media--secondary,
.nm-latest-section .nm-hero-media--secondary img,
.nm-latest-section .nm-hero-fallback--secondary {
    min-height: 520px;
}

.nm-section--compact {
    padding-top: 18px;
}

.nm-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(11,23,49,.16);
    border-radius: 50%;
    color: #fff;
    background: rgba(11,23,49,.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(11,23,49,.20);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.94);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease;
}

.nm-back-top:hover {
    background: var(--nm-red);
}

.nm-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nm-back-top-icon {
    font-size: 20px;
    line-height: 1;
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .nm-masthead img {
        height: auto;
        object-fit: contain;
        object-position: left center;
    }

    .nm-stance-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nm-stance-copy {
        text-align: center;
    }

    .nm-stance-title {
        justify-items: center;
    }

    .nm-stance-ili,
    .nm-stance-mafija {
        margin-left: 0;
        transform: none;
    }

    .nm-stance-text {
        margin-left: auto;
        margin-right: auto;
    }

    .nm-stance-copy .nm-hero-link {
        justify-content: center;
    }

    .nm-stance-poster {
        justify-self: center;
        width: min(420px, 84vw);
    }

    .nm-latest-section .nm-hero-grid--secondary {
        grid-template-columns: 1fr;
    }

    .nm-latest-section .nm-hero-copy {
        order: 2;
        text-align: center;
    }

    .nm-latest-section .nm-hero-copy .nm-post-meta,
    .nm-latest-section .nm-hero-copy .nm-hero-link {
        justify-content: center;
    }

    .nm-latest-section .nm-hero-media--secondary {
        order: 1;
    }
}

@media (max-width: 620px) {
    .nm-masthead {
        background: #f3f6fb;
    }

    .nm-masthead img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: left center;
    }

    .nm-stance-hero {
        padding: 30px 0 34px;
    }

    .nm-stance-serbia {
        font-size: clamp(54px, 15vw, 74px);
    }

    .nm-stance-ili {
        font-size: 15px;
        letter-spacing: .24em;
    }

    .nm-stance-mafija {
        font-size: clamp(58px, 15.5vw, 80px);
        text-shadow: 3px 3px 0 rgba(227,19,27,.15);
    }

    .nm-stance-text {
        margin-top: 18px;
        font-size: 16px;
    }

    .nm-stance-poster {
        width: min(320px, 84vw);
        transform: none;
    }

    .nm-latest-section .nm-hero-title--secondary {
        font-size: clamp(34px, 10.2vw, 52px);
    }

    .nm-latest-section .nm-hero-media--secondary,
    .nm-latest-section .nm-hero-media--secondary img,
    .nm-latest-section .nm-hero-fallback--secondary {
        min-height: 340px;
    }

    .nm-back-top {
        width: 46px;
        height: 46px;
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-stance-poster {
        transform: none !important;
    }
}


/* ==========================================================================
   V1.3 — Hero polish
   ========================================================================== */

.nm-stance-title {
    gap: 10px;
}

.nm-stance-serbia {
    text-shadow: none;
}

.nm-stance-ili {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px 7px;
    margin-top: 8px;
    margin-bottom: 6px;
    margin-left: clamp(12px, 1.2vw, 24px);
    border: 1px solid rgba(11,23,49,.14);
    border-radius: 999px;
    color: var(--nm-navy);
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 22px rgba(11,23,49,.05);
    font-size: clamp(17px, 1.35vw, 24px);
    font-weight: 900;
    letter-spacing: .22em;
    line-height: 1;
}

.nm-stance-mafija {
    color: var(--nm-ink);
    transform: translateX(clamp(0px, .6vw, 8px)) skewX(-4deg);
    text-shadow: none;
}

.nm-stance-text {
    max-width: 650px;
    margin: 26px 0 0;
    color: #4f5d76;
    font-size: clamp(19px, 1.55vw, 23px);
    line-height: 1.58;
    font-weight: 520;
}

.nm-stance-poster::before {
    display: none;
}

.nm-stance-poster img {
    box-shadow: 0 24px 56px rgba(11,23,49,.12);
}

@media (max-width: 860px) {
    .nm-stance-title {
        gap: 8px;
    }

    .nm-stance-ili {
        margin-top: 6px;
        margin-bottom: 2px;
        margin-left: 0;
    }

    .nm-stance-mafija {
        transform: none;
    }
}

@media (max-width: 620px) {
    .nm-stance-title {
        gap: 6px;
    }

    .nm-stance-ili {
        padding: 7px 12px 6px;
        font-size: 14px;
        letter-spacing: .18em;
    }

    .nm-stance-text {
        margin-top: 18px;
        font-size: 17px;
        line-height: 1.55;
    }
}


/* ==========================================================================
   V1.4 — objedinjene korekcije
   ========================================================================== */

/* Hero: bez internog eyebrow-a, bez roze tona, SRBIJA vizuelno dominantnija. */
.nm-stance-hero {
    background:
        radial-gradient(circle at 10% 78%, rgba(21,43,85,.055), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.nm-stance-title {
    gap: 10px;
}

.nm-stance-serbia {
    font-size: clamp(82px, 9.6vw, 162px);
    line-height: .78;
    text-shadow: none !important;
    filter: none !important;
}

.nm-stance-ili {
    margin-top: 12px;
    margin-bottom: 8px;
}

.nm-stance-mafija {
    font-size: clamp(68px, 7.9vw, 132px);
    line-height: .82;
    text-shadow: none !important;
    filter: none !important;
    background: none !important;
}

/* Ticker sada nosi jednu konkretnu poruku, bez generičkih stavki. */
.nm-marquee-track {
    animation-duration: 36s;
}

.nm-marquee-group {
    padding-right: 48px;
}

.nm-marquee .nm-marquee-message {
    padding: 15px 0;
    color: rgba(255,255,255,.94);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nm-marquee .nm-marquee-message::after {
    content: none;
}

/* Aktuelno: naslov stoji sam, bez desnog objašnjenja. */
.nm-latest-section .nm-section-head {
    justify-content: flex-start;
}

/* Featured slika: prikaži celu sliku umesto cover crop-a. */
.nm-latest-section .nm-hero-media--secondary {
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    background: #ffffff;
}

.nm-latest-section .nm-hero-media--secondary img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: contain;
    object-position: center;
}

.nm-latest-section .nm-hero-fallback--secondary {
    min-height: 0 !important;
    height: 100%;
}

@media (max-width: 860px) {
    .nm-stance-serbia {
        font-size: clamp(66px, 16vw, 104px);
    }

    .nm-stance-mafija {
        font-size: clamp(56px, 13vw, 86px);
    }

    .nm-latest-section .nm-hero-media--secondary,
    .nm-latest-section .nm-hero-media--secondary img,
    .nm-latest-section .nm-hero-fallback--secondary {
        min-height: 0 !important;
    }
}

@media (max-width: 620px) {
    .nm-stance-serbia {
        font-size: clamp(58px, 17vw, 82px);
    }

    .nm-stance-mafija {
        font-size: clamp(48px, 14vw, 68px);
    }

    .nm-marquee .nm-marquee-message {
        font-size: 10px;
        letter-spacing: .09em;
    }
}


/* ==========================================================================
   V1.5 — Countdown + hero sizing + cropped Aktuelno image
   ========================================================================== */

.nm-stance-serbia {
    font-size: clamp(86px, 10vw, 176px);
    text-shadow: none;
}

.nm-stance-mafija {
    font-size: clamp(66px, 8vw, 138px);
    text-shadow: none;
}

.nm-stance-poster::before {
    display: none;
}

.nm-countdown {
    max-width: 760px;
    margin-top: 28px;
}

.nm-countdown-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.nm-countdown-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(11,23,49,.12);
    border-radius: 999px;
    color: var(--nm-red);
    background: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nm-countdown-date {
    color: var(--nm-ink);
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.03em;
}

.nm-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.nm-countdown-box {
    min-width: 0;
    padding: 18px 16px 16px;
    border: 1px solid rgba(11,23,49,.13);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(180deg, #122443 0%, #0b1731 100%);
    box-shadow: 0 18px 42px rgba(11,23,49,.10);
}

.nm-countdown-box--accent {
    background: linear-gradient(180deg, #e3131b 0%, #9f0a10 100%);
    border-color: rgba(227,19,27,.28);
}

.nm-countdown-value {
    display: block;
    font-size: clamp(34px, 3.55vw, 62px);
    line-height: .9;
    font-weight: 950;
    letter-spacing: -.06em;
}

.nm-countdown-label {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,.74);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nm-countdown-box--accent .nm-countdown-label {
    color: rgba(255,255,255,.84);
}

.nm-latest-section .nm-hero-media--secondary {
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.nm-latest-section .nm-hero-media--secondary img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
}

.nm-latest-section .nm-hero-fallback--secondary {
    min-height: 420px;
}

@media (max-width: 860px) {
    .nm-stance-serbia {
        font-size: clamp(82px, 13vw, 132px);
    }

    .nm-stance-mafija {
        font-size: clamp(62px, 10vw, 102px);
    }

    .nm-countdown {
        margin-left: auto;
        margin-right: auto;
    }

    .nm-countdown-head {
        justify-content: center;
    }

    .nm-countdown-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .nm-latest-section .nm-hero-media--secondary {
        aspect-ratio: 16 / 9;
    }

    .nm-latest-section .nm-hero-media--secondary img {
        object-position: center center;
    }
}

@media (max-width: 620px) {
    .nm-stance-serbia {
        font-size: clamp(74px, 17vw, 104px);
    }

    .nm-stance-mafija {
        font-size: clamp(54px, 13.5vw, 78px);
    }

    .nm-countdown {
        margin-top: 22px;
    }

    .nm-countdown-grid {
        gap: 10px;
    }

    .nm-countdown-box {
        padding: 16px 12px 14px;
        border-radius: 18px;
    }

    .nm-countdown-value {
        font-size: clamp(30px, 9vw, 44px);
    }

    .nm-countdown-label {
        margin-top: 8px;
        font-size: 10px;
        letter-spacing: .12em;
    }

    .nm-latest-section .nm-hero-media--secondary {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-countdown-box,
    .nm-countdown-box--accent {
        transition: none !important;
    }
}


/* ==========================================================================
   V1.7 — adaptive "Vredi pogledati" grid + 24 posts on home
   ========================================================================== */

/* One post: use the full editorial width instead of leaving an empty grid. */
.nm-editorial-grid--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(460px, 610px);
}

.nm-editorial-grid--count-1 .nm-card,
.nm-editorial-grid--count-1 .nm-card--lead,
.nm-editorial-grid--count-1 .nm-card--wide {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 520px;
}

/* Two posts: balanced split across the full width. */
.nm-editorial-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(430px, auto);
}

.nm-editorial-grid--count-2 .nm-card,
.nm-editorial-grid--count-2 .nm-card--lead,
.nm-editorial-grid--count-2 .nm-card--wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 460px;
}

/* Three posts: one strong lead + two stacked stories. */
.nm-editorial-grid--count-3 {
    grid-template-columns: 1.15fr .85fr;
    grid-template-rows: repeat(2, minmax(230px, auto));
}

.nm-editorial-grid--count-3 .nm-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 580px;
}

.nm-editorial-grid--count-3 .nm-card:nth-child(2),
.nm-editorial-grid--count-3 .nm-card:nth-child(3) {
    grid-column: 2;
    grid-row: auto;
    min-height: 280px;
}

/* Four posts: retain the asymmetric magazine layout. */
.nm-editorial-grid--count-4 {
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: repeat(2, minmax(240px, auto));
}

@media (max-width: 1080px) {
    .nm-editorial-grid--count-1 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .nm-editorial-grid--count-1 .nm-card,
    .nm-editorial-grid--count-1 .nm-card--lead,
    .nm-editorial-grid--count-1 .nm-card--wide {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 500px;
    }

    .nm-editorial-grid--count-2 {
        grid-template-columns: repeat(2, minmax(0,1fr));
        grid-template-rows: auto;
    }

    .nm-editorial-grid--count-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .nm-editorial-grid--count-3 .nm-card:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 500px;
    }

    .nm-editorial-grid--count-3 .nm-card:nth-child(2),
    .nm-editorial-grid--count-3 .nm-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        min-height: 340px;
    }
}

@media (max-width: 620px) {
    .nm-editorial-grid--count-1,
    .nm-editorial-grid--count-2,
    .nm-editorial-grid--count-3,
    .nm-editorial-grid--count-4 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .nm-editorial-grid--count-1 .nm-card,
    .nm-editorial-grid--count-2 .nm-card,
    .nm-editorial-grid--count-3 .nm-card,
    .nm-editorial-grid--count-4 .nm-card,
    .nm-editorial-grid--count-1 .nm-card--lead,
    .nm-editorial-grid--count-2 .nm-card--lead,
    .nm-editorial-grid--count-3 .nm-card--lead,
    .nm-editorial-grid--count-4 .nm-card--lead,
    .nm-editorial-grid--count-1 .nm-card--wide,
    .nm-editorial-grid--count-2 .nm-card--wide,
    .nm-editorial-grid--count-3 .nm-card--wide,
    .nm-editorial-grid--count-4 .nm-card--wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 420px;
    }
}


/* --------------------------------------------------------------------------
   PRIVATNOST / META LEGAL LINKOVI
   -------------------------------------------------------------------------- */

.nm-footer-legal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

.nm-footer-legal a {
    color: rgba(255,255,255,.62);
    transition: color .2s ease;
}

.nm-footer-legal a:hover {
    color: #fff;
}

.nm-footer-legal span {
    color: rgba(255,255,255,.22);
}

@media (max-width: 760px) {
    .nm-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nm-footer-legal {
        justify-content: flex-start;
    }
}


/* --------------------------------------------------------------------------
   V1.9 — stilizovani banner u mastheadu
   -------------------------------------------------------------------------- */

.nm-masthead {
    background: linear-gradient(180deg, #eef2f8 0%, #f6f8fc 100%);
}

.nm-masthead img {
    image-rendering: auto;
}

@media (min-width: 861px) {
    .nm-masthead img {
        height: clamp(132px, 15vw, 238px);
        object-fit: cover;
        object-position: center;
    }
}

/* --------------------------------------------------------------------------
   V1.10 — novi masthead asseti sa cache-busting nazivima
   -------------------------------------------------------------------------- */

.nm-masthead picture {
    display: block;
    width: 100%;
}

.nm-masthead picture img {
    display: block;
    width: 100%;
}

@media (min-width: 621px) {
    .nm-masthead picture img {
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 620px) {
    .nm-masthead picture img {
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}


/* --------------------------------------------------------------------------
   V1.11 — masthead fix: bez sečenja nove slike
   -------------------------------------------------------------------------- */

.nm-masthead {
    line-height: 0;
}

.nm-masthead > picture,
.nm-masthead > picture > source,
.nm-masthead > picture > img {
    display: block;
    width: 100%;
}

.nm-masthead > picture > img,
.nm-masthead img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (min-width: 621px) {
    .nm-masthead > picture > img,
    .nm-masthead img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

@media (max-width: 620px) {
    .nm-masthead > picture > img,
    .nm-masthead img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}
