/* Home page — User Posts preview */

.user-posts-preview {
	padding: 120px 0;
}

.user-posts-preview .testimonial-slider .swiper-slide,
.user-posts-preview .testimonial-slider .swiper-wrapper,
.user-posts-preview .testimonial-slider .swiper,
.user-posts-preview .testimonial-slider {
	height: auto;
}

.user-posts-preview .testimonial-item {
	height: 465px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	background: var(--white-color);
	border-radius: 30px;
	padding: 40px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	box-sizing: border-box;
	transition: box-shadow 0.3s ease;
}

.user-posts-preview .testimonial-item:hover {
	box-shadow: 0 12px 40px rgba(8, 54, 59, 0.1);
}

.user-posts-preview .testimonial-item-header {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.user-posts-preview .testimonial-item-quote {
	margin-bottom: 30px;
	flex-shrink: 0;
}

.user-posts-preview .testimonial-item-quote img {
	width: 100%;
	max-width: 60px;
}

.user-posts-preview .testimonial-item-content {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
}

.user-posts-preview .testimonial-item-content p {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
	overflow: hidden;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.user-posts-preview .testimonial-item-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	border-top: 1px solid var(--divider-color);
	padding-top: 40px;
	flex: 0 0 auto;
}

.testimonial-author-image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-posts-preview .post-avatar {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--accent-color);
	color: var(--white-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.testimonial-author-content {
	width: calc(100% - 65px);
}

.testimonial-author-content h2 {
	font-size: 20px;
}

.testimonial-author-content p {
	line-height: normal;
	margin: 5px 0 0 0;
}

.user-posts-preview-empty {
	text-align: center;
	font-size: 16px;
	color: var(--text-color);
	margin: 0;
}

@media (max-width: 991px) {
	.user-posts-preview {
		padding: 60px 0;
	}

	.user-posts-preview .section-footer-text {
		margin-top: 40px;
	}

	.user-posts-preview .testimonial-item {
		height: 465px;
		border-radius: 20px;
		padding: 30px;
	}

	.user-posts-preview .testimonial-item-content p {
		font-size: 16px;
	}
}
