\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx} % For including images
\usepackage{geometry} % For page dimensions and margins
\geometry{a4paper, top=3cm, bottom=3cm, left=2.5cm, right=2.5cm}
\usepackage{mdframed} % For creating framed boxes around text
\usepackage{array}
\usepackage{tabularx} % For tables with specified width
\usepackage{fancyhdr} % For custom headers and footers
\pagestyle{fancy}
\fancyhf{} % Clear all header and footer fields
\renewcommand{\headrulewidth}{0pt} % No header rule
\renewcommand{\footrulewidth}{0pt} % No footer rule (set to non-zero for a line)
\fancyfoot[C]{\textcopyright\ University of Namibia examinations} % Footer content with copyright symbol
\setlength{\footskip}{20pt} % Adjust the space between the footer and the text
% mdframed settings adjusted for consistent margins
\mdfsetup{
    skipabove=6pt,
    skipbelow=6pt,
    leftmargin=0pt,
    rightmargin=0pt,
    innertopmargin=6pt,
    innerbottommargin=6pt,
    innerleftmargin=10pt,
    innerrightmargin=10pt,
    linewidth=1pt,
    linecolor=black,
    topline=true,
    bottomline=true,
    leftline=true,
    rightline=true
}
\begin{document}
% Cover page starts
\thispagestyle{empty} % No headers or footers on this page
\begin{center}
    \includegraphics[width=5cm]{logo2.png} % Adjust 'width' as needed
    \vspace{0.2cm} % Adjust vertical space as needed
    
    % Table with adjusted row height
    \renewcommand{\arraystretch}{1.6}
    \begin{tabularx}{\textwidth}{|X|X|}
    \hline
    \textbf{FACULTY} & Enter the faculty name \\
    \hline
    \textbf{DEPARTMENT} & Enter department \\
    \hline
    \textbf{SUBJECT} & Enter Course \\
    \hline
    \textbf{SUBJECT CODE} & DAH 2522 \\
    \hline
    \textbf{DATE} & NOV/DEC, 2023 \\
    \hline
    \textbf{DURATION} & 2 HOURS \\
    \hline
    \textbf{MARKS} & 75 \\
    \hline
    \end{tabularx}
    \vspace{1cm}
    {\Large \textbf{FIRST OPPORTUNITY EXAMINATION}}\\
    \vspace{0.5cm}
    {\large Examiner: Prof KH}\\
    {\large Moderator: Prof Moderator (Internal/External)}
    \vspace{0.5cm}
\end{center}
% Framed instructions
\begin{mdframed}
    \textbf{INSTRUCTIONS}
    \begin{enumerate}
        \item Number your questions correctly and clearly.
        \item This paper consists of 4 pages including this one.
        \item Answer All questions in Section A and ANY one (1) questions in Section B.
        \item Unless or otherwise specified, test of hypothesis results interpretation is to be done at 5\% significance level.
    \end{enumerate}
    \textbf{INFORMATION FOR CANDIDATES}
    \begin{enumerate}
        \item Statistical tables to be used in the examination are provided and must not be taken out of the examination venue.
        \item Non-programmable scientific calculators may be used during the examination.
        \item The examination duration is strictly 2 hours and no additional time may be allocated under normal circumstances.
    \end{enumerate}
\end{mdframed}
% New page for the rest of the exam content
\newpage
\section*{SECTION A}
Answer \textbf{ALL} questions from this section.
% Your exam content here
\end{document}