/*
 *
 *
 * ADHOME Blog Style
 *
 *
 */

/* hide some of the default blog elements if we can't hook in and delete them */
body.author #banner.row,
section#author-section { display: none !important; visibility: hidden !important; }
.adhomeblog-nav {
    display: inline-block;
    float: none;
    margin: 0 20px 0 0;
    padding: 0;
    width: auto;
}
p.responsetext:nth-child(2) {  }
section.post-author.row {
	display: block;
	clear: both;
	margin: 30px 0;
	position: relative;
	padding: 30px 0;
	height: auto;
	overflow: hidden;
	background-color: #fff;
	width: 100%;
}
body .adhome-blog-listings.category .post .rightside h2.post-title a{
	overflow: visible;
}
body .row.bio p { text-align: left; }
.post a.readmore.btn { clear: both;
float: left; padding: 10px 5px; }
.post-summary img { max-width: 100%; width: 100%; height: auto; display: block; position: relative; vertical-align: middle; }
section.post-author.row h4,
section.post-author.row h4 a {
	font-weight: bold;
	font-size: 16px;
	color: #000;
	text-align: left;
	text-decoration: none;
}
.post .post-content { height: auto; overflow: hidden; clear: both; display: block; }
section.post-author.row > .row,
section.related-posts.row {  
	margin-left: 0;
	margin-right: 0;
	padding: 30px 20px;
}
section.post-author.row::before {
	content: '';
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	height: 8px;
	background-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}
section.post-author.row::after {
	content: '';
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative; 
	height: 8px;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
}
section.post-author.row > .row > .leftside { display: inline-block; max-width: 150px; float: left; vertical-align: middle; }
section.post-author.row > .row > .rightside { display: inline-block; float: right; clear: right; width: 100%; max-width: calc(100% - 150px); padding-left: 15px; }

section.post-author.row > .row > .leftside > a {
	width: 150px;
	height: 150px;
	display: block;
	overflow: hidden;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	border-radius: 75px;
}
.adhomeblog-nav a {
    color: #999;
    font-weight: 300;
    font-size: 20px;
    padding: 0 15px;
    text-align: left;
    display: inline-block;
}
.adhomeblog-nav a:hover {
    color: #555;
}
.adhomeblog-nav ul.menu > li.menu-item-has-children {
	display: block;
	width: auto;
	padding: 0;
	line-height: 32px;
	font-size: 20px;
	background-color: #ccc;
	color: #000;
	border: 1px solid #777;
	vertical-align: middle;
}
.adhomeblog-nav ul.menu > li.menu-item-has-children > a {
	text-decoration: none;
	text-align: left;
	color: #000;
}
.adhomeblog-nav ul.menu > li.menu-item-has-children > ul.submenu {  
	display: none;
	padding: 0;
	margin: 0;
	width: 250px;
	visibility: hidden;
	
}
.content .sitewidth { display: block; clear: both; margin: 50px auto; float: none; position: relative; }

.adhomeblog-nav ul.menu > li.menu-item-has-children:hover > ul.submenu {
	display: block;
	visibility: visible;
	position: absolute;
	z-index: 9;
	background-color: #fff;
	height: auto;
	margin: 0;
	padding: 0;
	height: 300px;
	overflow-y: scroll;
	border-radius: 3px;
	box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.adhomeblog-nav ul.menu > li.menu-item-has-children:hover > ul.submenu > li {
	display: block;
	clear: both;
	margin: 0;
	padding: 0;
	color: #333;
	font-size: 16px;
	text-align: left;
	color: #000;
	border-bottom: 1px solid #ddd;
	height: auto;
	overflow: hidden;
	position: relative;
}
.adhomeblog-nav ul.menu > li.menu-item-has-children:hover > ul.submenu > li:hover {
	background-color: #ccc;
}
.adhomeblog-nav ul.menu > li.menu-item-has-children:hover > ul.submenu > li a {
	font-size: 16px;
	color: #000;
	display: block;
	text-align: left;
	padding: 6px 8px;
	text-decoration: none;
}
form.postsearch {
    display: inline-block;
    margin: 0;
    padding: 0;
}
form.postsearch input[type="text"] {
    font-size: 20px;
    border: 1px solid #ddd;
    padding: 0 10px;
    line-height: 32px;
    color: #999;
}
header.blog-header.row {
    display: block;
    clear: both;
    margin: 0;
    padding: 0;
    text-align: center;
    position: relative;
}
.adhome-blog-listings {
    max-width: 800px;
    margin: 0 auto;
    float: none;
    text-align: center;
    padding-top: 0;
    padding-bottom: 20px;
}
.adhome-blog-listings .post {
    display: block;
    clear: both;
    margin: 0;
    padding: 40px 20px;
    height: auto; 
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    float: none;
}
body.author .content.row .sitewidth .author-photo {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}
.post-author.row img, 
body.author .content.row > .sitewidth .author-photo > img { margin-top: 0 !important; margin-bottom: 0 !important; }
/* body.author .content.row .authorbanner .sitewidth .author-photo img { display: none !important; visibility: hidden !important; } */
.adhome-blog-listings .post header {
    margin-bottom: 0;
}
body.author .content.row > .sitewidth { width: 100% !important; max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; }
body.author div.content.row.recent-posts { padding-bottom: 0; margin-bottom: 0; }
body.author div.content.row.recent-posts .sitewidth { margin-bottom: 0; }
body.author .content.row > .sitewidth .authorbanner .sitewidth { margin-top: 0 !important; margin-bottom: 0 !important; }
body #page.site #main .content.row .row.author-social-accounts {
	padding-top: 0; padding-bottom: 0;
	padding: 20px 0 50px 0;
	margin-bottom: 0;
}
.adhome-blog-listings .post header h2 {
    color: #3f678a;
    line-height: 120%;
    text-align: left;
    margin-top: 0;
    padding: 0;
    margin-bottom: 0;
}
.adhome-blog-listings .post-content a.understrap-read-more-link {
	display: none !important;
	visibility: hidden !important;
}
.adhome-blog-listings .post header .post-meta {
    text-align: left;
    font-size: 18px;
    color: #999;
}
.adhome-blog-listings.category .post .rightside { height: auto; overflow: hidden; }
.adhome-blog-listings .post .post-content p {
    text-align: left;
    font-size: 20px;
    color: #999;
    line-height: 140%;
    font-weight: light;
}
.adhome-blog-listings .post .post-content a.cat-button {
    text-align: left;
    font-size: 22px;
    font-weight: 400;
}
.adhome-blog-listings .post .leftside img {
    background-color: #eee;
    vertical-align: middle;
    width: 90%;
    max-width: 500px;
    height: auto;
    margin-bottom: 0;
    max-height: 650px;
    display: block;
}
form.postsearch input[type="submit"] {
    background-color: #1f2640;
    color: #fff;
    text-transform: uppercase;
    line-height: 32px;
    padding: 0 10px;
    border-radius: 0px;
    margin-left: 0px;
    border: 1px solid #000;
    font-weight: 600;
    font-size: 20px;
}
.adhome-blog-listings .post p a.moretag, body.category #below-hero, body.author #below-hero, body.archive #below-hero, body.blog #below-hero { display: none !important; visibility: hidden !important; }
body.author .author-header h1, body.author .row > h2,
body.author .row.recent-posts h2 { color: #1E2171; text-transform: uppercase; font-weight: 500; letter-spacing: 1px; }
body.author #main .content .row.recent-posts h2 { text-align: left; font-size: 28px; margin-top: 50px; }
body.single-post #main .entry-content.content .related-posts h2 {
	margin-top: 0; border-top: 0; padding-top: 0;
}
.post .post-content a.readmore { font-weight: 500; }
.post .post-content a.readmore img { margin-top: 5px; filter: invert(8%) sepia(73%) saturate(3861%) hue-rotate(238deg) brightness(99%) contrast(96%);

  }
body #page.site #main .content .row.author-social-accounts span {
	color: #3f678a; font-weight: 500; letter-spacing: 1px;
}
body.single-post #main .entry-content.content .related-posts .post-content, 
body.single-post #main .entry-content.content .related-posts .post-content > * {
	font-size: 14px;
}
body #page.site .adhome-blog-listings.category .post .leftside { background-image: none !important; } 
.adhome-blog-listings .post .leftside a { min-height: 150px; background-image: none; display: block; }
.adhome-blog-listings .post .leftside a img { opacity: 1; }
section.loadposts { padding-top: 0; text-align: center; }
section.loadposts a {
	display: inline-block;
	margin: 0 auto;
	float: none;
	clear: both;
	padding: 0 20px;
	background-color: #777;
	color: #fff;
	border: 0;
	line-height: 50px;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity;
}
.adhome-blog-listings .post h2.post-title::after {
	position: relative;
	margin-bottom: 10px;
}
section.loadposts a:hover {
	background-color: #000;
}
section.loadposts.loading a#loading,
section.loadposts .loader {
	opacity: 0;
	display: none;
	visibility: hidden;
}
section.loadposts.loading .loader {
	display: block;
	visibility: visible;
	margin: 0 auto 20px auto;
	float: none;
	clear: both;
	position: relative;
	height: 50px;
	width: 50px;
	max-width: 50px;
	min-width: 50px;
}
body.blog .entry-content {
	margin-top: 0;
}
body.blog .blogbanner {
	display: block;
	clear: both;
	margin: 0 0 40px 0;
	padding: 40px 0;
	height: auto;
	min-height: 150px;
	background-color: #f8f8ff;
}
body.blog .blogbanner h1 {
	font-size: 50px;
	text-transform: uppercase;
}
section.loadposts.loading .loader {
	background-image: url(spinner.svg);
	animation: loadingAnimation 1.2s ease;
	animation-iteration-count: 10;
	opacity: 1;
}
.entry-content .post-summary.row {
	display: block;
	clear: both;
	margin: 0 auto 30px auto;
	vertical-align: middle;
	padding: 0 0 20px 0;
	position: relative;
	border-bottom: 1px solid #777;
}
@keyframes loadingAnimation {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(358deg); }
}

p.results {  
	text-align: center;
	font-style: italic;
}
p.results::before,
p.results::after {
	content: '';
	display: inline-block;
	clear: none;
	float: none;
	width: auto;
	max-width: 15%;
	margin: 12px 1%;
	height: 2px;
	background-color: #ccc;
}
div#blogbanner.blogbanner {
	display: block;
	clear: both;
	margin: 0;
	padding: 100px 0;
	background-color: #999;
	position: relative;
}
.blogbanner h1 { text-align: center; font-weight: bold; font-size: 48px; margin: 0 auto; display: block; clear: both; }
.adhomeblog-nav { margin-bottom: 30px; }
.adhomeblog-nav a { font-family: 'Oswald', Arial, sans-serif; color: #000; }
body #main .authorbanner {
	height: 250px; display: block; width: 100%; clear: both; background-color: #d8e9f3;	overflow: visible;
	padding-bottom: 0; padding-top: 0;		
}		
body .adhomeblog-nav {  }
body .adhomeblog-nav > a { color: #000; text-decoration: underline; }
body #main .authorbanner .author-photo {
	margin: 0 auto;
	display: block;
	position: relative;
	float: none;
	clear: both;
	width: 250px;
	height: 250px;
	border-radius: 125px;
	overflow: hidden;
	top: 125px;			
}
.authorbanner .author-photo img {
	width: 250px;
	height: 250px;
	display: block;
	margin: 0;
	padding: 0;			
}
#main .author-header.row {
	text-align: center;
	padding-top: 130px;			
}
#main .author-header.row .sitewidth {
	margin-bottom: 0;			
}
#main .author-social-accounts.row {
	padding-bottom: 50px;
	border-bottom: 1px solid #ddd;
	margin-bottom: 50px;
	display: block;
	clear: both;
	position: relative;			
}
#main .content > .sitewidth {
	margin-top: 0;			
}
#main .content > .sitewidth > h2 {
	text-align: center;	
	text-transform: uppercase;		
}
#main .author-posts.row {
	padding-bottom: 50px;
	display: block;
	text-align: center;			
}
#main .author-posts.row .adhome-blog-listings .row.post {
	float: none;
}
#main .author-posts.row .adhome-blog-listings .post .leftside a {
	min-height: 150px;	
	height: auto;		
}
#main .author-posts.row .adhome-blog-listings .post .leftside img {
	background-color: #d3d3d3;			
}
#main .author-social-accounts {
	text-align: center;			
}
#main .author-social-accounts a {
	margin: 0 5px;
	float: none;
	clear: none;
	width: 40px;
	height: 40px;
	display: inline-block;		
	opacity: 0.6;
	transition: all 0.2s ease;	
}
#main .author-social-accounts a:hover {
	opacity: 1;			
}
#main .author-social-accounts a img {
	height: 30px;
	width: auto !important;
	display: block;	
	margin-top: 0 !important;
	margin-bottom: 0 !important;		
}

@media All and (min-width: 850px) {

    .adhome-blog-listings .post header h2 {
        text-align: left;
        color: #333;
        margin-bottom: 10px;
    }
    body.author .adhome-blog-listings { width: 100%; max-width: 100%; padding-top: 30px; padding-bottom: 50px; height: auto; display: block; overflow: hidden; text-align: center; }
    body.author .adhome-blog-listings .post {
        float: none;
        clear: none;
        margin-left: 0;
        margin-right: 0;
        display: inline-block;
        max-width: 32%;
    }
    body.author .adhome-blog-listings .post:nth-child(2) {
		  margin-left: 2%;
		  margin-right: 2%;    
    }
    .adhome-blog-listings .post header h2 a { color: #333; }
    .blog p.results { margin: 0 auto; padding: 20px 0; }
    .adhome-blog-listings .post .leftside {
        width: 30%;
        float: left;
    }
    .adhome-blog-listings .post .rightside {
        width: 65%;
        float: right;
    }
    .adhome-blog-listings.category { max-width: 1050px; margin-bottom: 50px; }
    .adhome-blog-listings.category .post {
        width: auto;
        max-width: 31%;
        vertical-align: top;
        margin: 0 1% 20px 1%;
        float: none;
        padding: 0;
        clear: none;
        border-bottom: 0;
        display: inline-block;
        background-color: #f1f1f1;
    }
    .adhome-blog-listings.category .post .leftside { width: 100%; clear: both; display: block; height: auto; overflow: hidden; }
    .adhome-blog-listings.category .post .leftside > a { max-height: 280px; width: 100%; overflow: hidden; display: block; }
    .adhome-blog-listings.category .post .leftside > a img { max-width: 100%; width: 100%; }
    .adhome-blog-listings.category .post .rightside { width: 100%; padding: 20px; clear: both; float: none; display: block; }
    .adhome-blog-listings.category .post .rightside h2.post-title a { font-size: 20px; text-transform: none; color: #555; font-weight: 500; line-height: 110%;
    }
    .adhome-blog-listings.category .post .rightside h2.post-title a, .adhome-blog-listings.category .post .rightside h2.post-title { line-height: 130%; display: block; position: relative; height: auto; overflow: visible; }
    .adhome-blog-listings.category .post header .post-meta,
    .adhome-blog-listings.category .post .rightside h2.post-title { display: inline-block; clear: none; float: left; width: auto; }
    .adhome-blog-listings.category .post .rightside h2.post-title a .post-meta { font-size: 14px; font-weight: 300; margin-top: 8px; display: block; clear: both; width: 100%; float: left; }
    .adhome-blog-listings.category .post .rightside .post-content > * { color: #555; font-size: 14px; }
    body.author .author-photo { float: left; clear: left; display: inline-block; margin-right: 20px; background-color: #f1f1f1; }
    body.author .row-header h1 { text-transform: none; float: left; display: inline-block; color: #3f678a; margin-top: 0; }
    .adhome-blog-listings .rightside h2 a:hover { text-decoration: none; }
	.entry-content .post-summary.row > .leftside {
		width: 50%;
		float: none;
		display: inline-block;
		position: relative;
		vertical-align: middle;	
		box-sizing: border-box;
		padding-right: 20px;
		font-size: 24px;
	}
	.entry-content .post-summary.row > .rightside {
		width: 50%;
		float: none;
		vertical-align: middle;
		display: inline-block;
		position: relative;	
	}
	body.blog .entry-content > .sitewidth { display: inline-block; height: auto; }
	body.blog #page.site #main .entry-content .sitewidth { padding-top: 0;  }
	body.author .adhome-blog-listings { max-width: 930px; box-sizing: border-box; }
	body.author #page.site .content.row .sitewidth { max-width: 930px; }
}
body #main div.row.authorbanner .sitewidth { margin-top: 0; margin-bottom: 0; }
.authorbanner .author-photo img { height: 250px; width: auto;  }
body.author #page.site .content.row .sitewidth { max-width: 930px; box-sizing: border-box; }
body.author #page.site .content.row .author-bio p { text-align: left; font-size: 18px; line-height: 130%; color: #777; }
body #main .author-social-accounts { text-align: left; }
body.author #main .author-social-accounts a { vertical-align: middle; padding-top: 10px; box-sizing: border-box; background-color: #3f678b; opacity: 1; }
body.author #main .author-social-accounts a img { margin: 10px auto 0 auto; float: none; display: block; height: 22px; position: relative; filter: invert(100%) sepia(0%) saturate(7471%) hue-rotate(322deg) brightness(100%) contrast(110%); vertical-align: middle; }
body.single-post figure > img {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	position: relative;
}

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

	body #main div.row.authorbanner { height: 150px; }
	body #main div.row.authorbanner .author-photo { top: 50px; }
	
	body #page div#blogbanner.blogbanner {
		margin-top: 0;
		padding: 95px 0 30px 0;
	}
	body #page header.site-header .logo {
		padding-top: 15px;	
	}
	body.single-post #page .content .sitewidth {
		margin-top: 0; margin-bottom: 20px;
		padding-left: 0; padding-right: 0;
	}
	body.single-post figure.keywords,
	body.single-post figure {  
		margin: 20px auto; 
		padding: 0;
		width: 100%;
		display: block;	
	}
	body.single-post figure.keywords img,
	body.single-post figure img {
		width: 100%;
		height: auto;
		margin: 0;
		padding: 0;
		display: block;
	}
	body.single-post section.post-author.row {
		margin-bottom: 0;
		padding-bottom: 0;	
	}
	body.single-post section.related-posts.row,
	body.blog header.blog-header.row {
		padding: 0;	
	}
	body.blog .adhomeblog-nav {
		padding-left: 20px;
		padding-right: 20px;
		width: 100%;
		display: block;
		clear: both;	
	}
	body.blog .adhomeblog-nav a {
		background-color: #eee;
		font-weight: bold;
		margin: 0 6px 6px 6px;
		float:none;	
	}
	body.single-post .adhome-blog-listings .post .leftside a {
		min-height: 100px;	
		height: auto;
	}
	body.single-post .adhome-blog-listings .post .leftside img,
	body.blog #page.site .adhome-blog-listings .post .leftside img {
		width: 100%; 
		height: auto;
		margin: 0;
		padding: 0;	
		background-color: transparent;
	}
	body.single-post #page #main .entry-content.content {
		padding-top: 20px;	
	}
	body.single-post .entry-content .post-summary.row {
		display: block; 
		clear: both;
		width: 100%;
		margin: 80px 0 0 0;
		padding: 0;	
	}
	body.single-post .entry-content p.breadcrumbs {  
		display: block;
		position: absolute;
		top: -100px;
		left: 0;	
	}
	body section.post-author.row > .row > .rightside,
	body section.post-author.row > .row > .leftside {
		width: 100%;
		max-width: 100%;
		clear: both;
		margin: 0;
		padding: 0;
		position:relative;
		
	}
	body section.post-author.row > .row > .leftside > a { margin-left: auto; margin-right: auto; float: none; }
	body #page div#blogbanner.blogbanner h1.blog-title { font-size: 30px; padding-left: 20px; padding-right: 20px; }
}
