/* ===== Base ===== */
:root {
  --brand: #0a1f7d; /* teal */
  --brand-2: #0e4792; /* teal green */
  --ink: #0f172a; /* slate-900 */
  --muted: #64748b; /* slate-500 */
  --bg: #f3f6f8;
  --card: #ffffff;
  --chip: #e9eff5;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body.np-body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

/* ===== Header ===== */
.np-header {
  background: #0b192d;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.np-header .np-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.np-brand {
  font-weight: 700;
}
.np-nav a,
.np-back {
  color: #e6f0ff;
  text-decoration: none;
  margin-left: 18px;
  opacity: 0.9;
}
.np-nav a:hover,
.np-back:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===== Containers ===== */
.np-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 24px 20px;
}
.np-main {
  padding-top: 24px;
}

/* ===== Sections ===== */
.np-block-title {
  font-weight: 700;
  margin-bottom: 12px;
}
.np-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

/* Latest (big card) */
.np-latest {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.np-latest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}
.np-latest-body {
  padding: 18px;
}
.np-eyebrow {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.np-hl {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 4px 0 10px;
  color: #0b192d;
}
.np-snippet {
  color: #334155;
  margin-bottom: 14px;
}
.np-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.np-link:hover {
  color: var(--brand-2);
}

/* Top Reads */
.np-topreads {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.np-topreads-list {
  display: grid;
  gap: 12px;
}
.np-topreads-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  background: #f8fbfb;
  border-radius: 12px;
  overflow: hidden;
}
.np-topreads-item img {
  width: 88px;
  height: 72px;
  object-fit: cover;
}
.np-topreads-item .ttl {
  font-weight: 700;
  font-size: 0.98rem;
}
.np-topreads-item .meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Filters row */
.np-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 6px;
}
.np-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.np-chip {
  background: var(--chip);
  border: 1px solid #d5e1ec;
  color: #0b2057;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}
.np-chip:hover {
  transform: translateY(-1px);
}
.np-chip--active {
  background: #c8dcef;
  border-color: #b1c6e3;
}
.np-search {
  position: relative;
}
.np-search input {
  padding: 10px 34px 10px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
  outline: none;
  min-width: 240px;
}
.np-search-ic {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

/* Grid of cards */
.np-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.np-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.np-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.np-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}
.np-card-body {
  padding: 14px;
}
.np-card .ttl {
  font-weight: 800;
  margin: 6px 0 6px;
  color: #0b192d;
}
.np-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.np-card .snippet {
  color: #334155;
  margin: 8px 0 10px;
}
.np-card .cta {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.np-card .cta:hover {
  color: var(--brand-2);
}

/* Post page */
.np-post-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.np-post {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.np-post-cover {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}
.np-post-title {
  font-size: 2rem;
  margin: 6px 0;
}
.np-post-meta {
  color: var(--muted);
  margin-bottom: 18px;
}
.np-post-body {
  color: #182333;
}
.np-post-body h2 {
  margin-top: 22px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
  color: #0b192d;
}
.np-tags {
  margin-top: 16px;
}
.np-chip--tag {
  margin-right: 6px;
}

/* Related */
.np-related {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  height: fit-content;
}
.np-related-list {
  display: grid;
  gap: 10px;
}
.np-related-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  text-decoration: none;
  background: #f8fbfb;
  border-radius: 12px;
  overflow: hidden;
}
.np-related-card img {
  width: 92px;
  height: 78px;
  object-fit: cover;
}
.np-related-title {
  color: #0b192d;
  font-weight: 700;
}
.np-related-date {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Footer */
.np-footer {
  text-align: center;
  padding: 18px;
  color: #94a3b8;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.np-card,
.np-topreads-item,
.np-latest {
  animation: fadeUp 0.35s ease both;
}

/* Responsive */
@media (max-width: 1000px) {
  .np-hero {
    grid-template-columns: 1fr;
  }
  .np-latest {
    grid-template-columns: 1fr;
  }
  .np-post-wrap {
    grid-template-columns: 1fr;
  }
  .np-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .np-grid {
    grid-template-columns: 1fr;
  }
  .np-search input {
    min-width: 0;
    width: 100%;
  }
}
