/* Energia Hírek – alapstílus. Felülírható a témában / Elementor Custom CSS-ben a változókkal. */
.eh-list {
	--eh-gap: 20px;
	--eh-accent: #1f7a4d;
	--eh-text: inherit;
	--eh-muted: #6b7280;
	--eh-border: rgba(0, 0, 0, .08);
	--eh-bg: transparent;
	--eh-radius: 10px;
	--eh-img-w: 160px;

	display: grid;
	gap: var(--eh-gap);
	grid-template-columns: 1fr;
}
.eh-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eh-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eh-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eh-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: var(--eh-bg);
	border: 1px solid var(--eh-border);
	border-radius: var(--eh-radius);
	color: var(--eh-text);
}
.eh-cols-2 .eh-item,
.eh-cols-3 .eh-item,
.eh-cols-4 .eh-item { flex-direction: column; }

.eh-img {
	flex: 0 0 var(--eh-img-w);
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: calc(var(--eh-radius) - 4px);
	background: var(--eh-border);
}
.eh-cols-2 .eh-img,
.eh-cols-3 .eh-img,
.eh-cols-4 .eh-img { flex-basis: auto; width: 100%; }
.eh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eh-body { min-width: 0; }

.eh-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--eh-muted);
	margin-bottom: 6px;
}
.eh-source {
	font-weight: 600;
	color: var(--eh-accent);
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: 12px;
}
.eh-source::after { content: "·"; margin-left: 8px; color: var(--eh-muted); font-weight: 400; }

.eh-title {
	margin: 0 0 6px;
	font-size: 1.05em;
	line-height: 1.35;
}
.eh-title a { color: inherit; text-decoration: none; }
.eh-title a:hover,
.eh-title a:focus-visible { color: var(--eh-accent); text-decoration: underline; }

.eh-excerpt {
	margin: 0;
	font-size: .92em;
	line-height: 1.5;
	color: var(--eh-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eh-empty { padding: 16px; color: #6b7280; }

@media (max-width: 900px) {
	.eh-cols-3, .eh-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.eh-list { grid-template-columns: 1fr; }
	.eh-item { flex-direction: column; }
	.eh-img { flex-basis: auto; width: 100%; }
}
