/* Elementor Posts Widget Pro - base styles */

.epwp-wrap {
	width: 100%;
}

.epwp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	row-gap: 30px;
	column-gap: 30px;
}

.epwp-post {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.epwp-skin-cards .epwp-post {
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.epwp-skin-cards .epwp-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Image left layout (classic skin) */
.epwp-image-left .epwp-post {
	flex-direction: row;
	align-items: flex-start;
}

.epwp-image-left .epwp-post-thumb {
	flex: 0 0 40%;
	max-width: 40%;
}

.epwp-post-thumb {
	overflow: hidden;
	line-height: 0;
}

.epwp-post-thumb img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.25s ease, transform 0.4s ease;
}

.epwp-post:hover .epwp-post-thumb img {
	transform: scale(1.03);
}

.epwp-post-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.epwp-post-thumb {
	position: relative;
}

.epwp-badge {
	position: absolute;
	z-index: 2;
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 3px;
	background: #6b21a8;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.epwp-badge-top-left { top: 12px; left: 12px; }
.epwp-badge-top-right { top: 12px; right: 12px; }
.epwp-badge-bottom-left { bottom: 12px; left: 12px; }
.epwp-badge-bottom-right { bottom: 12px; right: 12px; }

.epwp-meta-avatar img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	vertical-align: middle;
	display: inline-block;
}

.epwp-post-meta {
	font-size: 13px;
	color: #777;
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.epwp-meta-sep {
	opacity: 0.5;
}

.epwp-post-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
}

.epwp-post-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.epwp-post-title a:hover {
	color: #6b21a8;
}

.epwp-post-excerpt {
	color: #555;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 15px;
	flex-grow: 1;
}

.epwp-post-full-content {
	color: #333;
	line-height: 1.7;
}

.epwp-read-more {
	display: inline-block;
	align-self: flex-start;
	padding: 10px 20px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.epwp-read-more:hover {
	background: #6b21a8;
	color: #fff;
}

/* Pagination (numbers) */
.epwp-pagination {
	margin-top: 35px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.epwp-pagination a,
.epwp-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}

.epwp-pagination .current {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.epwp-pagination a:hover {
	border-color: #1a1a1a;
}

/* Load more */
.epwp-load-more-wrap {
	margin-top: 35px;
	text-align: center;
}

.epwp-load-more-btn {
	padding: 12px 28px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.epwp-load-more-btn:hover {
	opacity: 0.85;
}

.epwp-load-more-btn.epwp-loading {
	opacity: 0.6;
	cursor: wait;
}

.epwp-no-posts {
	text-align: center;
	color: #888;
	padding: 30px 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.epwp-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.epwp-grid {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.epwp-image-left .epwp-post {
		flex-direction: column;
	}

	.epwp-image-left .epwp-post-thumb {
		max-width: 100%;
		flex-basis: auto;
	}
}
