/** ===== Common ===== **/
body,
html {
    max-width: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

body {
    color: $color-body;
    font : {
        family: $font-primary;
        size: 16px;
        weight: 400;
    }
    line-height: 1.8;
    overflow-x: hidden !important;
    word-wrap: break-word;
    background-color: $color-white;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}

*,
::after,
::before {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

::-webkit-scrollbar {
    background-color: #ccc;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: $color-heading;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

i,
span,
a {
    display: inline-block;
}

.fal,
.far {
    font-family: "Font Awesome 5 Pro" !important;
}

p {
    margin: 0 0 20px;
}

.elementor-text-editor p:last-child {
    margin: 0;
}

.elementor-widget-text-editor p:last-child {
    margin: 0;
}

.elementor-icon-list-icon,
.elementor-icon-list-text {
    transition: 0.3s;
}

dl {
    margin-bottom: 28px;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 0 28px;
}

ol,
ul {
    padding: 0 0 0 20px;
    margin: 0 0 20px;

    li {
        li {
            list-style-position: inside;
        }

        &:not(:last-child) {
            margin-bottom: 5px;
        }

        & > ol,
        & > ul {
            margin-top: 5px;
            margin-bottom: 0;
        }
    }
}

hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    height: 0;
}

a {
    color: $color-primary;
    transition: 0.3s;
    text-decoration: none;
    background-color: transparent;

    &:hover {
        color: $color-secondary;
    }

    &:hover,
    &:focus,
    &:active {
        text-decoration: none;
        outline: none;
        box-shadow: none;
    }

    &:active {
        color: inherit;
    }
}

table {
    margin: 0 0 20px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table,
th,
td {
    border: 1px solid $color-border;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
    font-weight: 600;
    color: $color-heading;
}

th,
td {
    padding: 12px;
    font-size: 15px;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
    user-select: none;
}

iframe {
    width: 100%;
    display: block;
}

embed,
iframe,
object {
    max-width: 100%;
}

figure {
    margin: 20px 0;
}

/** ===== Headings ===== **/
h1,
h2,
h3,
h4,
h5,
h6 {
    font: {
        family: $font-primary;
        weight: 600;
    }
    line-height: 1.2;
    margin: 0 0 20px;

    &,
    a {
        color: $color-heading;
    }

    a:hover {
        color: $color-secondary;
    }
}

h1 {
    font-size: 60px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 16px;
}

/** ===== Code ===== **/
pre {
    background: $color-light;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    line-height: 1.7142857143;
    margin-bottom: 20px;
    max-width: 100%;
    overflow: auto;
    padding: 30px;
    color: #606060;
    white-space: pre-wrap;
    margin: 20px 0;
}

pre,
code,
kbd,
tt,
var {
    font-size: 87.5%;
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 15px;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

b,
strong {
    font-weight: 600;
}

small {
    font-size: 80%;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/** ===== Site Layout ===== **/
.content-container {
    padding: 120px 15px;
    max-width: 1200px;
    margin: auto;

    &.full-width-container {
        max-width: 100%;
    }
}

.container {
    position: relative;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.common-content-padding {
    padding: 130px 0;
}

.site-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .content-area {
        flex: 0 0 65.812%;
        max-width: 65.812%;

        @include respond-below(lg) {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

    .sidebar-area {
        flex: 0 0 31.624%;
        max-width: 31.624%;

        @include respond-below(lg) {
            flex: 0 0 100%;
            max-width: 100%;
            margin-top: 80px;
        }
    }

    &.left-sidebar {
        flex-direction: row-reverse;
    }

    &.no-sidebar {
        .content-area {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }
}

.elementor {
    .elementor-section {
        &.elementor-section-boxed > .elementor-container {
            max-width: 1200px;
            flex-grow: 1;
        }
    }
}

.elementor-container {
    .elementor-column {
        .elementor-widget-wrap.elementor-element-populated {
            padding: 0;
        }
    }
}

.elementor-button {
    .fa-arrow-right,
    .fa-arrow-left {
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
    }
}