% Resume in LaTeX (LuaLaTeX)
% Author:  Thiago Brevidelli
% Base on: https://github.com/xyz-yuanhf/yuan-resume
% license: LPPL

\usepackage[top=1.2cm, bottom=2.6cm, left=1.8cm, right=2.3cm, marginparwidth=1.75cm]{geometry}
\usepackage{xcolor}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{enumitem}
\usepackage{tabularx}
\usepackage{ragged2e}
\usepackage[hidelinks]{hyperref}
\usepackage{enumitem}

% font styles
\usepackage{fontspec}
\setmainfont{SabonLTStd}[
    Path=./fonts/Sabon/,
    Extension = .ttf,
    UprightFont=*-Regular,
    BoldFont=*-Bold,
    ItalicFont=*-Italic,
    BoldItalicFont=*-BoldItalic
    ]
\newfontfamily\Calluna{Calluna}[
    Path=./fonts/Calluna/,
    Extension = .otf,
    UprightFont=*-Regular
    ]
\newfontfamily\Courier{CourierNew}[
    Path=./fonts/Courier/,
    Extension = .ttf,
    UprightFont=*-Regular
    ]
\newfontfamily\CronosLt{CronosProLT}[
    Path=./fonts/Cronos/,
    Extension = .ttf,
    UprightFont=*-Regular
    ]

% styles
\renewcommand{\emph}[1]{\textbf{\fontsize{11pt}{11pt}\selectfont #1}}
\setlist[itemize]{itemsep=-.1em}

% section block
\newenvironment{sectionblock}[1]
  {\noindent
   \begin{minipage}[t]{2.7cm} % title
   \raggedright
   \CronosLt\scshape\raggedright
   \fontsize{14.5pt}{14.5pt}\selectfont 
   #1
   \end{minipage}
   \hfill
   \begin{minipage}[t]{13.85cm} % content
   \raggedright
  }
  {\end{minipage}\vspace{25pt}}

% education information
\newcommand{\eduheading}[4]{
  \renewcommand{\arraystretch}{1.2}
    \begin{tabular}[t]{p{13.74cm}}
      \emph{#1} \hfill #2 \\
      \textit{#3} \hfill #4 \\
    \end{tabular}\vspace{-7pt}
}
