/* Post Carousel — center-style testimonial cards */

.carousel-slider[data-slide-type="post-carousel"] {
	padding: 24px 0 8px;
}

.carousel-slider[data-slide-type="post-carousel"] .owl-stage,
.carousel-slider[data-slide-type="post-carousel"] .swiper-wrapper {
	align-items: stretch;
}

.carousel-slider[data-slide-type="post-carousel"] .owl-item,
.carousel-slider[data-slide-type="post-carousel"] .swiper-slide {
	display: flex;
	height: auto;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

/* News cards — equal height */
.carousel-slider--news .owl-item,
.carousel-slider--news .swiper-slide {
	align-items: stretch;
}

.carousel-slider--news .carousel-slider__post--news {
	height: 100%;
}

/* Center mode only for testimonial template */
.carousel-slider[data-slide-type="post-carousel"]:not(.carousel-slider--news) .owl-item:not(.center),
.carousel-slider[data-slide-type="post-carousel"]:not(.carousel-slider--news) .swiper-slide:not(.swiper-slide-active) {
	opacity: 0.72;
	transform: scale(0.9);
}

.carousel-slider[data-slide-type="post-carousel"]:not(.carousel-slider--news) .owl-item.center,
.carousel-slider[data-slide-type="post-carousel"]:not(.carousel-slider--news) .swiper-slide-active {
	opacity: 1;
	transform: scale(1.08);
	z-index: 2;
}

.carousel-slider__post--testimonial {
	background-color: #fdedd1;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	margin: 12px 8px;
	padding: 30px 24px;
	position: relative;
	text-align: center;
	width: 100%;
}

.carousel-slider__post--testimonial .carousel-slider__post-content {
	align-items: center;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.carousel-slider__post-avatar {
	line-height: 0;
	margin-bottom: 16px;
}

.carousel-slider__post-avatar-img {
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	display: inline-block;
	height: 80px;
	object-fit: cover;
	width: 80px;
}

.carousel-slider__post-name {
	color: #2d2d2d;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.carousel-slider__post-rating {
	display: flex;
	gap: 2px;
	justify-content: center;
	margin-bottom: 8px;
}

.carousel-slider__post-rating--trustpilot .carousel-slider__post-star {
	align-items: center;
	background: #dcdce6;
	border-radius: 2px;
	display: inline-flex;
	height: 22px;
	justify-content: center;
	line-height: 0;
	width: 22px;
}

.carousel-slider__post-rating--trustpilot .carousel-slider__post-star.is-filled {
	background: #00b67a;
}

.carousel-slider__post-rating--trustpilot .carousel-slider__post-star svg {
	display: block;
	fill: #fff;
	height: 14px;
	width: 14px;
}

.carousel-slider__post-company {
	color: #8a8a8a;
	font-size: 0.875rem;
	margin-bottom: 16px;
}

.carousel-slider__post--testimonial .carousel-slider__post-excerpt {
	color: #4a4a4a;
	display: -webkit-box;
	font-size: 0.9375rem;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	line-height: 1.6;
	margin: 0;
	overflow: hidden;
	text-align: center;
}

/* Bar-style pagination dots for post carousel */
.carousel-slider[data-slide-type="post-carousel"] .owl-dots {
	margin-top: 20px;
	text-align: center;
}

.carousel-slider[data-slide-type="post-carousel"] .owl-dots .owl-dot span,
.carousel-slider[data-slide-type="post-carousel"] .swiper-pagination-bullet {
	background: #d9d9d9;
	border-radius: 2px;
	height: 4px;
	margin: 0 4px;
	opacity: 1;
	transition: background 0.25s ease, width 0.25s ease;
	width: 24px;
}

.carousel-slider[data-slide-type="post-carousel"] .owl-dots .owl-dot.active span,
.carousel-slider[data-slide-type="post-carousel"] .swiper-pagination-bullet-active {
	background: #2f80ed;
	width: 32px;
}

/* ========================================
   News template
   ======================================== */
.carousel-slider__post--news {
	background: #fff;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.carousel-slider__post--news .carousel-slider__post-media {
	aspect-ratio: 16 / 10;
	background-color: #e5e7eb;
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
	width: 100%;
}

.carousel-slider__post--news .carousel-slider__post-news-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.carousel-slider__post--news .carousel-slider__post-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 16px 20px 12px;
	box-sizing: border-box;
}

.carousel-slider__post--news .carousel-slider__post-title,
.carousel-slider__post--news a.carousel-slider__post-title,
.carousel-slider__post--news a.carousel-slider__post-title:hover,
.carousel-slider__post--news a.carousel-slider__post-title:focus,
.carousel-slider__post--news a.carousel-slider__post-title h4 {
	border-bottom: 0 !important;
	box-shadow: none !important;
	color: #1f2937;
	display: block;
	margin: 0;
	min-height: auto;
	text-decoration: none !important;
}

.carousel-slider__post--news .carousel-slider__post-title h4 {
	color: #1f2937;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	text-decoration: none !important;
}

.carousel-slider__post--news .carousel-slider__post-date {
	color: #6b7280;
	display: block;
	font-size: 0.8125rem;
	font-style: italic;
	line-height: 1.4;
	margin: 0;
	padding: 0;
}

.carousel-slider__post--news .carousel-slider__post-excerpt {
	color: #4b5563;
	display: -webkit-box;
	font-size: 0.875rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-height: 1.55;
	margin: 0;
	overflow: hidden;
}
