"use client";

import React, { useEffect } from "react";
import Header1 from "@/components/layout/Header1";
import Footer1 from "@/components/layout/Footer1";

import BannerSection from "@/components/home/home-1/BannerSection";
import AboutSection from "@/components/home/home-1/AboutSection";
import ServiceThreeSlider from "@/components/home/home-1/ServiceThreeSlider";
import CtaSection from "@/components/home/home-1/CtaSection";
import ChooseSection from "@/components/home/home-1/ChooseSection";
import TestimonialsSection from "@/components/home/home-1/TestimonialsSection";
import BlogSection from "@/components/home/home-1/BlogSection";
import BrandSection from "@/components/home/home-1/BrandSection";
import IconCounterSection from "@/components/home/home-2/IconCounterSection";
import OfferSection from "@/components/home/OfferSection";
import FeaturesSection from "@/components/home/home-1/FeaturesSection";
import ContactSection from "@/components/careers/ContactSection";
import FaqVideoSection from "@/components/careers/FaqVideoSection";
import AboutTwo from "@/components/home/AboutTwo";
import MedicalServices from "@/components/home/MedicalServices";
import WhyChooseTwo from "@/components/home/WhyChooseTwo";
import HistoryTwo from "@/components/home/HistoryTwo";
import AboutThree from "@/components/home/AboutThree";
import HomeContactOne from "@/components/home/HomeContactOne";
import FaqFour from "@/components/home/FaqFour";
import CounsellingSolutions from "@/components/home/CounsellingSolutions";
import CallAreaThree from "@/components/home/CallAreaThree";
import CounterAreaTwo from "@/components/home/CounterAreaTwo";

export default function MainPage() {
    useEffect(() => {
        const init = () => {
            if (typeof window !== "undefined" && (window as any).initMetatron && (window as any).jQuery) {
                (window as any).initMetatron();
            } else {
                setTimeout(init, 100);
            }
        };
        init();
    }, []);

    return (
        <>
            <Header1 />
            <main>
                <BannerSection />
                <AboutSection />
                <AboutTwo />
                <MedicalServices />
                <WhyChooseTwo />
                <HistoryTwo />
                <AboutThree />
                <ChooseSection />
                <IconCounterSection />
                <ServiceThreeSlider />
                <CtaSection />
                <BrandSection />
                <TestimonialsSection />
                <ContactSection />
                <HomeContactOne />
                <CallAreaThree />
                <CounterAreaTwo />
                <CounsellingSolutions />
                <FaqFour />
                <BlogSection />

            </main>
            <Footer1 />
        </>
    );
}
