/*

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:hover, .read-more-button:visited {
	font-family: alternate-gothic-no-1-d, sans-serif;
	font-size:13px;
	color:#727272;
	text-decoration:none;
	text-transform:uppercase;
}

/* .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;
}
/* change the top grid on team pages to go all across / remove right side col */
.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;
}

#SDS_Mid_1, 
#SDS_Mid_2 {
	height: auto !important;
}

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

	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:275px; /* width:225px; */
	height:135px;
	border: 1px solid #f2f2f2;
	box-shadow: 1px 2px 3px #f3f3f3;
	position:relative;
}

.topic-article:nth-of-type(1) {
	height:285px; /* height:253px; */
}
.topic-article-image {
	width:275px;
	height:155px;
	/* width:225px;
	height:127px; */
	margin:-1px;
}
.topic-article .headline {
	padding:15px;
	font-size:18px;
}
.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, #mb {
	background-image: url(../jpg/blue.jpg);
	background-position:center center;
	background-size:cover;
	background-repeat:no-repeat;	
	height:271px;
}
#mb {
	height:auto;
	margin-bottom:60px;
}
.mb-trophy img { width:100px; }
.mb-trophy, .mb-title { float:left;}
.mb-title { color:#fff; padding-top:10px; margin-left:12px;}

.mb-headline {
	font-family: abolition, sans-serif;
	font-size:48px;
	letter-spacing:1px;
}
.mb-tagline {
	font-family: alternate-gothic-no-1-d, sans-serif;
	font-size:24px;
	letter-spacing: 4px;
	line-height:35px;
	text-transform:uppercase;
}
.mb-description {
	clear:left;
	margin-top:25px;
	padding-right:25px;
	font-family: alternate-gothic-no-1-d, sans-serif;
	color:#fff;
	font-size:18px;
	line-height:26px;
}
.mb-link, .mb-link a, .mb-link a:visited {
	font-family: abolition, sans-serif;
    font-size: 20px;
    letter-spacing: .72px;
    color:#fff;
    margin-top:25px;
	text-decoration:none;	
}
.mb-link a:hover {
	text-decoration:underline;
	color:#fff;
}
#mb .section-title {
	font-size:26px;
	color:#fff;
	margin-bottom:30px;
}
#mb .thread {
	margin-bottom:12px;
	color:#fff;
}
#mb .thread a, #mb .thread a:visited, #mb .thread a:hover {
	color:#fff;
	font-size:20px;
}
#mb .thread a:hover {
	text-decoration:underline;
}
#mb .thread .num-entries {
	font-family: alternate-gothic-no-1-d, sans-serif;
    font-size: 14px;
    letter-spacing: .25px;
    line-height: 20px;
    text-transform: uppercase;
    color:#838cfb;
}

#podcast .wrap, #mb .wrap {
	max-width:1050px;
	margin:0 auto;
	padding:50px 0;
}
#mb .wrap { max-width:1160px;}
#podcast .podlogo {
	width:100%;
}
.podlink {
	height:40px;
	margin-top:25px;
}
.podlink1 {
	padding-right:7px;
}
.productrow {
	margin-top:50px;
	height:300px;
			margin-bottom:30px;

}
.productrow img {
	max-width:100%;
}

.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;
}

#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;
	}	
	#mb {
		padding:0 15px;
	}
}
@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;
	}
	.mb-trophy img { width:80px; }
	.mb-headline {
		font-size:39px;
		letter-spacing:1px;
	}
	.mb-tagline {
		font-size:20px;
		letter-spacing: 3px;
		line-height:30px;
	}
	.mb-description {
		margin-top:25px;
		padding-right:15px;
		font-size:16px;
		line-height:22px;
	}
	#mb .thread a, #mb .thread a:visited, #mb .thread a:hover {
		font-size:17px;
	}
	#mb .thread .num-entries {
	    font-size: 13px;
	    line-height: 18px;
	}

}
@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;
	}
	.productrow {
		height: auto;
		padding: 0 40px;
	}

	#homefeatured, #homefeatured .articlegrid {
		display:block;
	}
	.article-row1, .article-row2, .article-row3 {
		height:auto;
	}

	#homefeatured article {
		height:108px;
		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;
	}

	#mb {
		height:auto;
		margin-bottom:60px;
	}
	.mb-description, .mb-link { display:none; }
	#mb .section-title {
		margin-bottom:10px;
	}
	#mb .thread a, #mb .thread a:visited, #mb .thread a:hover {
		font-size:16px;
	}
	#mb .thread .num-entries {
	    font-size: 12px;
	    line-height: 16px;
	}
	#homemiddlegrid { display:none; }

	#SDS_Mid_1, 
	#SDS_Mid_2 {
		align-items: center;
    	display: flex;
	}

}