/* ============================================================
   CollegeNP - News-style listings
   /news, /admission, /vacancy ... (category), /tag/{x} (topic) and
   {college|course}/{x}/updates. Everything is scoped under .nl-page.
   ============================================================ */

.nl-page {
  --nl-primary: var(--cnp-primary, #005B8F);
  --nl-primary-dark: var(--cnp-primary-dark, #003B5C);
  --nl-primary-soft: #EAF3F9;
  --nl-heading: var(--cnp-heading, #111827);
  --nl-ink: var(--cnp-ink, #1F2933);
  --nl-muted: var(--cnp-muted, #5F6B7A);
  --nl-meta: var(--cnp-meta, #6B7280);
  --nl-line: var(--cnp-line, #E5EAF0);
  --nl-surface: #F4F7FA;
  --nl-radius: 14px;
  --nl-radius-sm: 10px;
  --nl-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -14px rgba(16, 24, 40, .28);
  --nl-shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 22px 44px -22px rgba(16, 24, 40, .42);
  --nl-t: .22s cubic-bezier(.4, 0, .2, 1);

  background: var(--nl-surface);
  color: var(--nl-ink);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: 40px;
}
.nl-page :is(h1, h2, h3) { font-family: "Roboto Slab", Georgia, serif; }
/* legacy style.css sizes every li/p at 1.1rem */
.nl-page :is(li, p) { font-size: inherit; }
.nl-page a { text-decoration: none; }

/* Colour tones shared by badges, chips, thumbnails and the category list */
.nl-tone--blue   { --tone-bg: #EAF3F9; --tone-fg: #005B8F; }
.nl-tone--green  { --tone-bg: #E7F3EC; --tone-fg: #1B7A4B; }
.nl-tone--violet { --tone-bg: #EDE9FB; --tone-fg: #5B3FBF; }
.nl-tone--amber  { --tone-bg: #FDF1DC; --tone-fg: #9A5B00; }
.nl-tone--teal   { --tone-bg: #E1F3F2; --tone-fg: #0F766E; }
.nl-tone--red    { --tone-bg: #FDECEC; --tone-fg: #B42318; }


/* ------------------------------------------------------------
   1. Hero - breadcrumb, title, search, category chips
   ------------------------------------------------------------ */
.nl-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(90% 140% at 8% -20%, rgba(255, 255, 255, .18), transparent 55%),
    radial-gradient(60% 120% at 100% 120%, rgba(28, 150, 232, .35), transparent 60%),
    linear-gradient(115deg, #003B5C 0%, #005B8F 58%, #0A7BB8 100%);
  padding: 16px 0 0;
  overflow: hidden;
}
.nl-hero::after {
  /* faint dotted texture so the band doesn't read as a flat block */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.nl-hero .container { position: relative; z-index: 1; }

.nl-crumbs { font-size: 13px; }
.nl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nl-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .72); }
.nl-crumbs li + li::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: rgba(255, 255, 255, .5);
}
.nl-crumbs a { color: rgba(255, 255, 255, .85); }
.nl-crumbs a:hover { color: #fff; text-decoration: underline; }
.nl-crumbs [aria-current] { color: #fff; font-weight: 700; }

.nl-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 22px;
}
.nl-hero-text { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nl-hero-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 24px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.nl-hero h1 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.nl-search {
  position: relative;
  flex: 0 1 380px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55);
}
.nl-search > i { position: absolute; left: 16px; color: var(--nl-meta); font-size: 14px; pointer-events: none; }
.nl-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--nl-ink);
  padding: 8px 10px 8px 34px;
}
.nl-search input::placeholder { color: #8A95A3; }
.nl-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: var(--nl-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  transition: background var(--nl-t);
}
.nl-search button:hover { background: var(--nl-primary-dark); }
.nl-search:focus-within { box-shadow: 0 0 0 3px rgba(159, 211, 245, .6), 0 14px 30px -16px rgba(0, 0, 0, .55); }

/* Category chips - one scrollable row, fading at the right edge */
.nl-cats {
  position: relative;
  margin: 0 -12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 40px), transparent 100%);
}
.nl-cats ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
}
.nl-cats ul::-webkit-scrollbar { display: none; }
.nl-cats li { flex: 0 0 auto; scroll-snap-align: start; }
.nl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background var(--nl-t), color var(--nl-t), transform var(--nl-t);
}
.nl-chip i { font-size: 12px; opacity: .85; }
.nl-chip:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-1px); }
.nl-chip.is-active { background: #fff; color: var(--nl-primary-dark); border-color: #fff; }
.nl-chip.is-active i { opacity: 1; color: var(--nl-primary); }


/* ------------------------------------------------------------
   2. Body - search summary, top stories, section headings
   ------------------------------------------------------------ */
.nl-body { padding-top: 24px; }

.nl-searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-left: 4px solid var(--nl-primary);
  border-radius: var(--nl-radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}
.nl-searchbar a { font-weight: 700; font-size: 14px; }

.nl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 14px;
}
.nl-section-head h2 {
  position: relative;
  font-size: 21px;
  margin: 0;
  padding-left: 14px;
}
.nl-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--nl-primary);
}
.nl-section-head span { font-size: 13px; color: var(--nl-meta); }

/* Top stories: one lead + four compact cards */
.nl-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.nl-top-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }


/* ------------------------------------------------------------
   3. Cards
   ------------------------------------------------------------ */
.nl-card {
  position: relative;
  display: flex;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow);
  overflow: hidden;
  transition: box-shadow var(--nl-t), transform var(--nl-t), border-color var(--nl-t);
}
.nl-card:hover { box-shadow: var(--nl-shadow-lg); transform: translateY(-2px); border-color: #D3DEE8; }

.nl-thumb {
  position: relative;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  background: var(--tone-bg, #EAF3F9);
}
.nl-thumb img {
  position: absolute; /* out of flow, so a tall infographic can't stretch the card */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.nl-card:hover .nl-thumb img { transform: scale(1.05); }
.nl-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tone-fg, #005B8F);
  font-size: 30px;
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(255, 255, 255, .7), transparent 60%),
    var(--tone-bg, #EAF3F9);
}
.nl-thumb-fallback i { opacity: .55; }

.nl-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px; }
.nl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tone-bg, #EAF3F9);
  color: var(--tone-fg, #005B8F);
}
a.nl-badge:hover { filter: brightness(.96); color: var(--tone-fg, #005B8F); }
.nl-badge--new { background: var(--cnp-red, #D71920); color: #fff; }

.nl-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nl-card-title a { color: var(--nl-heading); }
.nl-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.nl-card-title a:hover { color: var(--nl-primary); }
.nl-card-tags a, .nl-card-tags span { position: relative; z-index: 2; }
.nl-card:focus-within { outline: 2px solid var(--nl-primary); outline-offset: 2px; }
.nl-card:focus-within .nl-card-title a:focus { outline: 0; }

.nl-card-excerpt {
  margin: 0;
  color: var(--nl-muted);
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: auto;
  font-size: 12.5px;
  color: var(--nl-meta);
}
.nl-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.nl-meta i { font-size: 11.5px; opacity: .8; }

/* Main feed - the classic date-tile list from newsListLayout() (no images) */
.nl-list { --bs-gutter-x: 12px; }
.nl-list > [class*="col-"] { display: flex; margin-bottom: 12px; }
.nl-page .nl-list .news-list-item {
  flex: 1 1 auto;
  height: auto !important; /* the helper sets an inline 100px */
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform var(--nl-t), box-shadow var(--nl-t), border-color var(--nl-t);
}
.nl-page .nl-list .news-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--nl-shadow);
  border-color: rgba(0, 91, 143, .3);
}
.nl-page .nl-list .sim-media-date {
  flex: 0 0 auto;
  min-width: 58px;
  margin: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: var(--nl-primary-soft);
  color: var(--nl-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.nl-page .nl-list .sim-media-date b { font-size: 21px; }
.nl-page .nl-list .media-body { min-width: 0; }
.nl-page .nl-list .media-body h5 {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--nl-heading);
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--nl-t);
}
.nl-page .nl-list .news-list-item:hover .media-body h5 { color: var(--nl-primary); }
.nl-page .nl-list .media-body .address { color: var(--nl-meta); font-size: 12px; font-weight: 500; }
.nl-page .nl-list .media-body .address i { display: none; } /* FA4 "fa-clock-o" has no FA6 glyph */
.nl-page .nl-list .media-body br { display: none; }

/* Lead card - image fills the card, text over a dark gradient */
.nl-card--lead { height: 100%; min-height: 420px; flex-direction: column; justify-content: flex-end; border: 0; }
.nl-card--lead .nl-thumb { position: absolute; inset: 0; }
.nl-card--lead .nl-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 34, 0) 25%, rgba(0, 20, 34, .55) 55%, rgba(0, 20, 34, .92) 100%);
}
.nl-card--lead .nl-thumb-fallback {
  background:
    radial-gradient(120% 160% at 12% -30%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(115deg, #003B5C 0%, #005B8F 55%, #0A7BB8 100%);
  color: #fff;
  font-size: 90px;
  align-items: flex-start;
  padding-top: 60px;
}
.nl-card--lead .nl-thumb-fallback i { opacity: .18; }
.nl-card--lead .nl-card-body { position: relative; padding: 26px 28px; gap: 10px; }
.nl-card--lead .nl-card-title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; -webkit-line-clamp: 4; }
.nl-card--lead .nl-card-title a { color: #fff; }
.nl-card--lead .nl-card-title a:hover { color: #CFE9FA; }
.nl-card--lead .nl-card-excerpt { color: rgba(255, 255, 255, .85); font-size: 15.5px; }
.nl-card--lead .nl-meta { color: rgba(255, 255, 255, .8); margin-top: 2px; }
.nl-card--lead .nl-badge:not(.nl-badge--new) { background: #fff; }

/* Compact card - top-stories side column */
.nl-card--compact { align-items: stretch; }
.nl-card--compact .nl-thumb { width: 124px; }
.nl-card--compact .nl-card-body { padding: 12px 14px; gap: 6px; justify-content: center; }
.nl-card--compact .nl-card-title { font-size: 15px; -webkit-line-clamp: 2; }
.nl-card--compact .nl-badge { font-size: 10px; padding: 5px 8px; }
.nl-card--compact .nl-meta { margin-top: 0; }


/* ------------------------------------------------------------
   4. Empty state, pagination, "about" block
   ------------------------------------------------------------ */
.nl-empty {
  text-align: center;
  background: #fff;
  border: 1px dashed #CBD5E1;
  border-radius: var(--nl-radius);
  padding: 44px 24px;
}
.nl-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nl-primary-soft);
  color: var(--nl-primary);
  font-size: 26px;
  margin-bottom: 12px;
}
.nl-empty h3 { font-size: 20px; margin: 0 0 6px; }
.nl-empty p { color: var(--nl-muted); margin: 0 0 16px; }
.nl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nl-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
}
.nl-btn:hover { background: var(--nl-primary-dark); }

/* Bootstrap 5 paginator - undo legacy style.css (inline-block + floats) */
.nl-pager { margin-top: 22px; }
.nl-pager nav { gap: 12px; align-items: center; }
/* the section heading already says "Showing x-y of z" */
.nl-pager nav > .d-sm-flex { justify-content: center !important; }
.nl-pager nav > .d-sm-flex > div:first-child { display: none; }
.nl-page .nl-pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.nl-page .nl-pager .pagination .page-item { display: block; float: none; }
.nl-page .nl-pager .pagination .page-link {
  float: none;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--nl-line);
  border-radius: 10px !important;
  background: #fff;
  color: var(--nl-ink);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: background var(--nl-t), border-color var(--nl-t), color var(--nl-t);
}
.nl-page .nl-pager .pagination a.page-link:hover { background: var(--nl-primary-soft); border-color: #BFD6E5; color: var(--nl-primary); }
.nl-page .nl-pager .pagination .active .page-link { background: var(--nl-primary); border-color: var(--nl-primary); color: #fff; }
.nl-page .nl-pager .pagination .disabled .page-link { background: transparent; color: #A9B4C0; box-shadow: none; }

.nl-about {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow);
}
.nl-about summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--nl-heading);
}
.nl-about summary::-webkit-details-marker { display: none; }
.nl-about summary > span { display: inline-flex; align-items: center; gap: 10px; }
.nl-about summary > span i { color: var(--nl-primary); }
.nl-about-caret { color: var(--nl-meta); transition: transform var(--nl-t); }
.nl-about[open] .nl-about-caret { transform: rotate(180deg); }
.nl-about-body { padding: 0 20px 18px; border-top: 1px solid var(--nl-line); padding-top: 14px; color: var(--nl-ink); line-height: 1.7; }
.nl-about-body :is(p, li) { font-size: 15.5px; }
.nl-about-body li { margin-bottom: 6px; }
.nl-about-body li p { margin: 0; }


/* ------------------------------------------------------------
   5. Sidebar widgets
   ------------------------------------------------------------ */
.nl-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; }
.nl-widget {
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow);
  padding: 18px 18px 16px;
}
.nl-widget-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}
.nl-widget-title i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--nl-primary-soft);
  color: var(--nl-primary);
  font-size: 13px;
}

/* Most read - numbered */
.nl-rank-list { list-style: none; margin: 0; padding: 0; }
.nl-rank + .nl-rank { border-top: 1px solid var(--nl-line); }
.nl-rank-link { display: flex; gap: 12px; padding: 11px 0; color: var(--nl-ink); }
.nl-rank-no {
  flex: 0 0 auto;
  width: 30px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #C5D3E0;
  transition: color var(--nl-t);
}
.nl-rank:first-child .nl-rank-no { color: var(--nl-primary); }
.nl-rank-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nl-rank-title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--nl-heading);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--nl-t);
}
.nl-rank-link:hover .nl-rank-title { color: var(--nl-primary); }
.nl-rank-link:hover .nl-rank-no { color: var(--nl-primary); }
.nl-rank .nl-meta { font-size: 12px; margin-top: 0; }

/* Popular topics */
.nl-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.nl-topic {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nl-ink);
  background: #F3F6F9;
  border: 1px solid var(--nl-line);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background var(--nl-t), border-color var(--nl-t), color var(--nl-t);
}
.nl-topic::before { content: "#"; color: var(--nl-meta); margin-right: 2px; }
.nl-topic:hover, .nl-topic.is-active { background: var(--nl-primary-soft); border-color: #BFD6E5; color: var(--nl-primary); }

/* Browse categories */
.nl-catlist { list-style: none; margin: 0 -8px; padding: 0; }
.nl-catlist a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--nl-ink);
  font-weight: 600;
  font-size: 14.5px;
  transition: background var(--nl-t);
}
.nl-catlist a:hover { background: #F3F6F9; }
.nl-catlist a.is-active { background: var(--nl-primary-soft); color: var(--nl-primary-dark); }
.nl-catlist-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--tone-bg);
  color: var(--tone-fg);
  font-size: 13px;
}
.nl-catlist-name { flex: 1 1 auto; min-width: 0; }
.nl-catlist-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--nl-meta);
  background: #F3F6F9;
  border-radius: 999px;
  padding: 3px 9px;
}
.nl-catlist a.is-active .nl-catlist-count { background: #fff; color: var(--nl-primary); }


/* ------------------------------------------------------------
   6. Responsive
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .nl-hero-main { flex-direction: column; align-items: stretch; gap: 18px; }
  .nl-search { flex-basis: auto; }
  .nl-top { grid-template-columns: 1fr; }
  .nl-top-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-card--lead { min-height: 360px; }
  .nl-side { position: static; }
}

@media (max-width: 767.98px) {
  .nl-hero-main { padding: 16px 0 18px; }
  .nl-hero-icon { width: 46px; height: 46px; font-size: 19px; border-radius: 13px; }
  .nl-top-side { grid-template-columns: 1fr; }
  .nl-card--lead { min-height: 320px; }
  .nl-card--lead .nl-card-body { padding: 20px; }
  .nl-card--lead .nl-card-excerpt { -webkit-line-clamp: 2; font-size: 14.5px; }
  .nl-pager nav > div:first-child .pagination { width: 100%; justify-content: space-between; }
}

@media (max-width: 479.98px) {
  .nl-hero-text { gap: 12px; }
  .nl-card--compact .nl-thumb { width: 104px; }
  .nl-search button { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-page *, .nl-page *::before, .nl-page *::after { transition: none !important; }
  .nl-card:hover, .nl-chip:hover { transform: none; }
  .nl-card:hover .nl-thumb img { transform: none; }
}
