

/* ====================== [ Start Blog ] ====================== */

.blog-grid{
	position: relative;

	.item{

		.post-img{

			.img{
				overflow: hidden;
			}

			&:hover{

				img{
					transform: scale(1.1,1.1);
				}
			}

			img{
				transition: all .5s;
			}
		}

		.cont{
			position: relative;
			padding: 40px 30px 0;
			width: 92%;
			margin-left: 8%;
			margin-top: -40px;
			background: #fff;
		}

		.info{
			margin-bottom: 15px;

			a{
				color: #777;
				font-size: 11px;
				text-transform: uppercase;
				font-weight: 500;
				letter-spacing: 1px;
				margin-right: 10px;

				&:last-of-type{
					margin-right: 0;
				}

				i{
					margin-right: 2px;
				}
			}

			.tag{
				color: $main-color;
				font-weight: 600;
				float: right;
			}
		}

		h5{
			font-size: 17px;
			line-height: 1.7;
			margin-bottom: 15px;
		}

		.more{
			color: $main-color;
			font-size: 16px;
			text-transform: uppercase;
			letter-spacing: 1px;
			border-bottom: 1px solid $main-color;
			transition: all .2s;

			&:hover{
				border-color: transparent;
			}
		}
	}

	&.center{

		.item{
			text-align: center;

			.cont{
				margin-left: 4%;
				padding: 40px;

				h5{
					font-size: 21px;
				}
			}
		}
	}
}

.blog-pg{

	.posts{

		.item{

			.img{
				position: relative;

				.info{
					position: absolute;
					right: 0;
					top: 0;
					padding: 15px;
					background: #fff;

					.date{
						text-align: center;
						color: $main-color;

						.num{
							display: block;
							font-size: 30px;
							font-weight: 700;
							margin-bottom: 10px;
							padding-bottom: 10px;
							position: relative;

							&:after{
								content: '';
								width: 30px;
								height: 1px;
								background: #eee;
								position: absolute;
								bottom: 0;
								left: calc(50% - 15px);
							}
						}

						h5{
							font-size: 14px;
							text-transform: uppercase;
							letter-spacing: 2px;
						}
					}
				}
			}

			.content{
				padding-top: 25px;

				.tags{
					margin-bottom: 10px;

					a{
						font-size: 12px;
						font-weight: 500;
						color: $main-color;
						padding-right: 20px;
						position: relative;

						&:after{
							content: '';
							width: 8px;
							height: 2px;
							background: #eee;
							position: absolute;
							right: 4px;
							top: 50%;
						}

						&:last-of-type{
							padding-right: 0;

							&:after{
								display: none;
							}
						}
					}
				}

				h4{
					font-weight: 700;
					line-height: 1.6;
					margin-bottom: 5px;
				}

				.more{
					margin-top: 20px;
					font-size: 12px;
					font-weight: 500;
					text-transform: uppercase;
					letter-spacing: 2px;
					padding-left: 60px;
					position: relative;
					transition: all .5s;

					&:after{
						content: '';
						width: 50px;
						height: 1px;
						background: #090909;
						position: absolute;
						left: 0px;
						top: 50%;
						transition: all .5s;
					}

					&:hover{
						padding-left: 40px;

						&:after{
							width: 30px;
						}
					}
				}
			}
		}

		.pagination{
			margin: 80px auto 0;
			width: max-content;
			text-align: center;

			span{
				text-align: center;
				margin: 0 2px;

				a{
					width: 50px;
					height: 50px;
					line-height: 50px;
					border: 1px solid #eee;
					font-size: 18px;
				}

				&.active{

					a{
						border-color: $main-color;
						color: $main-color;
					}
				}
			}
		}
	}

	&.single{

		.post{

			.title-head{
				text-align: center;
				margin-bottom: 50px;

				h2{
					margin-bottom: 10px;
				}

				a{
					font-size: 12px;
					font-weight: 500;
					letter-spacing: 2px;
					text-transform: uppercase;
					margin: 0 10px;
				}
			}

			.main-img{
				
				.simpleParallax{
					height: 70vh;
					max-height: 600px;
				}

				img{
					width: 100%;
					height: 100%;
					object-fit: cover;
					object-position: center center;
				}
			}

			.content{

				p{
					color: #555;
					font-size: 16px;
					font-family: inherit;
					margin: 30px 0;
				}

				ul{

					li{
						margin: 10px 0;

						span{
							margin-right: 10px;
							font-weight: 500;
							font-size: 13px;
						}
					}
				}

				.quotes{
					background: #fafafa;
					padding: 30px;
					margin: 30px 0;
					
					p{
						color: #111;
						font-size: 18px;
						font-style: italic;
					}
				}

				.spacial{

					p{
						color: #111;
						font-size: 18px;
						font-weight: 500;
					}
				}

				.share-info{
					margin-top: 20px;
					padding-top: 10px;
					border-top: 1px solid #999;
					display: flex;

					.social{
						
						a{
							font-size: 13px;
							margin-right: 20px;
						}
					}

					.tags{
						margin-left: auto;

						a{
							font-size: 12px;
							margin: 0 10px;
						}
					}
				}
			}

			.author{
				padding: 30px;
				margin-top: 40px;
				background: #fafafa;
				
				.author-img{
					display: table-cell;
					vertical-align: middle;
					width: 140px;
				}

				.info{
					display: table-cell;
					padding-left: 40px;

					h6{
						margin-bottom: 10px;
						font-size: 15px;

						span{
							font-weight: 700;
							text-transform: uppercase;
							margin-right: 10px;
						}
					}

					p{
						padding: 0;
						margin: 0;
					}

					.social{
						margin-top: 15px;
						font-size: 13px;

						a{
							margin-right: 15px;
						}
					}
				}
			}
		}

		.pagination{
			margin-top: 80px;
			border-top: 1px solid #eee;
			border-bottom: 1px solid #eee;
			display: flex;

			span{
				width: 100%;
				padding: 20px;
				border-right: 1px solid #eee;
				border-left: 1px solid #eee;
				text-transform: uppercase;
				font-weight: 500;
				font-size: 13px;
				letter-spacing: 1px;
			}

			.icon{
				border: 0;
				width: 70px;
			}
		}

		.comments-area{
			margin-top: 80px;

			.item{
				padding: 30px 0;
				margin: 30px 0;
				border-bottom: 1px solid #eee;

				&.relped{
					margin-left: 100px;
				}

				.comment-img{
					display: table-cell;
					width: 80px;
				}

				.info{
					display: table-cell;
					vertical-align: middle;
					padding-left: 40px;
					position: relative;

					h6{
						font-size: 14px;
						text-transform: uppercase;
						letter-spacing: 1px;
						font-weight: 500;

						span{
							display: block;
							color: $main-color;
							font-size: 12px;
							font-weight: 400;
							margin-top: 5px;
						}
					}

					p{
						line-height: 1.5;
						margin-top: 15px;
					}

					.replay{
						position: absolute;
						right: 0;
						top: 0;
						font-size: 13px;

						i{
							margin-left: 5px;
						}
					}
				}
			}
		}

		.comment-form{
			margin-top: 80px;

			form{
				margin-top: 50px;

				input,textarea{
					width: 100%;
					padding: 17px;
					background: #fafafa;
					border: 0;
				}

				textarea{
					height: 140px;
				}

				button{
					cursor: pointer;
				}
			}
		}
	}
}

.next-project{
	position: relative;
	padding: 80px 0;
	margin-top: 90px;
	background: #fafafa;
	z-index: 2;
	overflow: hidden;

	&:before{
		display: none;
	}

	&:after{
		content: '';
		height: 0;
		width: 100%;
		position: absolute;
		bottom: auto;
		right: 0;
		top: 0;
		transition: height .6s cubic-bezier(.25,.8,.25,1) 0s;
		background: #f5f5f5;
		z-index: -1;
	}

	&:hover{

		&:after{
			height: 100%;
			bottom: 0;
			top: auto;
		}
	}

	.content{
		width: 100%;

		h2{
			font-size: 90px;
			font-weight: 800;
			text-transform: uppercase;
			letter-spacing: 4px;
			margin-bottom: 20px;
		}

		p{
			font-size: 18px;
			color: #555;
		}
	}
}

/* ====================== [ End Blog ] ====================== */