/*
* General Post Style using for all with naming class entry
*/
.entry-title{
   	font-size: 14px;
    font-weight: 700;
    font-family: $font-family-second;
    margin: 0 ;
    height: 22px;
    overflow: hidden;
    @media (max-width: $screen-xs){
      	font-size: 18px;
    }
	a{
		color: #222;
		&:hover{
			color: $theme-color;
		}
	}
}
.layout-title{
	font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: inherit;
}
.entry-create{	
	font-size: 11px;
	color: $theme-color;
	text-transform: uppercase;
	a{
		color: $theme-color;
		&:hover{
			text-decoration: underline;
		}
	}
}
.entry-link{
	margin-top: 20px;
	.readmore {
		color: $theme-color;
		text-transform: capitalize;
		font-weight: 500;
		 font-size: $font-size-base - 2;
		&:hover{
			color: #000;
		}
	}
}
.meta-info{
	font-size: 12px;
	margin-bottom: 20px;
	color: #aaa;
	position: relative;
	float: left;
	width: 100%;
	@media (max-width: 768px){
	   font-size: 12px;
	   float: none;
	   span {
		   float: none !important;
		   display: inline-block;
	   }
    }
	&:after{
		position: absolute;
		bottom: -10px;
		left: 0;
		content: "";
		width: 30px;
		height: 2px;
		background: $theme-color;
	}
	i {
		font-size: 11px;
		line-height: 14px;
		margin-right: 3px;
	}
	.category {
		margin-right: 15px;
	}
	a {
		color: #aaa;
	}
	span {
		padding: 0 7px;
		border-right: 1px solid #aaa;
		float: left;
		@media (max-width: $screen-xs){
	       padding: 0 14px;
	    }
		&:first-child{
			padding-left: 0;
			@media (max-width: $screen-xs){
		       padding-left: 0;
		    }
		}
		&:last-child{
			padding-right: 0;
			border-right: 0;
		}
		&.author a {
			color: $theme-color;
			text-transform: capitalize;
		}
	}
}

.entry-vote{
	z-index: 1;
	display: table;
	text-align: center;
	top: 20px;
	position: absolute;
	background: rgba($black,.5);
	@include square(44px);
	right: 20px;
	left: auto;
	.entry-vote-inner{
		color: $white;
		display: table-cell;
		vertical-align: middle;
		font-weight: $headings-font-weight;
	}
	&.vote-perfect{
		.entry-vote-inner{
			color: $red;
		}
	}
	&.vote-good{
		.entry-vote-inner{
			color: $yellow;
		}
	}
	&.vote-average{
		.entry-vote-inner{
			color: #91e536;
		}
	}
	&.vote-bad{
		.entry-vote-inner{
			color: $orange;
		}
	}
	&.vote-poor{
		.entry-vote-inner{
			color: $green;
		}
	}
}
.type-post{
	margin-bottom: $post-type-margin;
	overflow: hidden;
}
.blog-title{
	margin-bottom: $theme-margin;
}

.entry-tags-list{
	a{
		padding: 3px 10px;
		color: #fff;
		background: $theme-color-third;
		margin-right: 5px;
		margin-bottom: 5px;
		display: inline-block;
		&:hover{
			color: #fff;
			text-decoration: none;
		}
	}
}
.readmore{
	margin-top: 20px;
	a {
		border: 1px solid #a1a1a1;
		line-height: 32px;
		font-size: 11px;
		text-transform: uppercase;
		color: #17181a;
		display: inline-block;
		padding: 0 30px;
		font-weight: 700;
		letter-spacing: 1px;
		&:hover{
			color: $theme-color;
			border-color: $theme-color;
		}
	}
}
//commentform
#commentform{
	.form-control{
		border:1px solid #d1d1d1;
	    color: #444444;
	    font-size: 12px;
	    padding: 15px 30px;
	}
	.form-group{
		margin: 0 0 $theme-margin;
	}
}

/*
* using for new, magazine
*/
.post-title{
	@include font-size(font-size,$entry-title-font-size);
}
.post-thumb{
	position: relative;
}
.blog-meta{
	top: 0;
	position: absolute;
	right: $entry-meta-position;
	left: auto;
}
/** Post blog style **/

/* Post type: Grid */
.post-grid{
	margin-bottom: 30px;
	position: relative;;
	float: left;
	.entry-meta{
		margin:0;
		padding: 19px 0 12px;
		content: "";
		text-align: left;
		.fa,.icon{
			margin-right: 8px;
		}
		span{
			margin-right: 2px;
		}
	}
	.entry-description {
	    max-height: 95px;
	    overflow: hidden;
		float: left;
		@media (max-width: 768px){
			float: none;
		 }
		a {
			margin-left: 10px;
		}
	}

}

.layout-blog {
	.row {
		> .col-md-4:nth-child(3n+1) {
			clear: both;
		}
		> .col-md-3:nth-child(4n+1) {
			clear: both;
		}
		> .col-md-6:nth-child(2n+1) {
			clear: both;
		}
	}
}

/// style posts
.post{
	.entry-thumb {
		position: relative;
	}
	&.sticky{
		border: 30px solid $theme-color;
	}
}

.site-main.layout-blog,
.site-content.single-post {
	padding: 15px;
	background: #fafafa;
}
.site-main.layout-blog {
	.post-list .entry-content.no-thumb {
	    padding: 25px;
	}
}
.site-content.single-post {
	.entry-single {
		padding: 20px;
		background: #fff;
	}
	.post-navigation {
		padding: 20px;
		@media (max-width: $screen-sm){
			padding: 20px 5px;
			margin-bottom: 20px;
		}
	}
	#comments {
		padding: 0 20px;
	}
	.related-posts {
		padding: 40px 20px 0;
		@media (max-width: $screen-sm){
			padding-top: 20px;
		}
		.widget {
			margin-bottom: 0;
		}
	}
}
/* Post type: List */
.layout-blog{
	.post-list{
		border:none;
		> article {
			margin-bottom: 0;
			&.sticky ,&.tag-sticky-2 {
				border:1px solid $theme-color;
				.entry-content{
					padding: 25px;
				}
			}
		}
	}
}
.post-list{
	list-style: none;
	padding:0;
	margin:0 0 15px;
	background: #fff;
	.entry-thumb{
		float: left;
		max-width: 370px;
	}
	.entry-title{
		font-size: 17px;
		font-weight: 700;
		height: auto;
	}
	.entry-create{
		font-size: 13px;
		text-transform: uppercase;
	}
	.entry-meta{
		padding:0;
		margin-bottom: 10px;
	}
	.readmore{
		margin-bottom: 9%;
	}
	.meta-info{
		padding-left: 0;
		padding-right: 0;
		background-color: transparent;

	}
	.entry-content{
		padding: 25px;
		display: table-cell;
		&.no-thumb {
			padding: 25px 25px 25px 0;
		}
	}
}

/* Post type: By Category */
.posts-grid-category{
	overflow: hidden;
}
.category-posts{
	position: relative;
	&::after{
		content: "";
		top: 20px;
		position: absolute;
		right: 0;
		left: auto;
		@include size(1px,1000px);
		background: $border-color;
	}
	.post{
		border-bottom: 1px solid $border-color;
	}
	.category-posts-label{
		padding: 1px 3px;
		@include border-radius(0);
		background: $theme-color;
		font-weight: $category-posts-label-font-weight;
		@include font-size(font-size,$category-posts-label-font-size);
		text-transform: $category-posts-label-transform;
		a{
			color: $category-posts-label-color;
		}
	}
	.entry-meta{
		&::after{
			display: none;
		}
	}
	.posts-more{
		.post{
			&:last-child{
				border: 0px;
			}
		}
		.entry-title{
			@include font-size(font-size,$category-posts-subtitle-font-size);
			a{
				color: $gray-light;
				&:hover{
					color: $theme-color;
				}
			}
		}
	}
}

/*------------------------------------*\
    Post detail
\*------------------------------------*/
.sharebox{
	margin-bottom: $post-share-margin;
	.sharebox-title{
		margin: $post-share-title-margin;
	}
}

.social-networks{
	li{
		padding-left: 10px;
		padding-right: 10px;
		&:last-child{
			a{
				margin-right: 0;
			}
		}
		a{
			font-size: 14px;
			&:hover{
				color: $theme-color;
			}
		}
	}
}
.tag-links, 
.post-share {
	margin-bottom: 10px;
	span i {
		margin-right: 5px;
	}
}
/*------------------------------------*\
    Comment List
\*------------------------------------*/
.comment-list{
	padding: 0;
	margin: 0;
	list-style: none;
	.comment-box{
		background-color: #f9f9f9;
		padding: 20px 30px;
		width: 10000px;
		.comment-author{
			padding-bottom: 10px;
			margin-bottom: 10px;
			border-bottom: 1px solid $border-color;
		}
	}
	div.avatar{
		min-width: 80px;
		padding-right: $theme-margin;
		img{
			@include border-radius(50%);
			width: 50px;
			height: 50px;
		}
	}
	strong{
		font-weight: 600;
	}
	.date{
		color: $theme-color;
	}
	.comment-reply-link{
		font-size: 14px;
		font-weight: 400;
		padding: 5px 20px;
		color: #fff;
		background: $theme-color;
		&:hover{
			text-decoration: none;
		}
	}
	li{
		list-style: none;
	}
	.the-comment{
		overflow: hidden;
		margin: 0 0 ($theme-margin);
	}
}
.site-content.single-post .comment-list .comment-box {
	background: #fff;
}
.commentform {
	.title{
		font-weight: 600;
		font-size: 20px;
		margin: 0  0 ($theme-margin / 2);
	}
}

/*------------------------------------*\
    Single post
\*------------------------------------*/
.entry-single{
	.entry-title{
		font-size: 24px;
		height: auto;
		padding-bottom: 10px;
		margin-bottom: 0;
		margin-top: 0;
		clear: both;
	}.entry-thumb {
		margin-bottom: 15px;
	}
	.meta-info {
		margin-bottom: 30px;
	}
	.entry-meta{
		font-size: 13px;
		color: #666;
		margin-bottom: 15px;
		.meta-sep{
			margin: 0 5px;
		}
		.entry-date{
			color: $theme-color;
			 text-transform: uppercase;;
		}
		i {
			margin-right: 5px;
		}
		a {
			color: #666;
			&:hover{
				text-decoration: underline;
				color: $theme-color;
			}
		}
	}
	.tbay-social-share{
		margin:($theme-margin / 2) 0 0;
		a{
			margin: 0 $theme-margin 0 0;
		}
	}
	#comments{
		padding:30px 20px;
		margin: 45px 0 0;
		border-top:1px solid $border-color;
	}
}
#comments{
	#reply-title{
		margin: 0;
	}
	.comments-title{
		font-weight: 600;
		font-size: 22px;
		margin: 0 0 $theme-margin;
	}
}
//post-navigation
.post-navigation{
	padding: 30px 0;
	border-top: 1px solid $border-color;
	border-bottom: 1px solid $border-color;
	margin-bottom: 40px;
	.screen-reader-text{
		display: none;
	}
	.nav-links{
		overflow: hidden;
		> *{
			width: 45%;
			float: left;
			&.nav-next{
				float: right;
				text-align: right;
			}
			@media (max-width: $screen-sm){
				&.nav-previous {
					margin-bottom: 20px;
				}
				&.nav-next{
					float: left;
					text-align: left;
				}
			}
		}
		.meta-nav{
			display: block;
			text-transform: uppercase;
			color: #999;
			letter-spacing: 1px;
			font-size: 12px;
			font-weight: 300;
			position: relative;
		}
	} 
	.post-title {
		font-weight: 700;
		font-size: 16px;
	}
}
//related-posts
.related-posts{
	padding:50px 0 0;
	margin: 0;
	.widget-title{
		text-transform: uppercase;
	}
}

/*------------------------------------*\
    Blog Page Default
\*------------------------------------*/
.post-area{
	.post-list{
		.entry-list{
			margin-bottom: 0;
		}
	}
	.sticky{
		margin-top: 20px;
		padding: 20px;
		border: 2px solid $theme-color;
	}
	.post-link{
		@include font-size(font-size,18px);
		display: block;
		padding: 17px 27px;
		min-height: 60px;
		color: $white;
		float: left;
    	@include size(100%,auto);
    	background: $gray-darker;
	}
	.entry-meta{
		margin: 8px 0 12px 0;
		font-size: 12px;
		font-weight: 300;
		&,a{
			color: $theme-color;
		}
	}
	.entry-content{
		.ratings{
			.meta{
				color: inherit;
				font-size: inherit;
			}
			.rating {
				a {
					text-indent: -999em;
				}
			}
		}
	}
	.author-info{
		margin-bottom: $blog-content-margin;
		.author-about-container .avatar-img {
			img {
				@include border-radius(50%);
				margin-top: 20px;
				margin-right: 20px;
			}
		}
		.author-title {
			text-transform: uppercase;
			font-size: 14px;
			font-weight: 500;
		}
	}	
}
.blog-post-icon{
	display: table;
	color: $white;
	text-align: center;
	position: absolute;
	top: 0;
	z-index: 1;
	background: $theme-color;
	@include opacity(0.9);
	left: 0;
	right: auto;
	@include square(50px);
	.fa{
		display: table-cell;
		vertical-align: middle;
		font-size: 22px;
	}
}

/*------------------------------------*\
    Blog Masonry Page
\*------------------------------------*/
.blog-masonry{
	.entry-thumb{
		margin-bottom: 0;
	}
}
// post gallery
.post{
	.gallery {
		.gallery-item{
			@media(min-width:480px){
				width: 25%;
				float: left;
			}
			position: relative;
			margin: 0 0 15px;
			figcaption {
				position: absolute;
				left: 0;
				bottom: 0;
				width: 100%;
				@include opacity(0);
				z-index: 9;
				color: #fff;
				background: rgba(0,0,0,0.7);
				padding: 15px;
			}
			&:hover{
				figcaption{
					@include opacity(1);
				}
			}
		}
	}
}
.single-post{
	.gallery{
		overflow: hidden;
	}
}
.page-links{
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    padding: 15px 0 ;
    margin:15px 0;
    display: block;
    > a,
    > span:not(.page-links-title){
        padding: 10px 15px;
        border:1px solid $border-color;
        line-height: 1;
        background: #fff;
        display: inline-block;
        margin: 0 2px;
    }
    > span:not(.page-links-title){
    	background: $theme-color  none repeat scroll 0 0;
        border-color: $theme-color ;
        color: #ffffff;
    }
    a{
        color: $link-color;
        cursor: pointer;
        &:hover{
            background: $theme-color  none repeat scroll 0 0;
            border-color: $theme-color ;
            color: #ffffff;
            text-decoration: none;
        }
    }
}

article {
	&.no-results {
		h2 span {
			margin-right: 10px;
		}
		.input-group-btn {
			color: #fff;
			background-color: $theme-color;
			border-color: $theme-color;
			text-transform: none;
			font-weight: bold;
			padding: 4px 10px 3px;
			font-size: 13px;
			outline: none;
			box-shadow: none !important;
			border: 0 !important;
			i {
				color: #fff;
			}
		}
	}
}