\RequirePackage{tikz}
\newcommand{\footimage}[1]{\def\footim@ge{#1}}
\usefonttheme[onlymath]{serif}
\setbeamertemplate{headline}{  
  \begin{beamercolorbox}[wd=\textwidth]{headline}
        \vskip2em\centering
        \usebeamercolor{title in headline}{\color{fg}\textbf{\textrm{\huge{\inserttitle}}}\\[2em]}
  \end{beamercolorbox}
  
  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
    \rule{0pt}{1em}
  \end{beamercolorbox}
}

\setbeamerfont{structure}{series=\bf,family=\sffamily}

\setbeamertemplate{block begin}{
  \vskip.75ex
  \begin{beamercolorbox}[leftskip=1em,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}\insertblocktitle
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[colsep*=.75ex,sep=.75ex,vmode]{block body}%
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
\setbeamertemplate{block end}{
  \end{beamercolorbox}\vskip1ex
}

\setbeamertemplate{itemize/enumerate body begin}{\vspace*{-1ex}}
\setbeamertemplate{itemize/enumerate body end}{\vspace*{-0.5ex}}

\setbeamertemplate{itemize item}{$\blacktriangleright\,$}
\setbeamertemplate{itemize subitem}{$\bullet$ }
\setbeamerfont{block title}{size=\LARGE,series=\bf}
\setbeamerfont{block body}{size=\normalsize}
\setlength\leftmargini{4em}

\setbeamertemplate{navigation symbols}{}
\setbeamerfont{footline}{size=\small,family=\rmfamily}
\setbeamertemplate{footline}{
  \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
    \rule{0pt}{.5em}
  \end{beamercolorbox}
   \begin{beamercolorbox}[wd=\paperwidth]{footline}
     \vskip1.5ex
     \hspace{1em}\usebeamercolor{author in footline}{\bfseries\large\insertauthor}\par\vskip1ex
     \hspace{1em}{\small\ttfamily\bfseries\insertshortauthor}\par\vskip.8ex
     \hspace{1em}\usebeamercolor{institute in footline}{\color{fg}\small\bfseries\insertinstitute}\vskip1ex
   \end{beamercolorbox}
\ifdefined\footim@ge
\tikz[overlay,remember picture]%
\node[anchor=south east,inner sep=0pt] at (current page.south east) %
{\footim@ge};
\else\fi
}
