import{j as i,H as j}from"./app-2gKhTNh_.js";import{L as b}from"./LandingLayout-7uh-oYye.js";import{a2 as v,v as w,aE as f,F as y}from"./index-DQiLWVLj.js";import{m as a}from"./proxy-N6hiut4S.js";import"./index-Kp1IKsWc.js";import"./index-C1sFUKMq.js";const g=({item:s,index:t,icon:r,color:e})=>i.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.5},transition:{duration:.5,delay:t*.1+.2,ease:"easeOut"},className:"bg-white p-6 rounded-xl shadow-lg border-t-4 border-gray-100/50 hover:shadow-2xl hover:border-t-4 hover:border-t-4 transition duration-300 transform hover:-translate-y-1 group",children:i.jsxs("div",{className:"flex items-start",children:[i.jsx(a.div,{initial:{scale:1},whileHover:{scale:1.1,rotate:5},className:`p-3 rounded-full ${e.replace("text-","bg-")}/15 mr-4 mt-0.5 transition duration-300`,children:i.jsx(y,{icon:r,className:`text-xl ${e} group-hover:text-2xl transition-all duration-300`})}),i.jsx("p",{className:"text-base text-gray-700 leading-relaxed font-medium",children:s})]})}),N=({title:s,icon:t,color:r,children:e,delay:x})=>i.jsxs(a.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0,amount:.5},transition:{duration:.8,delay:x,ease:"backOut"},className:"bg-white rounded-2xl shadow-3xl p-10 lg:p-14 border-t-8 border-t-blue-600/50 flex flex-col h-full transform hover:shadow-4xl transition-shadow duration-300",children:[i.jsxs("div",{className:"flex items-center mb-8 border-b border-gray-100 pb-4",children:[i.jsx(y,{icon:t,className:`text-6xl ${r} mr-4`}),i.jsx("h2",{className:"text-4xl lg:text-5xl font-extrabold text-gray-900",children:s})]}),i.jsx("div",{className:"text-gray-800 leading-relaxed text-xl flex-grow font-serif italic text-center",children:e})]});function A({campus:s,content:t}){const r=s?.theme||{gradientFrom:"from-blue-800",gradientTo:"to-indigo-950"},e=t?.title||"Visi & Misi Kampus",x=t?.visi||"Visi belum tersedia.",o=Array.isArray(t?.misi)?t.misi:[],n=Array.isArray(t?.tujuan)?t.tujuan:[],u=o.length>0&&o[0]!==null&&o[0]!=="",h=n.length>0&&n[0]!==null&&n[0]!=="",m={icon:v,color:"text-blue-600",title:"Visi"},c={color:"text-green-600",title:"Misi",miniIcon:w},d={color:"text-orange-600",title:"Tujuan",miniIcon:f};return i.jsxs(b,{campus:s,title:e,children:[i.jsx(j,{title:e}),i.jsx("div",{className:`py-28 sm:py-36 bg-gradient-to-br ${r.gradientFrom} ${r.gradientTo}`,children:i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[i.jsx(a.h1,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-6xl sm:text-7xl font-black text-white leading-tight tracking-tight drop-shadow-lg",children:e}),i.jsx(a.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.3},className:"mt-4 text-xl text-indigo-200/90",children:"Pilar utama yang menopang perjalanan dan tujuan institusi kami."})]})}),i.jsx("div",{className:"bg-white pt-20 sm:pt-24 pb-10",children:i.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:i.jsx(N,{title:m.title,icon:m.icon,color:m.color,delay:0,children:i.jsx("p",{children:x})})})}),u&&i.jsx("div",{className:"bg-gray-50 py-16 sm:py-24 border-t border-b border-gray-200",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[i.jsx(a.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.5},transition:{duration:.6},className:`text-4xl font-extrabold text-center mb-16 ${c.color}`,children:c.title}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:o.map((p,l)=>i.jsx(g,{item:p,index:l,icon:c.miniIcon,color:c.color},l))})]})}),h&&i.jsx("div",{className:"bg-white py-16 sm:py-24",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[i.jsx(a.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.5},transition:{duration:.6},className:`text-4xl font-extrabold text-center mb-16 ${d.color}`,children:d.title}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:n.map((p,l)=>i.jsx(g,{item:p,index:l,icon:d.miniIcon,color:d.color},l))})]})}),!u&&!h&&i.jsx("div",{className:"py-20 text-center text-gray-500",children:i.jsx("p",{children:"Informasi Misi dan Tujuan kampus sedang dalam proses pembaruan."})})]})}export{A as default};
