import type { GedContent } from "@/app/lib/content";

export default function GedFeature({ content }: { content: GedContent }) {
  return (
    <section className="site-container py-2 md:py-3">
      <div className="relative overflow-hidden rounded-2xl border border-[#e9eefc] bg-white p-6 sm:p-8 md:p-14">
        <div className="relative grid grid-cols-1 lg:grid-cols-[1.6fr_1fr] gap-8 lg:gap-12 items-center">
          <div>
            <h2 className="text-2xl sm:text-3xl md:text-5xl font-bold tracking-tight text-[#132b87] leading-tight">
              {content.heading}
            </h2>

            <p className="mt-4 md:mt-5 text-sm sm:text-base md:text-lg text-[#5a688d] leading-relaxed max-w-2xl">
              {content.body}
            </p>
          </div>

          <div className="relative justify-self-center lg:justify-self-end">
            <div className="relative h-44 w-44 sm:h-52 sm:w-52 md:h-60 md:w-60">
              <div className="absolute inset-0 rounded-full border-[3px] border-[#1f3fb8]/25" />
              <div className="absolute inset-4 rounded-full border border-amber-400/60" />
              <div
                aria-hidden="true"
                className="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 h-3 w-3 rotate-45 bg-amber-500"
              />

              <div className="absolute inset-0 flex items-center justify-center text-center px-4">
                <div>
                  <p className="text-[9px] font-bold uppercase tracking-[0.32em] text-amber-600">
                    {content.sealTop}
                  </p>
                  <p className="mt-2 text-4xl sm:text-5xl md:text-6xl font-bold text-[#132b87] leading-none">
                    {content.sealMain}
                  </p>
                  <p className="mt-2 text-[9px] font-bold uppercase tracking-[0.32em] text-[#1f3fb8]">
                    {content.sealBottom}
                  </p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}
