%========================================================
% Certificate for EDITOR-IN-CHIEF (Standalone, A4)
%========================================================
\documentclass[a4paper,12pt]{article}

\usepackage[margin=1.5cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{eso-pic}

\graphicspath{{./images/}}

% Colours
\definecolor{certblue}{RGB}{11,95,165}
\definecolor{certgold}{RGB}{201,162,39}

% Full-page background
\AddToShipoutPictureBG*{%
  \AtPageLowerLeft{%
    \includegraphics[width=\paperwidth,height=\paperheight]{border1.jpg}%
  }%
}

% Publisher Name
\newcommand{\InstituteName}{GSE Publications}
\newcommand{\InstituteI}{{\scalebox{1.8}{\Huge\bfseries \InstituteName}}}
\newcommand{\InstituteII}{{\large\bfseries \InstituteName}}

% Tagline / fields
\newcommand{\Department}{An International Refereed, Peer-Reviewed, Multidisciplinary Books Publishing House}

% ---- You can change this title if you like ----
\newcommand{\CertificateTitle}{Certificate of Editorial Leadership}

% Recipient & Book details
\newcommand{\RecipientName}{\textbf{Dr.\ Vishwas Mishra}}
\newcommand{\BookTitle}{Next-Generation Artificial Intelligence: From Foundations to Intelligent Applications}

\newcommand{\DOI}{https://doi.org/10.58599/9788199496958.08122025}
\newcommand{\IssueDate}{December 08, 2025}
\newcommand{\CertificateID}{GSEP/2025/9788199496958}

% ISBNs
\newcommand{\ISBNprint}{978-81-994969-0-3}
\newcommand{\ISBNonline}{978-81-994969-5-8}

% Optional assets
\newcommand{\LogoPath}{images/university2.png}
\newcommand{\SignaturePath}{images/signature.png}
\newcommand{\StampPath}{images/stamp.png}

% Print logo only if file exists
\newcommand{\MaybeLogo}{%
  \begingroup
    \IfFileExists{\LogoPath}{\includegraphics[height=1.8cm]{\LogoPath}\par\vspace{0.8cm}}{}%
  \endgroup
}

% Institute block
\newcommand{\InstituteBlock}{%
  {\InstituteI\par}%
  \vspace{4mm}%
  {\normalsize \Department\par}%
}

\begin{document}
\thispagestyle{empty}
\vspace*{1.8cm}

\noindent\fcolorbox{certgold}{white}{%
  \begin{minipage}{0.96\textwidth}
    \vspace{10mm}
    \begin{center}
      \MaybeLogo
      \InstituteBlock
      \vspace{6mm}
      {\Large\color{certblue}\bfseries \CertificateTitle\par}
    \end{center}

    \vspace{10mm}
    This is to certify that \RecipientName{} has served as the
    \textbf{Editor-in-Chief} of the scholarly book titled
    \textbf{\textit{``\BookTitle''}}. The book has been published under the
    imprint of \textbf{\InstituteName}. As Editor-in-Chief, the recipient has provided substantive and overall editorial leadership, guided the editorial decision-making process, ensured academic rigor, and contributed significantly to the scholarly quality and integrity of this edited book publication.

    \vspace{5mm}
    \textbf{DOI / URL:} \DOI

    \vspace{2mm}
    \textbf{ISBN (Print):} \ISBNprint

    \vspace{2mm}
    \textbf{ISBN (Online):} \ISBNonline

    % --- Signatures row ---
    \vspace{18mm}
    \noindent
    % Left: Stamp
    \begin{minipage}[t]{0.35\textwidth}
      \centering
      \IfFileExists{\StampPath}{\includegraphics[height=2.5cm]{\StampPath}\\[2mm]}{}%
      \textbf{Official Seal}
    \end{minipage}%
    \hfill
    % Right: Issuing authority (you can change this text if needed)
    \begin{minipage}[t]{0.35\textwidth}
      \centering
      \IfFileExists{\SignaturePath}{\includegraphics[height=1.2cm]{\SignaturePath}\\[-6pt]}{}%
      \textbf{Managing Editor}\\[-1pt]
      {\InstituteII}
    \end{minipage}

    \vspace{12mm}
    \noindent
    \begin{minipage}{0.58\textwidth}
      \textbf{Date of Issue:} \IssueDate
    \end{minipage}%
    \begin{minipage}{0.4\textwidth}
      \raggedleft \textbf{Certificate ID:} \CertificateID
    \end{minipage}

    \vspace{10mm}
  \end{minipage}
}

\end{document}
