/* Główny kontener i zmienne wymiarów obrazka */
.epb-wrapper {
	--epb-thumb-width: 185px;
	--epb-thumb-height: 118px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	width: 100%;
}

/* Nagłówek nad boksem (np. Aktualności) */
.epb-top-heading {
	font-size: 28px;
	font-weight: 700;
	color: #0b3c75;
	margin: 0 0 16px 0;
	line-height: 1.2;
}

/* Karta (Boks) */
.epb-card {
	background-color: #ffffff;
	border-radius: 12px;
	border: 1px solid #e6eef6;
	box-shadow: 0 6px 24px rgba(11, 60, 117, 0.06);
	overflow: hidden;
}

/* Belka nagłówkowa */
.epb-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #1277d9;
	color: #ffffff;
	padding: 14px 24px;
	text-decoration: none !important;
	transition: filter 0.2s ease;
}

.epb-card-header-link:hover {
	filter: brightness(0.94);
	color: #ffffff;
}

.epb-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.epb-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	line-height: 1;
}

.epb-header-icon svg {
	width: 36px;
	height: 36px;
	display: block;
}

.epb-header-title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.2;
}

.epb-header-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.epb-card-header-link:hover .epb-header-arrow {
	transform: translateX(4px);
}

/* Lista postów */
.epb-posts-list {
	padding: 8px 24px 12px 24px;
}

.epb-post-item {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #edf2f7;
}

.epb-post-item:last-child {
	border-bottom: none;
}

/* Miniaturka – wyznacza wysokość wiersza */
.epb-post-thumb {
	flex: 0 0 var(--epb-thumb-width, 185px);
	width: var(--epb-thumb-width, 185px);
	height: var(--epb-thumb-height, 118px);
	border-radius: 10px;
	overflow: hidden;
	background-color: #f1f5f9;
}

.epb-post-thumb a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

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

.epb-post-thumb a:hover img {
	transform: scale(1.04);
}

.epb-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Treść wpisu po prawej – zrównana na wysokość z obrazkiem */
.epb-post-content {
	flex: 1;
	min-width: 0;
	height: var(--epb-thumb-height, 118px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	overflow: hidden;
}

/* Data równo z górną krawędzią obrazka */
.epb-post-date {
	display: block;
	font-size: 13px;
	line-height: 1;
	color: #5b7da0;
	margin: 0 0 4px 0;
	font-weight: 400;
	flex-shrink: 0;
}

/* Tytuł wpisu */
.epb-post-title {
	margin: 0 0 4px 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-shrink: 0;
}

.epb-post-title a {
	color: #0b3c75;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.epb-post-title a:hover {
	color: #1277d9;
}

/* Zajawka – mieści się między tytułem a przyciskiem */
.epb-post-excerpt {
	font-size: 14px;
	color: #466789;
	line-height: 1.38;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Przycisk Czytaj więcej – równo z dolną krawędzią obrazka */
.epb-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 1;
	font-weight: 600;
	color: #1277d9;
	text-decoration: none !important;
	margin-top: auto;
	padding-top: 4px;
	flex-shrink: 0;
	transition: gap 0.2s ease, opacity 0.2s ease;
}

.epb-read-more svg {
	display: block;
}

.epb-read-more:hover {
	gap: 10px;
	opacity: 0.85;
}

.epb-no-posts {
	padding: 20px 0;
	color: #5b7da0;
	margin: 0;
}

/* Responsywność na telefonach */
@media (max-width: 576px) {
	.epb-post-item {
		flex-direction: column;
		gap: 12px;
	}

	.epb-post-thumb {
		flex: none;
		width: 100%;
		height: 180px;
	}

	.epb-post-content {
		height: auto;
		overflow: visible;
	}

	.epb-post-title {
		-webkit-line-clamp: 2;
		margin-bottom: 6px;
	}

	.epb-post-excerpt {
		margin-bottom: 10px;
	}

	.epb-card-header {
		padding: 12px 16px;
	}

	.epb-posts-list {
		padding: 8px 16px 12px 16px;
	}

	.epb-header-title {
		font-size: 18px;
	}
}