/**
 * Porady — listing /porady/ i pojedynczy wpis z kategorii "Porady".
 *
 * Układ i struktura jak blog e-sponsorowane.pl (es-blog-*), kolory
 * i typografia z ustawień Betheme tego serwisu (opcja "betheme"):
 *   color-theme / color-a         #585DBA  (akcent, przyciski motywu)
 *   button-theme-bg-hover         #4b50ad
 *   color-a-hover                 #252979
 *   color-h1..h6                  #111548
 *   color-text                    #6d6f7e
 *   background-body               #ffffff
 *   background-footer             #fff7f5
 *   background-header             #dfcacc, background-top-left #EEDFE1
 *   font-*                        Lato 300 / 400 / 700
 *   button-border-radius          0 (styl "flat")
 *   grid-width                    1240px, breakpointy Betheme 959 / 767
 *
 * Wszystkie klasy z prefiksem .bp-blog-, zakres body.bp-blog-body.
 */

body.bp-blog-body {
	--bp-blog-accent: #585dba;
	--bp-blog-accent-hover: #4b50ad;
	--bp-blog-accent-dark: #252979;
	--bp-blog-on-accent: #ffffff;
	--bp-blog-heading: #111548;
	--bp-blog-text: #6d6f7e;
	--bp-blog-muted: #8d8c9d;
	--bp-blog-bg: #ffffff;
	--bp-blog-soft: #fff7f5;
	--bp-blog-blush: #eedfe1;
	--bp-blog-pink: #dfcacc;
	--bp-blog-line: rgba(17, 21, 72, 0.1);
	--bp-blog-font: 'Lato', Helvetica, Arial, sans-serif;
	--bp-blog-radius: 0;
	--bp-blog-container: 1240px;
	/* Wpis: tekst, obrazek, hero, okruszki i "Przeczytaj także" mają jedną szerokość. */
	--bp-blog-article: var(--bp-blog-container);
	--bp-blog-gutter-mobile: 20px;
	--bp-blog-shadow: 0 2px 10px rgba(17, 21, 72, 0.05);
	--bp-blog-shadow-hover: 0 16px 36px rgba(17, 21, 72, 0.14);

	background-color: var(--bp-blog-bg);
	overflow-x: hidden;
}

body.bp-blog-body #Content.bp-blog {
	background-color: var(--bp-blog-bg);
}

body.bp-blog-body .bp-blog .content_wrapper,
body.bp-blog-body .bp-blog .sections_group {
	float: none;
	width: 100%;
	max-width: none;
	padding: 0;
}

.bp-blog {
	font-family: var(--bp-blog-font);
	color: var(--bp-blog-text);
}

.bp-blog .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bp-blog-wrap {
	width: 90%;
	max-width: var(--bp-blog-container);
	margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.bp-blog-hero {
	/* Stały nagłówek Betheme zasłania górę strony — offset mierzy assets/porady.js. */
	padding: calc(var(--bp-header-offset, 226px) + 70px) 0 80px;
	background-color: var(--bp-blog-blush);
	background-image:
		radial-gradient(circle at 85% 20%, rgba(88, 93, 186, 0.16), transparent 45%),
		linear-gradient(180deg, var(--bp-blog-blush) 0%, var(--bp-blog-soft) 100%);
	text-align: center;
}

.bp-blog-hero--single {
	padding-bottom: 150px;
	text-align: left;
}

/* Wpis: hero na tej samej osi i szerokości co obrazek i treść. */
.bp-blog-hero--single .bp-blog-wrap,
.bp-blog-related .bp-blog-wrap {
	max-width: var(--bp-blog-article);
}

.bp-blog-hero--single .bp-blog-hero__line {
	margin-left: 0;
}

.bp-blog-body--single .bp-blog .bp-blog-hero--single .bp-blog-hero__title {
	max-width: none;
	margin: 0;
}

.bp-blog-breadcrumbs {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--bp-blog-heading);
}

.bp-blog .bp-blog-breadcrumbs a {
	color: var(--bp-blog-accent);
	text-decoration: none;
}

.bp-blog .bp-blog-breadcrumbs a:hover {
	color: var(--bp-blog-accent-dark);
	text-decoration: underline;
}

.bp-blog-breadcrumbs__sep {
	margin: 0 8px;
	color: var(--bp-blog-muted);
}

.bp-blog-hero__line {
	display: block;
	width: 60px;
	height: 3px;
	margin: 0 auto 22px;
	background-color: var(--bp-blog-accent);
}

.bp-blog .bp-blog-hero__title {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	font-family: var(--bp-blog-font);
	font-weight: 300;
	font-size: clamp(44px, 7vw, 96px);
	line-height: 1.08;
	letter-spacing: 0.01em;
	color: var(--bp-blog-heading);
}

.bp-blog-body--single .bp-blog .bp-blog-hero__title {
	font-weight: 400;
	font-size: clamp(32px, 4.6vw, 58px);
	line-height: 1.15;
}

.bp-blog .bp-blog-hero__lead {
	max-width: 640px;
	margin: 22px auto 0;
	padding: 0;
	font-size: 19px;
	line-height: 1.7;
	color: var(--bp-blog-text);
}

.bp-blog .bp-blog-hero__meta {
	margin: 22px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bp-blog-text);
}

.bp-blog-hero__dot {
	margin: 0 10px;
	color: var(--bp-blog-accent);
}

/* ------------------------------------------------------------------ */
/* Przycisk i linki                                                    */
/* ------------------------------------------------------------------ */

.bp-blog a.bp-blog-button {
	display: inline-block;
	align-self: flex-start;
	padding: 16px 32px;
	font-family: var(--bp-blog-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--bp-blog-on-accent);
	text-decoration: none;
	background-color: var(--bp-blog-accent);
	border: 0;
	border-radius: var(--bp-blog-radius);
	transition: background-color 0.2s ease;
}

.bp-blog a.bp-blog-button:hover {
	color: var(--bp-blog-on-accent);
	background-color: var(--bp-blog-accent-hover);
}

.bp-blog a:focus-visible {
	outline: 2px solid var(--bp-blog-accent);
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Kafle                                                               */
/* ------------------------------------------------------------------ */

.bp-blog-listing {
	padding: 60px 0 95px;
}

.bp-blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--bp-blog-bg);
	border: 1px solid var(--bp-blog-line);
	border-radius: var(--bp-blog-radius);
	box-shadow: var(--bp-blog-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bp-blog-card::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background-color: var(--bp-blog-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.bp-blog-card:hover {
	transform: translateY(-4px);
	border-color: var(--bp-blog-pink);
	box-shadow: var(--bp-blog-shadow-hover);
}

.bp-blog-card:hover::after {
	transform: scaleX(1);
}

.bp-blog-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	overflow: hidden;
	background-color: var(--bp-blog-blush);
}

.bp-blog .bp-blog-media .bp-blog-media__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.bp-blog-media__img--empty {
	background: linear-gradient(135deg, var(--bp-blog-blush), var(--bp-blog-pink));
}

.bp-blog-card:hover .bp-blog-media__img {
	transform: scale(1.03);
}

.bp-blog-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 24px 26px;
}

.bp-blog .bp-blog-card__meta {
	margin: 0 0 10px;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bp-blog-muted);
}

.bp-blog .bp-blog-card__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--bp-blog-font);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--bp-blog-heading);
}

.bp-blog .bp-blog-card__title a {
	color: var(--bp-blog-heading);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bp-blog .bp-blog-card:hover .bp-blog-card__title a,
.bp-blog .bp-blog-card__title a:hover {
	color: var(--bp-blog-accent);
}

.bp-blog .bp-blog-card__excerpt {
	margin: 0 0 20px;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--bp-blog-text);
}

.bp-blog a.bp-blog-card__more {
	margin-top: auto;
	font-size: 15px;
	font-weight: 700;
	color: var(--bp-blog-accent);
	text-decoration: none;
}

.bp-blog a.bp-blog-card__more::after {
	content: ' ›';
}

.bp-blog a.bp-blog-card__more:hover {
	color: var(--bp-blog-accent-dark);
	text-decoration: underline;
}

/* Wyróżniony (najnowszy) wpis */
.bp-blog-card--featured {
	flex-direction: row;
	margin-bottom: 36px;
}

.bp-blog-card--featured .bp-blog-media {
	flex: 0 0 58%;
	aspect-ratio: auto;
	min-height: 380px;
}

.bp-blog .bp-blog-card--featured .bp-blog-media__img {
	position: absolute;
	inset: 0;
}

.bp-blog-card--featured .bp-blog-card__body {
	justify-content: center;
	padding: 44px 46px;
	background-color: var(--bp-blog-soft);
}

.bp-blog .bp-blog-card--featured .bp-blog-card__title {
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1.2;
	margin-bottom: 16px;
}

.bp-blog .bp-blog-card--featured .bp-blog-card__excerpt {
	font-size: 17px;
	margin-bottom: 28px;
}

/* Siatka */
.bp-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

/* Kafle "Przeczytaj także" */
.bp-blog .bp-blog-card--related .bp-blog-card__title {
	font-size: 19px;
	margin-bottom: 14px;
}

.bp-blog-card--related .bp-blog-card__body {
	padding: 20px 22px 22px;
}

.bp-blog .bp-blog-empty {
	margin: 0;
	padding: 0;
	font-size: 17px;
	color: var(--bp-blog-text);
	text-align: center;
}

.bp-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 50px;
}

.bp-blog-pagination .page-numbers {
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 400;
	color: var(--bp-blog-heading);
	text-decoration: none;
	border: 1px solid var(--bp-blog-line);
	border-radius: var(--bp-blog-radius);
}

.bp-blog-pagination .page-numbers.current,
.bp-blog-pagination a.page-numbers:hover {
	color: var(--bp-blog-on-accent);
	background-color: var(--bp-blog-accent);
	border-color: var(--bp-blog-accent);
}

/* ------------------------------------------------------------------ */
/* Pojedynczy wpis                                                     */
/* ------------------------------------------------------------------ */

.bp-blog-article {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.bp-blog-cover {
	width: 90%;
	max-width: var(--bp-blog-article);
	margin: -100px auto 0;
	padding: 0;
	position: relative;
}

.bp-blog .bp-blog-cover .bp-blog-cover__img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--bp-blog-radius);
	box-shadow: var(--bp-blog-shadow-hover);
}

.bp-blog-content {
	width: 90%;
	max-width: var(--bp-blog-article);
	margin: 0 auto;
	padding: 55px 0 40px;
	font-family: var(--bp-blog-font);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.75;
	color: var(--bp-blog-text);
}

.bp-blog .bp-blog-content p,
.bp-blog .bp-blog-content li {
	font-weight: 400;
	font-size: inherit;
	line-height: inherit;
	color: var(--bp-blog-text);
}

.bp-blog .bp-blog-content p {
	margin: 0 0 1.3em;
	padding: 0;
}

.bp-blog .bp-blog-content strong,
.bp-blog .bp-blog-content b {
	font-weight: 700;
	color: var(--bp-blog-heading);
}

/* Lead — pierwszy akapit */
.bp-blog .bp-blog-content > p:first-child {
	font-size: 21px;
	line-height: 1.65;
	color: var(--bp-blog-heading);
}

.bp-blog .bp-blog-content h2,
.bp-blog .bp-blog-content h3,
.bp-blog .bp-blog-content h4 {
	font-family: var(--bp-blog-font);
	font-weight: 400;
	color: var(--bp-blog-heading);
	padding: 0;
}

.bp-blog .bp-blog-content h2 {
	position: relative;
	margin: 2em 0 0.7em;
	padding-top: 18px;
	font-size: 32px;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.bp-blog .bp-blog-content h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background-color: var(--bp-blog-accent);
}

.bp-blog .bp-blog-content h3 {
	position: relative;
	margin: 1.6em 0 0.6em;
	padding-top: 14px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--bp-blog-accent);
}

.bp-blog .bp-blog-content h3::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 2px;
	background-color: var(--bp-blog-pink);
}

.bp-blog .bp-blog-content a {
	color: var(--bp-blog-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bp-blog .bp-blog-content a:hover {
	color: var(--bp-blog-accent-dark);
}

.bp-blog .bp-blog-content ul,
.bp-blog .bp-blog-content ol {
	margin: 0 0 1.4em;
	padding: 0;
	color: var(--bp-blog-text);
}

.bp-blog .bp-blog-content ul {
	list-style: none;
}

.bp-blog .bp-blog-content ul li {
	position: relative;
	margin: 0;
	padding: 0 0 0.55em 28px;
	list-style: none;
}

.bp-blog .bp-blog-content ul li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.68em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--bp-blog-accent);
}

/* Spis treści TOC+ ([toc]) — bez punktorów i wcięć list artykułu, wygląd z wtyczki. */
.bp-blog .bp-blog-content #toc_container ul,
.bp-blog .bp-blog-content #toc_container ul li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-blog .bp-blog-content #toc_container ul ul {
	margin-left: 1.5em;
}

.bp-blog .bp-blog-content #toc_container ul li::before {
	content: none;
}

.bp-blog .bp-blog-content #toc_container a {
	text-decoration: none;
}

.bp-blog .bp-blog-content ol {
	padding-left: 1.4em;
	list-style: decimal;
}

.bp-blog .bp-blog-content ol li {
	padding: 0 0 0.55em 4px;
	list-style: decimal;
}

.bp-blog .bp-blog-content ol li::marker {
	color: var(--bp-blog-accent);
	font-weight: 700;
}

.bp-blog .bp-blog-content blockquote {
	margin: 1.8em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--bp-blog-accent);
	background: var(--bp-blog-soft);
	font-size: 20px;
	font-style: italic;
	color: var(--bp-blog-heading);
}

.bp-blog .bp-blog-content blockquote p:last-child {
	margin-bottom: 0;
}

.bp-blog .bp-blog-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--bp-blog-radius);
}

.bp-blog-related {
	padding: 30px 0 95px;
	background-color: var(--bp-blog-soft);
	border-top: 1px solid var(--bp-blog-line);
}

.bp-blog-related .bp-blog-hero__line {
	margin: 50px 0 16px;
}

.bp-blog .bp-blog-related__title {
	margin: 0 0 30px;
	padding: 0;
	font-family: var(--bp-blog-font);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--bp-blog-heading);
}

/* ------------------------------------------------------------------ */
/* Responsywność — breakpointy Betheme: 959px i 767px                  */
/* ------------------------------------------------------------------ */

@media only screen and (max-width: 959px) {
	.bp-blog-hero {
		padding: calc(var(--bp-header-offset, 0px) + 60px) 0 65px;
	}

	.bp-blog-hero--single {
		padding-bottom: 110px;
	}

	.bp-blog-cover {
		margin-top: -70px;
	}

	.bp-blog-listing {
		padding: 45px 0 70px;
	}

	.bp-blog-card--featured {
		flex-direction: column;
	}

	.bp-blog-card--featured .bp-blog-media {
		flex: none;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.bp-blog-card--featured .bp-blog-card__body {
		padding: 30px 30px 32px;
	}

	.bp-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	/* "Przeczytaj także" — spec: 3 kolumny desktop, 1 mobile */
	.bp-blog-grid--related {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.bp-blog-related {
		padding-bottom: 70px;
	}
}

@media only screen and (max-width: 767px) {
	/* Wpis: stały odstęp boczny 20px zamiast 90% szerokości. */
	.bp-blog-hero--single .bp-blog-wrap,
	.bp-blog-related .bp-blog-wrap,
	.bp-blog-cover,
	.bp-blog-content {
		width: calc(100% - 2 * var(--bp-blog-gutter-mobile));
	}

	.bp-blog-hero {
		padding: calc(var(--bp-header-offset, 0px) + 45px) 0 50px;
	}

	.bp-blog-hero--single {
		padding-bottom: 80px;
	}

	.bp-blog-breadcrumbs {
		font-size: 13px;
		margin-bottom: 18px;
	}

	.bp-blog .bp-blog-hero__lead {
		font-size: 17px;
	}

	.bp-blog-cover {
		margin-top: -50px;
	}

	.bp-blog-grid,
	.bp-blog-grid--related {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.bp-blog-card--featured {
		margin-bottom: 20px;
	}

	.bp-blog-card--featured .bp-blog-card__body,
	.bp-blog-card__body {
		padding: 22px 20px 24px;
	}

	.bp-blog-content {
		padding-top: 40px;
		font-size: 17px;
	}

	.bp-blog .bp-blog-content > p:first-child {
		font-size: 19px;
	}

	.bp-blog .bp-blog-content h2 {
		font-size: 25px;
	}

	.bp-blog .bp-blog-content h3 {
		font-size: 20px;
	}

	.bp-blog .bp-blog-related__title {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bp-blog-card,
	.bp-blog-card::after,
	.bp-blog .bp-blog-media__img {
		transition: none;
	}

	.bp-blog-card:hover {
		transform: none;
	}
}
