:root {
    --primary: #17214A;
    --secondary: #445BB9;
    --light: #F6F7F8;
    --dark: #010A35;
    --dark-blue: #17214A;
	--blue: #445BB9;
	--white: #FFF;
	--grey: #c5c5cc;
}

.sans-serif {
	font-family: "Inter", sans-serif;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.blue-overlay {
	background: rgba(23, 33, 74, 0.85);
}

.underline { text-decoration: underline; }
.underline:hover { text-decoration: none; }

.btn-rounded { border-radius: 100px; }
.img-round-slight { border-radius: 4px; }
.img-uniform {
	object-fit: cover;
	object-position: center center;
	width: 100%;
	height: 225px;
}
.horizontal-line {
	border-top: 1px solid var(--grey);
	flex-grow: 1;
}
.text-small { font-size: 0.8em; }

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Haig Buttons ***/
.btn {
	font-size: 0.8em;
    padding: .5rem 1.25rem;
}
.btn.btn-primary:hover {
    background: var(--white);
    border-color: var(--grey);
    color: var(--dark-blue);
}


/*** Navbar ***/
.navbar { width: 100%; }
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 34px 0 1px;
    color: #17214A;
    font-weight: 700;
    outline: none;
	font-size: 14px;
	text-transform: uppercase;
	border-bottom: 3px solid transparent;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
	border-bottom: 3px solid var(--blue);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/* Nav -  Mega Menu */
.mega-menu-parent { position: initial; }
.dropdown-item { text-transform: uppercase; }
.mega-menu {
    width: 100vw;
    left: 0;
    right: 0;
    padding: 20px 50px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
}

.mega-menu .container {
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu .row {
    display: flex;
    flex-wrap: wrap;
}

.mega-menu .dropdown-item {
    font-size: 14px;
    padding: 5px 0;
    color: #333;
}

.mega-menu .dropdown-item:hover {
    background-color: transparent;
    color: var(--blue);
}

.mega-menu .dropdown-item {
    transition: color 0.3s ease;
}

.nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

@media (min-width: 992px) {
	.navbar .nav-item:hover .dropdown-menu.mega-menu {
		top: 85%;
	}
}
@media (max-width: 991.98px) {
    .mega-menu {
        width: 100%;
        left: auto;
        right: auto;
        padding: 10px;
    }

    .mega-menu .row > div {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    text-align: center;
    background: rgba(1, 10, 53, .8);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 3rem;
}
    
#header-carousel .carousel-item img {
	max-height: 70vh;
	object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(1, 10, 53, .8), rgba(1, 10, 53, .8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}

/*** Section - Upcoming Events / In The Know ***/

.section-upcoming .nav-item {
	border-bottom: 1px solid var(--grey);
	text-transform: uppercase;
}
.section-upcoming .nav-link {
	padding: .5rem;
}
.section-upcoming .nav-item:hover {
	background: #eaeaea;
}
.section-upcoming .nav-link:hover, .nav-link:focus {
	color: var(--primary);
}

/*** Section - About ***/
.section-about .btn {
	font-size: 0.8em;
    padding: .5rem 1.25rem;
}
.section-about .btn.btn-primary:hover {
    background: var(--white);
    border-color: var(--grey);
    color: var(--dark-blue);
}

/*** Footer ***/
.footer {
    color: #FFF;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: #FFF;
    font-weight: normal;
    text-transform: uppercase;
    transition: .3s;
	font-size: 14px;
}

a.external::after {
    position: relative;
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 7px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    box-shadow: none;
}

.footer .socials a {
    color: #FFF;
	margin-right: 15px;
}

.footer .socials a:hover {
    color: var(--blue);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 991.98px) {
	.section-upcoming iframe {
		height: 400px;
	}
	.img-mobile-crop {
		object-fit: none;
		object-position: center center;
		width: 100%;
		max-height: 300px;
	}
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
	.navbar.bg-white:not(.shadow-sm) {
		background-color: transparent !important;
		position: absolute;
		top: 0 !important;
	}
	.navbar.bg-white:not(.shadow-sm) .navbar-nav .nav-link {
		color: var(--white);
	}
	.navbar.bg-white:not(.shadow-sm) .img-fluid {
		content: url("../img/logo3_white.png");
	}
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}
