.custom-blog-list {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}
.custom-blog-list a {
	text-decoration: none;
	color: inherit;
}
.custom-blog-list .cbl-row-feature {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}
.cbl-image-link {
  overflow: hidden;
	border-radius: 16px !important;
}
.cbl-image-link:hover img {
  transform: scale(1.05);
}
.cbl-image-link img {
  transition: transform 0.3s ease;
}
.cbl-feature {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	width: 100%;
}
.cbl-feature-media {
	flex: 1 1 47%;
	min-width: 320px;
}
.cbl-card-media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 16px !important;
}
.cbl-card-media:hover img {
  transform: scale(1.05);
}
.cbl-card-media img,
.cbl-card-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
  transition: transform 0.3s ease;
}

.cbl-feature-media .cbl-image,
.cbl-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	background: #eee;
}
.cbl-feature-body {
	flex: 1 1 50%;
	min-width: 320px;
	display: flex;
	flex-direction: column;
}
.cbl-meta {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	opacity: 0.75;
}
.cbl-title {
	margin: 0 0 12px;
	line-height: 1.25;
}
.cbl-feature .cbl-title {
	font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}
.cbl-card .cbl-title {
	font-size: 1.05rem;
}
.cbl-excerpt {
	margin: 0 0 10px;
	font-size: 0.95rem;
	line-height: 1.5;
}
.cbl-row-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin-bottom: 36px;
}
.cbl-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.cbl-card-body {
	display: flex;
	flex-direction: column;
}
.cbl-cta-wrapper {
	text-align: center;
	margin-top: 8px;
}
.cbl-cta-button {
	background: #111;
	color: #fff;
	padding: 12px 28px;
	border-radius: 4px;
	font-size: 0.95rem;
	transition: 0.25s background;
}
.cbl-cta-button:hover {
	background: #333;
}
.cbl-image--placeholder {
	background: repeating-linear-gradient(
		45deg,
		#ddd,
		#ddd 10px,
		#ccc 10px,
		#ccc 20px
	);
	height: 100%;
}
@media (max-width: 800px) {
	.cbl-feature {
		flex-direction: column;
	}
	.cbl-feature-media,
	.cbl-feature-body {
		min-width: 100%;
	}
}

/* ========== Figma overrides ========== */

/* Meta (data | kategoria) */
.custom-blog-list .cbl-meta {
	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 400;
	line-height: 160%; /* 16px */
	letter-spacing: -0.2px;
	color: var(--Foundation-Grey-G900, #1e1e1e);
}

/* Wyróżniony tytuł (H2) */
.custom-blog-list .cbl-feature .cbl-title {
	font-family: Inter, sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 110%; /* 44px */
	color: var(--Foundation-Grey-G900, #1e1e1e);
	margin: 0 0 16px;
}

/* Wyróżniony opis */
.custom-blog-list .cbl-feature .cbl-excerpt {
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 160%; /* 25.6px */
	color: var(--Foundation-Grey-G900, #1e1e1e);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Karty (małe) – tytuł H3 */
.custom-blog-list .cbl-card .cbl-title {
	font-family: Inter, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 134%; /* 32.16px */
	color: var(--Foundation-Grey-G900, #1e1e1e);
	margin: 0 0 12px;
}

/* Karty (małe) – opis */
.custom-blog-list .cbl-card .cbl-excerpt {
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 160%; /* 25.6px */
	color: var(--Foundation-Grey-G900, #1e1e1e);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* (Opcjonalnie można dodać line-clamp – odkomentować jeśli potrzebne) */

.custom-blog-list .cbl-feature .cbl-excerpt,
.custom-blog-list .cbl-card .cbl-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
}

/* Button CTA */

.cbl-cta-wrapper {
	text-align: end;
}

.cbl-cta-button {
	color: var(--Foundation-Grey-G900, #1e1e1e) !important;
	background: transparent;
	padding: 0 !important;
	display: flex;
	align-items: center;
	width: fit-content;
	margin-left: auto;
	justify-content: center;
	margin-bottom: 20px;
	gap: 8px;
}

.cbl-cta-button:hover {
	background: transparent;
	color: var(--Foundation-Grey-G900, #1e1e1e);
	filter: brightness(1.2);
	-webkit-filter: brightness(1.2);
	transition: all 0.3s ease;
	text-decoration: underline;
}

/* ========== RESPONSYWNOŚĆ ========== */

/* Tablet - szerokość <= 1024px */
@media (max-width: 1024px) {
	.cbl-feature {
		gap: 24px;
	}
	.custom-blog-list .cbl-feature .cbl-title {
		font-size: 34px;
		line-height: 115%;
	}
	.custom-blog-list .cbl-card .cbl-title {
		font-size: 22px;
		line-height: 130%;
	}
	.custom-blog-list .cbl-meta {
		font-size: 11px;
		letter-spacing: -0.15px;
	}
	.cbl-row-grid {
		gap: 20px;
	}
	.cbl-feature-media {
		flex: 1 1 48%;
	}
	.cbl-feature-body {
		flex: 1 1 48%;
	}
}

/* Mały tablet / duże telefony poziomo <= 820px */
@media (max-width: 820px) {
	.cbl-feature {
		flex-direction: column;
	}
	.cbl-feature-media,
	.cbl-feature-body {
		min-width: 100%;
	}
	.custom-blog-list .cbl-feature .cbl-title {
		font-size: 30px;
	}
	.custom-blog-list .cbl-card .cbl-title {
		font-size: 20px;
	}
	.cbl-row-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
	.custom-blog-list .cbl-feature .cbl-excerpt,
	.custom-blog-list .cbl-card .cbl-excerpt {
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
	.cbl-feature-media .cbl-image,
	.cbl-card-image {
		border-radius: 14px !important;
	}
}

/* Telefony <= 600px */
@media (max-width: 600px) {
	.custom-blog-list .cbl-feature .cbl-title {
		font-size: 26px;
		line-height: 120%;
		margin-bottom: 12px;
	}
	.custom-blog-list .cbl-card .cbl-title {
		font-size: 18px;
		line-height: 125%;
	}
	.custom-blog-list .cbl-meta {
		font-size: 9px;
		gap: 4px;
	}
	.cbl-row-grid {
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}
	.cbl-feature {
		gap: 20px;
	}
	.cbl-card {
		gap: 10px;
	}
	.custom-blog-list .cbl-feature .cbl-excerpt,
	.custom-blog-list .cbl-card .cbl-excerpt {
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
	.cbl-feature-media .cbl-image,
	.cbl-card-image {
		border-radius: 12px !important;
	}
	.cbl-cta-wrapper {
		margin-top: 4px;
	}
	.cbl-cta-button {
		font-size: 0.85rem;
	}
}

/* Bardzo małe ekrany <= 420px */
@media (max-width: 420px) {
	.cbl-row-grid {
		grid-template-columns: 1fr;
	}
	.custom-blog-list .cbl-feature .cbl-title {
		font-size: 24px;
	}
	.custom-blog-list .cbl-card .cbl-title {
		font-size: 17px;
	}
	.cbl-cta-wrapper {
		text-align: center;
	}
	.cbl-cta-button {
		margin-left: 0;
		justify-content: center;
	}
	.cbl-feature-media .cbl-image,
	.cbl-card-image {
		border-radius: 10px !important;
	}
}

/* Preferencje użytkownika – ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
	.cbl-cta-button,
	.cbl-card-image,
	.cbl-image {
		transition: none !important;
	}
}
