/* ==========================================================
   News (செய்திகள்) — posts page (home.php) + single news post
   (single.php). Builds on home-v2.css (.news-list, .news-item,
   side cards) and inner-v2.css (.page-banner-photo, .page-main,
   .pager). Only what those don't cover lives here.
   ========================================================== */

/* card titles are links */
.news-item h4 a{color:inherit;text-decoration:none}
.news-item h4 a:hover{color:var(--color-primary)}

/* ---- pagination: core paginate_links() markup inside .pager ---- */
.pager .page-numbers{text-decoration:none}
.pager .page-numbers.current{background:#c34f4f;border-color:#c34f4f;color:#fff}
.pager .page-numbers.dots{border:0;background:none;min-width:auto;padding:0 .2rem}

/* ---- YouTube lightbox (built by page-news.js) ---- */
.news-lb{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;
  background:rgba(20,10,6,.92);padding:3.5rem 1.5rem}
.news-lb[hidden]{display:none}
.news-lb-frame{position:relative;width:100%;max-width:1000px;aspect-ratio:16/9;background:#000;
  border-radius:6px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.news-lb-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.news-lb-close{position:absolute;top:.9rem;right:1rem;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
  width:46px;height:46px;border-radius:50%;font-size:1.6rem;line-height:46px;padding:0;transition:background var(--transition-fast)}
.news-lb-close:hover,.news-lb-close:focus-visible{background:rgba(255,255,255,.25)}
body.news-lb-open{overflow:hidden}

/* ---- single news post ---- */
.news-single{background:var(--color-white);border:1px solid var(--color-border);border-top:4px solid var(--color-secondary);
  border-radius:var(--v2-radius);box-shadow:var(--shadow-card);overflow:hidden}
.news-single .ns-media{margin:0;background:var(--v2-sand)}
.news-single .ns-media img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.news-single .ns-body{padding:1.4rem 1.6rem 1.8rem}
.news-single .ns-title{font-family:var(--font-tamil-tiro);color:var(--color-primary-dark);
  font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.5;margin:.6rem 0 1rem}
.news-single .post-meta a{color:var(--color-primary)}
.news-single .entry-content{font-family:var(--font-tamil-noto);font-size:.98rem;color:var(--color-text);line-height:2}
.news-single .entry-content > * + *{margin-top:1rem}
.news-single .entry-content h2,.news-single .entry-content h3,.news-single .entry-content h4{
  font-family:var(--font-tamil-tiro);color:var(--color-primary-dark);line-height:1.5;margin-top:1.6rem}
.news-single .entry-content a{color:var(--color-primary);text-decoration:underline}
.news-single .entry-content img{max-width:100%;height:auto;border-radius:6px}
.news-single .entry-content ul,.news-single .entry-content ol{padding-left:1.4rem}
.news-single .entry-content iframe{max-width:100%}
.news-single .entry-content .wp-block-embed iframe,
.news-single .entry-content .wp-block-embed__wrapper iframe{width:100%;height:auto;aspect-ratio:16/9}
.news-single .page-links{margin-top:1.4rem;font-family:var(--font-tamil-noto)}
.ns-nav{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.6rem;
  font-family:var(--font-tamil-noto);font-size:.95rem}
.ns-nav a{color:var(--color-primary)}
.ns-back{margin-top:1.4rem;text-align:center}

@media (max-width:640px){
  .news-single .ns-body{padding:1.1rem 1.1rem 1.4rem}
  .news-lb{padding:3.5rem .6rem}
}
