/* ============================================================
   PrimeSwop news portal — shared by primegist + category pages
   ============================================================ */
.np-wrap{ max-width:1280px; margin:0 auto; padding:26px 20px 10px; }
.np-hero{ background:linear-gradient(120deg,#8f0d17,#c1121f 58%,#1a1a1a); color:#fff; padding:44px 26px; text-align:center; }
.np-hero h1{ margin:0 0 8px; font-size:30px; font-weight:800; letter-spacing:-.02em; }
.np-hero p{ margin:0; font-size:15px; opacity:.92; }

/* category chips */
.np-chips{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin:22px 0 4px; }
.np-chips a{ display:inline-flex; align-items:center; gap:7px; padding:9px 16px; border-radius:22px;
	background:#fff; border:1px solid var(--line,#e8e8ee); color:var(--ink,#1f2430); font-size:13.5px; font-weight:600;
	text-decoration:none; transition:.15s; }
.np-chips a:hover{ border-color:var(--brand,#c1121f); color:var(--brand,#c1121f); }
.np-chips a i{ color:var(--brand,#c1121f); }
.np-chips a.is-active{ background:var(--brand,#c1121f); border-color:var(--brand,#c1121f); color:#fff; }
.np-chips a.is-active i{ color:#fff; }

/* section heading */
.np-h{ display:flex; align-items:center; gap:9px; font-size:15px; font-weight:800; color:var(--ink,#1f2430);
	margin:28px 2px 14px; text-transform:uppercase; letter-spacing:.04em; }
.np-h::before{ content:""; width:5px; height:18px; border-radius:3px; background:var(--brand,#c1121f); }
.np-h i{ color:var(--brand,#c1121f); }

/* trending image cards */
.np-trend{ display:grid; gap:16px; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }
.np-tcard{ position:relative; height:200px; border-radius:14px; overflow:hidden; text-decoration:none;
	display:block; box-shadow:0 1px 3px rgba(16,18,27,.06); background:#26262b; }
.np-tcard img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.np-tcard:hover img{ transform:scale(1.06); }
.np-tcard .ph{ width:100%; height:100%; display:grid; place-items:center;
	background:linear-gradient(135deg,#8f0d17,#c1121f); color:#fff; font-size:30px; }
.np-tcard .ov{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
	padding:14px; background:linear-gradient(to top,rgba(10,10,12,.9) 0%,rgba(10,10,12,.35) 55%,transparent 100%); }
.np-tcard .rank{ position:absolute; top:10px; left:10px; width:26px; height:26px; border-radius:8px;
	background:var(--brand,#c1121f); color:#fff; font-weight:800; font-size:13px; display:grid; place-items:center; }
.np-tcard .th{ color:#fff; font-size:14px; font-weight:700; line-height:1.35;
	display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media (min-width:900px){ .np-trend .np-tcard:first-child{ grid-column:span 2; } }

/* card grid */
.np-grid{ display:grid; gap:18px; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); }
.np-card{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line,#e8e8ee);
	border-radius:14px; overflow:hidden; text-decoration:none; color:inherit; transition:.16s;
	box-shadow:0 1px 3px rgba(16,18,27,.05); }
.np-card:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(16,18,27,.10); border-color:#dcdce4; }
.np-thumb{ height:160px; background:#f0f1f4; position:relative; overflow:hidden; }
.np-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.np-thumb .ph{ width:100%; height:100%; display:grid; place-items:center;
	background:linear-gradient(135deg,#8f0d17,#c1121f); color:#fff; font-size:26px; }
.np-cbody{ padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; }
.np-date{ color:var(--muted,#5b6270); font-size:11.5px; margin-bottom:7px; display:flex; align-items:center; gap:6px; }
.np-title{ font-size:14.5px; font-weight:700; line-height:1.4; color:var(--ink,#1f2430); flex:1;
	display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.np-meta{ display:flex; gap:16px; margin-top:12px; color:var(--muted,#5b6270); font-size:12.5px; }
.np-meta i{ color:var(--brand,#c1121f); }
.np-empty{ grid-column:1/-1; text-align:center; color:var(--muted,#5b6270); padding:40px; }

/* category columns (primegist) */
.np-cats{ display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.np-cat{ background:#fff; border:1px solid var(--line,#e8e8ee); border-radius:14px; padding:6px 18px 14px;
	box-shadow:0 1px 3px rgba(16,18,27,.05); }
.np-item{ display:block; padding:13px 0; border-bottom:1px solid #f0f0f4; text-decoration:none; color:var(--ink,#1f2430); }
.np-item:last-of-type{ border-bottom:0; }
.np-item .t{ font-size:14px; font-weight:600; line-height:1.45; display:block; }
.np-item:hover .t{ color:var(--brand,#c1121f); }
.np-item .d{ display:flex; gap:14px; margin-top:6px; color:var(--muted,#5b6270); font-size:11.5px; }
.np-item .d i{ color:var(--brand,#c1121f); }
.np-more{ display:inline-flex; align-items:center; gap:7px; margin-top:12px; color:var(--brand,#c1121f);
	font-weight:700; font-size:13px; text-decoration:none; }
.np-more:hover{ color:var(--brand-dark,#8f0d17); }

/* pager (overrides legacy pagination.css to match) */
.np-wrap .pagination{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; padding:24px 0 6px; margin:0; }
.np-wrap .pagination li{ list-style:none; }
.np-wrap .pagination a{ display:inline-block; padding:8px 13px; border:1px solid var(--line,#e8e8ee); border-radius:9px;
	background:#fff; color:var(--ink,#1f2430); font-size:13px; font-weight:600; text-decoration:none; }
.np-wrap .pagination a:hover{ border-color:var(--brand,#c1121f); color:var(--brand,#c1121f); }
.np-wrap .pagination .currentpage a{ background:var(--brand,#c1121f); border-color:var(--brand,#c1121f); color:#fff; }
.np-wrap .pagination .dots{ padding:8px 4px; color:var(--muted,#5b6270); }
