﻿/* MCC Knowledge Center
------------------------------------------- 

Table of contents
    - Knowledge Center Navigation
	- Knowledge Center Archive
	- Single Resource
	- Media Queries

------------------------------------------- */

/* Knowledge Center Navigation
-------------------------------------------- */

.resource-sub-menu-bar {
	background-color: #f2f2f2;
}

.resource-sub-menu-bar .wrap {
	margin: 0 auto;
    max-width: 1140px;
}

.resource-post-type-menu {
	margin: 0;
    padding-left: 0;
}

.resource-post-type-menu > li {
	display: inline-block;
}

.resource-post-type-menu > li a,
.resource-post-type-menu > li span {
	color: #112A3C;
	display: block;
	padding: 16px 12px;
}

.resource-post-type-menu .dropdown-title:hover {
	background-color: #fff;
}

.resource-post-type-menu .dropdown-title:after {
	content: '\f107';
	font:normal normal normal 14px/1 FontAwesome;
	margin-left: 8px;
}

.resource-post-type-menu .tax-submenu {
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    left: -9999px;
    opacity: 0;
    position: absolute;
    -webkit-transition: opacity .4s ease-in-out;
    -moz-transition: opacity .4s ease-in-out;
    -ms-transition: opacity .4s ease-in-out;
    -o-transition: opacity .4s ease-in-out;
    transition: opacity .4s ease-in-out;
    width: 240px;
    z-index: 110;
}

.resource-post-type-menu .tax-menu-item:hover > .tax-submenu {
    left: auto;
    opacity: 1;
    padding: 0;
}

.resource-post-type-menu .tax-submenu li {
    background-color: #fff;
    border-bottom: 1px solid #f2f2f2;;
	list-style-type: none;
}

.resource-post-type-menu .tax-submenu li:hover {
	background-color: #f2f2f2;
}

.resource-post-type-menu .tax-submenu li a {
	line-height: 1.4;
	padding: 12px 16px;
}

/* Knowledge Center Archive
-------------------------------------------- */

.knowledge-center .site-inner .wrap,
.single-resource .site-inner .wrap {
	padding-bottom: 80px;
}

.knowledge-center .content {
	display: grid;
	grid-template-columns: 25% 25% 25% 25%;
}

.knowledge-center .content article.entry {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    min-height: 340px;
	padding: 8px;
}

.knowledge-center .content article:first-of-type {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
}

.knowledge-center .content .pagination {
	grid-column: span 4;
	text-align: center;
}

.knowledge-center .content .pagination ul.page-numbers {
	padding-left: 0;
}

.knowledge-center .content .pagination ul.page-numbers li {
	display: inline-block;
    list-style-type: none;
    margin-left: 16px;
}

.knowledge-center .content .pagination ul.page-numbers li:first-of-type {
    margin-left: 0;
}

.kc-wrap,
.kc-content-wrap {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.kc-wrap {
	background-position: center top;
	background-repeat: no-repeat;
	background-size: contain;
	border: 1px solid #dcdcdc;
	padding-top: 120px;
	transition: all 0.25s ease-in-out;
	width: 100%;
}

.knowledge-center .content article:first-of-type .kc-wrap {
	padding-top: 320px;
}

.kc-wrap.gated-resource {
	background: url(../image/gated-bg.png) no-repeat center center/cover;
	max-height: 340px;
	overflow-y: scroll;
	padding-top: 0;
}

.kc-content-wrap {
	background-color: #fff;
	-webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 16px;
    width: 100%;
}

.kc-wrap.gated-resource .kc-content-wrap {
	background-color: transparent;
	color: #fff;
	padding: 24px;
}

.kc-content-wrap h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.kc-wrap.gated-resource .kc-content-wrap h2 {
	color: #fff;
	font-size: 28px;
	padding: 24px 0;
	text-align: center;
}

.knowledge-center .content article:first-of-type .kc-content-wrap h2 {
	font-size: 40px;
}

.has-desc .kc-content-wrap .short-desc {
	display: none;
	height: 0;
	line-height: 1.4;
}

.knowledge-center .content article:first-of-type .kc-content-wrap .short-desc {
	font-size: 24px;
}

.kc-content-wrap a.more-link {
	margin-top: auto;
}

.kc-content-wrap a.more-link button {
	border-radius: 0;
}

.knowledge-center .content article:hover .has-desc.kc-wrap {
	padding-top: 0;
}

.knowledge-center .content article:hover .has-desc .kc-content-wrap h2 {
	display: none;
}

.knowledge-center .content article:hover .has-desc .kc-content-wrap .short-desc {
	display: block;
}

.kc-wrap.gated-resource .kc-content-wrap .nf-form-cont {
	margin-bottom: 24px;
}

.kc-wrap.gated-resource .kc-content-wrap .nf-before-form-content {
	display: none;
}

.kc-wrap.gated-resource .kc-content-wrap .nf-field-label label {
	font-size: 14px;
}

.kc-wrap.gated-resource .kc-content-wrap .label-above .nf-field-label {
    margin-bottom: 0;
}

.kc-wrap.gated-resource .kc-content-wrap input {
	padding: 8px;
}

.kc-wrap.gated-resource .kc-content-wrap select {
	height: 38px;
}

.kc-wrap.gated-resource .kc-content-wrap input[type="button"] {
	border-radius: 0;
	padding: 8px 24px;
}

.kc-wrap.gated-resource .kc-content-wrap .nf-error-msg {
	font-size: 16px;
	line-height: 1.4;
}

/* Single Resource
-------------------------------------------- */

.single-resource .content-sidebar-wrap {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.single-resource .content {
	float: none;
	margin-right: 40px;
	width: calc( 75% - 40px );
}

.single-resource-pdf-wrap {
	border: 1px solid #eaeaea;
}

div.pdfemb-viewer {
	border: none !important;
}

.single-resource-pdf-wrap button {
	background-color: #eaeaea;
	border-radius: 0;
	color: #112c3c;
	padding: 16px;
	width: 100%;
}

.single-resource-pdf-wrap button:hover {
	background-color: #ddd;
}

.single-resource-feature-image img {
	width: 100%;
}

.single-resource .entry-title {
    font-size: 46px;
    text-transform: none;
    font-weight: 400;
    line-height: 1.3;
}

.single-resource-video-wrap {
	position: relative;
	padding-bottom: 54%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}

.single-resource-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.single-resource .entry-meta {
	border-top: 1px solid #e1e1e1;
	font-weight: 600;
	margin-top: 16px;
	padding-bottom: 32px;
	padding-top: 16px;
}

.single-resource h2,
.single-resource h3 {
    position: relative;
}

.single-resource h2 span,
.single-resource h3 span {
    position: absolute;
    top: -72px;
}

h4.toc-header {
	font-size: 30px;
}

.entry-content ul#tocList {
	margin-left: 0;
	padding-left: 0;
}

.entry-content ul#tocList ul {
	margin-left: 0;
}

.entry-content ul#tocList li {
	font-size: 20px;
	font-weight: 500;
	list-style-type: none !important;
	margin-top: 16px;
}

.entry-content ul#tocList ul li {
	font-size: 16px;
}

.entry-content ul#tocList li a {
	color: #68809a;
}

.entry-content ul#tocList li a:hover {
	text-decoration: underline;
}

.single-resource .sidebar-primary {
	background: url(../image/cta-bg.jpg) no-repeat center center/cover;
	color: #fff;
	float: none;
	margin: 0;
	padding: 54px 24px 24px;
	position: sticky;
	text-align: center;
	top: 80px;
	width: 25%;
}

.single-resource .content-sidebar-wrap .sidebar .widget {
	background-color: transparent;
	box-shadow: none;
	margin: 0;
}

.single-resource .sidebar-primary p {
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
	margin-bottom: 80px;
}

.single-resource .sidebar-primary button {
	border-radius: 0;
	color: #112c3c;
	font-size: 24px;
	padding: 16px;
	width: 100%;
}

.single-resource .sidebar-primary button:hover {
	background-color: #fff;
}

.item-next {
	background: #fff;
	border: 1px solid #ccc;
	bottom: 50px;
	padding: 24px;
	position: fixed;
	right: 0;
	z-index: 99;
}

.item-next-wrap {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.next-content-heading {
	color: #999;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 8px;
}

.next-post-thumb-wrap img {
	max-width: 115px;
}

.next-post-title-desc {
	color: #999;
	font-size: 14px;
	font-weight: 400;
   	height: 0;
   	line-height: 1.4;
	overflow: hidden;
	padding-left: 0;
	transition: all 0.25s ease-in-out;
	width: 0;
}

.item-next:hover .next-post-title-desc {
	height: 88px;
	padding-left: 16px;
	width: 300px;
}

.next-post-title-desc p:last-of-type {
	margin-bottom: 0;
}

.next-post-title {
	color: #888;
	font-size: 16px;
	margin-bottom: 4px;
}

.item-next .arrow, 
.item-next .arrow span {
    border-top: 30px solid transparent;
    border-left: 20px solid transparent;
    border-bottom: 30px solid transparent;
    border-style: solid;
    border-width: 30px 20px;
    height: 0;
    -webkit-transform: rotate(1turn);
    -ms-transform: rotate(1turn);
    transform: rotate(1turn);
    width: 0;
}

.item-next .arrow {
    border-left: 20px solid #ccc;
    border-right: 20px solid hsla(0,0%,80%,0);
    bottom: 0;
    margin: 0 0 0 20px;
    right: 0;
}

.item-next .arrow span {
    border-left: 20px solid #fdfdfd;
    border-right: 20px solid hsla(0,0%,80%,0);
    left: -22px;
    position: absolute;
    top: -30px;
}

.other-resources-header {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 16px;
}

.other-resources-header h2 {
	font-weight: 700;
	margin-bottom: 0;
	text-transform: uppercase;
}

.other-resources-nav button {
	background-color: transparent;
	border: 1px solid #a2a2a2;
	border-radius: 0;
	color: #a2a2a2;
	font-size: 24px;
	line-height: .5;
	padding: 4px 12px 6px;
}

.other-resources-nav button.disabled {
	border: 1px solid #e1e1e1;
	color: #e1e1e1;
}

.other-resources-nav button.owl-prev {
	margin-right: 4px;
}

.resource-loop-wrapper {
	margin-bottom: 24px;
}

.resource-loop-wrapper .entry {
	padding: 0;
}

.resource-loop-wrapper.owl-carousel .owl-stage,
.resource-loop-wrapper .owl-item,
.resource-loop-wrapper .owl-item .resource {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.return-link button {
	background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 0;
    -webkit-box-shadow: 0 1px 12px rgba(0,0,0,.05);
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
    color: #112c3c;
    padding: 24px;
    transition: all 0.25s ease-in-out;
    width: 100%;
}

.return-link button:hover {
	-webkit-box-shadow: 0 1px 0px rgba(0,0,0,.05);
    box-shadow: 0 1px 0px rgba(0,0,0,.05);
}

/* Media Queries
------------------------------------------- */

@media only screen and (max-width: 1023px) {

    .knowledge-center .content {
		grid-template-columns: 33% 33% 33%;
	}

	.single-resource .content-sidebar-wrap {
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
	}

	.single-resource .content {
		margin-bottom: 40px;
		margin-right: 0;
		width: 100%;
	}

	.single-resource .sidebar-primary {
		position: relative;
		top: 0;
		width: 100%;
	}

}

@media only screen and (max-width: 650px) {

    .knowledge-center .content {
		display: block;
	}

	.knowledge-center .content article.entry {
		min-height: 0;
		width: 100%;
	}

	.resource-post-type-menu > li {
		display: block;
	}

	.resource-post-type-menu > li a, .resource-post-type-menu > li span {
        font-size: 16px;
		padding: 8px 12px;
	}

	.kc-wrap,
	.kc-content-wrap {
		width: 100%;
	}

    .kc-wrap,
	.knowledge-center .content article:first-of-type .kc-wrap,
	.knowledge-center .content article:hover .kc-wrap {
        padding-top: 160px;
	}

	.knowledge-center .content article .kc-content-wrap h2,
	.knowledge-center .content article:first-of-type .kc-content-wrap h2 {
        font-size: 24px;
	}

	.knowledge-center .content article .kc-content-wrap .short-desc {
		display: block;
		height: auto;
	}

	.knowledge-center .content article:first-of-type .kc-content-wrap .short-desc {
		font-size: 18px;
	}

	.knowledge-center .content article:hover .kc-content-wrap h2 {
		display: block;
	}

	.single-resource .entry-title {
		font-size: 36px;
	}

	.single-resource h2,
	h4.toc-header {
	    font-size: 26px;	
	}

	.single-resource h3 {
		font-size: 22px;
	}

	.item-next {
		padding: 24px 60px 24px 24px;
		position: relative;
	}

	.item-next-wrap {
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-align-items: flex-start;
		-ms-flex-align: flex-start;
		align-items: flex-start;
	}

	.next-post-title-desc {
		height: auto;
		width: auto;
	}

	.item-next .arrow {
		position: absolute;
		top: calc( 50% - 20px );
	}

	.other-resources-header {
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
	}

	.other-resources-nav {
		margin-top: 16px;
	}

}