/* Globally used variables etc */
:root {
    --primaryDark: #004c6d;
}

* {
    font-family: 'Fira Sans', sans-serif;
}

html {
    font-size: 14px;
}

body {
    overflow-x:hidden;
}

body div.container {
    position: relative;
}

.main-content {
    position: relative;
}

img.center, .captionImage.center {
    max-width: 100%;
    height: auto;
    display:block;
    margin:0 auto !important;
}
img.left {
    max-width: 100%;
    height: auto;
    float:left;
}
img.right {
    max-width: 100%;
    height: auto;
    float:right;
}

a:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .main-container, .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .main-container, .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .main-container, .container {
        width: 1170px;
    }
}

/*@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,700&display=swap');*/

/* css for elemental and other components */
.HomePage .element>div {
    padding: 80px 0;
}
.content {
    padding-bottom: 40px;
}
.Page .element>div {
    padding: 20px 0;
}
.gallery-row .gallery-image {
    margin: 0;
    padding: 0;
    transition: all 0.15s;
}
.gallery-row .gallery-image:hover {
    box-shadow: 0 3px 20px 5px rgba(0,0,0,0.2);
    transform: scale(1.05);
    transition: all 0.15s;
    z-index: 1;
}
.gallery-row .gallery-image:hover a {
    box-shadow: inset 0 -2px 48px rgba(255,255,255,0.6);
    transition: all 0.15s;
}
.row.gallery-row {
    justify-content: center;
}
div.content div.container {
    width: auto;
}

@media (min-width:576px) {
    .gallery-image {
        flex-direction: row;
    }
}

/***** SIDEBAR *****/
.panel {
    box-shadow: 0 5px 30px -5px rgba(0,0,0,0.2);
}
.list-group-item {
    padding: 16px 24px;
    display: flex;
    color: #555555;
}
.list-group-item.current {
    font-style: italic;
    color: #0F4A69;
    padding-left: 40px;
}
.noborder {
    border: none;
}
.sidebar-panel .list-group-item {
    padding:16px 24px;
}
.sidebar-panel .list-group-item.current {
    font-style:italic;
    color:#0F4A69;
}
.sidebar-panel .list-group-item.current::before,
.sidebar-panel .list-group-item.section::before {
    content:'';
    position:absolute;
    width:6px;
    height:6px;
    top:23px;
    left:12px;
    border-radius:50%;
    background:#0093D5;
}
.sidebar-panel .list-group-item.section::before {
    background-color:rgba(0,0,0,0.2);
}
.sidebar-w-children .sidebar-submenu {
    margin-left:-3px;
}
.sidebar-w-children .sidebar-submenu .current > a {
    font-style: italic;
    color: #0F4A69;
}
.sidebar-w-children .sidebar-submenu > .current > a:before {
    border-color: #0093D5;
    border-width:2px;
}
.sidebar-submenu {
    list-style: none;
    padding: 0;
    background: rgba(255,255,255,0.1);
}
.sidebar-submenu > li {
    line-height: 30px;
}
.sidebar-submenu > li:first-of-type {
    border-top: none;
}
.sidebar-submenu > li {
    position: relative;
    z-index: 2;
    line-height: 30px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sidebar-submenu > li:not(:last-of-type) > a::after {
    content: '';
    width: 10px;
    left: 16px;
    top: 15px;
    position: absolute;
    height: 100%;
    border-left: 1px solid rgba(0,0,0,0.2);
}
.sidebar-submenu > li > a::before {
    content: '';
    width: 10px;
    left: 16px;
    top: -15px;
    position: absolute;
    height: 100%;
    border-left: 1px solid rgba(0,0,0,0.2);
    border-left-color: rgba(0, 0, 0, 0.2);
    border-left-width: 1px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-bottom-width: 1px;
}
.sidebar-submenu > li > a:hover {
    background: rgba(255,255,255,0.05);
    text-decoration: underline;
}
.sidebar-submenu > li > a {
    color: #777;
    padding: 0 25px 0 35px;
    display: block;
}

/***** PREVIOUS/NEXT PAGE *****/
.next-prev-page {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}
.prev-page, .next-page {
    padding: 0 20px 0 10px;
    position: relative;
    display: flex;
}
.prev-page {
    justify-content: flex-start;
}
.absoluteLink {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.link-details {
    padding: 15px;
}
.link-details > .text-uppercase {
    font-size: 13px;
    margin-bottom: 5px;
}
.link-details > span {
    display: block;
}
.next-prev-page .page-title {
    font-size: 18px;
    font-weight: 700;
}

/***** BLOG SUMMARY *****/
.blog-post {
    height: 350px;
    position: relative;
    overflow: hidden;
}
.panel {
    margin-bottom: 20px;
}
.blog-post .panel-heading {
    height: 120px;
    position: relative;
}
.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}
.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-bottom-color: transparent;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}
.blog-post .panel-heading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
}

.blog-post .panel-heading a {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
}

.panel-body {
    position: relative;
}
.panel-body {
    padding: 15px;
}

a:hover, a:focus, a:active {
    color: #00749D;
}
.blog-post a:hover, .blog-post a:focus {
    color: #105072;
    text-decoration: underline;
}
a:active, a:hover {
    outline: 0;
}

.author-img {
    position: absolute;
    left: 15px;
    top: -20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 3px 8px 2px rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 30px;
    z-index: 10;
    text-transform: uppercase;
    font-weight: 700;
    background-color: #1D94D2;
}

.blog-post .blog-post-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background-color: #fff;
    box-shadow: 0 -6px 13px -1px rgba(220,220,220,0.8);
    margin: 0;
}

/***** BLOG POST *****/
.BlogPost .page-header h1 {
    display:none;
}

.BlogPost .jumbotron {
    position: relative;
    min-height:400px;
    color:#fff;
    margin-left:-15px;
    margin-right:-15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
}
@media (min-width:768px) {
    .BlogPost .jumbotron {
        margin-left:-70px;
        margin-right:-70px;
    }
}
.BlogPost .jumbotron:before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background:linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%);
}
.blog-title {
    position:relative;
    margin-top:150px;
}
.BlogPost .jumbotron .blog-post-meta {
    position:absolute;
    bottom:0;
}
.BlogPost .content {
    box-shadow:0 8px 20px rgba(0,0,0,0.3);
}
.BlogPost .media {
    display: flex;
}
.BlogPost .blog-footer {
    justify-content: space-between;
}
.BlogPost .blog-footer h5 {
font-size: 14px;
}
.BlogPost .blog-footer h6 {
    font-size: 12px;
}
.BlogPost .previouspost,
.BlogPost .nextpost {
    background:rgba(0,0,0,0.3);
    height:80px;
    color:#fff;
}
.BlogPost .previouspost img,
.BlogPost .nextpost img {
    position:absolute;
    top:0;
    transition:all 0.5s;
}
.BlogPost .previouspost img {
    transform:rotateY(-90deg);
    transform-origin:left;
    right:-80px;
}
.BlogPost .nextpost img {
    transform:rotateY(90deg);
    transform-origin:right;
    left:-80px;
}

.BlogPost .previouspost:hover img,
.BlogPost .nextpost:hover img {
    transform:rotate(0);
}
.BlogPost .media i {
    line-height:70px;
    width:80px;
}
.BlogPost .media-body {
    overflow:hidden;
}
.BlogPost .media .oldernewer {
    position:absolute;
    bottom:10px;
    width:80px;
    transform:translateY(80px);
    transition:all 0.2s;
    opacity:0;
}
.BlogPost .media-right .oldernewer {
    margin-right:10px;
    right:0;
}
.BlogPost .media-left .oldernewer {
    margin-left:10px;
    left:0;
}
.BlogPost .previouspost:hover .oldernewer,
.BlogPost .nextpost:hover .oldernewer {
    transform:translateY(0);
    opacity:1;
}
.blog-entry .pagination {
    position: relative;
    display: block;
    text-align: center;
}

/***** MARKETING ELEMENT *****/
.marketing-element a {
    text-decoration: none;
    color: #0090c4;
}
.marketing-element a:hover,
.marketing-element a:focus,
.marketing-element a:active {
    color: #00749D;
}
.marketing-element__icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 6px inset rgba(0,0,0,0.1);
    margin: auto;
    box-shadow: none;
    transition: all 0.2s;
}
a .marketing-element__icon i {
    /*height: 100px;*/
    /*width: 100px;*/
    text-shadow: 2px 2px #ddd;
    font-size: 80px;
    transition: all 0.2s;
}
a:hover .marketing-element__icon {
    background:rgba(255,255,255,1);
    border:12px inset rgba(0,0,0,0.2);
    box-shadow:0 3px 16px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
a:hover .marketing-element__icon i {
    transform:translateX(-2px) translateY(-2px);
    text-shadow: 6px 6px 4px #ccc;
}
.marketing-element h3 {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
}

/***** CAROUSEL ELEMENT *****/
.carousel-element {
    padding: 80px 0;
    background-size: cover;
    z-index: -100;
}
.carousel-element::before {
    /*background-image: linear-gradient(#1B7EB3, #175C83);*/
    z-index: -10;
}
.carousel-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}
.slider-image {
    display: block;
    margin-left: auto;
    margin-right: auto
}
.carousel-title {
    color: #fff;
    font-weight: 900;
    font-size: 36px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/***** LATEST NEWS ELEMENT *****/
.panel-news .panel-heading {
    padding: 120px 15px 0 15px;
    background-size: cover;
    color: #fff;
    font-weight: 900;
    position: relative;
}
.panel-news .panel-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(20,20,20,0) 75%, rgba(20,20,20,0.3));
}
.panel-news .panel-heading h3 {
    font-weight: 900;
    text-shadow: 0px 0px 4px rgba(20, 20, 20, 0.4);
    position: relative;
}
.panel-heading a {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
.featured .panel-footer .btn {
    float: right;
    box-shadow: 0 3px 6px -3px rgba(0,0,0,0.2);
    color: #0090c4;
}
.featured .panel-footer .btn:hover,
.featured .panel-footer .btn:active,
.featured .panel-footer .btn:focus {
    color: #333333;
}
.latest-news-element a.list-group-item {
    display: flex;
    padding: 0;
    margin-top: 15px;
    color: #555555;
}
div.media-left {
    padding-right: 10px;
}
.media-heading {
    font-size: 18px;
}
.panel-footer {
    padding: 10px 15px;
}

.twitter-container {
    background: #0074b3;
    padding: 0 1px;
    border-radius: 5px;
}
.twitter-container h4 {
    font-size: 16px;
    color: #ffffff;
    padding: 10px 15px;
    margin: 0;
}
.twitter-follow-container {
    text-align: center;
}

/* Find A Chiro */
.map-heading {
    margin-top:100px;
    font-size:4rem;
    width:400px;
    position:absolute;
}
@media screen and (max-width:600px) {
    .map-heading {
        position:static;
    }
}
.map-holder {
    padding-left:200px;
    min-width:480px;
    max-width:780px;
}

.map-link {
    fill:var(--gray);
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -ms-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
    stroke:#ffffff;
    cursor:pointer;
}
.map-link:hover {
    fill:var(--primary);
}

/* UserForms */
.userform-fields .middleColumn>input,
.userform-fields .middleColumn>textarea {
    min-width: 65%;
}
.userform-fields .middleColumn>textarea {
    min-height: 130px;
}
.userform-fields legend {
    font-size: 14px;
}

/* Tiles Element */
.tiles-element .tiles {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
.tiles .card {
    border: 0;
    border-radius: 15px;
    background-color: #f3f4f8;
}
.tiles img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.tiles h4 {
    color: #0F4A69;
}
.tiles p {
    color: #7e7e7e;
}
.tiles a {
    background-color: #00928e;
    border-radius: 50px;
}
.tiles a:hover,
.tiles a:focus,
.tiles a:active {
    background-color: #01716e;
}

@media screen and (min-width:576px) {
    .tiles-element .tiles {
        grid-template-columns: 1fr 1fr;
    }
}

/* Top Navigation Menu */
.home-smalltopnav {
    margin-top: -5px;
    position: relative;
    z-index: 1;
}
.HomePage .home-smalltopnav {
    background: #fff;
}
#SmallTopNav {
    margin-left: auto;
}
.home-smalltopnav a {
    color: #0090c4;
}
#SmallTopNav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
}
#SmallTopNav > li > a:hover, .navbar-nav > li > a:focus {
    text-decoration: none;
    background-color: #eee;
}
div#Breadcrumbs a {
    color: #0090c4;
}
#Breadcrumbs a:hover, #Breadcrumbs a:focus, #Breadcrumbs a:active {
    color: #105072;
    text-decoration: underline;
}

/* Home Navigation Menu */
.nav-item.dropdown.show .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}
.main-nav .navbar {
    padding: 4px 0;
    margin-left: -20px;
    margin-right: -20px;
}
.main-nav .navbar .navbar-nav {
    flex-wrap: wrap;
}
.main-nav .navbar-toggler {
    margin-left: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    background: #0F4A69;
    color: #ffffff;
    padding: 10px 9px;
    font-size: 14px;
}
.main-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-nav .nav-link, .main-nav .dropdown-item {
    display: inline-block;
    padding: 10px 15px;
    border-bottom: transparent 3px solid;
}
.main-nav .nav-link:hover, .main-nav .dropdown-item:hover {
    border-color: #eeeeee;
    transition: all 0.1s;
}
.main-nav .nav-link.dropdown-toggle {
    padding-left: 15px;
    padding-right: 15px;
    background: rgba(0, 0, 0, 0.03);
}
.main-nav .nav-link.dropdown-toggle::after {
    margin: 0;
}

.main-nav .nav-item:not(.dropdown) .nav-link {
    width: 100%;
}
.main-nav .nav-item.dropdown .nav-link:first-child {
    width: calc(100% - 38px);
}
.main-nav #navbarSupportedContent {
    position: absolute;
    z-index: 1;
    background: rgb(255, 255, 255) none repeat scroll 0% 0%;
    top: 50px;
}
.main-nav .dropdown-menu {
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.05);
}
.main-nav .navbar-nav .nav-link:first-of-type {
    padding-left: 10px;
}
.main-nav .dropdown.show .nav-link:first-of-type {
    background: #eeeeee;
}
.main-nav .navbar a {
    color: #197fb5;
}
.main-nav .navbar a:hover,
.main-nav .navbar a:focus,
.main-nav .navbar a:active {
    color: #00749D;
}

/* Other Page Navigation */
.nav .navbar {
    padding: 4px 0;
    width: 100%;
    flex-wrap: wrap;
}

.nav .navbar-toggler {
    margin-left: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    background: #0F4A69;
    color: #ffffff;
    padding: 10px 9px;
    font-size: 14px;
}

.nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav .nav-link, .main-nav .dropdown-item {
    display: inline-block;
    padding: 10px 15px;
    border-bottom: transparent 3px solid;
}

.nav .nav-link:hover, .main-nav .dropdown-item:hover {
    border-color: #eeeeee;
    transition: all 0.1s;
}

.nav .nav-link.dropdown-toggle {
    padding-left: 15px;
    padding-right: 15px;
    background: rgba(0, 0, 0, 0.03);
}

.nav .nav-link.dropdown-toggle::after {
    margin: 0;
}

.nav .nav-item:not(.dropdown) .nav-link {
    width: 100%;
}

.nav .nav-item.dropdown .nav-link:first-child {
    width: calc(100% - 38px);
}

.nav #navbarSupportedContent {
    position: absolute;
    z-index: 1;
    background: rgb(255, 255, 255) none repeat scroll 0% 0%;
    top: 60px;
}

.nav .dropdown-menu {
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.05);
}

.nav .navbar-nav .nav-link:first-of-type {
    padding-left: 10px;
}

.nav .dropdown.show .nav-link:first-of-type {
    background: #eeeeee;
}

.nav .navbar a {
    color: #197fb5;
}

.nav .navbar a:hover,
.nav .navbar a:focus,
.nav .navbar a:active {
    color: #00749D;
}

/* Homepage Header Content */
.banner {
    background-size: cover;
    background-position: 35% 73%;
    position: relative;
}
.banner .container {
    position: relative;
    z-index: 100;
}
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(250,250,255,0.5), rgba(255,255,255,0.95));
    z-index: 0;
}
#HomeHeader {
    height:500px;
    position:relative;
}
#HomeHeader:before, .second-image {
    content:'';
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:62%;
    background-size:cover;
    background-position:left top;
    background-repeat:no-repeat;
}
.second-image {
    background-image:radial-gradient(rgba(10,10,40,0.3), transparent 75%);
    background-position:-200px center;
    background-repeat-x:no-repeat;
}
.second-image:after {
    content: '';
    position: absolute;
    top: 58px;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(20,20,40,0.65), rgba(20,20,40,0) 200px);
    z-index: 0;
}
#HomeHeader .logo {
    width:80%;
    height:auto;
}
#HomeHeader .logo img {
    margin-top:90px;
    width:100%;
}
.home-title {
    margin: 80px 0 0 80px;
    display:inline-block;
    width:60%;
    font-size:50px;
    font-weight:bold;
    font-style:italic;
    color:#fff;
    text-shadow: 0 2px rgba(20,20,60,0.5), 1px 0 rgba(20,20,60,0.1), 0 -1px rgba(20,20,60,0.1), -1px 0 rgba(20,20,60,0.3);
}

/* Other Page Header */
body:not(.HomePage) .banner:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
    z-index: 0;
}
.banner-divider {
    position:relative;
    overflow:hidden;
    height:80px;
    width:100%;
}
.banner-divider:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
    z-index: 0;
    box-shadow: inset 0 -3px 16px rgba(0,0,0,0.05);
    background: linear-gradient(to right, #1c93d1, #0a5a84);
    width: 300%;
    left: -100%;
    border-radius: 50%;
    bottom: -40px;
    height: 600px;
    background: transparent;
    border: 100px solid #2469a5d1;
    opacity:0.75;
}
.banner-divider:after {
    content: '';
    position: absolute;
    height: 600px;
    background: #fff;
    width: 300%;
    left: -100%;
    top: 40px;
    border-radius: 50%;
    z-index: 0;
}
.banner .page-header {
    position: relative;
    color: #d7d7d7;
    border-bottom: none;
}
.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #eee;
}
.page-header h1 {
    color: #004C6D;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Top Nav Menu */
    #SmallTopNav {
        display: flex;
        flex-wrap: wrap;
        background: rgba(0, 0, 0, 0.03);
    }
    #SmallTopNav > li {
        display: inline-block;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    #HomeHeader::before, .second-image {
        top: initial;
        bottom: 0;
        width: 100%;
        height: calc(100% - 300px);
    }
    #HomeHeader .logo img {
        margin-top: 0;
        width: auto;
        max-height: 180px;
        max-width: 100%;
    }
    .clipped-edge-holder {
        display: none;
    }
}

@media (min-width: 768px) {
    /*  Home Main Menu  */
    .main-nav  .navbar {
        margin-left: 0;
        margin-right: 0;
        background: #0F4A69;
        border-radius: 5px;
    }
    .main-nav #navbarSupportedContent {
        position: static;
        background: transparent;
    }
    .main-nav .navbar-nav {
        margin-left: auto;
    }
    .main-nav .navbar a {
        color: #ffffff;
        border: none;
    }
    .main-nav .navbar a:hover,
    .main-nav .navbar a:active,
    .main-nav .navbar a:focus {
        color: #ffffff;
    }
    .main-nav .navbar a.dropdown-item:hover {
        color: #000000;
    }
    .main-nav .dropdown.show .nav-link:first-of-type {
        background: none;
    }
    .main-nav .dropdown-menu {
        background: rgba(250,250,255,0.95);
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.2s;
    }
    .main-nav .dropdown-menu a {
        color: black;
    }
    .main-nav .dropdown:hover .dropdown-menu, .main-nav .dropdown.show .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.2s;
    }
    .main-nav  .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: calc(50% - 10px);
        border-bottom: 10px solid rgba(250,250,255,0.95);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
    }
    .main-nav .nav-item.dropdown .nav-link:first-child {
        width: auto;
    }
    .main-nav .nav-link {
        padding: 15px;
    }
    .navbar-nav > li > a:focus {
        background-color: transparent;
    }
    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item:active {
        background-color: #ffffff;
    }
    .second-image:after {
        top: 50px;
    }

    /* Page Main Menu */
    .nav #navbarSupportedContent {
        position: static;
        background: transparent;
    }
    .nav .navbar-nav {
        margin-left: auto;
    }
    .nav .navbar a {
        border: none;
    }
    .nav .dropdown-menu {
        background: rgba(250,250,255,0.95);
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.2s;
    }
    .nav .dropdown-menu a {
        color: black;
    }
    .nav .dropdown:hover .dropdown-menu, .nav .dropdown.show .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.2s;
    }
    .nav  .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: calc(50% - 10px);
        border-bottom: 10px solid rgba(250,250,255,0.95);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
    }
    .nav .nav-item.dropdown .nav-link:first-child {
        width: auto;
    }
    .nav .nav-link {
        padding: 15px;
    }
    .nav .nav-link.dropdown-toggle,  .nav li.dropdown.show a {
        background: none;
    }
    .nav .dropdown.show .nav-link:first-of-type {
        background: none;
    }
    .nav .nav-item {
        border: none;
    }
    .nav .nav-item > a {
        display: inline;
    }
    .nav .nav-item a.dropdown-toggle {
        padding-left: 0;
    }
}

@media (min-width: 992px) {
    /* Home Main Menu */
    .main-nav {
        margin-left: auto;
    }
    .main-nav  .navbar {
        background: transparent;
        margin-left: 60px;
    }
    .main-nav .nav-item {
        border-bottom: none;
    }
    .main-nav .nav-link.dropdown-toggle {
        padding: 0;
        background: none;
    }
    .main-nav .nav-item:not(:last-of-type) {
        margin-right: 5px;
    }
}

@media (min-width: 1200px) {
    .main-nav .nav-item:not(:last-of-type) {
        margin-right: 20px;
    }
}

/* Footer Styling*/
footer {
    padding: 36px 0;
    background-color: #0f4a69;
}

footer nav {
    margin-bottom: 24px;
}

footer, footer a {
    color: #fff;
    font-size: 12px;
}

footer h4 {
    font-size: 16px;
    font-weight: 700;
}

footer .nav > li > a {
    padding: 6px 0;
    display: block;
}

footer .nav > li > a:hover, footer a:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

footer .social-media {
    padding: 12px 0;
    margin: 36px 0 -36px 0;
}

footer .social-media a {
    font-size: 20px;
    padding: 8px;
    margin: 0 16px;
}

.page-footer {
    position: relative;
}

.page-footer > * {
    position: relative;
    z-index: 1;
}

.page-footer-w-image {
    background-size: cover;
    background-position: center;
}

.page-footer-w-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    opacity: 0.8;
    z-index: 0;
}

.page-footer-w-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(transparent, #000);
    opacity: 0.3;
    z-index: 0;
}

.social-media div {
    text-align: center;
}

