/*

Styles for the home page

*/

#homefeatured, #homemiddlegrid, #homebottomgrid, #home-features, #readmoregrid, #homeproducts {
	max-width:1160px;
	margin:0 auto;	
}

.readmore {
	margin:50px 0;
	text-align:center;
}
.read-more-button, 
.read-more-button:visited {
	font-family: alternate-gothic-no-1-d, sans-serif;
	font-size:13px;
	color:#727272;
	text-decoration:none;
	text-transform:uppercase;
}
.read-more-button:hover {
    font-family:'Lato', sans-serif !important;
    font-weight:bold;
    color:#ffffff;
    text-decoration:none;
    background-color:#419B52;
    padding-left:10px;
    padding-right:10px;
    padding-top:6px;
    padding-bottom:6px;
    border-radius:2px;
    cursor:pointer;
}

/* .articlegrid and .rightcol maybe should go into broader / main css file */
.articlegrid {
	grid-column-start:1;
	grid-column-end:span 10;
	-ms-grid-column:1;
	-ms-grid-column-span:10;
	grid-template-rows: 487px 326px 487px;
	-ms-grid-rows: 487px 326px 487px;
}
.teamgrid .articlegrid {
	grid-column-start:1;
	grid-column-end:span 12;
	-ms-grid-column:1;
	-ms-grid-column-span:12;
}
.articlegrid article {
	position:relative;
}
.article-row1, .article-row3 {
	height:487px;
}
.article-row2 {
	height:326px;
}

.grid-article-wrap {
	position:relative;
}
.grid-article-1 {
	grid-column-start:1;
	grid-column-end:span 8;
	-ms-grid-column:1;
	-ms-grid-column-span:8;
	grid-row:1;
	-ms-grid-row:1;
}

.grid-article-2 {
	grid-column-start:9;
	grid-column-end:span 4;
	-ms-grid-column:9;
	-ms-grid-column-span:4;
	grid-row:1;
	-ms-grid-row:1;
}

.grid-article-3 {
	grid-column-start:1;
	grid-column-end:span 6;
	-ms-grid-column:1;
	-ms-grid-column-span:6;
	grid-row:2;
	-ms-grid-row:2;
}

.grid-article-4 {
	grid-column-start:7;
	grid-column-end:span 3;
	-ms-grid-column:7;
	-ms-grid-column-span:3;
	grid-row:2;
	-ms-grid-row:2;
}

.grid-article-5 {
	grid-column-start:10;
	grid-column-end:span 3;
	-ms-grid-column:10;
	-ms-grid-column-span:3;
	grid-row:2;
	-ms-grid-row:2;
}

.grid-article-6 {
	grid-column-start:1;
	grid-column-end:span 4;
	-ms-grid-column:1;
	-ms-grid-column-span:4;
	grid-row:3;
	-ms-grid-row:3;
}

.grid-article-7 {
	grid-column-start:5;
	grid-column-end:span 8;
	-ms-grid-column:5;
	-ms-grid-column-span:8;
	grid-row:3;
	-ms-grid-row:3;
}

#home-top-ad, 
#home-bottom-ad {
	text-align:center;
	width:100%;
	margin:50px auto;
	display: flex;
    justify-content: center;
    align-items: center;
}

#CB_Mid_1, 
#CB_Mid_2 {
	display: flex;
	align-items: center;
	justify-content: center;
}

#home-middle-widgets {
	grid-column-start:1;
	grid-column-end:span 10;
	-ms-grid-column:1;
	-ms-grid-column-span:10;

	display:grid;
	display:-ms-grid;
	-ms-grid-columns: (1fr)[12];
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-column-gap: 20px;
	column-gap:20px;
}
#home-middle-ad {
	grid-column-start:11;
	grid-column-end:span 2;
	-ms-grid-column:11;
	-ms-grid-column-span:2;
}


.featured-topic {
  grid-column: auto / span 3;
  -ms-grid-column-span: 3;       
}
.featured-topic:nth-of-type(4n+1) {
	-ms-grid-column:1;
}
.featured-topic:nth-of-type(4n+2) {
	-ms-grid-column:4;
}
.featured-topic:nth-of-type(4n+3) {
	-ms-grid-column:7;
}
.featured-topic:nth-of-type(4n+4) {
	-ms-grid-column:10;
}
.featured-topic-link a, .featured-topic-link a:visited, .featured-topic-link a:hover {
	font-family: alternate-gothic-no-1-d, sans-serif;
    font-size: 14px;
    letter-spacing: .25px;
    line-height: 35px;
    color: #8E9199;
    text-transform: uppercase;
}
 .featured-topic-link a:hover {
 	text-decoration:underline;
 }
.topic-article {
	margin:22px 0 28px;
	width:225px;
	height:135px;
	border: 1px solid #f2f2f2;
	box-shadow: 1px 2px 3px #f3f3f3;
	position:relative;
}

.topic-article:nth-of-type(1) {
	height:253px;
}
.topic-article-image {
	width:225px;
	height:127px;
	margin:-1px;
}
.topic-article .headline {
	padding:15px;
}
.topic-meta {
	bottom:10px;
	left:15px;
	position:absolute;
	font-family: alternate-gothic-no-1-d, sans-serif;
	font-size:14px;
	letter-spacing: .25px;
	line-height:35px;
	color:#8E9199;
	text-transform:uppercase;
}
#podcast {
	background-image: url(../jpg/blue.jpg);
	background-position:center center;
	background-size:cover;
	background-repeat:no-repeat;	
	height:271px;
}
#podcast .wrap {
	max-width:1050px;
	margin:0 auto;
	padding:50px 0;
}
#podcast .podlogo {
	width:100%;
}
.podlink {
	height:40px;
	margin-top:25px;
}
.podlink1 {
	padding-right:7px;
}
.bottom-articlegrid {
	margin-top:50px;
	grid-template-rows: 411px 250px;
	-ms-grid-rows: 411px 250px;
}
.bottom-articlegrid .row1 {
	-ms-grid-row: 1;
	height:411px;
}
.bottom-articlegrid .row3 {
	-ms-grid-row: 3;
	height:411px;
}
.bottom-articlegrid .row5 {
	-ms-grid-row: 5;
	height:411px;
}
.bottom-articlegrid .row7 {
	-ms-grid-row: 7;
	height:411px;
}
.bottom-articlegrid .row9 {
	-ms-grid-row: 9;
	height:411px;
}
.bottom-articlegrid .row11 {
	-ms-grid-row: 11;
	height:411px;
}

.bottom-articlegrid .row2 {
	height:250px;
	-ms-grid-row: 2;
}
.bottom-articlegrid .row4 {
	height:250px;
	-ms-grid-row: 4;
}
.bottom-articlegrid .row6 {
	height:250px;
	-ms-grid-row: 6;
}
.bottom-articlegrid .row8 {
	height:250px;
	-ms-grid-row: 8;
}
.bottom-articlegrid .row10 {
	height:250px;
	-ms-grid-row: 10;
}
.bottom-articlegrid .row12 {
	height:250px;
	-ms-grid-row: 12;
}
#homebottomgrid, #readmoregrid, #homeproducts {
	margin:75px auto 50px;
}
#homebottomgrid .section-title, #home-features .section-title, #readmoregrid .section-title, #homeproducts .section-title {
	text-align:center;
}
#homebottomgrid article, #readmoregrid article {
	position:relative;
	height: auto;
}

#home-features .articlegrid {
	margin-top:50px;
	grid-column-start:1;
	grid-column-end:span 12;
	-ms-grid-column:1;
	-ms-grid-column-span:12;
	grid-template-rows: 487px 487px 487px;
	-ms-grid-rows: 487px 487px 487px;
}
#home-features article {
	position:relative;
	height:487px;
}

@media (max-width:1160px) {
	#homefeatured, #homemiddlegrid, #readmoregrid, #homebottomgrid, #home-features, #homeproducts {
		max-width:100%;
		padding:0 15px;
	}	

	.topic-article {
		margin:22px 0 28px;
		width:100%;
		height:135px;
	}

	.topic-article:nth-of-type(1) {
		height:135px;
	}
	.topic-article-image {
		display:none;
	}	
}
@media (max-width:1000px) {

	.grid-article-4 .grid-headline .text, .grid-article-5 .grid-headline .text {
		font-size:16px;
		line-height:18px;
	}

	.articlegrid {
		grid-template-rows: 400px 326px 400px;
		-ms-grid-rows: 400px 326px 400px;
	}

	.article-row1, .article-row3 {
		height:400px;
	}

	.topic-article, .topic-article:nth-of-type(1) {
		margin:16px 0 18px;
		height:165px;
	}
	.topic-meta {
		font-size:12px;
	}
	#podcast .wrap {
		max-width:100%;
		padding:50px 15px;
	}
	.podlink {
		height:30px;
		margin-top:20px;
	}
}
@media (max-width:850px) {

	.topic-article, .topic-article:nth-of-type(1) {
		height:185px;
	}
}

@media (max-width:767px) {
	#homefeatured, #homebottomgrid, #home-features, #readmoregrid, #homeproducts {
		padding:0;
	}
	#homefeatured, #homefeatured .articlegrid {
		display:block;
	}
	.article-row1, .article-row2, .article-row3 {
		height:auto;
	}

	#homefeatured article {
		height: auto;
		margin:25px 35px 0 0;
		border-top:1px solid #D8D8D8;
		position:relative;
	}

	.grid-image-container {
		width:126px;
		height:107px;
		float:left;
	}
	.grid-headline {
		margin-left:145px;
		position:static;
		padding-right:0;
		width:calc(100% - 145px);
	}
	.grid-headline .flag {
		top:auto;
		bottom:0;
		left:0;
	}
	.grid-image {
		width:126px;
		height:107px;
	}
	.grid-headline .teamtag {
		top:auto;
		bottom:0;
	}
	.grid-article-wrap {
		position:static;
	}

	.grid-article-4 .grid-headline .text, .grid-article-5 .grid-headline .text  {
		font-size:20px;
		line-height:22px;
		font-family: alternate-gothic-no-3-d, sans-serif;
	}

	#homemiddlegrid, #home-middle-widgets {
		display:block;
		padding:0;
	}
	#home-middle-ad {
		display:none;
	}
	.topic-article, .topic-article:nth-of-type(1) {
		width:230px;
		height:125px;
		margin:30px 0 25px 35px;
		display:inline-block;
		white-space:normal;
		vertical-align:top;
	}
	.featured-topic .section-title, #homebottomgrid .section-title, #home-features .section-title, #readmoregrid .section-title, #homeproducts .section-title {
		border-top:10px solid #f3f3f3;
		padding-left:35px;
		padding-top:15px;
		margin-right:35px;
		text-align:left;
	}
	.featured-topic-wrap {
		max-width:100%;
		width:1050px;
		padding-right:30px;
		overflow-x:scroll;
		white-space: nowrap;
	}
	.featured-topic, #homebottomgrid, #home-features, #homeproducts {
		border-top:0;
	}
	.featured-topic-link {
		margin-left:35px;
	}
	#podcast {
		padding:30px 15px;
		height:auto;
	}
	#podcast .wrap {
		max-width:100%;
		margin:0 auto;
		padding: 0;
	}
	#podcast .podlogo {
		width:90%;
		padding:10px 0;
	}	
	#podcast .one-third {
		text-align:center;
	}

	.bottom-articlegrid { display:block; margin-top:30px;}
	.bottom-articlegrid .row1, .bottom-articlegrid .row2, .bottom-articlegrid .row3, .bottom-articlegrid .row4, .bottom-articlegrid .row5, .bottom-articlegrid .row6, .bottom-articlegrid .row7, .bottom-articlegrid .row8, .bottom-articlegrid .row9, .bottom-articlegrid .row10, .bottom-articlegrid .row11, .bottom-articlegrid .row12 {
		height:108px;
		margin:25px 35px 0 0;
		border-top:1px solid #D8D8D8;
	}
	#home-features .articlegrid {
		display:block;
	}
	#homemiddlegrid { display:none; }
	.grid-article-1 .article-meta {
		padding: 0 0 15px 29px;
	}
	.bottom-articlegrid .mobiletoparticle .article-meta {
		padding: 0 0 15px 29px;
	}
	

}