import{j as e}from"./vendor-query-DxCcOIl8.js";import{L as r}from"./vendor-router-DakTd-wc.js";import{u as m}from"./PublicLayout-C6bnfqZF.js";import{S as c}from"./BrandComponents-DY5qTUpZ.js";import{F as l}from"./FadeIn-Bl3eiInn.js";import{A as d}from"./arrow-right-DSeIzPxR.js";function u({tags:a,heading:i="From the blog"}){const{data:t,isLoading:o}=m(a,3);return o||!t||t.length===0?null:e.jsx("section",{className:"py-16 bg-surface-warm",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-6 sm:px-8",children:[e.jsxs(l,{className:"mb-8 flex items-end justify-between gap-4 flex-wrap",children:[e.jsxs("div",{children:[e.jsx(c,{children:i.toUpperCase()}),e.jsx("h2",{className:"font-lora text-2xl font-bold text-[#071B27] mt-3",children:"Related reading"})]}),e.jsxs(r,{to:"/blog",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-brand-pink hover:opacity-75 transition-opacity whitespace-nowrap",children:["Visit the blog",e.jsx(d,{className:"h-4 w-4"})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:t.map((s,n)=>e.jsx(l,{delay:n*60,children:e.jsxs(r,{to:`/${s.slug}`,className:"block bg-white rounded-xl border border-cp-rule p-5 h-full hover:border-brand-pink/40 transition-colors",children:[e.jsx("h3",{className:"font-lora font-bold text-[#071B27] text-sm mb-2 leading-snug",children:s.title}),e.jsx("p",{className:"text-cp-muted font-poppins text-xs leading-relaxed line-clamp-3",children:s.excerpt})]})},s.slug))})]})})}export{u as F};