:root {
	--yarpp-color-primary: #3f5faf;
	--yarpp-color-deep: #233b7a;
	--yarpp-color-bright: #4169e1;
	--yarpp-color-soft: #f3f7ff;
	--yarpp-color-text: #1f2937;
	--yarpp-color-muted: #5b6472;
	--yarpp-color-border: #e5eaf4;
	--yarpp-color-orange: #f59a23;
}

.yarpp-related-box {
	position: relative;
	background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.yarpp-related-box__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

.yarpp-related-box__title {
	position: relative;
	font-size: 24px;
	font-weight: 700;
	color: var(--yarpp-color-text);
	margin: 0 0 36px;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 12px;
}

.yarpp-related-box__title::before {
	content: "";
	width: 4px;
	height: 24px;
	background: linear-gradient(180deg, var(--yarpp-color-primary), var(--yarpp-color-bright));
	border-radius: 2px;
	flex-shrink: 0;
}

.yarpp-related-box__title span {
	position: relative;
}

.yarpp-related-box__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.yarpp-related-card {
	position: relative;
	display: block;
	text-decoration: none;
	color: var(--yarpp-color-text);
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(63, 95, 175, 0.06);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid transparent;
}

.yarpp-related-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(63, 95, 175, 0.15);
	border-color: rgba(63, 95, 175, 0.1);
}

.yarpp-related-card__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--yarpp-color-soft);
	border-radius: 16px 16px 0 0;
}

.yarpp-related-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.yarpp-related-card:hover .yarpp-related-card__thumb img {
	transform: scale(1.08);
}

.yarpp-related-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, var(--yarpp-color-primary), var(--yarpp-color-bright));
}

.yarpp-related-card__title {
	padding: 18px 0px 22px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--yarpp-color-text);
	text-align: center;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yarpp-related-card:hover .yarpp-related-card__title {
	color: var(--yarpp-color-primary);
}

@media (max-width: 1024px) {
	.yarpp-related-box {
		padding: 36px 0;
	}

	.yarpp-related-box__title {
		font-size: 20px;
		margin-bottom: 28px;
	}

	.yarpp-related-box__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}

	.yarpp-related-card__title {
		font-size: 14px;
		padding: 16px 18px 20px;
		min-height: 88px;
	}
}

@media (max-width: 640px) {
	.yarpp-related-box {
		padding: 32px 0;
	}

	.yarpp-related-box__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.yarpp-related-card__title {
		font-size: 15px;
	}
}
