/* ============================================
   Post List News for Elementor - Styles
   ============================================ */

.plne-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

/* ========== Item Base ========== */
.plne-item {
	display: flex;
	background: #ffffff;
	transition: all 0.3s ease;
	overflow: hidden;
}

/* Image Left / Right */
.plne-layout-list.plne-img-left .plne-item,
.plne-layout-card.plne-img-left .plne-item {
	flex-direction: row;
	align-items: stretch;
}

.plne-layout-list.plne-img-right .plne-item,
.plne-layout-card.plne-img-right .plne-item {
	flex-direction: row-reverse;
	align-items: stretch;
}

/* Image Top */
.plne-layout-list.plne-img-top .plne-item,
.plne-layout-card.plne-img-top .plne-item {
	flex-direction: column;
}

/* ========== Thumbnail ========== */
.plne-thumb {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.plne-thumb a {
	display: block;
	height: 100%;
}

.plne-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.plne-item:hover .plne-thumb img {
	transform: scale(1.05);
}

.plne-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: background-color 0.3s ease;
}

/* ========== Content ========== */
.plne-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px 20px;
	min-width: 0;
}

/* Category Badge */
.plne-category {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 3px;
	margin-bottom: 8px;
	text-decoration: none;
	line-height: 1.4;
	transition: opacity 0.2s ease;
}

.plne-category:hover {
	opacity: 0.85;
	color: inherit;
}

/* Title */
.plne-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

.plne-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.plne-title a:hover {
	color: #e74c3c;
}

/* Meta */
.plne-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #777;
	margin-bottom: 10px;
}

.plne-meta span {
	display: inline-flex;
	align-items: center;
}

.plne-date::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 5px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Excerpt */
.plne-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 12px;
	flex-grow: 1;
}

/* Read More */
.plne-readmore {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #e74c3c;
	margin-top: auto;
	transition: color 0.2s ease, transform 0.2s ease;
}

.plne-readmore:hover {
	color: #c0392b;
	transform: translateX(3px);
}

/* ========== Layout: Card ========== */
.plne-layout-card .plne-item {
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #eee;
}

.plne-layout-card .plne-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* ========== Layout: Magazine ========== */
.plne-layout-magazine .plne-item {
	flex-direction: row;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
}

.plne-layout-magazine .plne-item:last-child {
	border-bottom: none;
}

.plne-layout-magazine .plne-thumb {
	width: 140px;
	flex: 0 0 140px;
	margin-right: 20px;
}

.plne-layout-magazine .plne-title {
	font-size: 17px;
}

.plne-layout-magazine .plne-content {
	padding: 0;
}

/* ========== Layout: Timeline ========== */
.plne-layout-timeline {
	position: relative;
	padding-left: 30px;
}

.plne-layout-timeline::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: #e0e0e0;
}

.plne-layout-timeline .plne-item {
	position: relative;
	flex-direction: column;
	padding-left: 0;
	border: none;
	background: transparent;
}

.plne-layout-timeline .plne-item::before {
	content: '';
	position: absolute;
	left: -27px;
	top: 8px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e74c3c;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #e74c3c;
	z-index: 1;
}

.plne-layout-timeline .plne-thumb {
	width: 100%;
	margin-bottom: 12px;
	border-radius: 8px;
	overflow: hidden;
}

.plne-layout-timeline .plne-content {
	padding: 0;
}

/* ========== Layout: Minimal ========== */
.plne-layout-minimal .plne-item {
	flex-direction: column;
	border-bottom: 1px solid #eee;
	padding-bottom: 16px;
	background: transparent;
}

.plne-layout-minimal .plne-item:last-child {
	border-bottom: none;
}

.plne-layout-minimal .plne-thumb {
	display: none;
}

.plne-layout-minimal .plne-content {
	padding: 0;
}

.plne-layout-minimal .plne-title {
	font-size: 16px;
	font-weight: 600;
}

/* ========== No Posts ========== */
.plne-no-posts {
	padding: 20px;
	text-align: center;
	color: #888;
	font-style: italic;
}

/* ========== Pagination ========== */
.plne-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
	width: 100%;
}

.plne-pagination a,
.plne-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border-radius: 6px;
	background-color: #f5f5f5;
	color: #333;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.plne-pagination a:hover {
	background-color: #e74c3c;
	color: #ffffff;
}

.plne-pagination span.current {
	background-color: #e74c3c;
	color: #ffffff;
	font-weight: 600;
}

.plne-pagination span.dots {
	background: transparent;
	min-width: auto;
	padding: 8px 6px;
	color: #999;
}

.plne-pagination a.prev,
.plne-pagination a.next {
	font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 767px) {
	.plne-layout-list.plne-img-left .plne-item,
	.plne-layout-list.plne-img-right .plne-item,
	.plne-layout-card.plne-img-left .plne-item,
	.plne-layout-card.plne-img-right .plne-item,
	.plne-layout-magazine .plne-item {
		flex-direction: column;
	}

	.plne-thumb {
		width: 100% !important;
		flex: none !important;
		max-height: 220px;
	}

	.plne-layout-magazine .plne-thumb {
		margin-right: 0;
		margin-bottom: 12px;
	}

	.plne-content {
		padding: 14px 16px;
	}

	.plne-title {
		font-size: 16px;
	}

	.plne-pagination a,
	.plne-pagination span {
		min-width: 34px;
		height: 34px;
		padding: 6px 10px;
		font-size: 13px;
	}
}
