(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51958,e=>{"use strict";var a=e.i(843476),t=e.i(271645),i=e.i(871689),s=e.i(972520),r=e.i(761911),l=e.i(810980),n=e.i(32095),o=e.i(985728),c=e.i(167881),m=e.i(618566),d=e.i(846932),x=e.i(387652);e.s(["CollegesSection",0,({initialData:e,sectionContent:h})=>{let{t:p,language:u}=(0,o.useLanguage)(),g=(0,m.useRouter)(),b=(0,t.useRef)(null),v=(0,x.useInView)(b,{once:!0,margin:"-100px"}),w={hidden:{opacity:0,y:50,scale:.95},visible:{opacity:1,y:0,scale:1,transition:{duration:.6,ease:"easeOut"}}};return(0,a.jsx)("section",{id:"colleges",className:"py-16 md:py-20 bg-background",ref:b,children:(0,a.jsxs)("div",{className:"container mx-auto px-4",children:[(0,a.jsxs)(d.motion.div,{className:"text-center mb-10 md:mb-12",initial:{opacity:0,y:30},animate:v?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.6},children:[(0,a.jsxs)(d.motion.div,{className:"inline-flex items-center gap-2 bg-primary/10 text-primary px-3 sm:px-4 py-2 rounded-full text-xs sm:text-sm font-medium mb-4 sm:mb-6",whileHover:{scale:1.05},children:[(0,a.jsx)(n.GraduationCap,{className:"w-4 h-4"}),p("التميز الأكاديمي","Academic Excellence")]}),(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-display font-bold mb-4 bg-gradient-to-r from-primary via-secondary to-primary bg-clip-text text-transparent py-2 leading-relaxed",children:p(h?.titleAr||"كلياتنا",h?.titleEn||"Our Colleges")}),(0,a.jsx)("p",{className:"text-base sm:text-lg text-muted-foreground max-w-3xl mx-auto",children:p(h?.descriptionAr||"نقدم مجموعة متنوعة من البرامج الأكاديمية المتميزة في مختلف التخصصات",h?.descriptionEn||"We offer a diverse range of distinguished academic programs in various specializations")})]}),(0,a.jsx)(d.motion.div,{className:"grid md:grid-cols-2 gap-6 md:gap-8",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.15,delayChildren:.2}}},initial:"hidden",animate:v?"visible":"hidden",children:(e||[]).map((e,t)=>(0,a.jsxs)(d.motion.div,{className:"group relative bg-card rounded-2xl overflow-hidden shadow-lg border border-border/50",variants:w,whileHover:{y:-10,boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)"},transition:{duration:.3},children:[(0,a.jsxs)("div",{className:"relative h-48 sm:h-56 md:h-64 overflow-hidden",children:[(0,a.jsx)(d.motion.img,{src:e.image||"https://images.unsplash.com/photo-1562774053-701939374585?w=800",alt:p(e.nameAr,e.nameEn),className:"w-full h-full object-cover",whileHover:{scale:1.1},transition:{duration:.6}}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"}),(0,a.jsx)(d.motion.div,{className:"absolute top-4 right-4 w-14 h-14 bg-white/20 backdrop-blur-md rounded-xl flex items-center justify-center border border-white/30",whileHover:{rotate:360,scale:1.1},transition:{duration:.6},children:(0,a.jsx)(n.GraduationCap,{className:"w-7 h-7 text-white"})}),(0,a.jsxs)("div",{className:"absolute bottom-4 left-4 right-4",children:[(0,a.jsx)("h3",{className:"text-2xl md:text-3xl font-bold text-white mb-2",children:p(e.nameAr,e.nameEn)}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-white/80 text-sm",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(l.BookOpen,{className:"w-4 h-4"}),Number(e.programsCount??e.programs?.length??0)," ",p("برامج","Programs")]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(r.Users,{className:"w-4 h-4"}),Number(e.facultyCount||0)," ",p("أستاذ","Faculty")]})]})]})]}),(0,a.jsxs)("div",{className:"p-5 sm:p-6",children:[(0,a.jsx)("p",{className:"text-muted-foreground mb-4 sm:mb-6 line-clamp-2",children:p(e.descriptionAr,e.descriptionEn)}),(0,a.jsx)(d.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:(0,a.jsxs)(c.Button,{className:"w-full group/btn font-bold",variant:"secondary",onClick:()=>g.push(`/colleges/${e.id}`),children:[p("استكشف الكلية","Explore College"),"ar"===u?(0,a.jsx)(i.ArrowLeft,{className:"w-4 h-4 mr-2 transition-transform group-hover/btn:-translate-x-1"}):(0,a.jsx)(s.ArrowRight,{className:"w-4 h-4 ml-2 transition-transform group-hover/btn:translate-x-1"})]})})]})]},e.id))}),(0,a.jsx)(d.motion.div,{className:"text-center mt-10 md:mt-12",initial:{opacity:0,y:20},animate:v?{opacity:1,y:0}:{opacity:0,y:20},transition:{delay:.8,duration:.5},children:(0,a.jsx)(d.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:(0,a.jsxs)(c.Button,{variant:"outline",size:"lg",onClick:()=>g.push("/colleges"),className:"group",children:[p("عرض جميع الكليات","View All Colleges"),"ar"===u?(0,a.jsx)(i.ArrowLeft,{className:"w-4 h-4 mr-2 transition-transform group-hover:-translate-x-1"}):(0,a.jsx)(s.ArrowRight,{className:"w-4 h-4 ml-2 transition-transform group-hover:translate-x-1"})]})})})]})})}])},519168,e=>{e.n(e.i(51958))}]);