(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4457],{3866:function(e,l,t){Promise.resolve().then(t.bind(t,11777)),Promise.resolve().then(t.t.bind(t,38173,23)),Promise.resolve().then(t.t.bind(t,231,23)),Promise.resolve().then(t.bind(t,40235))},93701:function(e,l,t){"use strict";var s=t(57437),n=t(87138);l.Z=e=>{let{secondary:l=!1,children:t,href:r,white:a,onClick:i}=e,o="px-6 py-2 lg:py-3 lg:px-8 text-nowrap flex justify-center items-center rounded-full transition-all ".concat(l?"bg-transparent font-medium outline outline-2 -outline-offset-1 hover:outline-[3px]":"bg-orange-main font-bold text-black-700 hover:bg-orange-hover"," ").concat(a&&l?"outline-white text-white":" outline-black-700 text-black-700");return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)(n.default,{className:o,href:r,children:t}):(0,s.jsx)("button",{className:o,onClick:i,children:t})})}},40235:function(e,l,t){"use strict";t.d(l,{default:function(){return d}});var s=t(57437),n=t(2265),r=t(93701),a=t(66648),i=e=>{var l,t,n,i,o;let{post:c}=e;return(0,s.jsxs)("div",{className:"w-full flex flex-col-reverse pb-1 gap-4 md:gap-0 md:flex-row md:items-center",children:[(0,s.jsxs)("div",{className:"flex flex-col items-start pl-1 w-full md:w-1/2 md:pb-8 pr-4 md:pr-5 lg:pr-6",children:[(0,s.jsx)("h3",{className:"text-orange-main text-lg",children:"Featured"}),(0,s.jsx)("h1",{className:"leading-tight text-2xl md:text-2xl xl:text-3xl mb-3 md:mb-4",children:c.title}),(0,s.jsx)("p",{className:"mb-1 md:mb-2",children:c.excerpt}),(0,s.jsx)("ul",{className:"flex flex-col md:flex-row md:gap-4 mb-3 md:mb-5",children:null===(l=c.authors)||void 0===l?void 0:l.map(e=>(0,s.jsx)("li",{className:"font-bold",children:e.name},e._id))}),(0,s.jsx)(r.Z,{href:"/blogs/".concat(null===(t=c.slug)||void 0===t?void 0:t.current),secondary:!0,children:"Read now"})]}),(0,s.jsx)("div",{className:"relative rounded-md bg-gray-300 aspect-[5/3] w-full overflow-hidden md:w-1/2",children:(0,s.jsx)(a.default,{src:(null===(i=c.mainImage)||void 0===i?void 0:null===(n=i.asset)||void 0===n?void 0:n.url)||"images/placeholder.svg",alt:(null===(o=c.mainImage)||void 0===o?void 0:o.alt)||"Post image",fill:!0,style:{objectFit:"cover"},sizes:"(max-width: 768px) 100vw, 600px",className:"w-full absolute top-1/2 left-1/2 group-hover:scale-105"})})]})},o=t(53267),c=t(76341);t(43034),t(17322),t(58862);var d=e=>{let{featuredPosts:l}=e,t=(0,n.useRef)(null);return(0,s.jsx)("div",{className:"w-full flex flex-col items-center relative max-w-container mx-auto pt-6 md:pt-32 lg:pt-36",children:(0,s.jsxs)(o.tq,{slidesPerView:1,centeredSlides:!0,spaceBetween:32,onAutoplayTimeLeft:(e,l,s)=>{t.current&&t.current.style.setProperty("--progress","".concat(1-s))},autoplay:{delay:5e3,disableOnInteraction:!0},navigation:!0,className:"w-full relative",modules:[c.pt,c.W_],children:[null==l?void 0:l.map(e=>(0,s.jsx)(o.o5,{children:(0,s.jsx)(i,{post:e})},e._id)),(0,s.jsx)("div",{className:"autoplay-progress absolute top-2 right-2 z-10",slot:"container-end",children:(0,s.jsx)("svg",{className:"size-12",viewBox:"0 0 48 48",ref:t,children:(0,s.jsx)("circle",{className:"fill-none stroke-orange-main stroke-[0.25rem]",cx:"24",cy:"24",r:"20"})})})]})})}},58862:function(){}},function(e){e.O(0,[7211,231,8173,397,2971,7023,1744],function(){return e(e.s=3866)}),_N_E=e.O()}]);