@use "mixins/mixins-master" as *;
@use "mixins/flex" as *;
@use "variables" as *;
.thim-block-1 {
	border-radius: $thim_border_radius;
	// @include rounded(4px);
	@include clearfix();

	.main-course {
		float: left;
		width: 880px;
		padding-right: 30px;
		position: relative;
		z-index: 9;

		.featured-img {
			position: relative;
			border-radius: $thim_border_radius;
			z-index: 7;
			overflow: hidden;
			// @include rounded(4px);
			// @include box-shadow(12.9px 15.3px 18px 0 rgba(0, 0, 0, 0.08));
			@include transition(all 0.5s);
			// &:before {
			// 	content: "";
			// 	position: absolute;
			// 	z-index: 9;
			// 	width: 0;
			// 	height: 0;
			// 	top: -1px;
			// 	left: -1px;
			// 	border-right: 108px solid transparent;
			// }

			.course-label {
				position: absolute;
				font-size: 18px;
				color: #fff;
				top: 24px;
				left: 18px;
				z-index: 1000;
				transform: rotate(-45deg);
				font-weight: 400;
				text-transform: uppercase;
				display: none;
			}

			// &:after {
			// 	position: absolute;
			// 	content: "";
			// 	background-color: rgba(0, 0, 0, 0.6);
			// 	top: 0;
			// 	left: 0;
			// 	right: 0;
			// 	bottom: 0;
			// 	z-index: 2;
			// 	border-radius: $thim_border_radius;
			// 	@include transition(all 0.5s);
			// 	@include opacity(0);
			// 	// @include rounded(4px);
			// }

			img {
				width: 100%;
				border-radius: $thim_border_radius;
				// @include rounded(4px);
			}

			&:hover {
				box-shadow: 0px 4px 30px 0px #1c1c1b33;
				&:after {
					@include opacity(1);
				}
			}
		}

		.content-video {
			position: absolute;
			@include flexbox();
			flex-direction: column;
			justify-content: center;
			align-items: center;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			text-align: center;
			min-width: 70%;
			color: #fff;
			z-index: 3;

			&:before {
				content: "";
				background-color: rgba(0, 0, 0, 0.5);
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				position: absolute;
				z-index: -1;
				opacity: 1;
				border-radius: $thim_border_radius;
				@include transition(all 0.5s);
				// @include rounded(4px);
			}

			&:hover {
				&:before {
					@include opacity(0);
				}
			}

			span {
				display: inline-block;
				width: 93px;
				height: 93px;
				font-size: 70px;
				border: 3px solid #fff;
				@include rounded(50%);
				cursor: pointer;
				margin-bottom: 27px;
				@include transition(all 0.5s);

				&:before {
					margin-left: 10px;
					line-height: 93px;
				}
			}

			.title {
				letter-spacing: 0.6px;
				line-height: 1;
				font-size: 24px;
				text-transform: capitalize;
				margin-bottom: 16px;

				a {
					color: #fff;
					font-weight: 500;
				}
			}

			.description {
				line-height: 1.44;
				letter-spacing: 0.4px;
				font-size: 16px;
				max-width: 800px;
			}
		}
	}

	.course-item {
		width: 410px;
		float: right;
		overflow: hidden;
		margin-bottom: 30px;
		border-radius: $thim_border_radius;
		border: 1px solid $border-color;
		display: flex;
		// @include rounded(4px);
		// @include box-shadow(12.9px 15.3px 18px 0 rgba(0, 0, 0, 0.08));
		@include transition(all 0.5s);
		&:last-child {
			margin-bottom: 0;
		}
		.feature-img {
			// float: left;
			position: relative;
			// margin-right: 24px;
			overflow: hidden;
			border-radius: $thim_border_radius 0 0 $thim_border_radius;
			width: 160px;

			.wrap-author {
				position: absolute;
				left: 0;
				top: 0;
				right: 0;
				bottom: 0;
				text-align: center;
				@include opacity(0);
				z-index: 4;
				@include flexbox();
				flex-direction: column;
				justify-content: center;
				align-items: center;
				visibility: hidden;
				@include transition(all 0.5s);
				background-color: rgba(0, 0, 0, 0.5);

				.avatar {
					max-height: 40px;
					max-width: 40px;
					@include rounded(100%);
					border: 1px solid #ffffff;
					margin: 17px 0 6px 0;
				}

				.name {
					a {
						font-size: 14px;
						font-weight: 500;
						line-height: 1.667;
						color: #ffffff;
						display: block;
						&:hover {
							text-decoration: underline;
						}
					}
				}

				.sc-review-stars {
					margin-top: 4px;

					.review-star {
						float: left;
					}

					.review-stars-rated {
						width: auto;
						margin-bottom: 0;

						.review-stars.empty,
						.review-stars.filled {
							font-size: 12px;
							color: #ffffff;
						}

						.review-stars.empty {
							width: auto;
						}
					}
				}
			}
		}

		.course-detail {
			padding: 20px;
			width: calc(100% - 160px);
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.title {
				font-size: 16px;
				line-height: 24px;
				font-weight: 500;
				// margin-top: 30px;
				// margin-bottom: 0;
				// letter-spacing: 0.4px;
			}

			.meta {
				display: flex;
				justify-content: space-between;
				align-items: flex-end;

				.number-students {
					font-size: 14px;
					font-weight: 400;
					letter-spacing: 0.3px;
					margin-left: 24px;
					line-height: 1.7;
					position: relative;

					&:before {
						content: "\e907";
						font-family: "Ionicons";
						display: inline-block;
						font-size: 24px;
						position: absolute;
						top: -11px;
						left: -26px;
					}
				}

				.price {
					// float: right;
					// margin-right: 10px;
					font-size: 16px;
					letter-spacing: 0.4px;
					font-weight: 500;

					&.free {
						text-transform: uppercase;
						color: #df6c4f;
					}
				}
			}
		}

		&:hover {
			@include box-shadow(4.5px 5.4px 10px 0 rgba(0, 0, 0, 0.06));

			.feature-img {
				.wrap-author {
					@include opacity(1);
					visibility: visible;
				}
			}
		}
	}
}

.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
	@include opacity(0);
	-webkit-backface-visibility: hidden;
	/* ideally, transition speed should match zoom duration */
	-webkit-transition: all 0.5s ease-out;
	-moz-transition: all 0.5s ease-out;
	-o-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
	@include opacity(1);
}

.mfp-with-zoom.mfp-ready.mfp-bg {
	@include opacity(0.8);
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
	@include opacity(0);
}
