/*
	(c)2020 - visuallizard.com

	General Layout Styles.
	Sets major blocking to elements that appear accross the site in different templates.
	All can be removed and started from scratch or elemnts can be adjusted individually.
*/

.container {
/*
	Set site maximum width only here and use this class to centre the content in browser window.
	Use "max-width" instead of "width" for auto-responsivness.
*/
	max-width: 1600px;
	padding: 0 2rem;
	margin: 0 auto;
	position: relative;
}
	.site-header-container,
	.site-footer-container  {
		max-width: 1600px;
	}

.full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
.full-bleed {
/* 	alternative to .full-width - https://andy-bell.design/wrote/creating-a-full-bleed-css-utility/ */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.site-header {
	padding: 2rem 0;
	margin-bottom: 1rem;
}
	.site-header-container {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.t-home .site-header {
		background: #333 url(/img/banner-glen.jpg) left top no-repeat;
		background-size: cover;
		min-height: 50vw;
		padding-bottom: 2rem;
	}
	.t-home .site-header-container {
		flex-direction: column;
		padding-left: 45%;
	}

.elect-bar {
	background-color: #FC4520;
	color: #fff;
	text-align: center;
	padding: .25em 0;
}
	.top-container {
		/* max-width: 900px; */
	}
	.elect-bar p {
		text-transform: uppercase;
		font-size: 18px;
		letter-spacing: .05em;
		margin: 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.elect-bar p > * {
		margin: 0 1.5em;
	}

	.site-title {
		max-width: 250px;
		max-width: 30%;
		margin-right: auto;
	}
		.site-title-img {
			display: block;
			width: 100%;
			height: auto;
			/* margin-top: 5px; */
		}

		.t-home .site-title {
			max-width: 600px;
			order: 1;
			margin: 4rem auto 1rem;
		}
		.t-home .cta {
			order: 3;
			margin: auto;
			font-size: 150%;
		}
		.t-home .site-header .special {
			order: 2;
			margin: 4vw auto 8vw;
			max-width: 100%
		}
			.t-home .site-header .special img {
				max-width: 100%;
				height: auto;
			}

/* Search Form */
.search-form {
	float: right;
	display: inline-flex;
	margin: .5em 0;
}
	.search-input {

	}
	.search-button {
		border-radius: 0;
	}



/* 	! SECTIONS	*/
main {

}
	.primary {
		width: 70%;
		padding: 2em 5% 2em 0;
	}
	.sidebar {
		width: 30%;
		padding: 2em 0 2em 5%;
		border-left: 1px solid #777;
	}

	/* ! Regions for Layout Module */
	.region-row {
		display: flex;
	}
		.region-cell {
			width: 100%;
			padding: 2rem 5%;
		}
		.region-cell:first-child {
			padding-left: 0;
		}
		.region-cell:last-child {
			padding-right: 0;
		}


/* ! NAVIGATIONS  */

/* General for all levels and navs: */
.nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-item {
	position: relative;
	display: inline-block;
	display: block;
	vertical-align: top;
}
.nav-link {
	display: block;
	padding: .5em 1em;
	color: inherit;
	text-decoration: none;
	transition: all .3s;

	line-height: 1.25;
}
.nav-link:hover {
	color: dodgerblue;
}
.nav-item[data-nav-status='has-active'] > .nav-link {
    color: dodgerblue;
}
.nav-item[data-nav-status='active'] > .nav-link {
    color: dodgerblue;
}

	/* 	Main nav specific (opinionated) */
	.main-nav {
		clear: both;
		padding: 0;
		margin-right: 1rem;

		display: flex;
		justify-content: center;
		align-items: center;

		font-size: 15px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.02em;
	}

	/* Level 1 (horizontal) */
	.main-nav .nav-1 {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-right: 2rem;
	}
	.main-nav .nav-1 > li {
		margin: 0 .75em;
	}

	.main-nav .nav-1 > li > a {
		padding: .25em;
		text-align: center;
		border-bottom: 5px solid transparent;
	}

	.main-nav .nav-1 > li:hover > a,
	.main-nav .nav-1 > li[data-nav-status='active'] > a {
		border-color: currentcolor;
		color: var(--color-1);
	}

	.t-home .main-nav .nav-1 > li > a,
	.t-dark .main-nav .nav-1 > li > a {
		color: #fff;
	}

	/* all sub-lists (drop-downs & drop-sides) */
	.main-nav .sub-list {
		display: block;
		position: absolute;
		top: 0;
		left: auto;
		width: 200px;
		margin: 0;
		padding: 0;

		background-color: #fff;
		border: 1px solid rgba(0, 0, 0, 0.2);
		border-radius: 2px;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

		transition: all 0s;
		z-index: 1000;
	}
	.main-nav li              > .sub-list { visibility: hidden;  opacity: 0; transform: scale(.95); }
	.main-nav li:hover        > .sub-list { visibility: visible; opacity: 1; transform: scale(1); transition-duration: .3s; }
	.main-nav li:focus-within > .sub-list { visibility: visible; opacity: 1; transform: scale(1); }

	.main-nav .sub-list .sub-list { left: 100%; }

	.main-nav :nth-last-child(1) > .nav-2,
	.main-nav :nth-last-child(2) > .nav-2 { right: 0; left: auto; }

	.main-nav :nth-last-child(1) > .nav-2 .nav-list,
	.main-nav :nth-last-child(2) > .nav-2 .nav-list { right: 100%; left: auto; }

	.main-nav :nth-last-child(1) > .nav-2 .has-sub > .nav-link::after,
	.main-nav :nth-last-child(2) > .nav-2 .has-sub > .nav-link::after { transform: scaleX(-1); }



	/* Level 2 (the only drop-down ) */
	.main-nav .nav-2 {
		top: 100%;
	}


	.main-nav .nav-2 > li {

	}
	.main-nav .nav-2 > li > a {

	}

	/* Level 3, etc. */
	.main-nav .nav-3 {

	}
	.main-nav .nav-3 > li {

	}
	.main-nav .nav-3 > li > a {

	}


	/* Has-subs Chevron indicators */
	.main-nav .has-sub > .nav-link {
		padding-right: 1.5em;
	}
	.main-nav .has-sub > .nav-link:after {
		position: absolute;
		top: 0;
		bottom: 0;
		margin: auto;
		right: .25em;
		content: " ";
		background: no-repeat right center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path fill='%23setColorCodeHere' d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /></svg>");
		display: block;
		width: 1em;
		height: 1em;
		background-size: 100%;
		transform-origin: center center;
	}
	.main-nav .nav-1 > .has-sub > .nav-link:after {
		transform: rotate(90deg);
	}


/* ! Banners: defaults */
.banners {
	margin-bottom: 2em;
}
	.banner {
		position: relative;
	}
		.banner-link {
			display: block;
		}
			.banner-img {
				display: block;
				width: 100%;
				height: auto;
			}
			.banner-container {
				position: absolute;
				top: 0;
				bottom: 0;
				left: 0;
				right: 0;
				margin: 0 auto;
				padding: 1em;
				padding: 5%;

				display: flex;
				align-items: center;
				justify-content: center;
			}
			.upperleft    .banner-container { align-items: flex-start; justify-content: flex-start; }
			.uppercentre  .banner-container { align-items: flex-start; justify-content: center;     text-align: center; }
			.upperright   .banner-container { align-items: flex-start; justify-content: flex-end;   }
			.middleleft   .banner-container { align-items: center;     justify-content: flex-start; }
			.middlecentre .banner-container { align-items: center;     justify-content: center;     text-align: center; }
			.middleright  .banner-container { align-items: center;     justify-content: flex-end;   }
			.lowerleft    .banner-container { align-items: flex-end;   justify-content: flex-start; }
			.lowercentre  .banner-container { align-items: flex-end;   justify-content: center;     text-align: center; }
			.lowerright   .banner-container { align-items: flex-end;   justify-content: flex-end;   }

			.banner-text {
				display: block;
				width: 100%;
				margin: 0;
				max-width: 800px;
				color: #fff;

				text-align: left;
				text-transform: none;
				transition: color .2s;
			}
			.banner-link:hover .banner-text {
				opacity: .5;
			}
				.banner-title {
					color: inherit;
					font-size: 50px;
					font-size: calc(1.5em + 2vw);
					margin-top: 0;
					margin-bottom: 0;
					text-transform: none;
				}
				.banner-subtitle {
					color: inherit;
					font-size: 30px;
					font-size: calc(1em + 2vw);
					margin-top: 0;
					margin-bottom: 0;
					text-transform: none;
				}
				.banner-desc {

				}

	/* ! Banners: Featured - slider */
	.featured-banners {

	}
		.featured-banners .banner-img {
			object-fit: cover;
			min-height: 200px;
			max-height: 500px;
			/* this sets vertical boundaries to Featured Banners
			 and prevents them from shrinking or growing beyond set height values
			 when viewport is either too short (mobile) or unknowingly large (wide monitors) */
		}

	/* ! Banners: Grid Fixed item width */
	.grid-fixed.banners {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 102%;
		margin: 0 -1% 0;
		padding: 0;
	}
		.grid-fixed .banner {
			display: inline-block;
			width: 25%;
			padding: 1em 1%;
		}
		.grid-fixed .banner-link {
			display: flex;
			align-items: center;
			height: 100%;
		}
		.grid-fixed .banner-img {
			transition: transform .3s;
		}
		.grid-fixed .banner-link:hover .banner-img {
			transform: scale(1.1);
		}
		.grid-fixed .banner-title {
			font-size: 20px;
		}

	/* ! Banners: Grid Flex item width
	(usually for sponsor logos where width is unknown. Set module settigns to something like Width:0 and Height:100px ) */
	.grid-flex.banners {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 102%;
		margin: 0 -1% 1em;
		padding: 0;
	}
		.grid-flex .banner {
			width: auto;
			margin: 1em 1%;
			padding: 0;
		}
		.grid-flex .banner-link {

		}
		.grid-flex .banner-img {
			display: block;
			width: auto;
			height: 100%;
			max-height: 100px;
			margin: 0;
			transition: all .3s;
		}
		.grid-flex .banner:hover .banner-img {
			transform: scale(1.1);
		}
		.grid-flex .banner-title {
			font-size: 20px;
		}



/* ! Documents */
.documents {

}
	.doc-category {

	}
		.doc-category-title {

		}
		.doc-category-desc {

		}
	.doc-item {
		margin-bottom: 2rem;
	}
	.doc-desc {

	}
		.doc-desc *:last-child {
			margin-bottom: 0;
		}
	.doc-link {

	}
		.doc-link .icon {
			width: 1em;
			height: 1em;
			min-width: 1em;
			margin-right: .5rem;
		}


/* Social element */
.social-block {
	display: flex;
	flex-direction: column;
	padding: .25rem 2rem;
	border: 2px solid #FC4520;
	border-radius: 8px;
	margin: 2rem auto;
	max-width: 900px;
}
	.social-title {
		font-size: 24px;
		font-weight: 600;
		line-height: 1.3;
		text-transform: uppercase;
	}
	.hashtag {
		margin-bottom: 0;
		text-transform: uppercase;
		font-size: 90%;
		font-weight: 600;
	}
	.social {
		list-style: none;
		margin: .25em 0;
		padding: 0;
		text-align: center;

		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
	}
		.social > li {
			display: block;
			margin: auto;
			line-height: 1;
		}
		.social > li + li {
			margin-left: 25%;
		}
		.social > li > a {
			display: block;
			padding: 2px;
			margin: 0;
			border: 0px solid transparent;
			border-radius: 10%;
			vertical-align: middle;
			background-color:  #0F55A3;
			color: #fff;
		}
		.social > li > a:hover {
			background-color: #FC4520;
		}
		.social .icon {
			display: block;
			width: 2rem;
			height: 2rem;
		}
		.social .icon svg {
			display: block;
			width: 100%;
			height: 100%;
		}

		.social-block.full {
			display: flex;
			flex-direction: row;
		}
			.social-block.full .social-title {
				margin: 1.25rem;
				font-weight: 900;
			}

		.social-block.stack {
			display: flex;
			flex-direction: column;
			margin: 2rem auto;
			max-width: 320px;
			padding-bottom: 1.5rem;
		}
			.social-block.stack .social-title {
				margin: 1.25rem 0;
				color: var(--color-6);
				font-weight: 900;
			}
			.social-block.stack .social {
				justify-content: flex-start;
				text-align: left;
				margin-bottom: 1rem;
			}
				.social-block.stack .social > li {
					margin-left: 0 !important;
					margin-right: 1rem;
				}
				.social-block.stack .social > li > a {
					color:  #0F55A3;
					background-color: #fff;
				}
				.social-block.stack .social > li > a:hover {
					background-color:  var(--color-1);
				}

		.t-home .social-block.stack {
			max-width: 800px;
		}
		.t-home .social-block.stack .social-title {
			text-align: center;
			color: #fff;
		}
		.t-home .social-block.stack .social {
			justify-content: center;
		}



		/* Social in header */
		.social-block.head {
			border: none;
			padding: 0;
			margin: -5px 0 0 0;
		}
		.social-block.head .social {
			margin: 0;
		}
		.social-block.head .social > li > a {
			padding: 2px;
		}
		.social-block.head .social .icon {
			width: 1rem;
			height: 1rem;
		}

		.t-home .social-block.head .social > li > a {
			background-color: #fff;
			color: #333;
		}
		.t-dark .social-block.head .social > li > a {
			background-color: #fff;
			color: var(--color-3);
		}

/* ! Site Footer  */
.site-footer {
	position: relative;
	clear: both;
	padding: 1em 0;
	margin: 0;
	background-color: #0E5EA8;
	color: #fff;
}
	.site-footer-container {
		display: flex;
		flex-wrap: wrap;
	}

	.footer-title {
		max-width: 40%;
	}

	/* Footer Nav */
	.footer-nav {
		margin: 5px 0 1em auto;
		display: flex;
		align-items: middle;
	}
	.footer-nav .nav-1 {
		display: flex;
		font-size: 16px;
		font-weight: 600;
		text-transform: uppercase;
	}


	.site-footer .copyright {
		margin: 0;
		width: 100%;
		font-size: 12px;
		text-align: center;
		opacity: .7;
	}

