<%- include('partials/header',{site,pageTitle:site.seo_home_title||'खबर हिंदी | आवाज़ आपकी, मंच हमारा',pageDescription:site.seo_home_description,canonical:base,base}) %>
<% const lead=featured[0]||latest[0], side=(featured.length>1?featured.slice(1,5):latest.slice(1,5)); const date=a=>a.published_at?dateIST(a.published_at).toLocaleDateString('hi-IN',{day:'numeric',month:'short',year:'numeric',timeZone:'Asia/Kolkata'}):''; %>
<% if(breaking.length){ %><section class="bulletin"><div class="kh-shell"><b><i></i> ब्रेकिंग न्यूज़</b><div class="bulletin-items" style="--speed:<%= Math.max(8,Math.min(120,Number(site.breaking_ticker_speed_seconds)||34)) %>s"><div class="bulletin-track"><% [0,1].forEach(copy=>{ %><div class="bulletin-group" <%=copy?'aria-hidden=true':''%>><% breaking.forEach(b=>{ %><a href="<%= b.url||'/latest' %>" tabindex="<%=copy?-1:0%>"><%= b.text %></a><% }) %></div><% }) %></div></div></div></section><% } %>
<div class="kh-shell topics"><b>चर्चा में</b><% String(site.trending_topics||'भारत,उत्तर प्रदेश,राजनीति,क्रिकेट').split(',').filter(Boolean).slice(0,8).forEach(t=>{ %><a href="/search?q=<%= encodeURIComponent(t.trim()) %>"><%= t.trim() %> <span>↗</span></a><% }) %></div>
<section class="kh-shell front-page">
  <div class="edition-label"><span>THE NEWS. THE CONTEXT. YOUR VOICE.</span><b>खबरों से आगे, आपकी बात।</b></div>
  <div class="front-grid">
    <% if(lead){ %><article class="front-lead"><a href="/news/<%= encodeURIComponent(lead.slug) %>"><div class="front-photo"><img src="<%= lead.image_url||'/images/news-placeholder.svg' %>" alt="<%= lead.image_alt||lead.title %>" fetchpriority="high"><span>प्रमुख खबर</span></div><div class="story-eyebrow"><b><%= lead.category_name||'खबर हिंदी' %></b><time><%= date(lead) %></time></div><h1><%= lead.title %></h1><p><%= lead.excerpt||'' %></p><span class="read-story">पूरी खबर पढ़ें <b>↗</b></span></a></article><% } %>
    <div class="front-secondaries"><% side.forEach((a,i)=>{ %><article><a href="/news/<%= encodeURIComponent(a.slug) %>"><% if(i===0){ %><img src="<%= a.image_url||'/images/news-placeholder.svg' %>" alt="<%= a.title %>" loading="lazy"><% } %><div class="story-eyebrow"><b><%= a.category_name||'समाचार' %></b></div><h2><%= a.title %></h2><time><%= date(a) %></time></a></article><% }) %></div>
    <aside class="news-digest"><div class="digest-head"><span class="red-dot"></span><h2>न्यूज़ फीड</h2><a href="/latest" aria-label="सभी खबरें">↗</a></div><p class="digest-caption">आखिरी प्रकाशित खबरें • मूल तिथि के साथ</p><% latest.slice(0,6).forEach((a,i)=>{ %><a class="digest-item" href="/news/<%= encodeURIComponent(a.slug) %>"><span class="digest-no"><%= String(i+1).padStart(2,'0') %></span><div><time><%= date(a) %></time><h3><%= a.title %></h3></div></a><% }) %><a class="digest-all" href="/latest">सभी खबरें देखें →</a></aside>
  </div>
</section>
<% if(site.archive_notice){ %><div class="kh-shell archive-note"><b>खबर हिंदी आर्काइव</b><span><%= site.archive_notice %></span><a href="/latest">पुरानी खबरें खोजें ↗</a></div><% } %>
<%- include('partials/ad-slot',{placement:'HOME_TOP'}) %>
<% (sections||[]).forEach((sec,si)=>{ if(sec.items.length){ %><section class="kh-shell desk-section"><div class="desk-heading"><div><span>KHABERHINDI / <%= String(si+1).padStart(2,'0') %></span><h2><%= sec.title %></h2></div><a href="<%= sec.category_slug?'/category/'+encodeURIComponent(sec.category_slug):'/latest' %>">सभी खबरें <b>↗</b></a></div><div class="desk-cards layout-<%= sec.layout %>"><% sec.items.slice(0,sec.item_limit||6).forEach(a=>{ %><article><a href="/news/<%= encodeURIComponent(a.slug) %>"><div class="desk-image"><img src="<%= a.image_url||'/images/news-placeholder.svg' %>" alt="<%= a.image_alt||a.title %>" loading="lazy"></div><div class="story-eyebrow"><b><%= a.category_name||sec.title %></b><time><%= date(a) %></time></div><h3><%= a.title %></h3></a></article><% }) %></div></section><% } }) %>
<section class="kh-shell desk-section"><div class="desk-heading"><div><span>THE COMPLETE PICTURE</span><h2>और भी खबरें</h2></div><a href="/latest">पूरा आर्काइव ↗</a></div><div class="desk-cards"><% latest.slice(6,14).forEach(a=>{ %><article><a href="/news/<%= encodeURIComponent(a.slug) %>"><div class="desk-image"><img src="<%= a.image_url||'/images/news-placeholder.svg' %>" alt="<%= a.title %>" loading="lazy"></div><div class="story-eyebrow"><b><%= a.category_name||'समाचार' %></b><time><%= date(a) %></time></div><h3><%= a.title %></h3></a></article><% }) %></div></section>
<%- include('partials/ad-slot',{placement:'HOME_MID'}) %><section class="kh-shell reader-connect"><div><span>आवाज़ आपकी, मंच हमारा</span><h2>आपके शहर की खबर,<br>अब आपकी आवाज़ में।</h2><p>कोई खबर, सुझाव या सवाल है? सीधे न्यूज़रूम तक पहुँचाइए।</p><a href="/contact" class="btn">अपनी बात भेजें ↗</a></div><div class="reader-newsletter"><span>NEWSLETTER</span><h3>जरूरी खबरों से जुड़े रहें।</h3><p>न्यूज़ अपडेट प्राप्त करने के लिए सदस्यता लें।</p><form data-newsletter-form><label class="sr-only" for="newsletterEmail">ईमेल</label><input id="newsletterEmail" type="email" name="email" required placeholder="आपका ईमेल पता"><button class="btn">जुड़ें →</button><label class="consent"><input type="checkbox" name="consent" value="yes" required> मैं ईमेल अपडेट पाने के लिए सहमत हूँ।</label><output data-newsletter-message></output></form></div></section>
<%- include('partials/footer',{site}) %>
