(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4125],{2315:(e,t,s)=>{"use strict";s.d(t,{default:()=>N});var a=s(5155),l=s(2115),r=s(6874),i=s.n(r),n=s(4901),o=s(5695),c=s(2606),x=s(9114),d=s(9911);let m=[...s(6394).Q].sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime()),h={"प्रवेश और परीक्षा तैयारी":"bg-purple-600","नवोदय प्रवेश":"bg-purple-600","विद्यालय समाचार":"bg-teal-600","शैक्षिक योजना":"bg-amber-500","छात्र जीवन":"bg-pink-600","अध्ययन टिप्स":"bg-orange-500","सैनिक स्कूल":"bg-blue-600","शिक्षक संसाधन":"bg-indigo-600"},g={"प्रवेश और परीक्षा तैयारी":"bg-purple-50 text-purple-700 border-purple-200","नवोदय प्रवेश":"bg-purple-50 text-purple-700 border-purple-200","विद्यालय समाचार":"bg-teal-50 text-teal-700 border-teal-200","शैक्षिक योजना":"bg-amber-50 text-amber-700 border-amber-200","छात्र जीवन":"bg-pink-50 text-pink-700 border-pink-200","अध्ययन टिप्स":"bg-orange-50 text-orange-700 border-orange-200","सैनिक स्कूल":"bg-blue-50 text-blue-700 border-blue-200","शिक्षक संसाधन":"bg-indigo-50 text-indigo-700 border-indigo-200"};function p(e){var t,s;let{cat:l,dark:r=!1}=e;if(r){let e=null!=(t=h[l])?t:"bg-gray-600";return(0,a.jsx)("span",{className:"inline-block ".concat(e," text-white text-[10px] font-bold px-2.5 py-1 rounded uppercase tracking-wider"),children:l})}let i=null!=(s=g[l])?s:"bg-gray-100 text-gray-600 border-gray-200";return(0,a.jsx)("span",{className:"inline-block border text-[10px] font-bold px-2.5 py-1 rounded uppercase tracking-wider ".concat(i),children:l})}function b(){let e=m.slice(0,8).map(e=>e.title);return(0,a.jsxs)("div",{className:"bg-[#035c00] text-white flex items-stretch overflow-hidden rounded-xl mb-6 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-red-600 px-4 py-2.5 flex-shrink-0 text-xs font-extrabold uppercase tracking-widest",children:[(0,a.jsx)(d.sdT,{className:"animate-pulse"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"नवीनतम"})]}),(0,a.jsx)("div",{className:"overflow-hidden flex-1 py-2.5 px-3",children:(0,a.jsx)(c.P.div,{animate:{x:["100%","-100%"]},transition:{duration:38,repeat:1/0,ease:"linear"},className:"whitespace-nowrap text-xs font-medium text-white/90 flex gap-12",children:[...e,...e].map((e,t)=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-3",children:[(0,a.jsx)("span",{className:"text-yellow-400 font-bold",children:"●"}),e]},t))})})]})}function u(e){let{articles:t}=e,[s,...l]=t.slice(0,3);return s?(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-4 mb-8",children:[(0,a.jsxs)(i(),{href:"/hi/blog/".concat(s.slug,"/"),className:"lg:col-span-3 group relative rounded-2xl overflow-hidden min-h-[380px] flex flex-col justify-end shadow-md hover:shadow-2xl transition-all duration-500 block",children:[(0,a.jsx)(n.A,{src:s.image,alt:s.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-700",sizes:"(max-width:1024px) 100vw, 60vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-transparent"}),(0,a.jsxs)("div",{className:"relative p-6 text-white",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,a.jsx)(p,{cat:s.category,dark:!0}),(0,a.jsxs)("span",{className:"text-white/60 text-[10px] font-medium flex items-center gap-1",children:[(0,a.jsx)(d.bfZ,{className:"text-[9px]"})," ",s.date]})]}),(0,a.jsx)("h2",{className:"text-xl md:text-2xl font-extrabold leading-tight mb-2 group-hover:text-yellow-300 transition-colors",children:s.title}),(0,a.jsx)("p",{className:"text-xs text-white/75 line-clamp-2 leading-relaxed mb-3",children:s.description}),(0,a.jsxs)("div",{className:"flex items-center gap-3 text-[11px] text-white/60",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(d.x$1,{className:"text-[9px]"})," ",s.author]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(d.w_X,{className:"text-[9px]"})," ",s.readTime]})]})]})]}),(0,a.jsx)("div",{className:"lg:col-span-2 flex flex-col gap-4",children:l.map(e=>(0,a.jsxs)(i(),{href:"/hi/blog/".concat(e.slug,"/"),className:"group relative rounded-xl overflow-hidden h-[178px] flex flex-col justify-end shadow-sm hover:shadow-xl transition-all duration-400 block",children:[(0,a.jsx)(n.A,{src:e.image,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-600",sizes:"(max-width:1024px) 100vw, 40vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),(0,a.jsxs)("div",{className:"relative p-4 text-white",children:[(0,a.jsx)(p,{cat:e.category,dark:!0}),(0,a.jsx)("h3",{className:"mt-2 text-sm font-bold leading-snug line-clamp-2 group-hover:text-yellow-300 transition-colors",children:e.title}),(0,a.jsxs)("span",{className:"text-[10px] text-white/60 mt-1 block",children:[e.date," \xb7 ",e.readTime]})]})]},e.slug))})]}):null}function f(e){let{article:t}=e;return(0,a.jsxs)(c.P.article,{layout:!0,initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,scale:.97},transition:{duration:.35},className:"bg-white rounded-xl border border-gray-100 shadow-sm hover:shadow-lg hover:-translate-y-1 transition-all duration-300 overflow-hidden flex flex-col group",children:[(0,a.jsxs)(i(),{href:"/hi/blog/".concat(t.slug,"/"),className:"relative h-44 w-full overflow-hidden flex-shrink-0 block",children:[(0,a.jsx)(n.A,{src:t.image,alt:t.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width:640px) 100vw, (max-width:1024px) 50vw, 33vw"}),(0,a.jsx)("div",{className:"absolute top-3 left-3",children:(0,a.jsx)(p,{cat:t.category,dark:!0})})]}),(0,a.jsxs)("div",{className:"p-4 flex flex-col flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 text-[11px] text-gray-400 mb-2",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(d.bfZ,{className:"text-[9px]"}),t.date]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(d.w_X,{className:"text-[9px]"}),t.readTime]})]}),(0,a.jsx)(i(),{href:"/hi/blog/".concat(t.slug,"/"),children:(0,a.jsx)("h3",{className:"text-sm font-bold text-gray-900 leading-snug line-clamp-2 mb-2 group-hover:text-[#035c00] transition-colors",children:t.title})}),(0,a.jsx)("p",{className:"text-xs text-gray-500 line-clamp-2 leading-relaxed flex-1",children:t.description}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-gray-100",children:[(0,a.jsxs)("span",{className:"text-[11px] text-gray-400 flex items-center gap-1",children:[(0,a.jsx)(d.x$1,{className:"text-[9px]"})," ",t.author]}),(0,a.jsxs)(i(),{href:"/hi/blog/".concat(t.slug,"/"),className:"text-[11px] font-bold text-[#035c00] flex items-center gap-1 hover:underline",children:["पढ़ें ",(0,a.jsx)(d.Z0P,{className:"text-[9px] group-hover:translate-x-0.5 transition-transform"})]})]})]})]})}function j(e){let{trending:t}=e;return(0,a.jsxs)("aside",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"bg-white rounded-xl border border-gray-100 shadow-sm overflow-hidden",children:[(0,a.jsxs)("div",{className:"bg-[#035c00] px-5 py-3 flex items-center gap-2",children:[(0,a.jsx)(d.Itl,{className:"text-yellow-400"}),(0,a.jsx)("h3",{className:"text-sm font-extrabold text-white uppercase tracking-wider",children:"लोकप्रिय"})]}),(0,a.jsx)("ul",{className:"divide-y divide-gray-50",children:t.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)(i(),{href:"/hi/blog/".concat(e.slug,"/"),className:"flex gap-3 p-4 hover:bg-gray-50 transition-colors group",children:[(0,a.jsx)("span",{className:"text-2xl font-extrabold text-gray-100 leading-none w-7 flex-shrink-0 group-hover:text-[#035c00]/20 transition-colors",children:String(t+1).padStart(2,"0")}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)(p,{cat:e.category}),(0,a.jsx)("p",{className:"mt-1.5 text-xs font-bold text-gray-800 leading-snug line-clamp-2 group-hover:text-[#035c00] transition-colors",children:e.title}),(0,a.jsx)("span",{className:"text-[10px] text-gray-400 mt-1 block",children:e.readTime})]})]})},e.slug))})]}),(0,a.jsxs)("div",{className:"bg-gradient-to-br from-[#035c00] to-[#024700] rounded-xl p-5 text-white shadow-lg relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute -top-6 -right-6 w-24 h-24 bg-white/5 rounded-full"}),(0,a.jsx)(d.YNd,{className:"text-3xl text-yellow-400 mb-3"}),(0,a.jsx)("h3",{className:"font-extrabold text-base mb-1",children:"प्रवेश परीक्षा की तैयारी करें"}),(0,a.jsx)("p",{className:"text-xs text-white/80 leading-relaxed mb-4",children:"AMU, JMI, सैनिक स्कूल, मिलिट्री स्कूल और विद्या ज्ञान — साप्ताहिक OMR टेस्ट के साथ विशेष कोचिंग बैच।"}),(0,a.jsx)(i(),{href:"/coaching",className:"block text-center bg-yellow-400 hover:bg-yellow-300 text-[#035c00] font-extrabold text-xs py-2.5 rounded-lg transition-colors shadow-md",children:"कोचिंग देखें →"})]}),(0,a.jsxs)("div",{className:"bg-white rounded-xl border border-gray-100 shadow-sm p-5",children:[(0,a.jsxs)("h4",{className:"text-sm font-bold text-gray-800 mb-2 flex items-center gap-2",children:[(0,a.jsx)(d.x$1,{className:"text-[#035c00]"})," प्रधानाचार्य से पूछें"]}),(0,a.jsx)("p",{className:"text-xs text-gray-500 leading-relaxed mb-4",children:"प्रवेश और कोचिंग प्रश्नों के लिए प्रधानाचार्य रिफौल हसन से सीधे WhatsApp पर बात करें।"}),(0,a.jsxs)("a",{href:"https://wa.me/919997161490?text=Hello%20Principal%2C%20I%20have%20an%20inquiry.",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 bg-emerald-500 hover:bg-emerald-600 text-white font-bold text-xs py-2.5 rounded-lg transition-colors shadow-md",children:[(0,a.jsx)(d.EcP,{className:"text-base"})," WhatsApp पर चैट करें"]})]}),(0,a.jsxs)("div",{className:"bg-white rounded-xl border border-gray-100 shadow-sm p-5",children:[(0,a.jsxs)("h4",{className:"text-sm font-bold text-gray-800 mb-3 flex items-center gap-2",children:[(0,a.jsx)(d.wJQ,{className:"text-[#035c00]"})," श्रेणियां ब्राउज़ करें"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.keys(g).map(e=>(0,a.jsx)(i(),{href:"/hi/blog?category=".concat(encodeURIComponent(e)),className:"text-[10px] font-bold px-2.5 py-1 rounded border ".concat(g[e]," hover:opacity-80 transition-opacity"),children:e},e))})]}),(0,a.jsxs)("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-5",children:[(0,a.jsxs)("h4",{className:"text-sm font-bold text-amber-900 mb-2 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDCA1"})," क्या आप जानते हैं?"]}),(0,a.jsx)("p",{className:"text-[11px] text-amber-800 leading-relaxed",children:"हमारे AMU और सैनिक स्कूल बैच गणित और उर्दू भाषा के लिए विषय-विशिष्ट शॉर्टकट्स को कवर करते हैं।"}),(0,a.jsxs)(i(),{href:"/faq",className:"text-xs font-bold text-amber-700 hover:text-amber-900 mt-3 flex items-center gap-1 group",children:["FAQ देखें ",(0,a.jsx)(d.Z0P,{className:"text-[9px] group-hover:translate-x-1 transition-transform"})]})]})]})}function N(){let e=(0,o.useSearchParams)(),[t,s]=(0,l.useState)(""),[r,i]=(0,l.useState)("All"),[n,h]=(0,l.useState)(1),g=(0,l.useMemo)(()=>["All",...Array.from(new Set(m.map(e=>e.category)))],[]);(0,l.useEffect)(()=>{let t=e.get("category"),a=e.get("q");if(a&&s(a),t){let e=g.find(e=>e.toLowerCase()===t.toLowerCase());e&&i(e)}},[g,e]);let p=(0,l.useMemo)(()=>m.filter(e=>{let s="All"===r||e.category===r,a=e.title.toLowerCase().includes(t.toLowerCase())||e.description.toLowerCase().includes(t.toLowerCase())||e.author.toLowerCase().includes(t.toLowerCase());return s&&a}),[t,r]);(0,l.useEffect)(()=>{h(1)},[t,r]);let N="All"===r&&""===t,w=N?p.slice(0,3):[],v=N?p.slice(3):p,y=Math.ceil(v.length/9),k=v.slice((n-1)*9,9*n),C=m.slice(0,6);return(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[(0,a.jsx)(b,{}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 items-start md:items-center justify-between mb-8 bg-white px-5 py-4 rounded-xl border border-gray-100 shadow-sm",children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:g.map(e=>(0,a.jsxs)("button",{onClick:()=>i(e),className:"px-4 py-1.5 rounded-full text-xs font-bold transition-all duration-200 border ".concat(r===e?"bg-[#035c00] text-white border-[#035c00] shadow-sm":"bg-white text-gray-500 border-gray-200 hover:border-[#035c00] hover:text-[#035c00]"),children:[e,(0,a.jsxs)("span",{className:"ml-1.5 text-[9px] opacity-60",children:["(","All"===e?m.length:m.filter(t=>t.category===e).length,")"]})]},e))}),(0,a.jsxs)("div",{className:"relative w-full md:w-72 flex-shrink-0",children:[(0,a.jsx)(d.KSO,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 text-xs"}),(0,a.jsx)("input",{type:"text",placeholder:"लेख, लेखक खोजें...",value:t,onChange:e=>s(e.target.value),className:"w-full pl-9 pr-4 py-2 border border-gray-200 rounded-full text-xs bg-gray-50 focus:ring-2 focus:ring-[#035c00] focus:border-transparent outline-none transition-all"})]})]}),N&&(0,a.jsx)(u,{articles:w}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,a.jsxs)("div",{className:"lg:col-span-2",children:[!N&&t&&(0,a.jsxs)("p",{className:"text-xs text-gray-500 mb-4",children:['"',(0,a.jsx)("span",{className:"text-[#035c00]",children:t}),'" के लिए ',(0,a.jsx)("span",{className:"font-bold text-gray-800",children:p.length})," परिणाम"]}),(0,a.jsx)(x.N,{mode:"popLayout",children:k.length>0?(0,a.jsx)(c.P.div,{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:k.map(e=>(0,a.jsx)(f,{article:e},e.slug))},"".concat(r,"-").concat(n)):(0,a.jsxs)(c.P.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center py-20 bg-white rounded-xl border border-gray-100",children:[(0,a.jsx)(d.U$b,{className:"text-4xl text-gray-200 mx-auto mb-4"}),(0,a.jsx)("h3",{className:"font-bold text-gray-700 mb-1",children:"कोई लेख नहीं मिला"}),(0,a.jsx)("p",{className:"text-xs text-gray-400",children:"कोई अन्य श्रेणी या खोज शब्द आज़माएं।"})]})}),y>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3 mt-8 pt-6 border-t border-gray-100",children:[(0,a.jsx)("button",{onClick:()=>h(e=>Math.max(1,e-1)),disabled:1===n,className:"p-2.5 rounded-full bg-white border border-gray-200 text-gray-600 hover:bg-[#035c00] hover:text-white hover:border-[#035c00] disabled:opacity-40 disabled:cursor-not-allowed transition-all shadow-sm",children:(0,a.jsx)(d._Jj,{className:"text-xs"})}),(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:y},(e,t)=>t+1).map(e=>(0,a.jsx)("button",{onClick:()=>h(e),className:"w-8 h-8 rounded-full text-xs font-bold transition-all ".concat(e===n?"bg-[#035c00] text-white shadow-sm":"bg-white border border-gray-200 text-gray-600 hover:border-[#035c00] hover:text-[#035c00]"),children:e},e))}),(0,a.jsx)("button",{onClick:()=>h(e=>Math.min(y,e+1)),disabled:n===y,className:"p-2.5 rounded-full bg-white border border-gray-200 text-gray-600 hover:bg-[#035c00] hover:text-white hover:border-[#035c00] disabled:opacity-40 disabled:cursor-not-allowed transition-all shadow-sm",children:(0,a.jsx)(d.X6T,{className:"text-xs"})})]})]}),(0,a.jsx)(j,{trending:C})]})]})}},5298:(e,t,s)=>{Promise.resolve().then(s.bind(s,2315))},5695:(e,t,s)=>{"use strict";var a=s(8999);s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})}},e=>{var t=t=>e(e.s=t);e.O(0,[6711,6874,3063,8059,2371,5334,8441,1684,7358],()=>t(5298)),_N_E=e.O()}]);