/* DianApps Blog Cards: [post_cards]
   Fonts come from the theme / Elementor globals (no font-family set).
   Selectors are prefixed with .pcs-card so Elementor kit styles for h3, p and a don't override them. */

.pcs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
}
.pcs-grid--1 { grid-template-columns: minmax(0, 1fr); }
.pcs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcs-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcs-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pcs-grid * { box-sizing: border-box; }

.pcs-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #fff;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: 0 0.25rem 1.5rem rgba(16, 24, 40, 0.08);
}

.pcs-card .pcs-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	border-radius: 1.25rem;
	background: #eef1f5;
}
.pcs-card .pcs-card__media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.pcs-card .pcs-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 1.75rem 1.375rem 1.5rem;
	overflow-wrap: anywhere;
}

.pcs-card .pcs-card__cat {
	align-self: flex-start;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.4;
	font-weight: 400;
	color: #344054;
	text-decoration: none;
}

.pcs-card .pcs-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	line-height: 1.45;
	font-weight: 500;
	color: #101828;
}
.pcs-card .pcs-card__title a {
	color: inherit;
	text-decoration: none;
}
.pcs-card .pcs-card__title a:hover,
.pcs-card .pcs-card__cat:hover {
	color: #1d4ed8;
}

.pcs-card .pcs-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 1.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #475467;
}

.pcs-card .pcs-card__author {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: auto 0 1.125rem;
}
.pcs-card .pcs-card__avatar {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	object-fit: cover;
}
.pcs-card .pcs-card__meta {
	flex: 1;
	min-width: 0;
}
.pcs-card .pcs-card__by {
	display: block;
	font-size: 0.875rem;
	line-height: 1.35;
	font-weight: 600;
	color: #101828;
}
.pcs-card .pcs-card__read {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: #667085;
}

.pcs-card .pcs-card__date {
	font-size: 0.875rem;
	line-height: 1.4;
	color: #475467;
}

.pcs-notice {
	padding: 0.75rem 1rem;
	border-left: 0.25rem solid #d63638;
	background: #fcf0f1;
	color: #1d2327;
	font-size: 0.875rem;
}
.pcs-notice p { margin: 0 0 0.4rem; }
.pcs-notice p:last-child { margin-bottom: 0; }

/* Tablet */
@media (max-width: 1024px) {
	.pcs-grid:not(.pcs-grid--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 767px) {
	.pcs-grid:not(.pcs-grid--1) { grid-template-columns: minmax(0, 1fr); }
	.pcs-card .pcs-card__body { padding: 1.5rem 1.25rem 1.25rem; }
}
