.container {
	padding-left: 0;
	padding-right: 0;

	.container {
		width: 100%;
	}
}

.site-content {
	padding-top: 80px;
	padding-bottom: 80px;
}

.page-template-template-homepage,
.page-template-template-fullwidth {
	.site-content {
		padding-top: 0;
		padding-bottom: 0;
	}
}

.single-left {
	.primary-sidebar {
		float: left;
	}

	.content-area {
		float: right;
	}
}

.single-right {
	.primary-sidebar {
		float: right;
	}

	.content-area {
		float: left;
	}
}

.entry-thumbnail {
	margin-bottom: 20px;
}

.entry-meta {
	padding-bottom: 10px;

	small {
		padding: 0 12px;
		color: #f1f1f1;
	}

	a {
		color: @text-color;
		font-weight: 400;

		&:hover {
			color: @secondary-color;
		}
	}

	.meta {
		display: inline-block;
	}
}

.entry-title {
	font-size: 24px;
	font-weight: 400;
	margin: 0;
	padding-bottom: 15px;
}

.single {
	.entry-content {
		padding-bottom: 25px;

		&.no-title {
			padding-top: 10px;
		}
	}
}

.no-thumb {
	.entry-thumbnail {
		margin: 0;
		display: none;

		i {
			display: none;
		}
	}
}

.entry-content {
	padding-bottom: 0;
}

.entry-footer {
	padding: 20px 0;
	border-top: 1px solid #f7f7f7;
	border-bottom: 1px solid #f7f7f7;

	.share-title {
		font-size: 18px;
		font-weight: 400;
		font-family: @font-family-secondary;
		color: @primary-color;
	}
}

.blog-wrapper {
	border-bottom: 1px solid #f7f7f7;
	padding-top: 50px;
	padding-bottom: 35px;

	&:last-child {
		border-bottom: 0;
	}

	&:first-child {
		padding-top: 0;
	}

	.entry-thumbnail {
		a {
			display: inline-block;
			position: relative;

			&:before {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-color: @dark;
				opacity: 0;
				transition: 0.5s;
			}

			i {
				color: @secondary-color;
				font-size: 28px;
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%,-50%);
				opacity: 0;
				transition: 0.5s;
			}
		}
	}

	&.no-thumb {
		padding-top: 45px;

		&:first-child {
			padding-top: 0;
		}
	}

	&:hover {
		.entry-thumbnail {
			a {
				&:before {
					opacity: 0.8;
				}

				i {
					opacity: 1;
				}
			}
		}
	}
}

.blog-classic {
	.blog-wrapper {
		.entry-thumbnail {
			margin-bottom: 25px;
		}

		.entry-meta {
			padding-bottom: 15px;
		}
	}
}

.blog-grid {
	.blog-wrapper {
		padding-top: 0;
		padding-bottom: 40px;
		border: 0;

		&.col-md-6:nth-child(2n+1) {
			clear: left;
		}

		&.col-md-4:nth-child(3n+1) {
			clear: left;
		}

		.entry-thumbnail a i {
			font-size: 24px;
		}
	}

	.entry-title {
		font-size: 20px;
	}

	.cat-link,
	.comments-link {
		display: none;
	}

	&.single {
		.cat-link,
		.comments-link {
			display: inline-block;
		}
	}
}

.blog-list {
	.blog-wrapper {
		padding-bottom: 50px;
		padding-top: 50px;

		.entry-thumbnail {
			float: left;
			margin-bottom: 0;
		}

		.entry-title {
			font-size: 22px;
		}

		.entry-meta {
			line-height: 1;
		}

		.read-more {
			display: block;
			font-size: 14px;
			font-weight: 700;
			text-transform: uppercase;

			.fa {
				padding-left: 5px;
			}

			&:hover {
				color: @secondary-color;
			}
		}

		.entry-content {
			padding-bottom: 10px;
		}

		.comments-link {
			display: none;
		}

		.entry-header,
		.entry-content,
		.read-more {
			margin-left: 300px;
		}
	}

	.site-main .blog-wrapper:first-child {
		padding-top: 0;
	}
}

.socials-share {
	margin-left: 20px;
	margin-bottom: 0;
	padding-left: 0;
	list-style: none;
	display: inline-block;

	li {
		display: inline-block;
		padding: 0 5px;

		&:first-child {
			padding-left: 0;
		}

		&:last-child {
			padding-right: 0;
		}
	}

	a {
		color: #a5a5a5;
		font-size: 14px;
		display: inline-block;
		width: 39px;
		height: 38px;
		line-height: 38px;
		text-align: center;
		background-color: #f7f7f7;
		border-radius: 50%;
		transition: 0.5s;

		&:hover {
			background-color: @secondary-color;
			color: @light;
		}
	}
}

// Service

.tax-service_category,
.post-type-archive-service {
	.site-content {
		padding-top: 30px;
	}

	.service-sidebar {
		padding-top: 50px;
	}
}

.service {
	&.col-md-4:nth-child( 3n+1 ) {
		clear: left;
	}

	.service-inner {
		padding-top: 50px;
		padding-bottom: 50px;
		border-bottom: 1px solid #f7f7f7;
	}

	.service-summary {
		margin-bottom: 25px;

		h2 {
			font-size: 20px;
			font-weight: 400;
			margin-top: 0;
			margin-bottom: 5px;
		}
	}

	.service-thumbnail {
		margin-bottom: 15px;

		a {
			position: relative;
			display: block;

			&:before {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-color: @secondary-color;
				opacity: 0;
				transition: 0.5s;
			}

			&:after {
				content: '';
				position: absolute;
				bottom: 0;
				left: 0;
				border-left: 37px solid @primary-color;
				border-right: 37px solid transparent;
				border-bottom: 37px solid @primary-color;
				border-top: 37px solid transparent;
				z-index: 9;
				opacity: 0;
				transition: 0.5s;
			}

			i {
				opacity: 0;
				position: absolute;
				color: @light;
				font-size: 24px;
				z-index: 99;
				transition: 0.5s;
			}

			.factory-link {
				top: 50%;
				left: 50%;
				transform: translate(-50%,-50%);
			}

			span i {
				bottom: 12px;
				left: 12px;
			}
		}
	}

	&:hover {
		.service-thumbnail a {
			&:before {
				opacity: 0.9;
			}

			i,
			&:after {
				opacity: 1;
			}
		}
	}
}

// Project
.project {
	.entry-thumbnail {
		margin-bottom: 0;
	}

	.project-content {
		margin-top: 60px;
	}

	blockquote {
		padding: 25px 75px;
		background-color: #f7f7f7;
		border-left: 1px solid @secondary-color;
		position: relative;

		&:before {
			content: '';
			position: absolute;
			width: 1px;
			height: 92%;
			left: 3px;
			top: 0;
			background-color: @secondary-color;
		}

		&:after {
			content: '\e914';
			font-family: 'factoryplus';
			position: absolute;
			top: 22px;
			left: 22px;
			color: #e6e6e6;
			font-style: normal;
			font-size: 32px;
		}
	}

	cite {
		display: block;
		font-size: 16px;
		font-style: normal;
		padding-top: 10px;
		color: @primary-color;

		span {
			color: @secondary-color;
		}
	}
}

.single-project-title,
.fp-related-project h3 {
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 40px;
	padding-bottom: 15px;
	line-height: 1;
	position: relative;

	&:before {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 80px;
		height: 3px;
		background-color: @secondary-color;
	}

	&:after {
		content: '';
		position: absolute;
		bottom: -8px;
		left: 0;
		width: 40px;
		height: 3px;
		background-color: @secondary-color;
	}
}

.fp-related-project {
	position: relative;

	.item-related {
		text-align: center;
		padding: 0 15px;
		display: block;
	}

	.project-inner {
		display: inline-block;

		&:after {
			content: '';
			position: absolute;
			bottom: 0;
			left: 0;
			border-left: 32px solid @primary-color;
			border-right: 32px solid transparent;
			border-bottom: 32px solid @primary-color;
			border-top: 32px solid transparent;
			z-index: 9;
			opacity: 0;
			transition: 0.5s;
		}
	}

	.owl-controls .owl-buttons div {
		font-size: 14px;
		color: #9e9e9e;
		top: -57px;
		width: 45px;
		height: 45px;
		line-height: 43px;
		text-align: center;
		border-radius: 50%;
		border: 2px solid #f7f7f7;
		background-color: transparent;
		transition: 0.5s;

		&:hover {
			color: @light;
			background-color: @secondary-color;
			border-color: @secondary-color;
		}
	}

	.owl-controls {
		.owl-prev {
			left: auto;
			right: 55px;
		}

		.owl-next {
			right: 0;
		}
	}
}

.metas {
	padding-top: 10px;

	h4 {
		font-size: 16px;
		font-weight: 400;
		margin: 0;
		padding-bottom: 5px;
		line-height: 1;
	}

	a,p {
		color: #9f9f9f;
		font-size: 16px;
		margin-bottom: 0;
	}

	h4,a,p {
		margin-left: 23px;
	}

	.meta {
		padding-bottom: 15px;
		padding-top: 17px;
		border-bottom: 1px solid #f7f7f7;
	}

	.fa {
		color: @secondary-color;
		font-size: 14px;
		float: left;
	}
}

.all-project {
	ul.filter {
		padding:0 10px;
		margin-bottom: 60px;
		list-style: none;
		text-align: center;
		display: inline-block;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		background-color: #f7f7f7;

		li {
			font-size: 14px;
			color: @text-color;
			font-family: @font-family-secondary;
			display: inline-block;
			padding: 12px 10px 13px 10px;
			margin: 0 10px;
			cursor: pointer;
			position: relative;

			a {
				color: @text-color;
			}

			&:after {
				transition: all 0.5s;
				content: '';
				position: absolute;
				right: 0;
				bottom: 0;
				width: 0;
				height: 3px;
				background-color: @secondary-color;
			}

			&.active,
			&:hover {
				&:after {
					left: 0;
					width: 100%;
					background-color: @secondary-color;
				}
			}

			&:first-child {
				margin-left: 0;
			}

			&:last-child {
				margin-right: 0;
			}
		}
	}

	.project-inner {
		display: inline-block;
	}
}

.project-wrapper {
	margin-bottom: 30px;
}

.project-inner {
	position: relative;
	display: inline-block;

	.pro-link {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 9999;
		background-color: transparent;
	}

	&:before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: @secondary-color;
		opacity: 0;
		transition: 0.5s;
		z-index: 1;
	}

	&:after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		border-left: 42px solid @primary-color;
		border-right: 42px solid transparent;
		border-bottom: 37px solid @primary-color;
		border-top: 37px solid transparent;
		z-index: 9;
		opacity: 0;
		transition: 0.5s;
	}

	.project-summary {
		color: @light;
		font-size: 16px;
		font-weight: 400;
		opacity: 0;
		transition: 0.5s;
		position: absolute;
		top: 50%;
		left: 50%;
		width: 100%;
		transform: translate(-50%,-50%);
		padding: 0 60px;
		text-align: center;
		z-index: 9;

		h2 {
			font-size: 22px;
			margin-top: 0;
			margin-bottom: 10px;
			font-weight: 400;

			a {
				color: @light;
			}
		}
	}

	i {
		color: @light;
		font-size: 20px;
		display: inline-block;
		position: absolute;
		left: 12px;
		bottom: 12px;
		z-index: 99;
		opacity: 0;
		transition: 0.5s;
	}

	&:hover {
		&:before {
			opacity: 0.95;
		}

		&:after,
		.project-summary,
		i {
			opacity: 1;
		}
	}
}

.project-grid {
	.project-inner {
		&:after {
			border-left: 32px solid @primary-color;
			border-right: 32px solid transparent;
			border-bottom: 32px solid @primary-color;
			border-top: 32px solid transparent;
		}

		.project-summary {
			text-align: left;
			left: 0;
			top: 0;
			transform: translate(0);
			padding: 30px 20px 0 20px;

			h2 {
				font-size: 20px;
			}
		}
	}

	&.project-grid-fullwidth {
		.project-inner .project-summary {
			top: 50%;
			left: 50%;
			width: 100%;
			transform: translate(-50%,-50%);
			padding: 0 60px;
			text-align: center;
		}
	}
}

.project-mansony {
	.site-content {
		padding-bottom: 50px;
	}

	.all-project {
		.site-main {
			margin-left: -15px;
			margin-right: -15px;
		}
	}

	.project-inner {
		.project-summary {
			h2 {
				font-size: 26px;
			}
		}
	}

	.project-sizer,
	.project-wrapper {
		width: 33.3333%;
	}

	.project-width {
		width: 66.6667%;
	}

	.project-wrapper {
		padding: 0 15px;
		float: left;
	}
}

// Search No Results
.search-no-results {
	section {
		h2 {
			margin-bottom: 30px;
		}
	}

	.search-form {
		font-size: 16px;
		position: relative;
		color: @primary-color;
		padding: 0 5px;
		border: 1px solid #f7f7f7;
		margin-top: 20px;

		&:before {
			content: '\f002';
			position: absolute;
			top: 50%;
			right: 16px;
			color: @light;
			font-family: FontAwesome;
			font-size: 14px;
			z-index: 99;
			transform: translateY(-50%);
		}

		&:after {
			content: '';
			position: absolute;
			top: -1px;
			right: -1px;
			width: 50px;
			height: 52px;
			background-color: @secondary-color;
			border: 1px solid @secondary-color;
			z-index: 9;
		}

		.screen-reader-text {
			display: none;
		}

		::-webkit-input-placeholder {
			color: #9e9e9e;
		}

		:-moz-placeholder {
			color: #9e9e9e;
		}

		::-moz-placeholder {
			color: #9e9e9e;
		}

		:-ms-input-placeholder {
			color: #9e9e9e;
		}

		.search-submit {
			position: absolute;
			top: 0;
			right: 0;
			width: 50px;
			height: 50px;
			opacity: 0;
			z-index: 9999;
		}

		label {
			width: 100%;
			margin-bottom: 0;
			input {
				height: 50px;
				line-height: 50px;
				width: 100%;
				padding: 0 0 0 15px;
				border: 0;

				&:focus {
					outline: none;
				}
			}
		}
	}
}

// 404 page
.error404 {
	.site-content {
		padding-top: 130px;
		padding-bottom: 130px;
	}

	.error-404 {
		text-align: center;
		color: @light;

		.page-header {
			margin-top: 0;
			padding-bottom: 0;
			margin-bottom: 30px;
			border: 0;

			p {
				font-size: 30px;
				font-weight: 400;
				line-height: 1
			}
		}

		h1 {
			font-size: 150px;
			font-weight: 700;
			color: @light;
			margin: 0;
			line-height: 1;
		}

		.search-field {
			background-color: rgba( 0, 0, 0, 0.23 );
			font-weight: 400;
			border: 1px solid #646464;
		}

		.search-form {
			font-size: 16px;
			position: relative;
			color: @text-color;
			padding: 0 5px;
		    width: 570px;
    		margin: 0 auto;

			&:before {
				content: '\f002';
				position: absolute;
				top: 50%;
				right: 7px;
				color: @light;
				font-family: FontAwesome;
				font-size: 14px;
				z-index: 99;
				transform: translateY(-50%);
			}

			&:after {
				content: '';
				position: absolute;
				top: 1px;
			    right: -11px;
			    width: 50px;
			    height: 50px;
				background-color: @secondary-color;
				border: 1px solid @secondary-color;
				z-index: 9;
			}

			.screen-reader-text {
				display: none;
			}

			::-webkit-input-placeholder {
				color: #9e9e9e;
			}

			:-moz-placeholder {
				color: #9e9e9e;
			}

			::-moz-placeholder {
				color: #9e9e9e;
			}

			:-ms-input-placeholder {
				color: #9e9e9e;
			}

			.search-submit {
				position: absolute;
			    top: 1px;
    			right: -10px;
				width: 50px;
				height: 50px;
				opacity: 0;
				z-index: 9999;
			}

			label {
				width: 100%;
				margin-bottom: 0;
				input {
					height: 50px;
					line-height: 50px;
					width: 100%;
					padding: 0 0 0 15px;

					&:focus {
						outline: none;
					}
				}
			}
		}

		.back-home {
			margin-top: 25px;

			a {
				color: @secondary-color;
				border-bottom: 1px solid @secondary-color;
			}
		}
	}
}

// Service
.single-service {

	.aligncenter {
		display: none;
	}

	blockquote {
		padding: 20px 75px;
		background-color: #f7f7f7;
		border-left: 1px solid @secondary-color;
		position: relative;

		&:before {
			content: '';
			position: absolute;
			width: 1px;
			height: 92%;
			left: 3px;
			top: 0;
			background-color: @secondary-color;
		}

		&:after {
			content: '\e914';
			font-family: 'factoryplus';
			position: absolute;
			top: 22px;
			left: 22px;
			color: #e6e6e6;
			font-style: normal;
			font-size: 32px;
		}
	}

	cite {
		display: block;
		font-size: 16px;
		font-style: normal;
		padding-top: 10px;
		color: @primary-color;

		span {
			color: @secondary-color;
		}
	}
}

// Modal
.modal {
	background-color: rgba( 0, 0, 0, 0.9 );

	&.in {
		opacity: 1;
	}

	.woocommerce-review-link,
	.woocommerce-comment-link {
		display: none;
	}
}
.modal-header {
	text-align: center;
}
.modal-dialog {
	width: 70%;
}

// Back to top
.backtotop {
	display: inline-block;
	position: fixed;
	bottom: 60px;
	right: 60px;
	width: 60px;
	height: 60px;
	line-height: 50px;
	text-align: center;
	border-radius: 50%;
	border: 3px solid @secondary-color;
	color: @secondary-color;
	font-size: 30px;
	background-color: #160f09;
	opacity: 0;
	transition: 0.5s;
	z-index: 9999;

	.fa {
		color: @secondary-color;
	}

	&:hover {
		color: @secondary-color;

		.fa {
			color: @secondary-color;
		}
	}

	&.show-scroll {
		opacity: 1;
	}
}
