import { DifferentIndicatiorsProps } from "@/types/eye-emergencies";
import { count } from "console";

export default function DifferentIndicators({ title, heading, description, image, cta_text, cta_link, number }: DifferentIndicatiorsProps) {
    return (
        <section className="py-16 px-5 md:px-20 md:py-[120px] md:mb-30 overflow-hidden bg-[#F2F4F6]">
            <div className="container">
                <div className="mb-8 md:mb-10">
                    <span className="text-[12px] md:text-[14px] text-[#334D72] text-left block tracking-[0.5px] uppercase mb-2">{title}</span>
                    <h2 className="text-[32px] md:text-[40px] text-[#00204F] font-medium leading-[1.1] max-w-[740px] text-left mb-4">{heading}</h2>
                </div>
                <div className="grid grid-cols-1 md:grid-cols-4 gap-8 lg:gap-10">
                {number?.map((item, index) => (
                    <div key={index} className="col-span-2 bg-[#FFF] p-5 md:p-6 rounded-[16px] flex flex-col items-center">
                        <h4 className="text-[18px] w-full md:text-[20px] mb-2 text-[#334D72] leading-[1.3] max-w-[560px] text-left font-bold">{item.count}</h4>
                        <p className="text-[14px] md:text-[16px] text-[#334D72] font-normal font-medium">{item.content}</p>
                    </div>
                ))}
                </div>
            </div>
      
        </section>
                    
    )
}
        