/*
 Theme Name:     konik
 Author:         Headspin
 Author URI:     http://headspin.no/
 Template:       Divi
 Version:        Version1
 Description:    Child-theme til Divi for konik
*/

/*
	  .oooooo.                                                       oooo
	 d8P'  `Y8b                                                      `888
	888            .ooooo.  ooo. .oo.    .ooooo.  oooo d8b  .oooo.    888
	888           d88' `88b `888P"Y88b  d88' `88b `888""8P `P  )88b   888
	888     ooooo 888ooo888  888   888  888ooo888  888      .oP"888   888
	`88.    .88'  888    .o  888   888  888    .o  888     d8(  888   888
	 `Y8bood8P'   `Y8bod8P' o888o o888o `Y8bod8P' d888b    `Y888""8o o888o
*/

#main-content a,
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a {
	color: #1c99d2 !important;
}


/*
	ooo        ooooo                 .o8              oooo
	`88.       .888'                "888              `888
	 888b     d'888   .ooooo.   .oooo888  oooo  oooo   888   .ooooo.   .oooo.o
	 8 Y88. .P  888  d88' `88b d88' `888  `888  `888   888  d88' `88b d88(  "8
	 8  `888'   888  888   888 888   888   888   888   888  888ooo888 `"Y88b.
	 8    Y     888  888   888 888   888   888   888   888  888    .o o.  )88b
	o8o        o888o `Y8bod8P' `Y8bod88P"  `V88V"V8P' o888o `Y8bod8P' 8""888P'
*/

/*
 * Konsulenter
 */

.consultants {
	display: flex;
	-webkit-flex-wrap: wrap;
	    -ms-flex-wrap: wrap;
	        flex-wrap: wrap;
	width: 100%;
}

.consultants > div {
	margin: 0 24px 24px 0;
	height: 600px;
	overflow: hidden;
	width: calc(25% - 18px);
}

.consultants > div:nth-child(4n) {
	margin-right: 0;
}

.consultants > div > .et_pb_module_inner {
	height: 100%;
}

.consultant {
	background-position: center center;
	-webkit-background-size: cover;
	     -o-background-size: cover;
	        background-size: cover;
	cursor: pointer;
	height: 100%;
	position: relative;
}

.consultant-container {
	background: rgba(58, 58, 58, 0.93);
	bottom: 0;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	min-height: 160px;
	overflow: hidden;
	padding: 1.7em 1.7em 0;
	position: absolute;
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
	width: 100%;
}

.consultant h2 {
	color: #fff;
	font-size: 1.8571em;
	padding-bottom: 0.4em;
}

.consultant h3 {
	color: #fff;
	font-size: 1.1428em;
	padding-bottom: 0.4em;
}

.consultant a {
	color: #1c99d2;
}

.consultant a:hover {
	opacity: .9;
}

.consultant .contact {
	display: flex;
	-webkit-flex-direction: column;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.consultant .title {
	margin-bottom: 1.2857em;
}

.consultant .email {
	font-weight: 500;
}

.consultant .more-info {
	height: 0;
	opacity: 0;
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}

.consultant .more-info blockquote {
	border: none;
	border-top: 1px solid rgba(255,255,255,.5);
	font-size: 1.1428em;
	font-style: italic;
	padding: 1.7em 0 0;
}

.consultant .linkedin {
	bottom: -1.7em;
	fill: #1c99d2;
	opacity: 0;
	position: absolute;
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}

.consultant.open .linkedin {
	bottom: 1.7em;
	opacity: 1;
}

.consultant .read-more {
	bottom: -24px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	overflow: hidden;
	padding-right: 20px;
	position: absolute;
	right: 24px;
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
}

.consultant .read-more::after {
	border: 4px solid;
	border-color: #1c99d2 #1c99d2 transparent transparent;
	content: '';
	display: inline-block;
	height: 16px;
	position: absolute;
	right: 4px;
	top: -4px;
	transform: rotate(45deg);
	width: 16px;
}

.consultant.open .read-more {
	bottom: 24px;
}

.consultant .read-more:hover {
	padding-left: 8px;
	right: 16px;
}

.consultant.open .consultant-container {
	min-height: 100% !important;
}

.consultant.open .more-info {
	opacity: 1;
}

.consultant .expand {
	bottom: 0;
	overflow: hidden;
	position: absolute;
	height: 0;
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
	        transition: all .3s ease;
	width: 100%;
}

.consultant .expand .caret {
	height: 16px;
	margin: 4px auto;
	overflow: hidden;
	position: relative;
	width: 16px;
}

.consultant .expand .caret::before {
	border: 4px solid;
	border-color: #1c99d2 #1c99d2 transparent transparent;
	content: '';
	height: 20px;
	left: -6px;
	position: absolute;
	top: 6px;
	transform: rotate(-45deg);
	width: 20px;
}

.consultant:not(.open):hover .consultant-container {
	padding-bottom: 24px;
}

.consultant:not(.open):hover .expand {
	height: 24px;
}

@media only screen and (max-width: 1600px) {
	.consultants > div {
		width: calc((100% / 3) - 16px);
	}

	.consultants > div:nth-child(4n) {
		margin-right: 24px;
	}

	.consultants > div:nth-child(3n) {
		margin-right: 0;
	}
}

@media only screen and (max-width: 1280px) {
	.consultants > div {
		margin-right: 24px;
		width: calc(50% - 12px);
	}

	.consultants > div:nth-child(3n) {
		margin-right: 24px;
	}

	.consultants > div:nth-child(2n) {
		margin-right: 0;
	}
}

@media only screen and (max-width: 850px) {
	.consultants > div {
		margin-right: 0 !important;
		width: 100%;
	}
}

@media only screen and (max-width: 380px) {
	.consultant-container {
		font-size: 12.5px;
	}
}

/*
 * Kontorer
 */

.office .et_pb_module.et_pb_blurb {
	height: 300px;
	margin-top: 80px;
	padding: 0 !important;
}

.office .et_pb_blurb_content {
	background: #f2f2f2;
	bottom: calc(100% - 80px);
	max-width: none;
	padding: 16px;
	position: absolute;
	width: 100%;
}

.office .et_pb_blurb_container .et_pb_module_header {
	padding: 0;
}

.office .et_pb_blurb_container .et_pb_blurb_description {
	font-size: 16px;
	line-height: 1.4;
}

.office .et_pb_blurb_container .et_pb_blurb_description p {
	margin: 0;
	padding: 0;
}

/*
 * Tjenester
 */

.ingress-tjeneste {
	margin: 0 auto;
	max-width: 800px;
}
