:root {
	--hrp-primary: #172d4a;
	--hrp-primary-dark: #102239;
	--hrp-surface: #f6f8fb;
	--hrp-border: #e5eaf0;
	--hrp-muted: #6b7280;
	--hrp-white: #ffffff;
}

.hrp-related-post {
	box-sizing: border-box;
	width: 100%;
	margin-block: 2rem;
	color: var(--hrp-primary);
	font-family: inherit;
	direction: rtl;
}

.hrp-related-post *,
.hrp-related-post *::before,
.hrp-related-post *::after {
	box-sizing: border-box;
}

.hrp-card {
	display: grid;
	grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
	align-items: stretch;
	min-width: 0;
	color: var(--hrp-primary);
	text-decoration: none !important;
	background: var(--hrp-surface);
	border: 1px solid var(--hrp-border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(23, 45, 74, 0.08);
	overflow: hidden;
	isolation: isolate;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hrp-card:hover {
	color: var(--hrp-primary);
	border-color: rgba(23, 45, 74, 0.34);
	box-shadow: 0 12px 30px rgba(23, 45, 74, 0.12);
	transform: translateY(-2px);
}

.hrp-card:focus-visible {
	outline: 3px solid rgba(23, 45, 74, 0.24);
	outline-offset: 3px;
}

.hrp-card__media {
	display: block;
	align-self: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e8eef4;
	overflow: hidden;
}

.hrp-card__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 320ms ease;
}

.hrp-card:hover .hrp-card__image:not(.hrp-card__image--placeholder) {
	transform: scale(1.025);
}

.hrp-card__image--placeholder {
	display: grid;
	place-items: center;
	color: rgba(23, 45, 74, 0.52);
	background: #e8eef4;
}

.hrp-card__image--placeholder svg {
	width: 42px;
	height: 42px;
}

.hrp-card__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 9px;
	min-width: 0;
	padding: 22px 28px 22px 58px;
	text-align: right;
}

.hrp-card__content::before {
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 28px;
	width: 3px;
	content: "";
	background: var(--hrp-primary);
	border-radius: 999px;
}

.hrp-card__label {
	display: inline-flex;
	align-items: center;
	min-height: 29px;
	padding: 4px 12px;
	color: var(--hrp-white);
	background: var(--hrp-primary);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.hrp-card__category {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--hrp-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
}

.hrp-card__category::before {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	content: "";
	background: var(--hrp-primary);
	border-radius: 50%;
}

.hrp-card__title {
	display: -webkit-box;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	color: var(--hrp-primary);
	font-size: clamp(17px, 2vw, 21px);
	font-weight: 800;
	line-height: 1.7;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.hrp-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 34px;
	margin-block-start: 3px;
	padding: 5px 13px;
	color: var(--hrp-primary);
	background: transparent;
	border: 1px solid var(--hrp-primary);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
	transition: color 180ms ease, background-color 180ms ease;
}

.hrp-card__arrow {
	display: inline-block;
	font-family: Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	transition: transform 180ms ease;
}

.hrp-card:hover .hrp-card__cta {
	color: var(--hrp-white);
	background: var(--hrp-primary);
}

.hrp-card:hover .hrp-card__arrow {
	transform: translateX(-3px);
}

@media (max-width: 767px) {
	.hrp-related-post {
		margin-block: 1.5rem;
	}

	.hrp-card {
		grid-template-columns: 132px minmax(0, 1fr);
		min-height: 156px;
		border-radius: 13px;
		box-shadow: 0 7px 20px rgba(23, 45, 74, 0.08);
	}

	.hrp-card__media {
		justify-self: center;
		width: 116px;
		height: 87px;
		aspect-ratio: auto;
		border-radius: 10px;
	}

	.hrp-card__content {
		gap: 7px;
		padding: 15px 10px 12px 14px;
	}

	.hrp-card__content::before {
		top: 0;
		bottom: auto;
		left: 14px;
		width: 42px;
		height: 3px;
	}

	.hrp-card__label {
		min-height: 24px;
		padding: 3px 9px;
		font-size: 10.5px;
	}

	.hrp-card__category {
		display: none;
	}

	.hrp-card__title {
		font-size: 14px;
		line-height: 1.65;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.hrp-card__cta {
		min-height: 29px;
		margin-block-start: 0;
		padding: 3px 9px;
		font-size: 10.5px;
	}

	.hrp-card__arrow {
		font-size: 14px;
	}
}

@media (max-width: 380px) {
	.hrp-card {
		grid-template-columns: 118px minmax(0, 1fr);
		min-height: 148px;
	}

	.hrp-card__media {
		width: 104px;
		height: 78px;
	}

	.hrp-card__content {
		padding-inline: 8px 12px;
	}

	.hrp-card__title {
		font-size: 13px;
		line-height: 1.6;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hrp-card,
	.hrp-card__image,
	.hrp-card__cta,
	.hrp-card__arrow {
		transition: none;
	}
}
