/* =============================================================
   VT Elementor Blog Posts Grid Widget
   ============================================================= */

.vt-ep-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* Card */
.vt-ep-card {
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease;
}

.vt-ep-card:hover {
	box-shadow: 0 6px 22px rgba(0,0,0,.12);
	transform: translateY(-3px);
}

/* Image */
.vt-ep-image-wrap {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	text-decoration: none;
}

.vt-ep-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.vt-ep-card:hover .vt-ep-img { transform: scale(1.05); }

.vt-ep-no-img {
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: #dde4ef;
}

/* Category badge */
.vt-ep-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: .07em;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	z-index: 2;
}

/* Body */
.vt-ep-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 18px;
	gap: 8px;
}

/* Title */
.vt-ep-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vt-ep-title a {
	color: #002D8C;
	text-decoration: none;
	transition: color .2s;
}

.vt-ep-title a:hover { color: #1a56db; }

/* Excerpt */
.vt-ep-excerpt {
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta */
.vt-ep-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: 10px;
}

.vt-ep-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Read more */
.vt-ep-read-more {
	display: inline-block;
	color: #1a56db;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	margin-top: auto;
	padding-top: 4px;
	transition: color .2s;
}

.vt-ep-read-more:hover {
	color: #1043a6;
	text-decoration: underline;
}

/* ============================================================
   LIST LAYOUT
   ============================================================ */
.vt-ep-list {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 16px;
}

.vt-ep-card--list {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border-radius: 8px;
	box-shadow: none;
	border: 1px solid #f0f0f0;
	padding: 14px;
	gap: 14px;
	background: #fff;
	transform: none !important;
	transition: box-shadow .2s;
}

.vt-ep-card--list:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
	transform: none !important;
}

.vt-ep-card--list .vt-ep-image-wrap {
	flex: 0 0 120px;
	width: 120px;
	position: relative;
	aspect-ratio: unset;
	border-radius: 8px;
	overflow: hidden;
	min-height: 80px;
}

.vt-ep-card--list .vt-ep-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vt-ep-card--list:hover .vt-ep-img { transform: scale(1.04); }

.vt-ep-card--list .vt-ep-body {
	padding: 0;
	gap: 5px;
}

.vt-ep-card--list .vt-ep-title {
	font-size: 0.92rem;
	-webkit-line-clamp: 2;
}

.vt-ep-card--list .vt-ep-excerpt {
	font-size: 0.8rem;
	-webkit-line-clamp: 2;
}

/* Inline badge (list layout) */
.vt-ep-badge--inline {
	position: static;
	display: inline-block;
	width: fit-content;
	align-self: flex-start;
	font-size: 0.58rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.vt-ep-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.vt-ep-grid { grid-template-columns: 1fr; }
	.vt-ep-list { grid-template-columns: 1fr !important; }

	.vt-ep-card--list {
		flex-direction: column;
	}

	.vt-ep-card--list .vt-ep-image-wrap {
		flex: none !important;
		width: 100% !important;
		height: 180px;
		border-radius: 8px 8px 0 0;
	}
}
