/*
 * Tolou Teb Related Posts - Stylesheet
 * طراحی پزشکی، مینیمال، RTL
 */

.tolouteb-related-wrapper {
	display: block;
	width: 100%;
	direction: rtl;
}

.tolouteb-related-post {
	position: relative;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 25px 0;
	padding: 0;
	background: #ffffff;
	border: 1px solid #dceeee;
	border-right: 4px solid #13767c;
	border-left: 0;
	border-radius: 10px;
	box-shadow: 0 3px 14px rgba(19, 118, 124, 0.08);
	text-decoration: none;
	transition: all 250ms ease;
}

.tolouteb-related-post:hover,
.tolouteb-related-post:focus {
	background: #f7fbfb;
	border-right-color: #0f656a;
	box-shadow: 0 6px 20px rgba(19, 118, 124, 0.14);
	transform: translateY(-1px);
	text-decoration: none;
	outline: none;
}

.tolouteb-related-post:focus-visible {
	outline: 2px solid #13767c;
	outline-offset: 2px;
}

.tolouteb-related-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 15px;
	padding: 12px 15px;
	direction: rtl;
}

.tolouteb-related-image {
	flex: 0 0 85px;
	width: 85px;
	height: 65px;
	overflow: hidden;
	border-radius: 8px;
	background: #eef7f7;
}

.tolouteb-related-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
	border-radius: 8px;
}

.tolouteb-related-post:hover .tolouteb-related-image img {
	transform: scale(1.05);
}

.tolouteb-related-content {
	flex: 1;
	min-width: 0;
	line-height: 1.9;
	display: flex;
	flex-direction: column;
}

.tolouteb-related-post--no-image .tolouteb-related-content {
	padding-right: 2px;
}

.tolouteb-related-label {
	color: #13767c;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.tolouteb-related-title {
	color: #263f42;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.9;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tolouteb-related-post:hover .tolouteb-related-title {
	color: #13767c;
}

@media (max-width: 767px) {
	.tolouteb-related-inner {
		gap: 11px;
		padding: 10px 12px;
	}

	.tolouteb-related-image {
		flex: 0 0 70px;
		width: 70px;
		height: 58px;
	}

	.tolouteb-related-label {
		font-size: 13px;
	}

	.tolouteb-related-title {
		font-size: 14px;
		line-height: 2;
	}
}
