/* ============================================================
   CollegeNP - News / event detail  ({cat}/{permalink})
   Builds on news-list.css (tokens, hero, badges, widgets, cards).
   Everything is scoped under .nd-page.
   ============================================================ */

/* Reading progress */
.nd-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1031;
  pointer-events: none;
}
.nd-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1C96E8, #34C3A0);
  box-shadow: 0 0 8px rgba(28, 150, 232, .6);
}


/* ------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------ */
.nd-hero { padding-bottom: 0; }
.nd-crumb-current { font-weight: 600 !important; opacity: .9; }
.nd-hero-main { max-width: 860px; padding: 24px 0 30px; }
.nd-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nd-page .nd-badge-light { background: #fff; color: var(--nl-primary-dark); }
.nd-page .nd-badge-light:hover { color: var(--nl-primary); }
.nd-hero h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.nd-lead {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  max-width: 760px;
}

.nd-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.nd-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD36E, #F59E0B);
  color: #3B2300;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}
.nd-byline-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 calc(100% - 60px); }
@media (min-width: 768px) { .nd-byline-text { flex-basis: auto; } }
.nd-author { color: rgba(255, 255, 255, .8); font-size: 14px; }
.nd-author b { color: #fff; }
.nd-byline-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.nd-byline-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.nd-byline-meta i { font-size: 12px; opacity: .85; }
.nd-byline-meta a { color: rgba(255, 255, 255, .9); }
.nd-byline-meta a:hover { color: #fff; text-decoration: underline; }


/* ------------------------------------------------------------
   2. Share buttons
   ------------------------------------------------------------ */
.nd-share { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-share-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--nl-line);
  background: #fff;
  color: var(--nl-ink);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--nl-t), color var(--nl-t), border-color var(--nl-t), transform var(--nl-t);
}
.nd-share-btn[hidden] { display: none; }
.nd-share-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.nd-share--fb:hover { background: #1877F2; }
.nd-share--x:hover { background: #111; }
.nd-share--li:hover { background: #0A66C2; }
.nd-share--wa:hover { background: #25D366; }
.nd-share--copy:hover, .nd-share--native:hover { background: var(--nl-primary); }
.nd-share--copy.is-done { background: #1B7A4B; color: #fff; border-color: transparent; }
.nd-share--copy.is-done i::before { content: "\f00c"; }
/* tooltips */
.nd-share-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font: 700 11.5px/1 "Lato", system-ui, sans-serif;
  color: #fff;
  background: #111827;
  padding: 6px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nl-t), transform var(--nl-t);
}
.nd-share-btn:hover::after, .nd-share-btn:focus-visible::after, .nd-share--copy.is-done::after { opacity: 1; transform: translate(-50%, 0); }

/* in the hero: glassy buttons */
.nd-share--hero .nd-share-btn {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}


/* ------------------------------------------------------------
   3. Article
   ------------------------------------------------------------ */
.nd-body { padding-top: 24px; }
.nd-article,
.nd-card {
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow);
}
.nd-article { overflow: hidden; }
.nd-card { padding: 22px 24px; margin-top: 22px; }

.nd-figure { margin: 0; background: #0F1D2A; }
.nd-figure-link { position: relative; display: block; }
.nd-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  margin: 0 auto;
}
.nd-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transition: opacity var(--nl-t);
}
.nd-figure-link:hover .nd-zoom-hint, .nd-figure-link:focus-visible .nd-zoom-hint { opacity: 1; }
.nd-figure figcaption {
  background: #fff;
  border-bottom: 1px solid var(--nl-line);
  padding: 10px 28px;
  font-size: 13px;
  color: var(--nl-meta);
  font-style: italic;
}
.nd-ad { padding: 16px 28px 0; text-align: center; }
.nd-ad img { max-width: 100%; height: auto; border-radius: 8px; }

/* Inline TOC (mobile only) */
.nd-toc-inline {
  margin: 22px 28px 0;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-sm);
  background: #F8FAFC;
}
.nd-toc-inline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--nl-heading);
}
.nd-toc-inline summary::-webkit-details-marker { display: none; }
.nd-toc-inline summary span { display: inline-flex; align-items: center; gap: 9px; }
.nd-toc-inline summary span i { color: var(--nl-primary); }
.nd-toc-inline summary > i { color: var(--nl-meta); transition: transform var(--nl-t); font-size: 12px; }
.nd-toc-inline[open] summary > i { transform: rotate(180deg); }
.nd-toc-inline .nd-toc-list { padding: 0 16px 12px; }

/* --- Prose --- */
.nd-content {
  padding: 26px 28px 8px;
  font-size: 17px;
  line-height: 1.8;
  color: #1F2933;
  overflow-wrap: break-word;
}
.nd-content > :first-child { margin-top: 0; }
.nd-content :is(p, li, td, th) { font-size: inherit; }
.nd-content p { margin: 0 0 1.15em; }
.nd-content :is(h2, h3, h4, h5) {
  font-family: "Roboto Slab", Georgia, serif;
  color: var(--nl-heading);
  line-height: 1.3;
  scroll-margin-top: 120px;
}
.nd-content h2 {
  font-size: 25px;
  margin: 1.7em 0 .6em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nl-line);
  position: relative;
}
.nd-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--nl-primary);
}
.nd-content h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.nd-content h4 { font-size: 18px; margin: 1.3em 0 .45em; }
.nd-content h5, .nd-content h6 { font-size: 16px; margin: 1.2em 0 .4em; }
.nd-content a { color: var(--nl-primary); text-decoration: underline; text-decoration-color: rgba(0, 91, 143, .35); text-underline-offset: 3px; }
.nd-content a:hover { text-decoration-color: currentColor; }
.nd-content strong, .nd-content b { color: var(--nl-heading); }
.nd-content :is(ul, ol) { padding-left: 1.4em; margin: 0 0 1.2em; }
.nd-content li { margin-bottom: .45em; }
.nd-content li::marker { color: var(--nl-primary); font-weight: 700; }
.nd-content li p { margin: 0; }
.nd-content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 10px;
  cursor: zoom-in;
}
.nd-content figure { margin: 1.4em 0; max-width: 100%; }
.nd-content figcaption { font-size: 13.5px; color: var(--nl-meta); text-align: center; margin-top: 6px; }
.nd-content iframe { max-width: 100%; border-radius: 10px; }
.nd-content blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--nl-primary);
  background: var(--nl-primary-soft);
  border-radius: 0 10px 10px 0;
  color: var(--nl-primary-dark);
  font-size: 17.5px;
}
.nd-content blockquote p:last-child { margin-bottom: 0; }
.nd-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--nl-line); opacity: 1; }
.nd-content pre, .nd-content code { background: #F3F6F9; border-radius: 6px; font-size: .9em; }
.nd-content code { padding: 2px 6px; }
.nd-content pre { padding: 14px 16px; overflow-x: auto; }

.nd-table-wrap {
  overflow-x: auto;
  margin: 1.4em 0;
  border: 1px solid var(--nl-line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.nd-content table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.55; }
.nd-content table :is(td, th) { padding: 10px 14px; border: 1px solid var(--nl-line); vertical-align: top; font-size: 15px; }
.nd-table-wrap table :is(tr > :first-child) { border-left: 0; }
.nd-table-wrap table :is(tr > :last-child) { border-right: 0; }
.nd-table-wrap table tr:first-child > * { border-top: 0; }
.nd-table-wrap table tr:last-child > * { border-bottom: 0; }
.nd-content table th, .nd-content table thead td { background: #F3F7FB; color: var(--nl-heading); font-weight: 700; }
.nd-content table tbody tr:nth-child(even) td { background: #FAFBFD; }
.nd-content table p { margin: 0; }

/* TOC inserted by the editor via [[TOC_AREA]] */
.nd-content .auto-toc,
.nd-content h4:has(+ .auto-toc) { display: none; }

.nd-content .adsbygoogle { margin: 1.2em 0; }

.nd-updated {
  margin: 0 28px;
  font-size: 13.5px;
  color: var(--nl-meta);
  display: flex;
  align-items: center;
  gap: 7px;
}

.nd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 28px 0;
}
.nd-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nl-meta);
  margin-right: 4px;
}

.nd-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 24px;
  padding: 16px 28px;
  background: #F8FAFC;
  border-top: 1px solid var(--nl-line);
}
.nd-share-bar > span { font-weight: 700; color: var(--nl-heading); font-size: 15px; }


/* ------------------------------------------------------------
   4. Related institution, FAQs, prev/next
   ------------------------------------------------------------ */
.nd-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--nl-heading);
}
.nd-card-title > i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--nl-primary-soft);
  color: var(--nl-primary);
  font-size: 15px;
}
.nd-count {
  font-family: "Lato", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  background: #F3F6F9;
  color: var(--nl-meta);
  border-radius: 999px;
  padding: 3px 10px;
}
.nd-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nl-primary);
}

.nd-college-head { display: flex; align-items: center; gap: 18px; }
.nd-college-logo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--nl-line);
  background: #fff;
  padding: 8px;
  color: var(--nl-primary);
  font-size: 28px;
}
.nd-college-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nd-college-info { flex: 1 1 auto; min-width: 0; }
.nd-college-info h2 { font-size: 20px; margin: 4px 0 8px; line-height: 1.3; }
.nd-college-info h2 a { color: var(--nl-heading); }
.nd-college-info h2 a:hover { color: var(--nl-primary); }
.nd-verified { color: #1C96E8; font-size: 16px; margin-left: 4px; }
.nd-college-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--nl-muted); }
.nd-college-facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.nd-college-facts i { color: var(--nl-meta); font-size: 12px; }
.nd-college-facts a { color: var(--nl-muted); }
.nd-college-facts a:hover { color: var(--nl-primary); }
.nd-college-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }

.nd-courses { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--nl-line); }
.nd-courses h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--nl-heading); }
.nd-courses h3 span { font-family: "Lato", system-ui, sans-serif; font-size: 12px; color: var(--nl-meta); background: #F3F6F9; border-radius: 999px; padding: 2px 8px; }
.nd-courses ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nd-courses li { margin: 0; }
.nd-courses a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nl-ink);
  border: 1px solid var(--nl-line);
  background: #F8FAFC;
  border-radius: 8px;
  padding: 6px 11px;
  transition: background var(--nl-t), border-color var(--nl-t), color var(--nl-t);
}
.nd-courses a:hover { background: var(--nl-primary-soft); border-color: #BFD6E5; color: var(--nl-primary); }
.nd-courses .nd-courses-more { color: var(--nl-primary); border-style: dashed; background: #fff; }

/* FAQs */
.nd-faq { border: 1px solid var(--nl-line); border-radius: var(--nl-radius-sm); transition: border-color var(--nl-t), box-shadow var(--nl-t); }
.nd-faq + .nd-faq { margin-top: 10px; }
.nd-faq[open] { border-color: #BFD6E5; box-shadow: 0 6px 18px -12px rgba(0, 59, 92, .35); }
.nd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 16px;
  color: var(--nl-heading);
}
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary i {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nl-primary-soft);
  color: var(--nl-primary);
  font-size: 11px;
  transition: transform var(--nl-t), background var(--nl-t), color var(--nl-t);
}
.nd-faq[open] summary i { transform: rotate(45deg); background: var(--nl-primary); color: #fff; }
.nd-faq-body { padding: 0 16px 14px; color: var(--nl-ink); line-height: 1.7; }
.nd-faq-body :is(p, li) { font-size: 15.5px; }
.nd-faq-body p:last-child { margin-bottom: 0; }

/* Previous / next */
.nd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.nd-pn-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow);
  padding: 16px 18px;
  transition: box-shadow var(--nl-t), transform var(--nl-t), border-color var(--nl-t);
}
.nd-pn-link:hover { box-shadow: var(--nl-shadow-lg); transform: translateY(-2px); border-color: #D3DEE8; }
.nd-pn-next { text-align: right; align-items: flex-end; }
.nd-pn-dir { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nl-primary); }
.nd-pn-title {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--nl-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nd-pn-link:hover .nd-pn-title { color: var(--nl-primary); }


/* ------------------------------------------------------------
   5. Comments
   ------------------------------------------------------------ */
.nd-comment-form {
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-sm);
  background: #F8FAFC;
  padding: 4px;
  transition: border-color var(--nl-t), box-shadow var(--nl-t), background var(--nl-t);
}
.nd-comment-form:focus-within { border-color: #9CC3DD; background: #fff; box-shadow: 0 0 0 3px rgba(0, 91, 143, .12); }
.nd-comment-form textarea {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  min-height: 84px;
  background: transparent;
  padding: 10px 12px;
  font-size: 15.5px;
  color: var(--nl-ink);
}
.nd-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 12px;
}
.nd-comment-actions small { color: var(--nl-meta); font-size: 12.5px; }
.nd-comment-actions .nl-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; }
.nd-comment-actions .nl-btn:disabled { opacity: .6; }

.nd-comment-list { list-style: none; margin: 18px 0 0; padding: 0; }
.nd-comment { display: flex; gap: 12px; padding: 14px 0; margin: 0; }
.nd-comment + .nd-comment { border-top: 1px solid var(--nl-line); }
.nd-avatar--sm {
  width: 38px;
  height: 38px;
  font-size: 14px;
  background: var(--nl-primary-soft);
  color: var(--nl-primary);
  box-shadow: none;
}
.nd-comment:nth-child(3n+2) .nd-avatar--sm { background: #E7F3EC; color: #1B7A4B; }
.nd-comment:nth-child(3n+3) .nd-avatar--sm { background: #EDE9FB; color: #5B3FBF; }
.nd-comment-body { min-width: 0; flex: 1 1 auto; }
.nd-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.nd-comment-head b { color: var(--nl-heading); font-size: 15px; }
.nd-comment-head time { font-size: 12.5px; color: var(--nl-meta); }
.nd-comment-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--nl-ink); overflow-wrap: anywhere; }
.nd-empty-comments {
  margin: 16px 0 0;
  text-align: center;
  color: var(--nl-meta);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* ------------------------------------------------------------
   6. Related posts (vertical cards)
   ------------------------------------------------------------ */
.nd-related { margin-top: 30px; }
.nd-see-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--nl-primary); }
.nd-see-all:hover { color: var(--nl-primary-dark); }
.nd-related .nl-card { flex-direction: column; width: 100%; }
.nd-related .nl-thumb { width: 100%; aspect-ratio: 16 / 10; }
.nd-related .nl-card-body { flex: 1 1 auto; padding: 14px 16px 16px; }
.nd-related .nl-card-title { font-size: 16px; -webkit-line-clamp: 3; }
.nd-related .nl-card-excerpt { font-size: 14px; }


/* ------------------------------------------------------------
   7. Sidebar
   ------------------------------------------------------------ */
.nd-side { top: 20px; }
@media (min-width: 768px) { .nd-side { top: 116px; } } /* clear the sticky site header */
.nd-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.nd-toc-list li { margin: 0; counter-increment: toc; }
.nd-toc-list a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: var(--nl-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--nl-t), color var(--nl-t), border-color var(--nl-t);
}
.nd-toc-list a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #A9B4C0; padding-top: 1px; }
.nd-toc-list a:hover { background: #F3F6F9; color: var(--nl-heading); }
.nd-toc-list a.is-active { background: var(--nl-primary-soft); color: var(--nl-primary-dark); border-left-color: var(--nl-primary); border-radius: 0 8px 8px 0; }
.nd-toc-list a.is-active::before { color: var(--nl-primary); }
.nd-toc .nd-toc-list { max-height: 46vh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }

.nd-cta {
  text-align: center;
  background:
    radial-gradient(90% 90% at 50% 0%, var(--tone-bg), #fff 70%);
}
.nd-cta-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--tone-fg);
  color: #fff;
  font-size: 21px;
  box-shadow: 0 10px 22px -12px var(--tone-fg);
  margin-bottom: 10px;
}
.nd-cta h2 { font-size: 18px; margin: 0 0 6px; color: var(--nl-heading); }
.nd-cta p { font-size: 14px; color: var(--nl-muted); margin: 0 0 14px; line-height: 1.55; }
.nd-cta .nl-btn { display: inline-flex; align-items: center; gap: 8px; }


/* ------------------------------------------------------------
   8. Back to top + lightbox
   ------------------------------------------------------------ */
.nd-totop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--nl-primary);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(0, 59, 92, .7);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--nl-t), transform var(--nl-t), background var(--nl-t);
}
.nd-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nd-totop:hover { background: var(--nl-primary-dark); }

.nd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 20, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  cursor: zoom-out;
}
.nd-lightbox.is-open { opacity: 1; visibility: visible; }
.nd-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 60px -20px #000; }
.nd-lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 18px;
}


/* ------------------------------------------------------------
   9. Responsive
   ------------------------------------------------------------ */
@media (min-width: 992px) {
  .nd-toc-inline { display: none; }
}
@media (max-width: 991.98px) {
  .nd-toc { display: none; }
  .nd-hero-main { padding: 18px 0 24px; }
}
@media (max-width: 767.98px) {
  .nd-byline { gap: 12px; }
  .nd-hero .nl-crumbs li:has(.nd-crumb-current) { display: none; }
  .nd-share--hero { width: 100%; }
  .nd-content { padding: 20px 18px 4px; font-size: 16.5px; line-height: 1.75; }
  .nd-content h2 { font-size: 22px; }
  .nd-content h3 { font-size: 19px; }
  .nd-toc-inline { margin: 18px 18px 0; }
  .nd-ad, .nd-figure figcaption { padding-left: 18px; padding-right: 18px; }
  .nd-tags, .nd-updated { margin-left: 18px; margin-right: 18px; }
  .nd-share-bar { padding: 14px 18px; }
  .nd-card { padding: 18px; }
  .nd-college-head { flex-wrap: wrap; }
  .nd-college-logo { width: 62px; height: 62px; }
  .nd-college-cta { width: 100%; justify-content: center; }
  .nd-pn { grid-template-columns: 1fr; }
  .nd-pn > span:empty { display: none; }
  .nd-comment-actions small { display: none; }
  .nd-comment-actions { justify-content: flex-end; }
  .nd-totop { right: 14px; bottom: 84px; width: 42px; height: 42px; } /* clear the sticky bottom ad bar */
}

@media (prefers-reduced-motion: reduce) {
  .nd-share-btn:hover, .nd-pn-link:hover { transform: none; }
  .nd-totop { transition: none; }
}
