.hk-articles {
	--hk-columns: 3;
	--hk-gap: 24px;
	width: 100%;
	direction: rtl;
}

.hk-articles__grid {
	display: grid;
	grid-template-columns: repeat(var(--hk-columns), minmax(0, 1fr));
	gap: var(--hk-gap);
}

.hk-articles__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit !important;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hk-articles__card:hover,
.hk-articles__card:focus {
	border-color: #d5d9e0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	color: inherit !important;
}

.hk-articles__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}

.hk-articles__thumb--placeholder {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.hk-articles__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hk-articles__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px 22px;
}

.hk-articles__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hk-articles__category {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 999px;
	background: #eef4f8;
	color: #1a2b4a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

.hk-articles__comments {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid #e0e4ea;
	border-radius: 999px;
	background: #fff;
	color: #5c6470;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
}

.hk-articles__comments-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.hk-articles__title {
	margin: 0;
	color: #0f1b33;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
}

.hk-articles__excerpt {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.85;
}

.hk-articles__empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: #6b7280;
}

@media (max-width: 1024px) {
	.hk-articles__grid {
		grid-template-columns: repeat(min(var(--hk-columns), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hk-articles__grid {
		grid-template-columns: 1fr;
	}

	.hk-articles__body {
		padding: 16px 18px 20px;
	}

	.hk-articles__title {
		font-size: 16px;
	}
}
