%========================================================
% MASTER: Certificates for Editor-in-Chief, Associate Editor,
%         Editor-1, Editor-2  (ONE PDF, FOUR PAGES)
%========================================================
\documentclass[a4paper,12pt]{article}

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

\graphicspath{{./}}

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

% ---------------- Full-page background ----------------
% (Important: NO STAR → applies to ALL pages)
\AddToShipoutPictureBG{%
  \AtPageLowerLeft{%
    \includegraphics[width=\paperwidth,height=\paperheight]{images/border1.jpg}%
  }%
}

% ---------------- Publisher / Logo ----------------
\newcommand{\InstituteName}{GSE Publications}
\newcommand{\InstituteI}{{\scalebox{1.8}{\Huge\bfseries \InstituteName}}}
\newcommand{\InstituteII}{{\large\bfseries \InstituteName}}
\newcommand{\Department}{An International Refereed, Peer-Reviewed, Multidisciplinary Books Publishing House}

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

\newcommand{\MaybeLogo}{%
  \begingroup
    \IfFileExists{\LogoPath}{\includegraphics[height=1.8cm]{\LogoPath}\par\vspace{0.8cm}}{}%
  \endgroup
}

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

%========================================================
%          F I E L D S   T O   E D I T   O N L Y
%========================================================

% ---- Book details (common to all) ----
\newcommand{\BookTitle}{Principles of Hybrid Intelligent Systems}
\newcommand{\BookDOI}{https://www.doi.org/10.58599/9788199496910.20012026}
\newcommand{\ISBNprint}{978-81-994969-7-2}
\newcommand{\ISBNonline}{978-81-994969-1-0}
\newcommand{\IssueDate}{January 20, 2026}

% ---- Names ----
\newcommand{\EditorInChiefName}{\textbf{Dr. Harpreet Kaur Sethi}}
\newcommand{\AssociateEditorName}{\textbf{Dr. M. Kamaraju }}
\newcommand{\EditorOneName}{\textbf{Dr. Vivek Sharma}}
\newcommand{\EditorTwoName}{\textbf{Mrs. Neha Jain}}

% ---- Certificate IDs (optional) ----
\newcommand{\CertIDEditorInChief}{GSEP/2026/9788199496910/EIC}
\newcommand{\CertIDAssociateEditor}{GSEP/2026/9788199496910/AE}
\newcommand{\CertIDEditorOne}{GSEP/2026/9788199496910/ED1}
\newcommand{\CertIDEditorTwo}{GSEP/2026/9788199496910/ED2}

%========================================================
%         H E L P E R   M A C R O   F O R   A   P A G E
%========================================================

\newcommand{\OneCertificatePage}[4]{%
  \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 #1\par}
      \end{center}

      \vspace{10mm}
      \justifying
      #2

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

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

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

      % --- Signatures row ---
      \vspace{18mm}
      \noindent
      \begin{minipage}[t]{0.35\textwidth}
        \centering
        \IfFileExists{\StampPath}{\includegraphics[height=2.5cm]{\StampPath}\\[2mm]}{}%
        \textbf{Official Seal}
      \end{minipage}%
      \hfill
      \begin{minipage}[t]{0.35\textwidth}
        \centering
        \IfFileExists{\SignaturePath}{\includegraphics[height=1.2cm]{\SignaturePath}\\[-6pt]}{}%
        \textbf{Managing Director}\\[-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:} #3
      \end{minipage}

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

%========================================================
%                C E R T I F I C A T E S
%========================================================

% 1) Editor-in-Chief
\newcommand{\EditorInChiefCertificate}{%
  \OneCertificatePage
    {Certificate of Editorial Leadership}
    {This is to certify that \EditorInChiefName{} has served as the
    \textbf{Editor-in-Chief} of the scholarly edited 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.}
    {\CertIDEditorInChief}
    {}
}

% 2) Associate Editor
\newcommand{\AssociateEditorCertificate}{%
  \OneCertificatePage
    {Certificate of Service as Associate Editor}
    {This is to certify that \AssociateEditorName{} has served as the
    \textbf{Associate Editor} of the scholarly edited book titled
    \textbf{\textit{``\BookTitle''}}. The book has been published under the
    imprint of \textbf{\InstituteName}. As Associate Editor, the recipient has
    provided substantive editorial support, contributed to the editorial
    decision-making process, and played a significant role in ensuring the
    academic quality and integrity of this edited book publication.}
    {\CertIDAssociateEditor}
    {}
}

% 3) Editor-1
\newcommand{\EditorOneCertificate}{%
  \OneCertificatePage
    {Certificate of Editorial Contribution}
    {This is to certify that \EditorOneName{} has served as an
    \textbf{Editor} of the scholarly edited book titled
    \textbf{\textit{``\BookTitle''}}. The book has been published under the
    imprint of \textbf{\InstituteName}. As Editor, the recipient has provided
    valuable editorial support, assisted in coordinating chapter reviews,
    contributed to the refinement of chapter content and structure, and played
    an important role in maintaining the scholarly quality, coherence, and
    integrity of this edited book publication.}
    {\CertIDEditorOne}
    {}
}

% 4) Editor-2
\newcommand{\EditorTwoCertificate}{%
  \OneCertificatePage
    {Certificate of Editorial Contribution}
    {This is to certify that \EditorTwoName{} has served as an
    \textbf{Editor} of the scholarly edited book titled
    \textbf{\textit{``\BookTitle''}}. The book has been published under the
    imprint of \textbf{\InstituteName}. As Editor, the recipient has provided
    valuable editorial support, assisted in coordinating chapter reviews,
    contributed to the refinement of chapter content and structure, and played
    an important role in maintaining the scholarly quality, coherence, and
    integrity of this edited book publication.}
    {\CertIDEditorTwo}
    {}
}

%========================================================
%                        D O C U M E N T
%========================================================
\begin{document}

\EditorInChiefCertificate
\AssociateEditorCertificate
\EditorOneCertificate
\EditorTwoCertificate

\end{document}
