import React from 'react';
import content from './content.js';

function DoubtRemovers() {
  return (
    <section className="bg-black-divriots text-white px-8 py-12 -my-2">
      <article className="md:px-20 overflow-hidden">
        <h2
          data-aos="fade-left"
          className="main-title text-center my-10 sm:my-20"
          dangerouslySetInnerHTML={{ __html: content.data.title }}
        />

        <div className="max-w-6xl mx-auto grid md:grid-cols-2 place-items-center py-20 gap-12">
          {content.data.promises.map((promise, index: number) => (
            <div key={index} data-aos="fade-up" className="mx-auto md:flex">
              <div className=" w-16 h-16 md:w-20 md:h-20 md:mr-4 mb-8 md:mb-0">
                <div
                  className="w-16 h-16 md:w-20 md:h-20"
                  dangerouslySetInnerHTML={{ __html: promise.img.src }}
                ></div>
              </div>

              <div className="text-lg text-gray-divriots flex-col">
                <span className="text-3xl font-semibold ">{promise.title}</span>
                <p className="py-8"> {promise.description}</p>
              </div>
            </div>
          ))}
        </div>
      </article>
    </section>
  );
}

export default DoubtRemovers;
