/* ============================================================
   NewMindPress – Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --nmp-primary: #e63946;
    --nmp-secondary: #1d3557;
    --nmp-accent: #457b9d;
    --nmp-text: #212529;
    --nmp-text-light: #6c757d;
    --nmp-bg: #ffffff;
    --nmp-bg-alt: #f8f9fa;
    --nmp-border: #dee2e6;
    --nmp-container: 1280px;
    --nmp-fs-base: 16px;
    --nmp-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --nmp-font-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --nmp-font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
    --nmp-radius: 8px;
    --nmp-shadow: 0 2px 8px rgba(0,0,0,.08);
    --nmp-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --nmp-transition: .25s ease;
    --nmp-header-h: 64px;
    --nmp-topbar-h: 40px;
    --nmp-img-ratio: 3/2;
    --nmp-grid-gap: 24px;
    --nmp-section-pad: 48px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--nmp-fs-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--nmp-font-body);
    color: var(--nmp-text);
    background: var(--nmp-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--nmp-transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }

/* ---------- Accessibility ---------- */
.nmp-skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--nmp-primary);
    color: #fff;
    font-weight: 600;
}
.nmp-skip-link:focus { inset-inline-start: 0; }

/* ---------- Container ---------- */
.nmp-container {
    width: 100%;
    max-width: var(--nmp-container);
    margin-inline: auto;
    padding-inline: 20px;
}
.nmp-container--narrow { max-width: 860px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.nmp-topbar {
    background: var(--nmp-secondary);
    color: #fff;
    font-size: .8125rem;
    height: var(--nmp-topbar-h);
    display: flex;
    align-items: center;
}
.nmp-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.nmp-topbar__start { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.nmp-topbar__end { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nmp-topbar__date { white-space: nowrap; opacity: .85; }
.nmp-topbar__menu { display: flex; gap: 12px; }
.nmp-topbar__menu a { opacity: .85; }
.nmp-topbar__menu a:hover { opacity: 1; }

/* ---------- Breaking News Ticker ---------- */
.nmp-ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; min-width: 0; }
.nmp-ticker__label {
    background: var(--nmp-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    animation: nmp-pulse 2s infinite;
}
@keyframes nmp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}
.nmp-ticker__wrap { overflow: hidden; flex: 1; min-width: 0; }
.nmp-ticker__track {
    display: flex;
    gap: 40px;
    animation: nmp-ticker-scroll 20s linear infinite;
    white-space: nowrap;
}
.nmp-ticker__item { flex-shrink: 0; }
.nmp-ticker__item:hover { text-decoration: underline; }
@keyframes nmp-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
[dir="rtl"] .nmp-ticker__track {
    animation-name: nmp-ticker-scroll-rtl;
}
@keyframes nmp-ticker-scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.nmp-header {
    background: var(--nmp-bg);
    height: var(--nmp-header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--nmp-border);
    position: relative;
    z-index: 1000;
    transition: background var(--nmp-transition), box-shadow var(--nmp-transition);
}
.nmp-header--sticky {
    position: sticky;
    top: 0;
}
.nmp-header--sticky.is-scrolled {
    box-shadow: var(--nmp-shadow);
}
.nmp-header--transparent {
    background: transparent;
    border-bottom: none;
    position: absolute;
    inset-inline: 0;
    top: var(--nmp-topbar-h);
    color: #fff;
}
.nmp-header--transparent.is-scrolled {
    background: var(--nmp-bg);
    color: var(--nmp-text);
    position: sticky;
    top: 0;
}
.nmp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.nmp-logo { display: flex; align-items: center; flex-shrink: 0; }
.nmp-logo img { max-height: 48px; width: auto; }
.nmp-logo--text { font-size: 1.5rem; font-weight: 800; font-family: var(--nmp-font-heading); color: var(--nmp-primary); }

/* Navigation */
.nmp-nav { flex: 1; display: flex; justify-content: center; }
.nmp-nav__list { display: flex; gap: 4px; }
.nmp-nav__list > li { position: relative; }
.nmp-nav__list > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: .9375rem;
    font-weight: 500;
    border-radius: var(--nmp-radius);
    transition: background var(--nmp-transition), color var(--nmp-transition);
}
.nmp-nav__list > li > a:hover,
.nmp-nav__list > li.current-menu-item > a {
    color: var(--nmp-primary);
    background: rgba(230, 57, 70, .06);
}
.nmp-menu-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-top: 2px;
}

/* Submenu */
.nmp-mega-sub {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 220px;
    background: var(--nmp-bg);
    border: 1px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    box-shadow: var(--nmp-shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--nmp-transition), transform var(--nmp-transition), visibility var(--nmp-transition);
    z-index: 100;
}
.nmp-nav__list > li:hover > .nmp-mega-sub,
.nmp-nav__list > li:focus-within > .nmp-mega-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nmp-mega-sub li a {
    display: block;
    padding: 8px 20px;
    font-size: .875rem;
    transition: background var(--nmp-transition), color var(--nmp-transition);
}
.nmp-mega-sub li a:hover {
    background: var(--nmp-bg-alt);
    color: var(--nmp-primary);
}

/* Mega Menu Content */
.nmp-mega-parent > .nmp-mega-content {
    position: absolute;
    top: 100%;
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 900px;
    max-width: calc(100vw - 40px);
    background: var(--nmp-bg);
    border: 1px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    box-shadow: var(--nmp-shadow-lg);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--nmp-transition), transform var(--nmp-transition), visibility var(--nmp-transition);
    z-index: 100;
}
[dir="rtl"] .nmp-mega-parent > .nmp-mega-content {
    transform: translateX(50%) translateY(10px);
}
.nmp-mega-parent:hover > .nmp-mega-content,
.nmp-mega-parent:focus-within > .nmp-mega-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
[dir="rtl"] .nmp-mega-parent:hover > .nmp-mega-content,
[dir="rtl"] .nmp-mega-parent:focus-within > .nmp-mega-content {
    transform: translateX(50%) translateY(0);
}
.nmp-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.nmp-mega-card__img { display: block; border-radius: var(--nmp-radius); overflow: hidden; margin-bottom: 10px; }
.nmp-mega-card__img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform var(--nmp-transition); }
.nmp-mega-card:hover .nmp-mega-card__img img { transform: scale(1.05); }
.nmp-mega-card__title { font-size: .875rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.nmp-mega-card__title a:hover { color: var(--nmp-primary); }
.nmp-mega-card__date { font-size: .75rem; color: var(--nmp-text-light); }

/* Header Actions */
.nmp-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nmp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background var(--nmp-transition);
}
.nmp-btn-icon:hover { background: var(--nmp-bg-alt); }

/* Hamburger */
.nmp-menu-toggle { display: none; }
.nmp-hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nmp-hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--nmp-transition), opacity var(--nmp-transition);
}
.nmp-menu-toggle[aria-expanded="true"] .nmp-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nmp-menu-toggle[aria-expanded="true"] .nmp-hamburger span:nth-child(2) { opacity: 0; }
.nmp-menu-toggle[aria-expanded="true"] .nmp-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Theme Toggle Icons */
[data-theme="light"] .nmp-icon-moon { display: none; }
[data-theme="dark"] .nmp-icon-sun { display: none; }
[data-theme="light"] .nmp-icon-sun { display: block; }
[data-theme="dark"] .nmp-icon-moon { display: block; }

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.nmp-search-panel {
    position: fixed;
    top: 0;
    inset-inline: 0;
    background: var(--nmp-bg);
    z-index: 2000;
    padding: 24px 0;
    box-shadow: var(--nmp-shadow-lg);
    transform: translateY(-100%);
    transition: transform .3s ease;
}
.nmp-search-panel[aria-hidden="false"] { transform: translateY(0); }
.nmp-search-panel__inner { display: flex; gap: 12px; align-items: center; }
.nmp-search-panel__input {
    flex: 1;
    padding: 12px 20px;
    font-size: 1.125rem;
    border: 2px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    background: var(--nmp-bg-alt);
    transition: border-color var(--nmp-transition);
}
.nmp-search-panel__input:focus { outline: none; border-color: var(--nmp-primary); }
.nmp-search-panel__close { flex-shrink: 0; padding: 8px; }
.nmp-search-panel__results { margin-top: 16px; max-height: 60vh; overflow-y: auto; }

/* Search Result Items */
.nmp-search-result {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--nmp-radius);
    transition: background var(--nmp-transition);
}
.nmp-search-result:hover { background: var(--nmp-bg-alt); }
.nmp-search-result__img { width: 60px; height: 60px; border-radius: var(--nmp-radius); object-fit: cover; flex-shrink: 0; }
.nmp-search-result__body { display: flex; flex-direction: column; gap: 2px; }
.nmp-search-result__cat { font-size: .75rem; color: var(--nmp-primary); font-weight: 600; text-transform: uppercase; }
.nmp-search-result__title { font-weight: 600; font-size: .9375rem; }
.nmp-search-result__title mark { background: rgba(230, 57, 70, .15); color: var(--nmp-primary); border-radius: 2px; }
.nmp-search-result__date { font-size: .75rem; color: var(--nmp-text-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.nmp-hero { padding: 24px 0 40px; }
.nmp-hero__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    min-height: 500px;
}
.nmp-hero__main { position: relative; border-radius: var(--nmp-radius); overflow: hidden; }
.nmp-hero__img-link {
    display: block;
    height: 100%;
    position: relative;
}
.nmp-hero__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nmp-hero__main:hover .nmp-hero__img-link img { transform: scale(1.03); }
.nmp-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
    color: #fff;
}
.nmp-hero__title {
    font-family: var(--nmp-font-heading);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-top: 12px;
}
.nmp-hero__secondary {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.nmp-hero__side-card {
    position: relative;
    border-radius: var(--nmp-radius);
    overflow: hidden;
}
.nmp-hero__side-link { display: block; height: 100%; position: relative; }
.nmp-hero__side-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nmp-hero__side-card:hover img { transform: scale(1.05); }
.nmp-hero__side-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 70%);
    color: #fff;
}
.nmp-hero__side-title {
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 8px;
}
.nmp-hero__side-overlay time { font-size: .75rem; opacity: .8; margin-top: 4px; }

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.nmp-badge {
    display: inline-block;
    background: var(--nmp-primary);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: background var(--nmp-transition);
}
.nmp-badge:hover { background: var(--nmp-secondary); color: #fff; }

/* ============================================================
   POST META
   ============================================================ */
.nmp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    color: var(--nmp-text-light);
    flex-wrap: wrap;
}
.nmp-hero__overlay .nmp-meta,
.nmp-hero__side-overlay .nmp-meta { color: rgba(255,255,255,.8); }
.nmp-meta__sep { opacity: .5; }

/* ============================================================
   LAYOUT (Sidebar)
   ============================================================ */
.nmp-layout { display: grid; gap: 40px; }
.nmp-layout--sidebar-right { grid-template-columns: 1fr 320px; }
.nmp-layout--sidebar-left { grid-template-columns: 320px 1fr; }
.nmp-layout--sidebar-left .nmp-layout__sidebar { order: -1; }
.nmp-layout--sidebar-none { grid-template-columns: 1fr; }

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.nmp-section { margin-bottom: var(--nmp-section-pad); }
.nmp-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--nmp-primary);
}
.nmp-section__title {
    font-family: var(--nmp-font-heading);
    font-size: 1.375rem;
    font-weight: 800;
}
.nmp-section__viewall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--nmp-primary);
}
.nmp-section__viewall:hover { text-decoration: underline; }

/* ============================================================
   GRID
   ============================================================ */
.nmp-grid { display: grid; gap: var(--nmp-grid-gap); }
.nmp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nmp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nmp-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   CARD
   ============================================================ */
.nmp-card {
    border-radius: var(--nmp-radius);
    overflow: hidden;
    background: var(--nmp-bg);
    border: 1px solid var(--nmp-border);
    transition: box-shadow var(--nmp-transition), transform var(--nmp-transition);
}
.nmp-card:hover {
    box-shadow: var(--nmp-shadow-lg);
    transform: translateY(-3px);
}
.nmp-card__img { display: block; overflow: hidden; }
.nmp-card__img img {
    width: 100%;
    aspect-ratio: var(--nmp-img-ratio);
    object-fit: cover;
    transition: transform .5s ease;
}
.nmp-card:hover .nmp-card__img img { transform: scale(1.05); }
.nmp-card__body { padding: 16px; }
.nmp-card__title {
    font-family: var(--nmp-font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0 8px;
}
.nmp-card__title a:hover { color: var(--nmp-primary); }
.nmp-card__excerpt {
    font-size: .875rem;
    color: var(--nmp-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.nmp-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 24px;
}
.nmp-carousel::-webkit-scrollbar { display: none; }
.nmp-carousel > .nmp-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
}
.nmp-carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.nmp-carousel__prev,
.nmp-carousel__next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--nmp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--nmp-transition), border-color var(--nmp-transition);
}
.nmp-carousel__prev:hover,
.nmp-carousel__next:hover {
    background: var(--nmp-primary);
    border-color: var(--nmp-primary);
    color: #fff;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.nmp-single__header {
    padding: 40px 0 24px;
    text-align: center;
}
.nmp-single__title {
    font-family: var(--nmp-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 16px 0;
}
.nmp-single__header .nmp-meta { justify-content: center; }
.nmp-single__featured {
    border-radius: var(--nmp-radius);
    overflow: hidden;
    margin-bottom: 32px;
}
.nmp-single__featured img { width: 100%; }
.nmp-single__featured figcaption {
    font-size: .8125rem;
    color: var(--nmp-text-light);
    padding: 8px 0;
    text-align: center;
}

/* Entry Content */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 40px;
}
.entry-content h2 { font-size: 1.5rem; margin: 32px 0 16px; font-weight: 700; }
.entry-content h3 { font-size: 1.25rem; margin: 28px 0 12px; font-weight: 700; }
.entry-content h4 { font-size: 1.125rem; margin: 24px 0 8px; font-weight: 600; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 16px 0; padding-inline-start: 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
    border-inline-start: 4px solid var(--nmp-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--nmp-bg-alt);
    border-radius: 0 var(--nmp-radius) var(--nmp-radius) 0;
    font-style: italic;
}
.entry-content pre {
    background: var(--nmp-secondary);
    color: #e9ecef;
    padding: 20px;
    border-radius: var(--nmp-radius);
    overflow-x: auto;
    margin: 24px 0;
    font-size: .875rem;
    line-height: 1.6;
}
.entry-content code { background: var(--nmp-bg-alt); padding: 2px 6px; border-radius: 3px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content a { color: var(--nmp-primary); text-decoration: underline; }
.entry-content img { border-radius: var(--nmp-radius); margin: 24px auto; }
.entry-content figure { margin: 24px 0; }
.entry-content figcaption { font-size: .8125rem; color: var(--nmp-text-light); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--nmp-border); text-align: start; }
.entry-content th { background: var(--nmp-bg-alt); font-weight: 600; }

/* Tags */
.nmp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nmp-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--nmp-border);
    border-radius: 20px;
    font-size: .8125rem;
    transition: background var(--nmp-transition), border-color var(--nmp-transition), color var(--nmp-transition);
}
.nmp-tag:hover { background: var(--nmp-primary); border-color: var(--nmp-primary); color: #fff; }

/* Share Buttons */
.nmp-share {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}
.nmp-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nmp-bg-alt);
    transition: background var(--nmp-transition), color var(--nmp-transition);
}
.nmp-share a:hover { background: var(--nmp-primary); color: #fff; }

/* Post Navigation */
.nmp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid var(--nmp-border);
    border-bottom: 1px solid var(--nmp-border);
}
.nmp-post-nav__link {
    padding: 16px;
    border-radius: var(--nmp-radius);
    transition: background var(--nmp-transition);
}
.nmp-post-nav__link:hover { background: var(--nmp-bg-alt); }
.nmp-post-nav__link--next { text-align: end; }
.nmp-post-nav__label { font-size: .75rem; color: var(--nmp-text-light); text-transform: uppercase; font-weight: 600; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.nmp-post-nav__title { font-weight: 600; line-height: 1.4; }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.nmp-related { margin: 48px 0; }
.nmp-related__title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--nmp-primary);
}
.nmp-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nmp-related__card { border-radius: var(--nmp-radius); overflow: hidden; }
.nmp-related__img { display: block; overflow: hidden; border-radius: var(--nmp-radius); }
.nmp-related__img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s ease; }
.nmp-related__card:hover .nmp-related__img img { transform: scale(1.05); }
.nmp-related__body { padding: 12px 0; }
.nmp-related__headline { font-size: .9375rem; font-weight: 600; margin: 8px 0 4px; line-height: 1.4; }
.nmp-related__headline a:hover { color: var(--nmp-primary); }
.nmp-related__body time { font-size: .75rem; color: var(--nmp-text-light); }

/* ============================================================
   ARCHIVE / SEARCH
   ============================================================ */
.nmp-archive { padding: 32px 0; }
.nmp-archive__header { margin-bottom: 32px; }
.nmp-archive__title { font-size: 1.75rem; font-weight: 800; }
.nmp-archive__desc { margin-top: 8px; color: var(--nmp-text-light); }

/* ============================================================
   PAGINATION
   ============================================================ */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    font-size: .875rem;
    font-weight: 500;
    transition: background var(--nmp-transition), border-color var(--nmp-transition), color var(--nmp-transition);
}
.nav-links a:hover { border-color: var(--nmp-primary); color: var(--nmp-primary); }
.nav-links .current { background: var(--nmp-primary); border-color: var(--nmp-primary); color: #fff; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.nmp-breadcrumb {
    padding: 16px 20px;
    font-size: .8125rem;
    color: var(--nmp-text-light);
    max-width: var(--nmp-container);
    margin-inline: auto;
}
.nmp-breadcrumb a { color: var(--nmp-text-light); }
.nmp-breadcrumb a:hover { color: var(--nmp-primary); }
.nmp-breadcrumb__sep { margin: 0 8px; opacity: .4; }
.nmp-breadcrumb [aria-current] { color: var(--nmp-text); font-weight: 500; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.nmp-widget { margin-bottom: 32px; }
.nmp-widget__title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--nmp-primary);
}

/* Trending Widget */
.nmp-widget-trending__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--nmp-border);
}
.nmp-widget-trending__item:last-child { border-bottom: none; }
.nmp-widget-trending__rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nmp-border);
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
}
.nmp-widget-trending__body h4 { font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.nmp-widget-trending__body h4 a:hover { color: var(--nmp-primary); }
.nmp-widget-trending__body time { font-size: .75rem; color: var(--nmp-text-light); }

/* Categories Widget */
.nmp-widget-cats__list li { border-bottom: 1px solid var(--nmp-border); }
.nmp-widget-cats__list li:last-child { border-bottom: none; }
.nmp-widget-cats__list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: .9375rem;
    transition: color var(--nmp-transition);
}
.nmp-widget-cats__list a:hover { color: var(--nmp-primary); }
.nmp-widget-cats__count {
    background: var(--nmp-bg-alt);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

/* Latest Posts Widget */
.nmp-widget-latest__item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nmp-border);
}
.nmp-widget-latest__item:last-child { border-bottom: none; }
.nmp-widget-latest__img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--nmp-radius);
    overflow: hidden;
}
.nmp-widget-latest__img img { width: 100%; height: 100%; object-fit: cover; }
.nmp-widget-latest__body h4 { font-size: .875rem; font-weight: 600; line-height: 1.4; }
.nmp-widget-latest__body h4 a:hover { color: var(--nmp-primary); }
.nmp-widget-latest__body time { font-size: .75rem; color: var(--nmp-text-light); }

/* Newsletter Widget */
.nmp-widget-newsletter {
    background: var(--nmp-bg-alt);
    padding: 24px;
    border-radius: var(--nmp-radius);
    text-align: center;
}
.nmp-widget-newsletter p { font-size: .875rem; color: var(--nmp-text-light); margin: 12px 0 16px; }
.nmp-newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    margin-bottom: 10px;
    background: var(--nmp-bg);
}
.nmp-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--nmp-primary); }
.nmp-newsletter-form button {
    width: 100%;
    padding: 10px;
    background: var(--nmp-primary);
    color: #fff;
    border-radius: var(--nmp-radius);
    font-weight: 600;
    transition: background var(--nmp-transition);
}
.nmp-newsletter-form button:hover { background: var(--nmp-secondary); }

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.nmp-social { display: flex; gap: 8px; }
.nmp-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background var(--nmp-transition), color var(--nmp-transition);
}
.nmp-social--topbar a { color: rgba(255,255,255,.8); }
.nmp-social--topbar a:hover { color: #fff; }
.nmp-social--footer a { color: var(--nmp-text-light); }
.nmp-social--footer a:hover { color: var(--nmp-primary); }

/* ============================================================
   AD SLOTS
   ============================================================ */
.nmp-ad { text-align: center; margin: 20px 0; overflow: hidden; }
.nmp-ad img { max-width: 100%; height: auto; }
.nmp-ad--header { padding: 10px 0; background: var(--nmp-bg-alt); }
.nmp-ad--in-article { margin: 24px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.nmp-footer { background: var(--nmp-secondary); color: #fff; margin-top: 60px; }
.nmp-footer__widgets { padding: 48px 0 32px; }
.nmp-footer__grid { display: grid; gap: 32px; }
.nmp-footer__grid--2 { grid-template-columns: repeat(2, 1fr); }
.nmp-footer__grid--3 { grid-template-columns: repeat(3, 1fr); }
.nmp-footer__grid--4 { grid-template-columns: repeat(4, 1fr); }

.nmp-footer .nmp-widget__title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.2);
}
.nmp-footer .nmp-widget a { color: rgba(255,255,255,.75); }
.nmp-footer .nmp-widget a:hover { color: #fff; }
.nmp-footer .nmp-widget-cats__count { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.nmp-footer .nmp-widget-cats__list li { border-bottom-color: rgba(255,255,255,.1); }
.nmp-footer .nmp-widget-trending__item { border-bottom-color: rgba(255,255,255,.1); }
.nmp-footer .nmp-widget-trending__rank { color: rgba(255,255,255,.2); }
.nmp-footer .nmp-widget-trending__body time { color: rgba(255,255,255,.5); }
.nmp-footer .nmp-widget-latest__body time { color: rgba(255,255,255,.5); }
.nmp-footer .nmp-widget-latest__item { border-bottom-color: rgba(255,255,255,.1); }

.nmp-footer__bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.nmp-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.nmp-footer__copyright { font-size: .875rem; opacity: .7; }
.nmp-footer__menu { display: flex; gap: 20px; }
.nmp-footer__menu a { font-size: .875rem; opacity: .7; }
.nmp-footer__menu a:hover { opacity: 1; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.nmp-back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    background: var(--nmp-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--nmp-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--nmp-transition), visibility var(--nmp-transition), transform var(--nmp-transition), background var(--nmp-transition);
    z-index: 999;
}
.nmp-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nmp-back-to-top:hover { background: var(--nmp-secondary); }

/* ============================================================
   404
   ============================================================ */
.nmp-404 { padding: 80px 0; text-align: center; }
.nmp-404__code { font-size: 8rem; font-weight: 900; color: var(--nmp-border); line-height: 1; display: block; }
.nmp-404__title { font-size: 2rem; font-weight: 800; margin: 16px 0; }
.nmp-404__text { color: var(--nmp-text-light); margin-bottom: 24px; max-width: 480px; margin-inline: auto; }
.nmp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--nmp-primary);
    color: #fff;
    border-radius: var(--nmp-radius);
    font-weight: 600;
    transition: background var(--nmp-transition);
}
.nmp-btn:hover { background: var(--nmp-secondary); color: #fff; }

/* ============================================================
   PAGE
   ============================================================ */
.nmp-page { padding: 40px 0; max-width: 860px; margin-inline: auto; }
.nmp-page__title { font-size: 2rem; font-weight: 800; margin-bottom: 24px; }

/* ============================================================
   COMMENTS
   ============================================================ */
.nmp-comments { margin-top: 48px; }
.nmp-comments .comment-respond { margin-top: 24px; }
.nmp-comments .comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .875rem; }
.nmp-comments .comment-form input[type="text"],
.nmp-comments .comment-form input[type="email"],
.nmp-comments .comment-form input[type="url"],
.nmp-comments .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    background: var(--nmp-bg);
    margin-bottom: 16px;
}
.nmp-comments .comment-form textarea { min-height: 120px; resize: vertical; }
.nmp-comments .comment-form input:focus,
.nmp-comments .comment-form textarea:focus { outline: none; border-color: var(--nmp-primary); }
.nmp-comments .comment-form .submit {
    padding: 10px 28px;
    background: var(--nmp-primary);
    color: #fff;
    border-radius: var(--nmp-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--nmp-transition);
}
.nmp-comments .comment-form .submit:hover { background: var(--nmp-secondary); }

/* Page Links */
.nmp-page-links { margin: 24px 0; display: flex; gap: 8px; }
.nmp-page-links a, .nmp-page-links span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--nmp-border); border-radius: var(--nmp-radius); font-size: .875rem; }
.nmp-page-links > span { background: var(--nmp-primary); color: #fff; border-color: var(--nmp-primary); }

/* No posts */
.nmp-no-posts, .nmp-no-results { text-align: center; padding: 40px 0; }
.nmp-no-results h2 { margin-bottom: 12px; }
.nmp-no-results .search-form { margin-top: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .nmp-layout--sidebar-right,
    .nmp-layout--sidebar-left { grid-template-columns: 1fr; }
    .nmp-layout--sidebar-left .nmp-layout__sidebar { order: 0; }
    .nmp-hero__grid { grid-template-columns: 1fr; min-height: auto; }
    .nmp-hero__secondary { grid-template-columns: repeat(2, 1fr); }
    .nmp-related__grid { grid-template-columns: repeat(2, 1fr); }
    .nmp-mega-parent > .nmp-mega-content { width: 100%; }
    .nmp-mega-grid { grid-template-columns: repeat(2, 1fr); }
    .nmp-footer__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --nmp-header-h: 56px;
        --nmp-topbar-h: 36px;
    }
    .nmp-nav { display: none; }
    .nmp-nav.is-open {
        display: block;
        position: fixed;
        top: var(--nmp-header-h);
        inset-inline: 0;
        bottom: 0;
        background: var(--nmp-bg);
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        animation: nmp-slide-in .3s ease;
    }
    @keyframes nmp-slide-in {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nmp-nav.is-open .nmp-nav__list { flex-direction: column; }
    .nmp-nav.is-open .nmp-nav__list > li > a { padding: 12px 0; font-size: 1rem; }
    .nmp-nav.is-open .nmp-mega-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-inline-start: 16px;
    }
    .nmp-nav.is-open .nmp-mega-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 12px 0;
    }
    .nmp-nav.is-open .nmp-mega-grid { grid-template-columns: repeat(2, 1fr); }
    .nmp-menu-toggle { display: inline-flex; }

    .nmp-grid--2,
    .nmp-grid--3,
    .nmp-grid--4 { grid-template-columns: 1fr; }

    .nmp-hero__secondary { grid-template-columns: 1fr 1fr; }
    .nmp-hero__overlay { padding: 20px; }
    .nmp-post-nav { grid-template-columns: 1fr; }
    .nmp-related__grid { grid-template-columns: 1fr 1fr; }
    .nmp-footer__grid--2,
    .nmp-footer__grid--3,
    .nmp-footer__grid--4 { grid-template-columns: 1fr; }
    .nmp-footer__bottom-inner { flex-direction: column; text-align: center; }
    .nmp-carousel > .nmp-card { flex: 0 0 85%; }
    .nmp-topbar__end { display: none; }
}

@media (max-width: 480px) {
    .nmp-hero__secondary { grid-template-columns: 1fr; }
    .nmp-hero__side-card { aspect-ratio: 16/9; }
    .nmp-related__grid { grid-template-columns: 1fr; }
    .nmp-404__code { font-size: 5rem; }
}

/* ============================================================
   HERO: SPLIT SCREEN
   ============================================================ */
.nmp-hero--split { padding: 0; }
.nmp-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.nmp-hero-split__left { position: relative; overflow: hidden; }
.nmp-hero-split__main-link { display: block; height: 100%; position: relative; }
.nmp-hero-split__main-link img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.nmp-hero-split__left:hover img { transform: scale(1.03); }
.nmp-hero__excerpt { font-size: .9375rem; margin-top: 8px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nmp-hero-split__right {
    display: grid;
    grid-template-rows: repeat(auto-fit, 1fr);
    gap: 2px;
}
.nmp-hero-split__item { position: relative; overflow: hidden; }
.nmp-hero-split__item-link { display: block; height: 100%; position: relative; }
.nmp-hero-split__item-link img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.nmp-hero-split__item:hover img { transform: scale(1.05); }

/* ============================================================
   HERO: MASONRY
   ============================================================ */
.nmp-hero-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 12px;
}
.nmp-hero-masonry__item { position: relative; border-radius: var(--nmp-radius); overflow: hidden; }
.nmp-hero-masonry__item--1 { grid-column: span 2; grid-row: span 2; }
.nmp-hero-masonry__link { display: block; height: 100%; position: relative; }
.nmp-hero-masonry__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nmp-hero-masonry__item:hover img { transform: scale(1.05); }

/* ============================================================
   HERO: CINEMATIC
   ============================================================ */
.nmp-hero--cinematic {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 0;
    position: relative;
}
.nmp-hero-cinematic__overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
    padding: 80px 0 60px;
}
.nmp-hero-cinematic__inner { color: #fff; max-width: 700px; }
.nmp-hero-cinematic__title {
    font-family: var(--nmp-font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0;
}
.nmp-hero-cinematic__excerpt { font-size: 1.0625rem; opacity: .8; margin-bottom: 20px; line-height: 1.6; }
.nmp-hero-cinematic__inner .nmp-meta { color: rgba(255,255,255,.7); }
.nmp-btn--hero {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px; padding: 14px 32px;
    background: var(--nmp-primary); color: #fff;
    border-radius: var(--nmp-radius); font-weight: 600; font-size: 1rem;
    transition: background var(--nmp-transition), transform .15s ease;
}
.nmp-btn--hero:hover { background: #fff; color: var(--nmp-text); }
.nmp-btn--hero:active { transform: scale(.97); }

/* ============================================================
   MASONRY GRID
   ============================================================ */
.nmp-grid--masonry {
    columns: 3;
    column-gap: var(--nmp-grid-gap);
    display: block;
}
.nmp-grid--masonry > .nmp-card {
    break-inside: avoid;
    margin-bottom: var(--nmp-grid-gap);
    display: inline-block;
    width: 100%;
}

/* ============================================================
   EDITOR'S PICKS
   ============================================================ */
.nmp-editor-picks {
    padding: 0 0 var(--nmp-section-pad);
    max-width: var(--nmp-container);
    margin-inline: auto;
    padding-inline: 20px;
}
.nmp-editor-picks .nmp-section__header {
    border-bottom-color: var(--nmp-accent);
}

/* ============================================================
   REACTIONS
   ============================================================ */
.nmp-reactions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nmp-reactions__label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--nmp-text-light);
}
.nmp-reactions__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--nmp-border);
    border-radius: 24px;
    font-size: .8125rem;
    font-weight: 500;
    transition: background var(--nmp-transition), border-color var(--nmp-transition), color var(--nmp-transition);
}
.nmp-reactions__btn:hover {
    border-color: var(--nmp-primary);
    color: var(--nmp-primary);
    background: rgba(230,57,70,.06);
}
.nmp-reactions__btn.is-active {
    background: var(--nmp-primary);
    border-color: var(--nmp-primary);
    color: #fff;
}
.nmp-reactions__icon { display: flex; }
.nmp-reactions__count { min-width: 12px; text-align: center; }

/* ============================================================
   BOOKMARK
   ============================================================ */
.nmp-bookmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background var(--nmp-transition), color var(--nmp-transition);
    flex-shrink: 0;
}
.nmp-bookmark:hover { background: var(--nmp-bg-alt); }
.nmp-bookmark.is-bookmarked { color: var(--nmp-primary); }
.nmp-bookmark.is-bookmarked .nmp-bookmark__icon { fill: var(--nmp-primary); }
.nmp-bookmarks-count {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    background: var(--nmp-primary);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nmp-bookmarks-link { position: relative; }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.nmp-toc {
    background: var(--nmp-bg-alt);
    border: 1px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.nmp-toc__heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.nmp-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
}
.nmp-toc__chevron { transition: transform var(--nmp-transition); }
.nmp-toc__toggle[aria-expanded="false"] .nmp-toc__chevron { transform: rotate(-90deg); }
.nmp-toc__list {
    counter-reset: toc;
    padding-inline-start: 0;
}
.nmp-toc__list li {
    counter-increment: toc;
    padding: 6px 0;
    border-bottom: 1px solid var(--nmp-border);
    font-size: .9375rem;
}
.nmp-toc__list li:last-child { border-bottom: none; }
.nmp-toc__list li::before {
    content: counter(toc) ".";
    color: var(--nmp-primary);
    font-weight: 700;
    margin-inline-end: 8px;
}
.nmp-toc__list li a { transition: color var(--nmp-transition); }
.nmp-toc__list li a:hover { color: var(--nmp-primary); }
.nmp-toc__sub { padding-inline-start: 20px; }
.nmp-toc__sub::before { font-size: .8125rem; }

/* Sticky TOC on desktop */
@media (min-width: 1025px) {
    .nmp-toc {
        position: sticky;
        top: calc(var(--nmp-header-h) + 20px);
        z-index: 10;
    }
}

/* ============================================================
   SPONSORED BADGE
   ============================================================ */
.nmp-sponsored-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================================================
   PREMIUM BADGE
   ============================================================ */
.nmp-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Card flags */
.nmp-card__img { position: relative; }
.nmp-card__sponsored-flag {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}
.nmp-card__premium-flag {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* ============================================================
   PAYWALL
   ============================================================ */
.nmp-paywall {
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
    text-align: center;
}
.nmp-paywall__overlay {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--nmp-bg));
    pointer-events: none;
}
.nmp-paywall__content {
    background: var(--nmp-bg-alt);
    border: 2px solid var(--nmp-border);
    border-radius: var(--nmp-radius);
    padding: 48px 32px;
    position: relative;
}
.nmp-paywall__content h3 { font-size: 1.375rem; font-weight: 800; margin: 16px 0 8px; }
.nmp-paywall__content p { color: var(--nmp-text-light); margin-bottom: 20px; }

/* ============================================================
   AD LABEL
   ============================================================ */
.nmp-ad__label {
    display: block;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--nmp-text-light);
    text-align: center;
    margin-bottom: 4px;
}

/* ============================================================
   CARD FOOTER (meta + bookmark)
   ============================================================ */
.nmp-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ============================================================
   SINGLE: BADGES ROW
   ============================================================ */
.nmp-single__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.nmp-single__meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nmp-single__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* ============================================================
   RESPONSIVE: NEW LAYOUTS
   ============================================================ */
@media (max-width: 1024px) {
    .nmp-hero-split { grid-template-columns: 1fr; min-height: auto; }
    .nmp-hero-split__left { min-height: 350px; }
    .nmp-hero-masonry { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .nmp-hero-masonry__item--1 { grid-column: span 2; }
    .nmp-hero--cinematic { min-height: 50vh; }
    .nmp-grid--masonry { columns: 2; }
}

@media (max-width: 768px) {
    .nmp-hero-masonry { grid-template-columns: 1fr; }
    .nmp-hero-masonry__item--1 { grid-column: span 1; }
    .nmp-hero--cinematic { min-height: 60vh; }
    .nmp-hero-cinematic__inner { max-width: 100%; }
    .nmp-grid--masonry { columns: 1; }
    .nmp-reactions { justify-content: center; }
    .nmp-toc { position: static !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .nmp-topbar, .nmp-header, .nmp-search-panel, .nmp-footer,
    .nmp-back-to-top, .nmp-share, .nmp-post-nav, .nmp-related,
    .nmp-ad, .nmp-layout__sidebar, .nmp-reactions, .nmp-bookmark,
    .nmp-toc, .nmp-progress-bar, .nmp-paywall { display: none !important; }
    body { color: #000; background: #fff; }
    .entry-content a { text-decoration: underline; }
    .entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
