/*
Theme Name: Nishpaksh Darpan
Theme URI: https://nishpakshdarpan.com
Author: Nishpaksh Darpan
Description: Hindi newspaper-style international news theme for Nishpaksh Darpan — safed kagaz par kaala aur laal rang — v2.2: MAAK-shaili masthead layout (v2.1), rang black + red, akhbaar wala masthead, breaking ticker, category sections aur video band. Uttar Pradesh se duniya bhar ki khabron ke liye.
Version: 2.2.0
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nishpaksh-darpan
*/

:root{
  --navy:#16181D;
  --navy-dark:#000000;
  --gold:#D8232A;
  --gold-soft:#FF9AA0;
  --ink:#191919;
  --paper:#ffffff;
  --grey:#F5F5F4;
  --line:#DDDDDD;
  --muted:#6b6b6b;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Sans Devanagari","Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.6}
a{color:var(--navy);text-decoration:none}
a:hover{color:var(--gold)}
img{max-width:100%;height:auto;display:block}
.nd-wrap{max-width:1240px;margin:0 auto;padding:0 16px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- Top bar (v2.1) ---------- */
.nd-topbar{background:var(--navy-dark);color:#F2F2F2;font-size:13px}
.nd-topbar .nd-wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:6px;padding-bottom:6px;flex-wrap:wrap}
.nd-topbar-domain{color:var(--gold-soft);font-weight:600;letter-spacing:.3px}

/* ---------- Masthead: brand left + date panel right (v2.1) ---------- */
.nd-masthead{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 16px 14px;text-align:left}
.nd-masthead .site-title{margin:0;font-family:"Noto Serif Devanagari",Georgia,serif;font-size:56px;line-height:1.12;font-weight:700;color:var(--navy)}
.nd-masthead .site-title a{color:var(--navy)}
.nd-masthead .site-title a:hover{color:var(--navy-dark)}
.nd-masthead .site-title .nd-title-accent{color:var(--gold)}
.nd-masthead .custom-logo{max-height:100px;width:auto}
.nd-tagline{margin:5px 0 0;color:var(--muted);font-size:15px;letter-spacing:.4px}
.nd-datepanel{border:2px solid var(--gold);border-radius:6px;padding:10px 22px;text-align:center;background:var(--grey);min-width:210px}
.nd-datepanel-day{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:23px;font-weight:700;color:var(--navy);line-height:1.2}
.nd-datepanel-date{font-size:16.5px;font-weight:600;color:var(--ink);margin-top:2px}
.nd-datepanel-line{border-top:1px solid var(--gold);margin-top:7px;padding-top:6px;font-size:13px;color:var(--muted);letter-spacing:.6px}

/* ---------- Menu: solid bar, sticky (v2.1) ---------- */
.nd-menu-bar{background:var(--navy);border-top:3px solid var(--gold);position:sticky;top:0;z-index:60;box-shadow:0 2px 8px rgba(0,0,0,.3)}
body.admin-bar .nd-menu-bar{top:32px}
.nd-menu-bar .nd-wrap{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nd-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.nd-menu li a{display:block;padding:12px 15px;font-weight:600;color:#fff;font-size:16px}
.nd-menu li a:hover,.nd-menu li.current-menu-item>a{color:var(--gold-soft);background:var(--navy-dark)}
.nd-menu-toggle{display:none;background:var(--gold);color:#fff;border:0;padding:9px 16px;font-size:16px;font-weight:700;cursor:pointer;border-radius:3px}
.nd-search-toggle{background:none;border:0;font-size:19px;cursor:pointer;color:#fff;padding:8px}
.nd-search-box{display:none;background:var(--navy-dark);padding:12px 0}
.nd-search-box.open{display:block}
.nd-search-box form{display:flex;gap:8px;max-width:640px;margin:0 auto;padding:0 16px}
.nd-search-box input[type="search"]{flex:1;padding:9px 12px;border:1px solid var(--gold);border-radius:3px;font-size:16px}
.nd-search-box button{background:var(--gold);color:#fff;border:0;padding:9px 18px;font-weight:700;cursor:pointer;border-radius:3px}

/* ---------- Ticker ---------- */
.nd-ticker{background:var(--navy);color:#fff;display:flex;align-items:stretch;overflow:hidden}
.nd-ticker-label{background:var(--gold);color:#fff;font-weight:700;padding:9px 16px;white-space:nowrap;display:flex;align-items:center;gap:7px}
.nd-ticker-label::before{content:"";width:9px;height:9px;border-radius:50%;background:#c0392b;display:inline-block;animation:nd-blink 1s infinite}
@keyframes nd-blink{0%,100%{opacity:1}50%{opacity:.25}}
.nd-ticker-view{overflow:hidden;flex:1;display:flex;align-items:center}
.nd-ticker-track{display:inline-flex;gap:56px;white-space:nowrap;padding-left:24px;animation:nd-marquee 55s linear infinite}
.nd-ticker:hover .nd-ticker-track{animation-play-state:paused}
.nd-ticker-track span::before{content:"◆";color:var(--gold-soft);margin-right:10px;font-size:11px}
@keyframes nd-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- Front band: 3 columns ---------- */
.nd-band{display:grid;grid-template-columns:1fr 2fr 1.15fr;gap:26px;padding:26px 0 8px;border-bottom:2px solid var(--navy)}
.nd-band .nd-col-title{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:20px;color:var(--navy);border-bottom:3px solid var(--gold);padding-bottom:6px;margin:0 0 14px}
.nd-mini-list{list-style:none;margin:0;padding:0}
.nd-mini-list li{padding:9px 0;border-bottom:1px dotted var(--line)}
.nd-mini-list li:first-child{padding-top:0}
.nd-mini-list a{font-weight:600;color:var(--ink)}
.nd-mini-list a:hover{color:var(--navy)}
.nd-mini-list time,.nd-mini-list .nd-time{display:block;font-size:12.5px;color:var(--muted)}
.nd-lead h1,.nd-lead h2{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:31px;line-height:1.3;margin:12px 0 8px}
.nd-lead h1 a,.nd-lead h2 a{color:var(--ink)}
.nd-lead p{color:#444;margin:0}
.nd-lead img{border:1px solid var(--line)}
.nd-more{display:inline-block;margin-top:10px;font-weight:700;color:var(--navy)}
.nd-more:hover{color:var(--gold)}

/* ---------- Category chip ---------- */
.nd-chip{display:inline-block;background:var(--navy);color:#fff;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:20px;letter-spacing:.3px}
.nd-chip.gold{background:var(--gold);color:#fff}
a.nd-chip:hover{color:var(--gold-soft)}

/* ---------- Photo band ---------- */
.nd-photo-band{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:22px 0}
.nd-photo-card{position:relative;overflow:hidden;border-radius:4px;min-height:190px;background:var(--navy-dark)}
.nd-photo-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.nd-photo-card .nd-photo-cap{position:absolute;left:0;right:0;bottom:0;padding:28px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.92));color:#fff;font-weight:600;font-size:15.5px;line-height:1.4}
.nd-photo-card:hover .nd-photo-cap{color:var(--gold-soft)}

/* ---------- Sections & cards ---------- */
.nd-section{padding:12px 0 8px}
.nd-section-head{display:flex;align-items:center;gap:14px;margin:20px 0 16px}
.nd-section-head h2{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:26px;color:var(--navy);margin:0;white-space:nowrap}
.nd-section-head::after{content:"";flex:1;border-top:3px solid var(--gold)}
.nd-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.nd-card{border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.nd-card:hover{border-color:var(--gold);box-shadow:0 3px 14px rgba(0,0,0,.14)}
.nd-card .nd-card-img img{width:100%;height:170px;object-fit:cover}
.nd-card-ph{height:170px;background:var(--navy);color:var(--gold-soft);display:flex;align-items:center;justify-content:center;font-family:"Noto Serif Devanagari",Georgia,serif;font-size:38px;font-weight:700}
.nd-card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1}
.nd-card-body h3{margin:0;font-size:17.5px;line-height:1.42;font-family:"Noto Serif Devanagari",Georgia,serif}
.nd-card-body h3 a{color:var(--ink)}
.nd-card-body h3 a:hover{color:var(--navy)}
.nd-card-meta{font-size:12.5px;color:var(--muted)}
.nd-card-body p{margin:0;color:#555;font-size:14.5px}
.nd-two-col{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}

/* ---------- Video section ---------- */
.nd-video{background:var(--navy-dark);color:#fff;padding:10px 0 30px;margin-top:26px}
.nd-video .nd-section-head h2{color:#fff}
.nd-video .nd-card{background:var(--navy);border-color:#3A3F47;color:#eef}
.nd-video .nd-card-body h3 a{color:#fff}
.nd-video .nd-card-body h3 a:hover{color:var(--gold-soft)}
.nd-video .nd-card-meta{color:#C9C9C9}
.nd-video .nd-card-body p{color:#E8E8E8}
.nd-video .nd-play{position:relative}
.nd-video .nd-play::after{content:"▶";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(216,35,42,.92);color:#fff;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:17px}

/* ---------- Market strip ---------- */
.nd-market{background:var(--grey);border-top:2px solid var(--gold);border-bottom:1px solid var(--line);padding:11px 0;font-size:15px}
.nd-market .nd-wrap{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.nd-market .nd-market-tag{background:var(--navy);color:#fff;font-weight:700;padding:3px 11px;border-radius:3px;font-size:13.5px}

/* ---------- Lists row ---------- */
.nd-lists-row{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding-bottom:8px}

/* ---------- Sidebar ---------- */
.nd-sidebar .widget{border:1px solid var(--line);border-radius:4px;padding:15px 16px;margin-bottom:18px;background:#fff}
.nd-sidebar .widget-title{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:19px;color:var(--navy);border-bottom:3px solid var(--gold);padding-bottom:6px;margin:0 0 11px}
.nd-sidebar ul{list-style:none;margin:0;padding:0}
.nd-sidebar li{padding:6px 0;border-bottom:1px dotted var(--line)}
.nd-sidebar li:last-child{border-bottom:0}

/* ---------- Article / pages ---------- */
.nd-article{max-width:820px;margin:0 auto;padding:24px 0}
.nd-breadcrumb{font-size:13.5px;color:var(--muted);margin-bottom:10px}
.nd-article h1{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:34px;line-height:1.35;margin:8px 0 10px}
.nd-meta{color:var(--muted);font-size:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0;margin-bottom:16px}
.nd-article .wp-post-image{margin-bottom:16px;border:1px solid var(--line)}
.nd-content{font-size:17.5px;line-height:1.8}
.nd-tags{margin:18px 0;font-size:14px}
.nd-tags a{background:var(--grey);border:1px solid var(--line);padding:3px 10px;border-radius:20px;margin-right:6px}
.nd-post-nav{display:flex;justify-content:space-between;gap:16px;border-top:2px solid var(--navy);margin-top:22px;padding-top:13px;font-weight:600}
.nd-comments{max-width:820px;margin:20px auto;padding:0 0 10px}
.nd-comments .comment-list{list-style:none;padding:0}
.nd-comments .comment{border:1px solid var(--line);border-radius:4px;padding:12px 15px;margin-bottom:12px}
.nd-page-head{padding:22px 0 4px}
.nd-page-head h1{font-family:"Noto Serif Devanagari",Georgia,serif;font-size:30px;color:var(--navy);margin:0}
.nd-404{text-align:center;padding:44px 0}
.nd-404 h1{font-size:64px;color:var(--navy);margin:0;font-family:"Noto Serif Devanagari",Georgia,serif}
.pagination,.nav-links{display:flex;gap:8px;justify-content:center;padding:20px 0;flex-wrap:wrap}
.page-numbers{border:1px solid var(--navy);padding:6px 13px;border-radius:3px;font-weight:600}
.page-numbers.current{background:var(--navy);color:#fff}
.search-form{display:flex;gap:8px}
.search-form input[type="search"]{flex:1;padding:9px 12px;border:1px solid var(--navy);border-radius:3px}
.search-form button,.search-submit{background:var(--navy);color:#fff;border:0;padding:9px 17px;cursor:pointer;border-radius:3px;font-weight:600}

/* ---------- Footer ---------- */
.nd-footer{background:var(--navy-dark);color:#D7E8DE;margin-top:34px}
.nd-footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;padding:34px 0 10px}
.nd-footer h3,.nd-footer .widget-title{color:#fff;font-family:"Noto Serif Devanagari",Georgia,serif;font-size:19px;border-bottom:3px solid var(--gold);padding-bottom:7px;margin:0 0 13px}
.nd-footer a{color:#E8E8E8}
.nd-footer a:hover{color:var(--gold-soft)}
.nd-footer ul{list-style:none;margin:0;padding:0}
.nd-footer li{padding:5px 0}
.nd-footer .site-title-f{font-size:25px;color:#fff;font-family:"Noto Serif Devanagari",Georgia,serif;font-weight:700}
.nd-bottom{background:var(--navy);color:#BCD6C8;font-size:13.5px;padding:12px 0}
.nd-bottom .nd-wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .nd-band{grid-template-columns:1fr 1fr}
  .nd-band .nd-col-latest{grid-column:1/-1}
  .nd-grid{grid-template-columns:repeat(2,1fr)}
  .nd-photo-band{grid-template-columns:repeat(2,1fr)}
  .nd-two-col{grid-template-columns:1fr}
}
@media (max-width:768px){
  .nd-masthead{flex-direction:column;text-align:center;gap:12px}
  .nd-masthead .custom-logo{margin:0 auto}
  .nd-masthead .site-title{font-size:38px}
  .nd-menu-toggle{display:block;margin:8px 0}
  .nd-menu{display:none;flex-direction:column;width:100%}
  .nd-menu.open{display:flex}
  .nd-menu li a{border-top:1px solid rgba(255,255,255,.18)}
  .nd-band{grid-template-columns:1fr}
  .nd-lists-row{grid-template-columns:1fr}
  .nd-footer-grid{grid-template-columns:repeat(2,1fr)}
  .nd-lead h1,.nd-lead h2{font-size:25px}
}
@media (max-width:520px){
  .nd-grid{grid-template-columns:1fr}
  .nd-photo-band{grid-template-columns:1fr}
  .nd-footer-grid{grid-template-columns:1fr}
  .nd-masthead .site-title{font-size:31px}
  .nd-ticker-label{padding:9px 10px;font-size:14px}
  .nd-topbar .nd-wrap{justify-content:center;text-align:center}
  .nd-datepanel{min-width:0;width:100%}
}
