@use "../abstract" as *;

.testimonial-area {
	position: relative;
	z-index: 2;
}
// testimonial-video-thumb style
.testimonial-video-thumb {
	position: relative;
	max-width: 540px;
	@media #{$xl,$lg} {
		margin-right: 45px;
	}
	img {
		width: 100%;
	}
	.video-btn {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.play-btn {
		font-size: 16px;
		font-weight: 700;
		text-transform: uppercase;
	}
}

// testiomonial style
.testimonial-slide-wrapper.style-1 {
	margin-left: -40px;
	@media #{$md,$sm,$xs} {
		margin-left: -0px;
	}
}
.style-1 {
	&.testimonial-single {
		position: relative;
		padding-top: 60px;
		@media #{$lg} {
			padding-top: 20px;
		}
	}
	.rating {
		a {
			font-size: 14px;
			font-weight: 400;
			color: var(--clr-common-white);
		}
		background: var(--clr-theme-2);
		display: inline-flex;
		height: 30px;
		padding: 0 14px;
		line-height: 30px;
		border-radius: 15px;
		margin-bottom: 20px;
	}
	.author-quote {
		font-size: 40px;
		line-height: 1.25;
		text-transform: uppercase;
		font-family: "Poppins", sans-serif;
		font-weight: 700;
		color: var(--clr-theme-1);
		letter-spacing: -1.3px;
		margin-bottom: 0;
		@media #{$xl} {
			font-size: 34px;
		}
		@media #{$lg} {
			font-size: 30px;
		}
		@media #{$md} {
			font-size: 34px;
		}
		@media #{$sm,$xs} {
			font-size: 28px;
		}
		@media #{$xxs} {
			font-size: 22px;
		}
	}

	.testimonial-icon {
		font-size: 160px;
		color: #f5f5f5;
		position: absolute;
		z-index: -1;
		right: 0;
		top: 0;
	}
}
.style-1 {
	&.testimonial-author-meta {
		.author-img {
			width: 70px;
			height: 70px;
			border-radius: 50%;
			overflow: hidden;
		}
		.author-designation {
			font-size: 16px;
			font-weight: 700;
			color: var(--clr-theme-2);
			text-transform: uppercase;
			line-height: 1;
			display: block;
			margin-bottom: 5px;
		}
		.author-name {
			font-size: 24px;
			text-transform: uppercase;
			margin-bottom: 0;
			@media #{$lg} {
				font-size: 22px;
			}
			@media #{$sm,$xs} {
				font-size: 20px;
			}
		}
		display: flex;
		gap: 20px;
		align-items: center;
	}
	.author-img {
		img {
			width: 100%;
		}
	}
}
.testimonial-thumb-wrapper.style-1 {
	padding-top: 40px;
	border-top: 1px solid #ededed;
	margin-top: 30px;
}
.swiper-slide {
	.testimonial-author-meta.style-1 {
		opacity: 0.5;
		@include transition(0.3s);
	}
	&.swiper-slide-thumb-active {
		.testimonial-author-meta.style-1 {
			opacity: 1;
		}
	}
}

.testimonial-bg-style-2 {
	background: #f8f5f0;
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: -1;
	overflow: hidden;
}
.style-2 {
	.testimonial-content {
		padding: 50px 32px;
		background: var(--clr-common-white);
		border-radius: 10px;
		text-align: center;
		margin-bottom: 45px;
		position: relative;
		z-index: 2;
		transition: 0.3s;
		@media #{$xl,$xxs} {
			padding: 48px 20px;
		}
		.item-counter {
			content: counter(item-counter, decimal-leading-zero);
			font-size: 200px;
			font-weight: 700;
			color: transparent;
			stroke: 2px #124634;
			font-family: "Poppins", sans-serif;
			-webkit-text-fill-color: transparent;
			-webkit-text-stroke-width: 2px;
			-webkit-text-stroke-color: #124634;
			line-height: 1;
			transition: 0.3s;
			position: absolute;
			top: -15px;
			left: 50%;
			transform: translateX(-50%);
			opacity: 0;
			visibility: hidden;
			z-index: -1;
			@media #{$xl,$xxs}{
				font-size: 170px;
			}
		}
	}
	.testimonial-icon {
		width: 55px;
		height: 55px;
		background: var(--clr-theme-2);
		border-radius: 50%;
		color: var(--clr-common-white);
		font-size: 18px;
		line-height: 55px;
		position: relative;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 30px;
		transition: 0.3s;
		&::before {
			content: "";
			width: 16px;
			height: 16px;
			background: var(--clr-theme-2);
			position: absolute;
			left: 8px;
			bottom: -8px;
			clip-path: polygon(3% 0, 0% 100%, 100% 25%);
			transition: 0.3s;
		}
	}
	.author-quote {
		font-size: 20px;
		font-weight: 700;
		color: var(--clr-theme-1);
		text-transform: uppercase;
		line-height: 1.5;
		font-family: "Poppins", sans-serif;
		margin-bottom: 30px;
		transition: 0.3s;
		@media #{$xl,$lg,$xxs} {
			font-size: 18px;
		}
	}
	.author-designation {
		font-size: 16px;
		font-weight: 700;
		color: var(--clr-theme-2);
		text-transform: uppercase;
		line-height: 1;
		display: block;
		margin-bottom: 6px;
		transition: 0.3s;
	}
	.author-name {
		font-size: 24px;
		text-transform: uppercase;
		margin-bottom: 0;
		transition: 0.3s;
	}
	.author-img {
		width: 70px;
		height: 70px;
		border-radius: 50%;
		margin-left: auto;
		margin-right: auto;
		position: relative;
		margin-bottom: -85px;
		z-index: 2;
		&::before {
			position: absolute;
			content: "";
			width: 100%;
			height: 100%;
			right: -6px;
			bottom: -6px;
			background: var(--clr-theme-2);
			border-radius: 50%;
			z-index: -1;
			opacity: 0;
			visibility: hidden;
			transition: 0.3s;
		}
		img {
			width: 100%;
			border-radius: 50%;
		}
	}
	.author-info {
		margin-bottom: 44px;
	}
}
.swiper-slide-active {
	.style-2 {
		.testimonial-content {
			background: var(--clr-theme-1);
			.item-counter {
				opacity: 1;
				visibility: visible;
			}
		}
		.author-img {
			&::before {
				opacity: 1;
				visibility: visible;
			}
		}
		.testimonial-icon {
			background: var(--clr-common-white);
			color: var(--clr-theme-1);
			&::before {
				background: var(--clr-common-white);
			}
		}
		.author-quote {
			color: var(--clr-common-white);
		}
		.author-name {
			color: var(--clr-common-white);
		}
	}
}

// testimonial-3 style
.style-3 {
	&.testimonial-bg {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: -1;
		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
	&.testimonial-slide-wrapper {
		width: 650px;
		height: 650px;
		margin-left: auto;
		margin-right: auto;
		background: var(--clr-common-white);
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 50%;
		position: relative;
		padding: 0px 20px 0px;
		@media #{$sm,$xs}{
			position: relative;
			width: 100%;
			border-radius: 30px;
			height: auto;
			padding: 50px 20px 50px;
		}
		@media #{$xxs}{
			padding: 50px 15px 50px;
		}
		.testimonial-icon {
			position: absolute;
			top: 0;
			left: 50%;
			background: var(--clr-theme-1);
			height: 100px;
			width: 100px;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 50%;
			transform: translate(-50%, -50%);
			i {
				color: var(--clr-common-white);
				font-size: 42px;
			}
		}
	}
	&.testimonial-slide-content-wrapper{
		width: 100%;
		padding-top: 140px;
		position: relative;
		.wrapper-line-design {
			position: absolute;
			width: 1px;
			height: 60px;
			background: var(--clr-theme-2);
			left: 50%;
			transform: translateX(-50%);
			top: 50px;
			&:before{
				position: absolute;
				content: "";
				width: 1px;
				height: 20px;
				background: var(--clr-theme-2);
				bottom: 0;
				left: -11px;
			}
			&:after{
				position: absolute;
				content: "";
				width: 1px;
				height: 20px;
				background: var(--clr-theme-2);
				bottom: 0;
				right: -11px;
			}
		}
	}
	&.testimonial-content-wrapper {
		text-align: center;
		max-width: 540px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 24px;
	}
	&.testimonial-thumb-wrapper{
		width: 230px;
		margin-left: auto;
		margin-right: auto;
		@media #{$xxs}{
			width: 170px;
		}
	}
	.author-quote {
		font-size: 40px;
		line-height: 1.25;
		text-transform: uppercase;
		font-family: "Poppins", sans-serif;
		font-weight: 700;
		color: var(--clr-theme-1);
		letter-spacing: -1.3px;
		margin-bottom: 27px;
		@media #{$lg}{
			font-size: 36px;
		}
		@media #{$md}{
			font-size: 32px;
		}
		@media #{$sm,$xs}{
			font-size: 28px;
		}
		@media #{$xxs}{
			font-size: 22px;
		}
	}
	.author-info{
		.author-designation {
			font-size: 16px;
			font-weight: 700;
			color: var(--clr-theme-2);
			text-transform: uppercase;
			line-height: 1;
			display: block;
			margin-bottom: 6px;
		}
		.author-name {
			font-size: 24px;
			text-transform: uppercase;
			margin-bottom: 0;
			@media #{$lg} {
				font-size: 22px;
			}
			@media #{$sm,$xs} {
				font-size: 20px;
			}
		}

	}
	&.testimonial-author-meta {
		display: flex;
		gap: 20px;
		align-items: center;
		opacity: .3;
		.author-img {
			width: 70px;
			height: 70px;
			border-radius: 50%;
			overflow: hidden;
			@include transition(.3s);
			cursor: pointer;
			@media #{$xxs}{
				width: 50px;
				height: 50px;
			}
		}
		
	}
	.author-img {
		img {
			width: 100%;
		}
	}
}
.swiper-slide-thumb-active{
	.style-3.testimonial-author-meta {
		opacity: 1;
	}
}
.testimonial-3-nav{
	@media #{$md,$sm,$xs}{
		display: none;
	}
}
.testimonial-3-nav-btn {
	width: 60px;
	height: 60px;
	background: var(--clr-common-white);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--clr-theme-1);
	@include transition (.3s);
	cursor: pointer;
	&:hover{
		background: var(--clr-theme-1);
		color: var(--clr-common-white);
		&:before{
			opacity: 1;
			visibility: visible;
		}
	}
	&:before{
		position: absolute;
		content: "";
		width: 100px;
		height: 100px;
		border: 2px solid var(--clr-common-white);
		border-radius: 50%;
		top: -20px;
		left: -20px;
		opacity: 0;
		visibility: hidden;
		@include transition(.3s);
	}
	&.testimonial-button-prev{
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		left: -120px;
	}
	&.testimonial-button-next{
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		right: -120px;
	}
}
// testimonial-4 style

.testimonial-bg-style-4 {
	position: absolute;
	width: 37%;
	height: 100%;
	right: 0;
	top: 0;
	@media #{$md,$sm,$xs} {
		display: none;
	}
	&:before {
		position: absolute;
		content: "";
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background: var(--clr-theme-1);
		opacity: 0.9;
	}
	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		z-index: -1;
	}
}
.style-4 {
	.testimonial-content {
		border: 2px solid var(--clr-theme-2);
		border-radius: 10px;
		background: var(--clr-common-white);
		position: relative;
		padding: 35px 48px 48px;
		text-align: left;
		z-index: 2;
		@media #{$xl} {
			padding: 35px 38px 48px;
		}
		@media #{$sm,$xs} {
			padding: 25px 28px 30px;
		}
		@media #{$lg,$xxs} {
			padding: 25px 18px 28px;
		}
	}
	.testimonial-icon {
		display: none;
	}
	.author-quote {
		font-size: 34px;
		font-weight: 700;
		color: var(--clr-theme-1);
		text-transform: uppercase;
		line-height: 1.45;
		font-family: "Poppins", sans-serif;
		margin-bottom: 30px;
		transition: 0.3s;
		@media #{$xl}{
			font-size: 30px;
		}
		@media #{$sm,$xs} {
			font-size: 28px;
		}
		@media #{$lg,$xxs} {
			font-size: 22px;
		}
	}
	.testimonial-author-meta {
		display: flex;
		gap: 20px;
		align-items: center;
	}
	.author-img {
		width: 70px;
		height: 70px;
		border-radius: 50%;
		position: relative;
		z-index: 2;
		img{
			width: 100%;
		}
	}
	.author-meta-rating {
		display: flex;
		justify-content: space-between;
		border-top: 1px solid #eaeaea;
		padding-top: 30px;
		align-items: center;
		gap: 30px;
		@media #{$lg,$sm,$xs,$xxs} {
			flex-direction: column;
			gap: 0;
			align-items: flex-start;
		}
		.author-rating {
			margin-left: 0px;
			@media #{$lg,$sm,$xs,$xxs} {
				margin-left: 90px;
			}
		}
	}
	.item-counter {
		display: none;
	}
	.author-designation {
		font-size: 14px;
		font-weight: 700;
		color: var(--clr-theme-2);
		text-transform: uppercase;
		line-height: 1;
		display: block;
		margin-bottom: 6px;
		transition: 0.3s;
	}
	.author-name {
		font-size: 24px;
		text-transform: uppercase;
		margin-bottom: 0;
		transition: 0.3s;
		@media #{$xl} {
			font-size: 22px;
		}
		@media #{$lg,$xxs} {
			font-size: 20px;
		}
	}
	.rating a {
		font-size: 16px;
		color: #e5c21f;
	}
}
.testimonial-4-shape {
	position: absolute;
	z-index: -1;
	right: 18px;
	top: 18px;
}
.testimonial-4-nav-button {
	width: 60px;
	height: 60px;
	border: 1px solid var(--clr-common-white);
	text-align: center;
	border-radius: 6px;
	line-height: 58px;
	color: var(--clr-common-white);
	font-size: 20px;
	position: relative;
	z-index: 2;
	@include transition(0.3s);
	@media #{$md,$sm,$xs} {
		border-color: var(--clr-theme-1);
		color: var(--clr-theme-1);
	}
	&:hover {
		color: var(--clr-theme-1);
		border-color: var(--clr-common-white);
		background: var(--clr-common-white);
		@media #{$md,$sm,$xs} {
			border-color: var(--clr-theme-2);
			background: var(--clr-theme-2);
			color: var(--clr-common-white);
		}
	}
}
.testimonial-4-nav {
	display: flex;
	gap: 16px;
	justify-content: flex-end;
	@media #{$md,$sm,$xs} {
		justify-content: flex-start;
	}
}
