/* News section: /samachar/ and /samachar/<slug>/. Everything is scoped under .nw-* (plus .nw-hero on the shared .page-hero). */
.nw-hero { padding: 48px 0 40px; }
.nw-hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(520px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(217,166,79,.8), transparent); }
.nw-hero .nw-kicker { display: inline-block; margin-top: 16px; padding: 4px 16px; color: var(--gold-pale, #f4ddb0); background: rgba(217,166,79,.14); border: 1px solid rgba(217,166,79,.45); border-radius: 99px; font-size: .9rem; font-weight: 800; }
.nw-hero h1 { margin: 12px auto 10px; font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.nw-hero-sm { padding: 26px 0 22px; }

.nw-sec { padding: 56px 0 72px; background: linear-gradient(180deg, #fbf5ea 0%, #fff8ed 100%); }
.nw-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.nw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* search + category chips */
.nw-search { display: flex; gap: 10px; max-width: 720px; margin: 0 auto 18px; }
.nw-search-box { flex: 1; min-width: 0; }
.nw-search input { width: 100%; min-height: 50px; padding: 8px 16px; color: var(--ink, #2f2220); background: #fff; border: 1px solid rgba(125,39,39,.22); border-radius: 12px; font: inherit; }
.nw-search input:focus { outline: 0; border-color: var(--saffron, #c96d24); box-shadow: 0 0 0 3px rgba(201,109,36,.18); }
.nw-sbtn { min-height: 50px; padding: 8px 26px; color: #fff; background: linear-gradient(135deg, var(--maroon, #7d2727), var(--maroon-900, #481014)); border: 1px solid rgba(217,166,79,.5); border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.nw-sbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(72,16,20,.25); }
.nw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.nw-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; color: var(--maroon-900, #481014); background: #fff; border: 1px solid rgba(217,166,79,.6); border-radius: 99px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.nw-chip small { color: var(--muted, #75645f); font-weight: 700; }
.nw-chip:hover { background: #fff8ed; border-color: var(--saffron, #c96d24); transform: translateY(-1px); }
.nw-chip.is-on { color: #fff; background: var(--maroon, #7d2727); border-color: var(--maroon, #7d2727); }
.nw-chip.is-on small { color: #f4ddb0; }
.nw-chip:focus-visible, .nw-pg:focus-visible, .nw-link:focus-visible, .nw-sbtn:focus-visible { outline: 3px solid var(--saffron-bright, #e38c36); outline-offset: 3px; }
.nw-result { margin: 0 0 20px; text-align: center; color: var(--muted, #75645f); font-weight: 700; }
.nw-result a { color: var(--saffron, #c96d24); }
.nw-none { padding: 34px 22px; text-align: center; color: var(--muted, #75645f); background: #fff; border: 1px dashed rgba(125,39,39,.3); border-radius: 16px; }
.nw-sub { margin: 34px 0 16px; color: var(--maroon-900, #481014); font: 700 1.45rem/1.4 "Tiro Devanagari Sanskrit", serif; }

/* image placeholder + badges + meta */
.nw-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b88a3b; background: radial-gradient(circle at 30% 20%, #fff8ed, #f3e2bd 70%); }
.nw-ph em { font-style: normal; font-size: .82rem; font-weight: 700; color: #8a6a2c; }
.nw-badge { position: absolute; top: 12px; left: 12px; padding: 3px 12px; color: var(--maroon-900, #481014); background: rgba(255,248,237,.96); border: 1px solid rgba(217,166,79,.7); border-radius: 99px; font-size: .78rem; font-weight: 800; text-decoration: none; }
.nw-badge-in { position: static; display: inline-block; }
.nw-meta { margin: 0 0 8px; color: var(--muted, #75645f); font-size: .86rem; font-weight: 700; }
.nw-kind { display: inline-block; margin-left: 8px; padding: 1px 10px; color: var(--maroon, #7d2727); background: #fdf0dc; border-radius: 99px; font-size: .76rem; font-weight: 800; }
.nw-link { color: var(--maroon-900, #481014); text-decoration: none; }
.nw-ex { margin: 0; color: #4b3b36; line-height: 1.8; }
.nw-more { margin-top: auto; padding-top: 12px; color: var(--saffron, #c96d24); font-size: .9rem; font-weight: 800; }

/* grid + cards */
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nw-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(217,166,79,.5); border-radius: 18px; box-shadow: 0 4px 16px rgba(64,22,17,.06); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.nw-card:hover, .nw-card:focus-within { transform: translateY(-4px); border-color: var(--saffron, #c96d24); box-shadow: 0 16px 32px rgba(64,22,17,.13); }
.nw-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f6ead2; }
.nw-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-card:hover .nw-media img { transform: scale(1.04); }
.nw-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.nw-body h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.55; font-weight: 800; }
.nw-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nw-body .nw-ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .94rem; }

/* featured */
.nw-feature { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; margin-bottom: 14px; background: #fff; border: 1px solid rgba(217,166,79,.6); border-radius: 22px; box-shadow: 0 10px 30px rgba(64,22,17,.1); }
.nw-fmedia { position: relative; min-height: 300px; background: #f6ead2; }
.nw-fmedia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-fbody { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 28px 30px; }
.nw-fbody h2 { margin: 6px 0 10px; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.4 "Tiro Devanagari Sanskrit", serif; }
.nw-fbody .nw-more { padding-top: 14px; }

/* pagination */
.nw-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 0; }
.nw-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 14px; color: var(--maroon-900, #481014); background: #fff; border: 1px solid rgba(217,166,79,.6); border-radius: 10px; font-weight: 800; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.nw-pg:hover { background: #fff8ed; border-color: var(--saffron, #c96d24); }
.nw-pg.is-on { color: #fff; background: var(--maroon, #7d2727); border-color: var(--maroon, #7d2727); }
.nw-note { max-width: 820px; margin: 30px auto 0; padding: 12px 16px; color: #5b4630; background: #fff8e1; border: 1px solid rgba(217,166,79,.6); border-left: 4px solid var(--gold, #d9a64f); border-radius: 10px; font-size: .9rem; line-height: 1.75; }

/* empty state */
.nw-empty { max-width: 760px; margin: 0 auto; padding: 44px 30px 34px; text-align: center; background: #fff; border: 1px solid rgba(217,166,79,.55); border-radius: 24px; box-shadow: 0 14px 40px rgba(64,22,17,.09); }
.nw-empty-art { display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto 18px; color: var(--gold, #d9a64f); background: radial-gradient(circle, #5b1720 0 62%, #481014 63%); border-radius: 50%; box-shadow: 0 0 0 6px rgba(217,166,79,.25); }
.nw-empty h2 { margin: 0 0 12px; color: var(--maroon-900, #481014); font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.35 "Tiro Devanagari Sanskrit", serif; }
.nw-empty p { margin: 0 auto 10px; max-width: 600px; line-height: 1.85; }
.nw-empty .nw-empty-sub { color: var(--muted, #75645f); font-size: .95rem; }
.nw-empty-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 6px; }

/* article */
.nw-article { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.nw-ahead h1 { margin: 10px 0 12px; color: var(--maroon-900, #481014); font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.4 "Tiro Devanagari Sanskrit", serif; }
.nw-tags { margin: 0; }
.nw-afig { position: relative; aspect-ratio: 16 / 9; margin: 18px 0 26px; overflow: hidden; background: #f6ead2; border: 1px solid rgba(217,166,79,.5); border-radius: 18px; }
.nw-afig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nw-afig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 12px; color: #fff; background: rgba(45,9,11,.6); font-size: .78rem; }
.nw-prose { font-size: 1.08rem; line-height: 2; color: #33231f; }
.nw-prose p { margin: 0 0 1.2em; }
.nw-prose h2 { margin: 1.6em 0 .6em; color: var(--maroon-900, #481014); font: 700 1.4rem/1.5 "Tiro Devanagari Sanskrit", serif; }
.nw-source { margin: 30px 0 0; padding: 20px 22px; background: #fff; border: 1px solid rgba(217,166,79,.55); border-left: 4px solid var(--gold, #d9a64f); border-radius: 14px; }
.nw-source h2 { margin: 0 0 10px; color: var(--maroon-900, #481014); font-size: 1.1rem; }
.nw-source dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.nw-source dt { color: var(--maroon, #7d2727); font-weight: 800; }
.nw-source dd { margin: 0; overflow-wrap: anywhere; }
.nw-source a { color: var(--saffron, #c96d24); font-weight: 800; }
.nw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 1024px) {
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-feature { grid-template-columns: 1fr; }
  .nw-fmedia { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .nw-wrap { width: calc(100% - 32px); }
  .nw-grid { grid-template-columns: 1fr; }
  .nw-search { flex-direction: column; }
  .nw-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .nw-chip { flex: none; }
  .nw-fbody { padding: 20px 18px; }
  .nw-empty { padding: 32px 18px 26px; }
  .nw-source dl { grid-template-columns: 1fr; gap: 2px; }
  .nw-source dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .nw-card, .nw-media img, .nw-chip, .nw-sbtn { transition: none !important; } .nw-card:hover { transform: none; } }

/* archive / expired + live-alert markers (added for dated and time-sensitive articles) */
.nw-arch, .nw-live { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 99px; font-size: .76rem; font-weight: 800; }
.nw-arch { color: #5b4630; background: #efe7da; border: 1px solid rgba(91,70,48,.25); }
.nw-live { color: #fff; background: #b3261e; }
.nw-banner { margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; font-size: .96rem; line-height: 1.75; }
.nw-banner strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.nw-banner-arch { color: #4b3b2a; background: #f3ece0; border: 1px solid rgba(91,70,48,.28); border-left: 5px solid #8a7a66; }
.nw-banner-live { color: #5a1410; background: #fdecea; border: 1px solid rgba(179,38,30,.4); border-left: 5px solid #b3261e; }
.nw-banner-asof { color: #5b4630; background: #fff8e1; border: 1px solid rgba(217,166,79,.6); border-left: 5px solid var(--gold, #d9a64f); }

/* article image: fixed 16:9 box (no layout shift) with the caption below the picture */
.nw-afig { aspect-ratio: auto; overflow: visible; background: transparent; border: 0; border-radius: 0; }
.nw-afig-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f6ead2; border: 1px solid rgba(217,166,79,.5); border-radius: 18px; }
.nw-afig-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nw-afig figcaption { position: static; padding: 8px 4px 0; color: var(--muted, #75645f); background: none; font-size: .8rem; line-height: 1.6; }

/* FAQ: same accordion as the rest of the site (assets/js/main.js), with a gold accent */
.nw-faq .faq-item { border-left: 4px solid var(--gold, #d9a64f); }
.nw-faq .faq-q:focus-visible { outline: 3px solid var(--saffron-bright, #e38c36); outline-offset: -3px; }
.nw-faq .faq-a p { line-height: 1.85; }
@media (max-width: 600px) { .nw-faq .faq-q { padding: 15px 14px; } .nw-faq .faq-a { padding-left: 14px; padding-right: 14px; } .nw-faq .faq-item.open .faq-a { padding: 0 14px 15px; max-height: 700px; } }
