/* DeepSeek Multilingual — Posts (Multilingual) widget */
.dsml-posts-widget {
	--dsml-cols-d: 3;
	--dsml-cols-t: 2;
	--dsml-cols-m: 1;
	--dsml-gap: 20px;
	display: block;
	width: 100%;
}

.dsml-posts-grid {
	display: grid;
	grid-template-columns: repeat(var(--dsml-cols-d), minmax(0, 1fr));
	gap: var(--dsml-gap);
}

@media (max-width: 1024px) {
	.dsml-posts-grid {
		grid-template-columns: repeat(var(--dsml-cols-t), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.dsml-posts-grid {
		grid-template-columns: repeat(var(--dsml-cols-m), minmax(0, 1fr));
	}
}

.dsml-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 8px;
	height: 100%;
}

.dsml-post-card__image {
	display: block;
	line-height: 0;
}

.dsml-post-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.dsml-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	flex: 1 1 auto;
}

.dsml-post-card__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	line-height: 1;
}

.dsml-post-card__terms .dsml-post-term {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f1f3f5;
	color: #495057;
	text-decoration: none;
}

.dsml-post-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
}

.dsml-post-card__title a {
	text-decoration: none;
	color: inherit;
}

.dsml-post-card__meta {
	font-size: 13px;
	color: #868e96;
}

.dsml-post-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #495057;
}

.dsml-post-card__readmore {
	margin-top: auto;
	font-weight: 600;
	text-decoration: none;
	color: #1c7ed6;
}

.dsml-posts-empty {
	padding: 16px 0;
	color: #868e96;
}

.dsml-posts-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.dsml-posts-pagination--numbers ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dsml-posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	background: #fff;
	color: #343a40;
	text-decoration: none;
}

.dsml-posts-pagination .page-numbers.current,
.dsml-posts-pagination a.page-numbers:hover {
	background: #1c7ed6;
	border-color: #1c7ed6;
	color: #fff;
}

.dsml-posts-load-more {
	cursor: pointer;
}

.dsml-posts-load-more[disabled] {
	opacity: .6;
	cursor: default;
}
