import {ArrowRight,ArrowUpRight,Globe2,ShieldCheck,UsersRound,MapPin,Mail,Phone,Check,Handshake,FileCheck2,BriefcaseBusiness} from 'lucide-react';
import {text,tr,company,industries,steps,faqItems,navPages,pageTitle,type Lang} from '../lib/content';
import {markets,flag,type Market} from '../lib/markets';
import {Logo,Header,WhatsApp,EmailLink,Analytics,PrivacyButton,MarketExplorer,WorkforceCatalogue,EnquiryForm} from './client';
import type {ContentRecord} from '../lib/server';
export function SectionHeading({label,title,body,l,href}:{label:string;title:string;body?:string;l:Lang;href?:string}){return <div className="section-heading"><div><span className="eyebrow">{label}</span><h2>{title}</h2>{body&&<p>{body}</p>}</div>{href&&<a className="text-link" href={href}>{text.viewAll[l]}<ArrowUpRight size={18}/></a>}</div>;}
export function CTA({l}:{l:Lang}){return <section className="cta wrap"><div><span className="eyebrow">AL MURIS INTERNATIONAL</span><h2>{text.ctaHeading[l]}</h2><p>{text.ctaBody[l]}</p></div><div className="button-row"><a className="button gold" href={`/${l}/request/`}>{text.request[l]}<ArrowUpRight size={18}/></a><WhatsApp className="button light-outline" l={l}/></div></section>;}
export function Footer({l}:{l:Lang}){return <footer className="footer"><div className="wrap footer-grid"><div className="footer-about"><a href={`/${l}/`}><Logo/></a><p>{text.heroBody[l]}</p><span className="location"><MapPin size={16}/>{text.dhaka[l]}</span></div><div><h4>{text.quickLinks[l]}</h4>{['about','professional','domestic','workforce','markets','process'].map(s=><a key={s} href={`/${l}/${s}/`}>{pageTitle(s,l)}</a>)}</div><div><h4>{text.partner[l]}</h4>{['become-partner','partners','deployments','responsible-recruitment','faq','contact'].map(s=><a key={s} href={`/${l}/${s}/`}>{pageTitle(s,l)}</a>)}</div><div className="footer-contact"><h4>{text.getInTouch[l]}</h4><EmailLink/><a dir="ltr" href={`tel:${company.phone}`}>{company.phone}</a><WhatsApp l={l}/><a className="admin-link" href="/admin/">{text.admin[l]}<ArrowUpRight size={12}/></a></div></div><div className="wrap footer-bottom"><span>© 2026 AL MURIS INTERNATIONAL. {text.rights[l]}</span><div><a href={`/${l}/privacy/`}>{text.privacy[l]}</a><a href={`/${l}/terms/`}>{text.terms[l]}</a><PrivacyButton l={l}/></div></div></footer>;}
export function Shell({l,path,gaId,children}:{l:Lang;path:string;gaId?:string;children:React.ReactNode}){return <><a className="skip-link" href="#main">{tr('Skip to content','মূল বিষয়বস্তুতে যান','انتقل للمحتوى')[l]}</a><Header l={l} path={path}/><main id="main">{children}</main><Footer l={l}/><WhatsApp l={l} className="floating-wa"><svg viewBox="0 0 32 32" width="25" height="25" fill="none" stroke="currentColor" strokeWidth="1.8"><path d="M27 15.5A11.5 11.5 0 0 1 10 25.6L4 28l1.9-6.1A11.5 11.5 0 1 1 27 15.5Z"/><path d="m11 9 3 4-2 2c1.3 2.4 2.6 3.7 5 5l2-2 4 3c-1 3-4 3-7 1-4-2-8-7-8-10 0-2 1-3 3-3Z"/></svg></WhatsApp><Analytics l={l} gaId={gaId}/></>;}
export function IndustryGrid({l}:{l:Lang}){return <div className="industry-grid">{industries.map(i=><a className="industry-card" href={`/${l}/industries/${i.id}/`} key={i.id}><div className={`sector-photo sector-${i.image}`} role="img" aria-label={`${i.name[l]} · ${text.illustrative[l]}`}><span className="photo-arrow"><ArrowUpRight size={22}/></span></div><div className="industry-copy"><h3>{i.name[l]}</h3><p>{i.desc[l]}</p></div></a>)}</div>;}
export function Process({l,full=false}:{l:Lang;full?:boolean}){return <><div className="process-grid">{steps.map(([title,body],i)=><div className="process-step" key={i}><span className="step-number">0{i+1}</span><h3>{title[l]}</h3><p>{body[l]}</p></div>)}</div>{full&&<div className="note-panel"><ShieldCheck/><div><h3>{tr('Agree on the scope before you proceed.','এগোনোর আগে কাজের পরিধিতে সম্মত হন।','اتفق على نطاق الخدمة قبل البدء.')[l]}</h3><p>{tr('Candidate sourcing, screening, skills verification, employer interviews, documentation, preparation and travel coordination are agreed for each assignment. Post-deployment support is included only when expressly agreed. Responsibilities, fees and timelines must be confirmed in writing.','প্রার্থী সংগ্রহ, বাছাই, দক্ষতা যাচাই, সাক্ষাৎকার, নথি, প্রস্তুতি ও ভ্রমণ সমন্বয় প্রতিটি কাজের জন্য নির্ধারিত হয়। যোগদানের পর সহায়তা শুধু স্পষ্টভাবে সম্মত হলে অন্তর্ভুক্ত। দায়িত্ব, ফি ও সময় লিখিতভাবে নিশ্চিত করতে হবে।','يُتفق لكل طلب على البحث عن المرشحين والفحص والتحقق من المهارات والمقابلات والمستندات والتجهيز وتنسيق السفر. لا يُدرج دعم ما بعد الوصول إلا باتفاق صريح. تُؤكد المسؤوليات والرسوم والمواعيد كتابةً.')[l]}</p></div></div>}</>;}
export function FAQs({l,items=faqItems,extra=[]}:{l:Lang;items?:typeof faqItems;extra?:ContentRecord[]}){return <div className="faq-list">{items.map(([q,a],i)=><details key={i}><summary>{q[l]}<span>+</span></summary><p>{a[l]}</p></details>)}{extra.filter(c=>c.kind==='faq'&&c.locale===l).map(c=><details key={c.id}><summary>{c.title}<span>+</span></summary><p>{c.body||c.summary}</p></details>)}</div>;}
export function HomePage({l,content}:{l:Lang;content:ContentRecord[]}){const custom=content.find(c=>c.kind==='page'&&c.slug==='home'&&c.locale===l);return <><section className="hero"><div className="hero-copy"><span className="eyebrow"><span className="tiny-line"/>{text.eyebrow[l]}</span><h1>{custom?.title||<>{text.hero1[l]}<br/><span>{text.hero2[l]}</span></>}</h1><p>{custom?.summary||text.heroBody[l]}</p><div className="button-row"><a className="button navy" href={`/${l}/request/`}>{text.request[l]}<ArrowUpRight size={18}/></a><a className="button subtle" href={`/${l}/workforce/`}>{text.explore[l]}<ArrowRight size={18}/></a></div><div className="hero-footnote"><span className="bangladesh-dot"/><div><strong>{text.dhaka[l]}</strong><span>{text.based[l]}</span></div></div></div><div className="hero-image"><img src="/images/workforce-hero.webp" alt={tr('Construction professionals reviewing a plan — illustrative image','নকশা পর্যালোচনায় নির্মাণ পেশাজীবী — প্রতীকী ছবি','مختصون في البناء يراجعون مخططًا — صورة توضيحية')[l]} fetchPriority="high"/><div className="hero-image-shade"/><div className="hero-image-caption"><span>{tr('PEOPLE. POTENTIAL. PROGRESS.','মানুষ। সম্ভাবনা। অগ্রগতি।','كفاءات. إمكانات. تقدم.')[l]}</span><p>{tr('Connecting skills with opportunity.','দক্ষতার সঙ্গে সুযোগের সংযোগ।','نصل المهارات بالفرص.')[l]}</p></div><small className="image-disclaimer">{text.illustrative[l]}</small><span className="hero-badge"><Globe2 size={22}/>{tr('A global perspective','বিশ্বমুখী দৃষ্টি','رؤية عالمية')[l]}</span></div></section><div className="trust-strip wrap"><div><BriefcaseBusiness/><span>{text.professional[l]}</span></div><div><UsersRound/><span>{text.domestic[l]}</span></div><div><Globe2/><span>{text.markets[l]}</span></div><div><Handshake/><span>{text.partner[l]}</span></div></div><section className="section wrap"><SectionHeading l={l} label={text.industries[l]} title={text.sectorHeading[l]} body={text.sectorBody[l]} href={`/${l}/workforce/`}/><IndustryGrid l={l}/><p className="fine-print">{text.illustrative[l]}</p></section><section className="market-section"><div className="wrap section"><SectionHeading l={l} label={text.markets[l]} title={text.marketHeading[l]} body={text.marketBody[l]} href={`/${l}/markets/`}/><MarketExplorer l={l} compact/><p className="fine-print">{text.marketNote[l]}</p></div></section><section className="section wrap"><SectionHeading l={l} label={text.process[l]} title={text.processHeading[l]} body={text.processBody[l]} href={`/${l}/process/`}/><Process l={l}/></section><section className="responsibility wrap"><div className="responsibility-art"><Globe2 size={180} strokeWidth={.55}/><ShieldCheck size={80} strokeWidth={1}/><span>AL MURIS INTERNATIONAL</span></div><div><span className="eyebrow">{text.readPolicy[l]}</span><h2>{text.responsible[l]}</h2><p>{text.responsibleBody[l]}</p><a className="text-link" href={`/${l}/responsible-recruitment/`}>{text.readPolicy[l]}<ArrowUpRight size={18}/></a></div></section><CTA l={l}/></>;}
export function PageHero({l,title,subtitle,eyebrow,children}:{l:Lang;title:string;subtitle?:string;eyebrow?:string;children?:React.ReactNode}){return <section className="page-hero"><div className="wrap"><div className="breadcrumb"><a href={`/${l}/`}>{text.home[l]}</a><span>/</span><span>{eyebrow||title}</span></div><span className="eyebrow">{eyebrow||'AL MURIS INTERNATIONAL'}</span><h1>{title}</h1>{subtitle&&<p>{subtitle}</p>}{children}</div></section>;}
export function MarketPage({l,market:m,custom}:{l:Lang;market:Market;custom?:ContentRecord}){return <><PageHero l={l} eyebrow={text.markets[l]} title={`${flag(m.code)} ${custom?.title||m.name[l]}`} subtitle={custom?.summary||m.brief[l]}><div className="button-row"><a className="button navy" href="#enquiry">{m.restricted?text.contact[l]:text.request[l]}<ArrowUpRight size={18}/></a><WhatsApp l={l} country={m.name.en} className="button outline"/></div></PageHero><section className="wrap section market-detail"><div><span className="eyebrow">{text.marketBrief[l]}</span><h2>{text.prepare[l]}</h2><p className="lead">{m.checklist[l]}</p>{custom?.body&&<p className="preline">{custom.body}</p>}<h3>{text.route[l]}</h3><p>{m.route?.[l]||text.marketNote[l]}</p><p className="fine-print">{text.verify[l]}</p>{m.source&&<a className="text-link" href={m.source} target="_blank" rel="noopener noreferrer">{text.official[l]}<ArrowUpRight size={16}/></a>}<div className="note-panel"><ShieldCheck size={26}/><p>{text.credentialsBody[l]}</p></div></div><aside className="market-sidebar"><Globe2 size={35}/><h3>{text.focus[l]}</h3>{m.focus.map(id=><a key={id} href={`/${l}/industries/${id}/`}>{industries.find(x=>x.id===id)?.name[l]}<ArrowUpRight size={16}/></a>)}{m.restricted&&<p>{text.verify[l]}</p>}<div className="sidebar-contact"><small>{text.getInTouch[l]}</small><EmailLink/></div></aside></section><section className="soft-section"><div className="wrap section"><SectionHeading l={l} label={m.name[l]} title={text.faq[l]}/><FAQs l={l} items={[[tr('What should we include in this market enquiry?','এই বাজারের অনুরোধে কী লিখব?','ما الذي يتضمنه طلب هذا السوق؟'),m.checklist],[tr('Can we proceed immediately?','আমরা কি এখনই এগোতে পারি?','هل يمكن البدء مباشرةً؟'),m.route||text.marketNote],faqItems[2]]}/></div></section><section className="wrap section enquiry-section" id="enquiry"><div><span className="eyebrow">{m.name[l]}</span><h2>{text.requestTitle[l]}</h2><p>{text.requestIntro[l]}</p></div><EnquiryForm l={l} country={m.name.en}/></section></>;}
export function Legal({l,type}:{l:Lang;type:string}){const privacy=[
 [tr('Information you share','আপনার দেওয়া তথ্য','البيانات التي تقدمها'),tr('We collect company and contact details, destination, recruitment requirements and optional documents you submit. The form source page is recorded. With analytics consent, landing page, referrer and campaign tags may also be recorded.','আপনার প্রতিষ্ঠানের ও যোগাযোগের তথ্য, গন্তব্য, চাহিদা ও ঐচ্ছিক নথি সংগ্রহ করা হয়। ফর্মের উৎস পাতা রেকর্ড হয়। বিশ্লেষণে সম্মতি দিলে ল্যান্ডিং পাতা, রেফারার ও ক্যাম্পেইন ট্যাগও রেকর্ড হতে পারে।','نجمع بيانات الشركة والتواصل والوجهة ومتطلبات العمالة والمرفقات الاختيارية التي ترسلها. تُحفظ صفحة مصدر النموذج، وقد تُحفظ صفحة الدخول والإحالة ووسوم الحملات بعد الموافقة على التحليلات.')],
 [tr('How information is used','তথ্যের ব্যবহার','كيف نستخدم البيانات'),tr('Enquiry details are used to review your requirements, respond to you and manage the business discussion. Information is not sold. Staff access is restricted by role; documents are not published through the enquiry form.','অনুরোধ পর্যালোচনা, উত্তর দেওয়া ও ব্যবসায়িক আলোচনা পরিচালনায় তথ্য ব্যবহৃত হয়। তথ্য বিক্রি করা হয় না। কর্মীদের প্রবেশাধিকার ভূমিকা অনুযায়ী সীমিত; ফর্মের নথি প্রকাশ করা হয় না।','تُستخدم البيانات لمراجعة احتياجك والرد وإدارة المراسلات التجارية، ولا تُباع. صلاحيات الموظفين محددة بحسب الدور، ولا تُنشر مرفقات الطلبات للعموم.')],
 [tr('Storage, service providers and retention','সংরক্ষণ, সেবাদাতা ও মেয়াদ','التخزين ومقدمو الخدمة والاحتفاظ'),tr('The site uses managed hosting, database and file storage. Configured email and analytics providers may process the data needed for their services, potentially outside your country. Enquiry records are retained while needed for the discussion, any resulting contract or legal requirements; retention is reviewed by the company.','সাইটে পরিচালিত হোস্টিং, ডেটাবেস ও ফাইল সংরক্ষণ ব্যবহৃত হয়। চালু ইমেইল ও বিশ্লেষণ সেবাদাতা প্রয়োজনীয় তথ্য আপনার দেশের বাইরেও প্রক্রিয়াকরণ করতে পারে। আলোচনা, চুক্তি বা আইনি প্রয়োজনে তথ্য রাখা হয়; প্রতিষ্ঠান সংরক্ষণকাল পর্যালোচনা করে।','يستخدم الموقع استضافة وقاعدة بيانات وتخزين ملفات مُدارة. قد يعالج مقدمو البريد والتحليلات المفعّلون البيانات اللازمة لخدماتهم خارج بلدك. تُحفظ الطلبات ما دامت مطلوبة للمناقشة أو العقد الناتج أو الالتزامات النظامية، مع مراجعة الاحتفاظ من الشركة.')],
 [tr('Your choices and requests','আপনার পছন্দ ও অনুরোধ','خياراتك وطلباتك'),tr('Optional analytics can be declined or changed in Privacy preferences. You may request access, correction or deletion by emailing us, subject to applicable obligations. Do not send passports, health records or unnecessary sensitive information through the form.','গোপনীয়তার পছন্দ থেকে ঐচ্ছিক বিশ্লেষণ প্রত্যাখ্যান বা পরিবর্তন করুন। প্রযোজ্য বাধ্যবাধকতা সাপেক্ষে ইমেইলে তথ্য দেখা, সংশোধন বা মুছে ফেলার অনুরোধ করতে পারেন। ফর্মে পাসপোর্ট, স্বাস্থ্যতথ্য বা অপ্রয়োজনীয় সংবেদনশীল তথ্য পাঠাবেন না।','يمكن رفض التحليلات الاختيارية أو تغييرها من تفضيلات الخصوصية. يمكنك طلب الاطلاع أو التصحيح أو الحذف عبر بريدنا، مع مراعاة الالتزامات المنطبقة. لا ترسل جوازات أو بيانات صحية أو معلومات حساسة غير ضرورية عبر النموذج.')]
 ];const terms=[
 [tr('Enquiries and agreements','অনুরোধ ও চুক্তি','الطلبات والاتفاقات'),tr('Submitting an enquiry does not create a recruitment contract, reserve candidates, secure a visa or guarantee deployment. Services, fees, responsibilities and timing require a separate written agreement.','অনুরোধ পাঠালে নিয়োগ চুক্তি, প্রার্থী সংরক্ষণ, ভিসা বা যাত্রার নিশ্চয়তা তৈরি হয় না। সেবা, ফি, দায়িত্ব ও সময়ের জন্য পৃথক লিখিত চুক্তি দরকার।','إرسال الطلب لا ينشئ عقد استقدام أو يحجز مرشحين أو يضمن تأشيرة أو وصولًا. تتطلب الخدمات والرسوم والمسؤوليات والمواعيد اتفاقًا كتابيًا مستقلًا.')],
 [tr('Market and candidate information','বাজার ও প্রার্থীর তথ্য','معلومات الأسواق والمرشحين'),tr('Country pages describe enquiry topics and do not establish agency approval in that market. Catalogue roles are categories, not confirmed available candidates. Official requirements must be checked before proceeding.','দেশের পাতা আলোচনার বিষয় জানায়, সে বাজারে সংস্থার অনুমোদন নয়। ক্যাটালগের পদ বিভাগমাত্র, প্রস্তুত প্রার্থী নয়। এগোনোর আগে সরকারি শর্ত যাচাই করুন।','صفحات الدول تعرض موضوعات للبحث ولا تثبت اعتماد الشركة في تلك الأسواق. المهن تصنيفات وليست مرشحين متاحين مؤكدين. تُراجع المتطلبات الرسمية قبل المضي قدمًا.')],
 [tr('Responsible use','দায়িত্বশীল ব্যবহার','الاستخدام المسؤول'),tr('Submit accurate information you are authorised to share. Do not upload unlawful content, confidential third-party documents or malicious files. External links are provided for reference and are controlled by their respective owners.','শেয়ার করার অনুমতি আছে এমন সঠিক তথ্য দিন। বেআইনি বিষয়বস্তু, তৃতীয় পক্ষের গোপন নথি বা ক্ষতিকর ফাইল আপলোড করবেন না। বাহ্যিক লিংক সংশ্লিষ্ট মালিকের নিয়ন্ত্রণে।','قدّم بيانات صحيحة ومصرحًا لك بمشاركتها. لا ترفع محتوى مخالفًا أو مستندات سرية لأطراف أخرى أو ملفات ضارة. الروابط الخارجية للمراجعة وتخضع لمواقع أصحابها.')]
 ];return <div className="legal-copy">{(type==='privacy'?privacy:terms).map(([h,p],i)=><section key={i}><h2>{h[l]}</h2><p>{p[l]}</p></section>)}<p>{text.getInTouch[l]}: <EmailLink/></p><p className="fine-print">{tr('Last updated: 29 October 2026','সর্বশেষ হালনাগাদ: ২৯ অক্টোবর ২০২৬','آخر تحديث: ٢٩ أكتوبر ٢٠٢٦')[l]}</p></div>;}
export function StandardPage({l,slug,content}:{l:Lang;slug:string;content:ContentRecord[]}){const custom=content.find(c=>c.kind==='page'&&c.slug===slug&&c.locale===l);const title=custom?.title||({'about':text.aboutTitle[l],'request':text.requestTitle[l],'become-partner':text.partnerTitle[l],'responsible-recruitment':text.responsible[l]}[slug]||pageTitle(slug,l));const intro=custom?.summary||({'about':text.aboutBody[l],'domestic':text.domesticBody[l],'become-partner':text.partnerBody[l],'request':text.requestIntro[l],'markets':text.marketBody[l],'workforce':text.roleNote[l],'professional':text.sectorBody[l],'contact':text.contactBody[l],'process':text.processBody[l],'responsible-recruitment':text.responsibleBody[l]}[slug]);return <><PageHero l={l} title={title} subtitle={intro}/><section className={`wrap section ${slug==='request'||slug==='become-partner'?'narrow':''}`}>{custom?.body&&<p className="preline content-intro">{custom.body}</p>}{slug==='markets'?<><MarketExplorer l={l} extra={content}/><p className="fine-print">{text.marketNote[l]}</p></>:['workforce','professional','domestic'].includes(slug)?<WorkforceCatalogue l={l} only={slug==='workforce'?undefined:slug} extra={content}/>:slug==='industries'?<IndustryGrid l={l}/>:slug==='process'?<Process l={l} full/>:slug==='faq'?<FAQs l={l} extra={content}/>:slug==='request'||slug==='become-partner'?<EnquiryForm l={l} kind={slug==='request'?'manpower':'partnership'}/>:slug==='privacy'||slug==='terms'?<Legal l={l} type={slug}/>:slug==='contact'?<div className="contact-grid"><div className="contact-card"><Mail/><h3>{text.email[l]}</h3><EmailLink/></div><div className="contact-card"><Phone/><h3>{text.phone[l]}</h3><a href={`tel:${company.phone}`} dir="ltr">{company.phone}</a><WhatsApp l={l}/></div><div className="contact-card"><MapPin/><h3>{text.location[l]}</h3><p>{text.dhaka[l]}</p></div></div>:slug==='about'?<div className="about-grid"><img src="/images/workforce-hero.webp" alt={text.illustrative[l]} loading="lazy"/><div><span className="eyebrow">{text.readPolicy[l]}</span><h2>{text.responsible[l]}</h2><p>{text.responsibleBody[l]}</p><h3>{text.credentials[l]}</h3><p>{text.credentialsBody[l]}</p><a className="text-link" href={`/${l}/contact/`}>{text.contact[l]}<ArrowUpRight size={17}/></a><small className="fine-print">{text.illustrative[l]}</small></div></div>:slug==='partners'||slug==='deployments'?<VerifiedGallery l={l} kind={slug} content={content}/>:slug==='responsible-recruitment'?<div className="principle-grid">{[
 [tr('Transparent terms','স্বচ্ছ শর্ত','شروط واضحة'),tr('Written, understandable duties, pay, working time and responsibilities before an agreement.','চুক্তির আগে লিখিত ও বোধগম্য দায়িত্ব, বেতন ও কাজের সময়।','مهام وأجور وساعات ومسؤوليات مكتوبة ومفهومة قبل الاتفاق.')],
 [tr('Voluntary recruitment','স্বেচ্ছামূলক নিয়োগ','توظيف طوعي'),tr('No forced labour, deceptive recruitment or withholding of identity documents.','জোরপূর্বক শ্রম, প্রতারণামূলক নিয়োগ বা পরিচয়পত্র আটকে রাখা নয়।','رفض العمل القسري والتضليل وحجز وثائق الهوية.')],
 [tr('Respectful selection','সম্মানজনক নির্বাচন','اختيار يحترم الإنسان'),tr('Evaluate candidates on relevant skills and agreed occupational requirements.','প্রাসঙ্গিক দক্ষতা ও সম্মত পেশাগত শর্তে প্রার্থী মূল্যায়ন।','تقييم المرشحين بحسب المهارات والمتطلبات المهنية المناسبة.')],
 [tr('A clear way to raise concerns','অভিযোগ জানানোর স্পষ্ট পথ','قناة واضحة للملاحظات'),tr('Workers and employers can contact the published company email to raise recruitment concerns.','কর্মী ও নিয়োগকর্তা প্রকাশিত ইমেইলে নিয়োগসংক্রান্ত উদ্বেগ জানাতে পারেন।','يمكن للعمال وأصحاب الأعمال التواصل عبر بريد الشركة المنشور بشأن أي ملاحظات على الاستقدام.')]
 ].map(([h,p],i)=><article key={i}><ShieldCheck/><h3>{h[l]}</h3><p>{p[l]}</p></article>)}<p className="fine-print full">{tr('These are recruitment principles, not third-party certification. The service scope and implementation responsibilities must be agreed and verified.','এগুলো নিয়োগের নীতি, তৃতীয় পক্ষের সনদ নয়। সেবার পরিধি ও বাস্তবায়নের দায়িত্ব সম্মত ও যাচাই করতে হবে।','هذه مبادئ للاستقدام وليست شهادة من جهة مستقلة. يجب الاتفاق على نطاق الخدمة ومسؤوليات التطبيق والتحقق منها.')[l]}</p></div>:null}</section>{!['request','become-partner','privacy','terms'].includes(slug)&&<CTA l={l}/>}</>;}
function VerifiedGallery({l,kind,content}:{l:Lang;kind:string;content:ContentRecord[]}){const items=content.filter(c=>c.locale===l&&c.kind===(kind==='partners'?'partner':'deployment'));return items.length?<div className="roles-grid">{items.map(c=><article className="role-card" key={c.id}>{c.image&&<img src={c.image} alt={c.title} loading="lazy"/>}<div className="role-content"><h3>{c.title}</h3><p>{c.summary}</p><p className="preline">{c.body}</p></div></article>)}</div>:<div className="verified-empty"><FileCheck2 size={48}/><h2>{kind==='partners'?text.partnerTitle[l]:text.verifiedOnly[l]}</h2><p>{kind==='partners'?text.noPartners[l]:text.noDeployments[l]}</p><a className="button navy" href={`/${l}/${kind==='partners'?'become-partner':'contact'}/`}>{kind==='partners'?text.partner[l]:text.contact[l]}<ArrowUpRight size={18}/></a></div>;}
