import{j as e}from"./vendor-ui-IWYi6_eL.js";import{L as p,r as q,e as L}from"./vendor-react-CzhYoCoQ.js";import{ak as S,al as j,M as $,Z as T,am as P,an as C,ao as z,ap as I,aq as A,z as F,D as R,ar as O,as as B,L as U,at as W,au as v,av as N,o as c,x as E,aw as M,aj as u,ax as y,_ as H,d as J,A as b,H as K,ay as D,t as _,az as Q}from"./index-3Wkihuhx.js";import{u as f}from"./vendor-query-D-GDUyjB.js";import"./vendor-supabase-mlCB8eTY.js";const X=({category:t,title:s,subtitle:a,filterTags:r})=>e.jsxs("div",{className:"relative bg-gradient-to-br from-[hsl(220,65%,20%)] via-[hsl(220,60%,25%)] to-[hsl(230,55%,30%)] rounded-xl sm:rounded-2xl px-4 sm:px-6 lg:px-8 py-5 sm:py-6 lg:py-7 mb-6 overflow-hidden shadow-xl",children:[e.jsx("div",{className:"absolute -top-10 -right-10 w-64 h-64 bg-[hsl(185,70%,45%)]/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute -bottom-10 -left-10 w-48 h-48 bg-[hsl(200,60%,50%)]/10 rounded-full blur-2xl"}),e.jsx("div",{className:"absolute inset-0 opacity-5",style:{backgroundImage:"radial-gradient(circle, white 1px, transparent 1px)",backgroundSize:"24px 24px"}}),e.jsxs("div",{className:"relative z-10 text-center",children:[e.jsx("h1",{className:"text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold text-white leading-tight mb-2 drop-shadow-lg",children:s}),a&&e.jsx("p",{className:"text-sm sm:text-base md:text-lg text-white/85 leading-relaxed max-w-3xl mx-auto",children:a}),r&&r.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3 justify-center",children:r.map((n,i)=>e.jsx("span",{className:"bg-teal-500/80 hover:bg-teal-500 text-white text-xs sm:text-sm font-semibold px-3 py-1 rounded-full transition-colors",children:n},i))})]})]}),k=t=>{if(!t)return"";try{const s=new Date(t);if(isNaN(s.getTime()))return"";const a=s.getDate(),r=s.getMonth()+1,n=String(s.getFullYear()).slice(-2);return`${a}/${r}/${n}`}catch{return""}},Y=({authorName:t,authorBio:s,authorAvatar:a,publishedAt:r,updatedAt:n})=>e.jsxs("div",{className:"my-5 rounded-xl overflow-hidden shadow-md border border-[hsl(15,80%,70%)]",children:[e.jsxs("div",{className:"bg-gradient-to-r from-[hsl(12,90%,55%)] to-[hsl(25,85%,55%)] px-3 sm:px-4 py-2 flex items-center gap-2",children:[e.jsx("div",{className:"w-5 h-5 sm:w-6 sm:h-6 bg-white rounded-lg shadow-sm flex items-center justify-center shrink-0",children:e.jsx(S,{className:"w-3 h-3 text-[hsl(12,90%,55%)]"})}),e.jsx("span",{className:"text-white font-bold text-xs sm:text-sm",children:"আপডেটকারীর তথ্য"})]}),e.jsx("div",{className:"bg-white px-3 sm:px-4 py-2.5 sm:py-3",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 sm:w-11 sm:h-11 rounded-full bg-gradient-to-br from-[hsl(12,90%,55%)] to-[hsl(25,85%,55%)] flex items-center justify-center shrink-0 overflow-hidden",children:a?e.jsx("img",{src:a,alt:t,className:"w-full h-full object-cover border-2 border-white shadow-sm rounded-full"}):e.jsx("span",{className:"text-white font-bold text-lg",children:t.charAt(0).toUpperCase()})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-foreground text-sm sm:text-base",children:t}),s&&e.jsx("p",{className:"text-[10px] sm:text-xs text-muted-foreground mt-0.5",children:s}),e.jsxs("div",{className:"flex flex-wrap gap-3 mt-2 text-[10px] sm:text-xs text-muted-foreground",children:[r&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(j,{className:"w-3 h-3 text-[hsl(12,90%,55%)]"})," প্রকাশ: ",k(r)]}),n&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx($,{className:"w-3 h-3 text-[hsl(12,90%,55%)]"})," আপডেট: ",k(n)]})]})]})]})})]}),Z=({items:t})=>!t||t.length===0?null:e.jsxs("div",{className:"rounded-xl overflow-hidden border-2 border-[hsl(220,70%,55%)] mb-5",children:[e.jsxs("div",{className:"bg-gradient-to-r from-[hsl(220,65%,45%)] via-[hsl(230,60%,50%)] to-[hsl(240,55%,55%)] px-3 sm:px-4 py-2.5 sm:py-3 flex items-center gap-2.5",children:[e.jsx("div",{className:"w-6 h-6 sm:w-7 sm:h-7 bg-white/20 rounded-lg flex items-center justify-center shrink-0",children:e.jsx(T,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-white"})}),e.jsx("span",{className:"text-white font-bold text-sm sm:text-base tracking-wide drop-shadow-sm",children:"মূল কন্টেন্ট"})]}),e.jsxs("div",{className:"flex items-center justify-between bg-gradient-to-r from-[hsl(210,40%,96%)] to-[hsl(200,35%,97%)] px-3 sm:px-4 py-2.5 sm:py-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-6 h-6 sm:w-7 sm:h-7 rounded-lg bg-gradient-to-br from-[hsl(220,70%,50%)] to-[hsl(230,65%,55%)] shadow-sm flex items-center justify-center shrink-0",children:e.jsx(P,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 text-white"})}),e.jsx("span",{className:"font-bold text-[hsl(220,60%,35%)] text-xs sm:text-sm",children:"সূচিপত্র"})]}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] sm:text-xs text-[hsl(220,50%,45%)]",children:[e.jsx("span",{children:"বিস্তারিত দেখুন"}),e.jsx(C,{size:14})]})]})]}),G=({sources:t})=>!t||t.length===0?null:e.jsxs("div",{className:"my-6 rounded-xl overflow-hidden border-2 border-[hsl(145,55%,50%)]",children:[e.jsxs("div",{className:"bg-gradient-to-r from-[hsl(145,55%,40%)] to-[hsl(165,45%,45%)] px-4 py-2.5 flex items-center gap-2",children:[e.jsx("div",{className:"bg-white/20 rounded-lg p-1.5",children:e.jsx(z,{size:14,className:"text-white"})}),e.jsx("span",{className:"text-white font-bold text-sm",children:"তথ্যসূত্র"})]}),e.jsx("div",{className:"bg-card p-4 space-y-2",children:e.jsx("div",{className:"space-y-2",children:t.map((s,a)=>{const r=s.url&&s.url.trim()!=="",n=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-8 h-8 sm:w-9 sm:h-9 rounded-lg bg-gradient-to-br from-[hsl(145,55%,45%)] to-[hsl(165,45%,50%)] flex items-center justify-center shrink-0",children:e.jsx(I,{size:14,className:"text-white"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-primary hover:underline font-medium text-sm",children:s.title}),s.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s.description}),r&&e.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5 truncate",children:s.url})]})]});return r?e.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-start gap-3 rounded-lg p-3 hover:bg-[hsl(145,40%,97%)] border border-border/30 transition-colors",children:n},a):e.jsx("div",{className:"flex items-start gap-3 rounded-lg p-3 hover:bg-[hsl(145,40%,97%)] border border-border/30 transition-colors",children:n},a)})})})]}),V=({title:t,url:s})=>{const a=encodeURIComponent(s),r=encodeURIComponent(t),n=[{name:"Facebook",icon:F,url:`https://www.facebook.com/sharer/sharer.php?u=${a}`,color:"bg-[#1877f2] hover:bg-[#166fe5]"},{name:"Instagram",icon:R,url:"https://www.instagram.com/",color:"bg-gradient-to-br from-[#f09433] via-[#dc2743] to-[#bc1888] hover:opacity-90"},{name:"WhatsApp",icon:O,url:`https://wa.me/?text=${r}%20${a}`,color:"bg-[#25D366] hover:bg-[#1ebe5d]"},{name:"Telegram",icon:B,url:`https://t.me/share/url?url=${a}&text=${r}`,color:"bg-[#0088cc] hover:bg-[#007ab8]"},{name:"LinkedIn",icon:U,url:`https://www.linkedin.com/sharing/share-offsite/?url=${a}`,color:"bg-[#0077b5] hover:bg-[#006ba3]"},{name:"Twitter",icon:W,url:`https://twitter.com/intent/tweet?url=${a}&text=${r}`,color:"bg-[#1da1f2] hover:bg-[#1a94da]"}],i=async()=>{if(navigator.share)try{await navigator.share({title:t,url:s})}catch{}else try{await navigator.clipboard.writeText(s),v.success("লিংক কপি হয়েছে!")}catch{v.error("কপি করতে সমস্যা হয়েছে")}};return e.jsxs("div",{className:"my-6 p-5 bg-gradient-to-r from-[hsl(210,50%,95%)] to-[hsl(200,45%,93%)] rounded-xl border-2 border-[hsl(210,50%,78%)] shadow-md",children:[e.jsxs("div",{className:"text-center mb-3",children:[e.jsx("p",{className:"font-bold text-foreground",children:"শেয়ার করুন"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"পোস্টটি শেয়ার করে অন্যদের জানান"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2.5 flex-wrap",children:[n.map(l=>e.jsx("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",className:`${l.color} text-white w-11 h-11 sm:w-12 sm:h-12 rounded-xl shadow-md flex items-center justify-center hover:shadow-lg hover:scale-105 transition-all`,children:e.jsx(l.icon,{size:18,className:"text-white"})},l.name)),e.jsx("button",{onClick:i,className:"bg-muted text-foreground w-11 h-11 sm:w-12 sm:h-12 rounded-xl shadow-md flex items-center justify-center hover:bg-muted/80 hover:shadow-lg hover:scale-105 transition-all",children:e.jsx(A,{size:18})})]})]})},ee=t=>{if(!t)return"";try{return new Date(t).toLocaleDateString("bn-BD")}catch{return""}},se=t=>{if(!t)return[];try{const s=JSON.parse(t);return(s==null?void 0:s.filter_tags)||[]}catch{return[]}},te=({currentSlug:t,category:s,categoryName:a})=>{const{data:r=[],isLoading:n}=f({queryKey:["related-articles",t,s],queryFn:async()=>{let l=u.from("blog_posts").select("id, slug, title_bn, category, featured_image, published_at, content_bn").eq("is_published",!0).neq("slug",t).order("sort_order",{ascending:!0}).order("published_at",{ascending:!1}).limit(4);s&&(l=l.eq("category",s));const{data:m,error:x}=await l;if(x)throw x;return m||[]}}),i=`${a||s||"সম্পর্কিত"} এর আরো পোষ্ট`;return n?e.jsxs("div",{className:"my-6 rounded-xl overflow-hidden border-2 border-[hsl(12,85%,55%)]",children:[e.jsxs("div",{className:"bg-gradient-to-r from-[hsl(12,85%,50%)] to-[hsl(25,90%,55%)] rounded-t-lg px-3 sm:px-4 py-2.5 sm:py-3 shadow-md flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 sm:w-9 sm:h-9 bg-white rounded-lg shadow-sm flex items-center justify-center shrink-0",children:e.jsx(N,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-[hsl(12,80%,50%)]"})}),e.jsx("span",{className:"text-white font-bold text-xs sm:text-sm tracking-wide drop-shadow-sm",children:i})]}),e.jsx("div",{className:"bg-card p-4",children:e.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[1,2,3,4].map(l=>e.jsx(c,{className:"h-40 rounded-xl"},l))})})]}):r.length===0?null:e.jsxs("div",{className:"my-6 rounded-xl overflow-hidden border-2 border-[hsl(12,85%,55%)]",children:[e.jsxs("div",{className:"bg-gradient-to-r from-[hsl(12,85%,50%)] to-[hsl(25,90%,55%)] rounded-t-lg px-3 sm:px-4 py-2.5 sm:py-3 shadow-md flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 sm:w-9 sm:h-9 bg-white rounded-lg shadow-sm flex items-center justify-center shrink-0",children:e.jsx(N,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-[hsl(12,80%,50%)]"})}),e.jsx("span",{className:"text-white font-bold text-xs sm:text-sm tracking-wide drop-shadow-sm",children:i})]}),e.jsxs("div",{className:"bg-card p-4",children:[e.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:r.map(l=>{const m=se(l.content_bn);return e.jsxs(p,{to:`/printing-service-blog/${l.slug}`,className:"bg-card border border-border rounded-lg overflow-hidden hover:shadow-lg transition-all group",children:[l.featured_image?e.jsx("img",{src:l.featured_image,alt:l.title_bn,className:"w-full h-24 md:h-36 object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"}):e.jsx("div",{className:"w-full h-24 md:h-36 bg-[#d5f5f6] flex items-center justify-center",children:e.jsx(E,{size:24,className:"text-primary/40"})}),e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-[11px] md:text-sm font-bold text-foreground line-clamp-2 group-hover:text-[hsl(217,91%,40%)] transition-colors",children:l.title_bn}),e.jsxs("div",{className:"flex items-center justify-between mt-1.5",children:[e.jsxs("span",{className:"flex items-center gap-1 text-[9px] md:text-[11px] text-muted-foreground font-semibold",children:[e.jsx(j,{size:10}),ee(l.published_at)]}),m.length>0&&e.jsx("span",{className:"bg-teal-500 text-white text-[8px] md:text-[10px] font-bold px-1.5 py-0.5 rounded",children:m[0]})]})]})]},l.id)})}),e.jsx("div",{className:"text-center mt-4",children:e.jsxs(p,{to:"/printing-service-blog",className:"inline-flex items-center gap-1.5 bg-teal-500 hover:bg-teal-600 text-white rounded-full px-6 py-2 text-sm font-semibold transition-colors",onClick:()=>window.scrollTo({top:0,behavior:"instant"}),children:["আরো পোষ্ট ",e.jsx(M,{size:14})]})})]})]})},re=t=>{if(!t)return"";try{return new Date(t).toLocaleDateString("bn-BD",{day:"numeric",month:"long",year:"numeric"})}catch{return""}},ae=t=>{var s;if(!t)return null;try{const a=JSON.parse(t);if(((s=a==null?void 0:a.filter_tags)==null?void 0:s.length)>0)return a.filter_tags[0]}catch{}return null},ne=({currentSlug:t})=>{const[s,a]=q.useState("recent"),{data:r=[],isLoading:n}=f({queryKey:["sidebar-recent-posts"],queryFn:async()=>{const{data:o,error:d}=await u.from("blog_posts").select("id, title_bn, slug, content_bn, published_at").eq("is_published",!0).eq("show_in_recent",!0).order("published_at",{ascending:!1}).limit(5);if(d)throw d;return o||[]}}),{data:i=[],isLoading:l}=f({queryKey:["sidebar-popular-posts"],queryFn:async()=>{const{data:o,error:d}=await u.from("blog_posts").select("id, title_bn, slug, content_bn, published_at").eq("is_published",!0).eq("is_popular",!0).order("published_at",{ascending:!1}).limit(5);if(d)throw d;return o||[]}}),m=s==="recent"?n:l,x=s==="recent"?r:i,h=t?x.filter(o=>o.slug!==t):x;return m?e.jsxs("div",{className:"bg-card border-2 border-border rounded-xl overflow-hidden",children:[e.jsxs("div",{className:"flex border-b border-border",children:[e.jsx("div",{className:"flex-1 py-3 text-sm font-bold text-center",children:"সাম্প্রতিক"}),e.jsx("div",{className:"flex-1 py-3 text-sm font-bold text-center",children:"জনপ্রিয়"})]}),e.jsx("div",{className:"p-3 space-y-3",children:[1,2,3,4,5].map(o=>e.jsxs("div",{className:"flex items-start gap-2.5 p-1.5",children:[e.jsx(c,{className:"w-7 h-7 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(c,{className:"h-3 w-full"}),e.jsx(c,{className:"h-3 w-2/3"})]})]},o))})]}):e.jsxs("div",{className:"bg-card border-2 border-border rounded-xl overflow-hidden",children:[e.jsxs("div",{className:"flex border-b border-border",children:[e.jsxs("button",{onClick:()=>a("recent"),className:y("flex-1 py-3 text-sm font-bold flex items-center justify-center gap-2 transition-all border-r border-border",s==="recent"?"text-foreground bg-gradient-to-r from-[hsl(185,75%,95%)] to-white border-b-2 border-b-[hsl(185,75%,45%)]":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:[e.jsx(H,{size:14}),"সাম্প্রতিক"]}),e.jsxs("button",{onClick:()=>a("popular"),className:y("flex-1 py-3 text-sm font-bold flex items-center justify-center gap-2 transition-all",s==="popular"?"text-foreground bg-gradient-to-r from-[hsl(185,75%,95%)] to-white border-b-2 border-b-[hsl(185,75%,45%)]":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:[e.jsx(z,{size:14}),"জনপ্রিয়"]})]}),e.jsx("div",{className:"p-3 space-y-1",children:h.length===0?e.jsx("p",{className:"text-center text-sm text-muted-foreground py-4",children:s==="recent"?"কোনো সাম্প্রতিক আর্টিকেল নেই":"কোনো জনপ্রিয় আর্টিকেল নেই"}):h.map((o,d)=>{const g=ae(o.content_bn);return e.jsxs(p,{to:`/printing-service-blog/${o.slug}`,className:"flex items-start gap-2.5 group p-1.5 rounded-lg hover:bg-[hsl(185,75%,95%)] transition-colors",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-primary text-primary-foreground font-bold text-sm flex items-center justify-center shrink-0 mt-0.5",children:d+1}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-xs font-semibold text-foreground line-clamp-2 group-hover:text-primary transition-colors",children:o.title_bn}),e.jsxs("div",{className:"flex items-center justify-between mt-1",children:[g&&e.jsx("span",{className:"bg-teal-500 text-white text-[10px] font-bold px-1.5 py-0.5 rounded",children:g}),o.published_at&&e.jsxs("span",{className:"text-[10px] text-muted-foreground flex items-center gap-1",children:[e.jsx(j,{size:9}),re(o.published_at)]})]})]})]},o.id)})})]})},le=t=>{if(!t)return null;try{const s=JSON.parse(t);return s&&typeof s=="object"&&s.content_blocks?s:null}catch{return null}},ie=t=>{const s=t.split(`
`),a=[];let r="";const n=()=>{r.trim()&&(a.push({type:"text",content:r.trim()}),r="")};for(const i of s)i.startsWith("## ")?(n(),a.push({type:"heading",level:2,text:i.replace("## ","")})):i.startsWith("### ")?(n(),a.push({type:"heading",level:3,text:i.replace("### ","")})):i.startsWith("- ")?(n(),a.push({type:"list",style:"bullet",items:[i.replace("- ","")]})):i.trim()===""?n():r+=(r?`
`:"")+i;return n(),a},he=()=>{const{slug:t}=L(),{data:s,isLoading:a}=f({queryKey:["blog-post",t],enabled:!!t,queryFn:async()=>{const{data:g,error:w}=await u.from("blog_posts").select("*").eq("slug",t).eq("is_published",!0).single();if(w)throw w;return g}});if(J(a),a)return e.jsx(b,{children:e.jsx("div",{className:"bg-[#f8f9fb] min-h-screen",children:e.jsxs("div",{className:"max-w-[1300px] mx-auto px-3 sm:px-4 lg:px-8 py-4 sm:py-5",children:[e.jsx(c,{className:"h-8 w-3/4 mb-4"}),e.jsx(c,{className:"h-48 rounded-xl mb-4"}),e.jsx(c,{className:"h-4 w-full mb-2"}),e.jsx(c,{className:"h-4 w-full mb-2"}),e.jsx(c,{className:"h-4 w-2/3"})]})})});if(!s)return e.jsx(b,{children:e.jsx("div",{className:"bg-[#f8f9fb] min-h-screen",children:e.jsx("div",{className:"text-center py-20 text-muted-foreground",children:"আর্টিকেল পাওয়া যায়নি"})})});const r=le(s.content_bn),n=(r==null?void 0:r.content_blocks)||ie(s.content_bn||s.content||""),i=(r==null?void 0:r.subtitle)||s.excerpt_bn||"",l=(r==null?void 0:r.filter_tags)||[],m=(r==null?void 0:r.sources)||[],x=(r==null?void 0:r.author_bio)||"",h=(r==null?void 0:r.table_of_contents)||[],o=(r==null?void 0:r.featured_image_caption)||"",d=typeof window<"u"?window.location.href:"";return e.jsxs(b,{children:[e.jsxs(K,{children:[e.jsx("title",{children:s.meta_title||s.title_bn}),e.jsx("meta",{name:"description",content:s.meta_description||i||""}),s.meta_keywords&&e.jsx("meta",{name:"keywords",content:s.meta_keywords}),e.jsx("meta",{property:"og:title",content:s.meta_title||s.title_bn}),e.jsx("meta",{property:"og:description",content:s.meta_description||i||""}),s.featured_image&&e.jsx("meta",{property:"og:image",content:s.featured_image}),s.featured_image&&e.jsx("meta",{property:"og:image:alt",content:s.title_bn}),e.jsx("meta",{property:"og:url",content:`https://printingsun.com/printing-service-blog/${t}`}),e.jsx("meta",{property:"og:type",content:"article"}),e.jsx("meta",{property:"og:site_name",content:"Sun Printing & Packaging Service"}),e.jsx("link",{rel:"canonical",href:`https://printingsun.com/printing-service-blog/${t}`}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:s.title_bn,description:s.meta_description||i||"",image:s.featured_image||void 0,datePublished:s.published_at||s.created_at||void 0,dateModified:s.updated_at||void 0,author:{"@type":"Person",name:s.author_name||"Admin"},publisher:{"@type":"Organization",name:"Sun Printing & Packaging Service",logo:{"@type":"ImageObject",url:"https://printingsun.com/favicon.png"}},mainEntityOfPage:{"@type":"WebPage","@id":`https://printingsun.com/printing-service-blog/${t}`}})}),e.jsx("meta",{name:"robots",content:"index, follow"})]}),e.jsx("div",{className:"bg-[#f8f9fb] min-h-screen",children:e.jsx("div",{className:"max-w-[1300px] mx-auto px-3 sm:px-4 lg:px-8 py-4 sm:py-5",children:e.jsxs("div",{className:"lg:grid lg:grid-cols-12 lg:gap-5 xl:gap-8",children:[e.jsxs("article",{className:"lg:col-span-9 min-w-0",children:[e.jsxs("nav",{className:"flex items-center gap-1.5 text-xs bg-white border border-[hsl(210,40%,85%)] rounded-lg px-4 py-2.5 shadow-sm mb-4 flex-wrap",children:[e.jsx(p,{to:"/",className:"text-muted-foreground hover:text-primary transition-colors",children:e.jsx(D,{size:16})}),e.jsx(_,{size:14,className:"text-muted-foreground/60"}),e.jsx(p,{to:"/printing-service-blog",className:"text-[hsl(220,60%,50%)] hover:text-[hsl(220,60%,40%)] font-medium transition-colors",children:"ব্লগ"}),e.jsx(_,{size:14,className:"text-muted-foreground/60"}),e.jsx("span",{className:"text-foreground font-medium truncate max-w-[200px]",children:s.title_bn})]}),e.jsx(X,{category:s.category||"",title:s.title_bn,subtitle:i,filterTags:l}),e.jsx(Y,{authorName:s.author_name||"Admin",authorBio:x,publishedAt:s.published_at||"",updatedAt:s.updated_at||""}),s.featured_image&&e.jsxs("div",{className:"mt-5 rounded-xl overflow-hidden border border-border/40 shadow-sm",children:[e.jsx("img",{src:s.featured_image,alt:s.title_bn,className:"w-full h-auto aspect-[16/9] object-cover",loading:"lazy",decoding:"async"}),o&&e.jsx("p",{className:"px-4 py-2.5 bg-muted/30 text-sm text-muted-foreground text-center border-t border-border/30",children:o})]}),e.jsx("div",{className:"mt-5 rounded-xl border-2 border-[hsl(220,50%,80%)] bg-white shadow-sm",children:e.jsxs("div",{className:"p-4 sm:p-5",children:[h&&h.length>0&&e.jsx(Z,{items:h}),e.jsx("div",{className:"mt-4",children:e.jsx(Q,{blocks:n})})]})}),e.jsx(G,{sources:m}),e.jsx(V,{title:s.title_bn,url:d}),e.jsx(te,{currentSlug:s.slug,category:s.category||void 0,categoryName:s.category||void 0})]}),e.jsx("aside",{className:"hidden lg:block lg:col-span-3",children:e.jsx("div",{className:"sticky top-24 space-y-4",children:e.jsx(ne,{currentSlug:t})})})]})})})]})};export{he as default};