import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Archivo } from "next/font/google";



export const metadata: Metadata = {
  title: 'Dow University of Health Sciences | Excellence in Healthcare Education',
  description: 'Official website for Dow University of Health Sciences. Explore globally recognized medical, nursing, and allied health programs, cutting-edge research, and admission pathways. Join a legacy of healthcare leaders.',
  keywords: ["Dow University, Health Sciences, Medical School, Nursing Programs, Allied Health, MBBS, BSN, DPT, Pharm.D, Admissions, Research, Healthcare Education"],
  openGraph: {
    "title": "Dow University of Health Sciences | Excellence in Healthcare Education",
    "description": "Official website for Dow University of Health Sciences. Explore globally recognized medical, nursing, and allied health programs, cutting-edge research, and admission pathways. Join a legacy of healthcare leaders.",
    "url": "https://www.duhs.edu",
    "siteName": "Dow University of Health Sciences",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/doctor-patient-sit-waiting-room-one-them-is-wearing-scrubs-other-is-wearing-blue-scrubs_482257-64814.jpg",
        "alt": "Students and faculty collaborating in a modern health sciences lab"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Dow University of Health Sciences | Excellence in Healthcare Education",
    "description": "Official website for Dow University of Health Sciences. Explore globally recognized medical, nursing, and allied health programs, cutting-edge research, and admission pathways. Join a legacy of healthcare leaders.",
    "images": [
      "http://img.b2bpic.net/free-photo/doctor-patient-sit-waiting-room-one-them-is-wearing-scrubs-other-is-wearing-blue-scrubs_482257-64814.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const archivo = Archivo({
  variable: "--font-archivo",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${archivo.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
