/* Ecodle Blog — all widget styles. Colours and sizes are editable in each widget's Style tab. */

/* =========================================================
 * Blog Archive · Recent Posts · Search Box
 * ====================================================== */
.ecba,
.ecrp,
.ecsb {
	--ecba-accent: #1A8FE3;
	--ecba-soft: #E9F2DF;
	--ecba-deep: #2F6B1E;
	--ecba-text: #14213D;
	--ecba-muted: #5B6472;
	--ecba-border: #E4EAEF;
	color: var(--ecba-text);
}

.ecba .screen-reader-text,
.ecsb .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;
}

.ecba svg,
.ecrp svg,
.ecsb svg { display: block; flex: 0 0 auto; }

/* placeholder (no featured image) */
.ecb-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 12px;
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
	color: var(--ecba-deep);
}

.ecb-ph svg { width: 26px; height: 26px; }

/* ---------- featured ---------- */
.ecba__featured {
	display: grid;
	grid-template-columns: 48% minmax(0, 1fr);
	align-items: center;
	gap: 44px;
	margin-bottom: 56px;
}

.ecba__featured[hidden] { display: none; }

.ecba__featured-media,
.ecba__card-media,
.ecrp__thumb { text-decoration: none !important; }

.ecba__featured-media,
.ecba__card-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ecba-soft);
}

.ecba__featured-media {
	height: 360px;
	border-radius: 14px;
}

.ecba__featured-media img,
.ecba__card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.ecba__featured-media:hover img,
.ecba__card:hover .ecba__card-media img { transform: scale(1.04); }

.ecba__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ecba__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ecba-deep);
	background: var(--ecba-soft);
	border-radius: 999px;
}

.ecba__badge--featured {
	color: #fff;
	background: var(--ecba-accent);
}

.ecba .ecba__featured-title {
	margin: 0 0 16px;
	padding: 0;
	font-size: 34px;
	line-height: 1.2;
	color: var(--ecba-text);
}

.ecba .ecba__featured-title a,
.ecba .ecba__card-title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.ecba .ecba__featured-title a:hover,
.ecba .ecba__card-title a:hover { color: var(--ecba-accent); }

.ecba__featured-excerpt {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ecba-muted);
}

.ecba__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 26px;
	font-size: 13px;
	color: var(--ecba-muted);
}

.ecba__dot { opacity: .6; }

.ecba .ecba__btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 46px;
	padding: 6px 6px 6px 22px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--ecba-accent);
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}

.ecba .ecba__btn:hover { color: #fff; background: #00380F; }

.ecba__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(0, 0, 0, .18);
	border-radius: 50%;
}

.ecba__btn-icon svg { width: 16px; height: 16px; }

/* ---------- filter bar ---------- */
.ecba__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 34px;
}

.ecba__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.ecba .ecba__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	color: var(--ecba-text);
	background: #fff;
	border: 1px solid var(--ecba-border);
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ecba .ecba__pill:hover {
	color: var(--ecba-accent);
	border-color: var(--ecba-accent);
}

.ecba .ecba__pill.is-active,
.ecba .ecba__pill.is-active:hover {
	color: #fff;
	background: var(--ecba-accent);
	border-color: var(--ecba-accent);
}

.ecba__pill-count {
	font-size: 11px;
	opacity: .7;
}

.ecba__search,
.ecsb__form {
	position: relative;
	display: flex;
	align-items: center;
	height: 46px;
	margin: 0;
	padding: 0 5px 0 18px;
	background: #fff;
	border: 1px solid var(--ecba-border);
	border-radius: 999px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ecba__search { width: 300px; max-width: 100%; }

.ecba__search:focus-within,
.ecsb__form:focus-within {
	border-color: var(--ecba-accent);
	box-shadow: 0 0 0 3px rgba(26, 143, 227, .12);
}

.ecba .ecba__search input,
.ecsb .ecsb__form input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	font: inherit;
	font-size: 13px;
	color: var(--ecba-text);
}

.ecba .ecba__search button,
.ecsb .ecsb__form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	color: #fff;
	background: var(--ecba-accent);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s ease;
}

.ecba .ecba__search button:hover,
.ecsb .ecsb__form button:hover { background: #00380F; }

.ecba .ecba__search button svg,
.ecsb .ecsb__form button svg { width: 16px; height: 16px; }

/* ---------- grid ---------- */
.ecba__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	transition: opacity .2s ease;
}

.ecba.is-loading .ecba__grid { opacity: .45; pointer-events: none; }

.ecba__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ecba-border);
	border-radius: 12px;
	transition: box-shadow .3s ease, transform .3s ease;
}

.ecba__card:hover { box-shadow: 0 16px 34px rgba(20, 33, 61, .08); }

.ecba__card-media { height: 210px; }

.ecba__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
}

.ecba .ecba__card-title {
	margin: 2px 0 0;
	padding: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ecba-text);
}

.ecba__card-excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ecba-muted);
}

.ecba__card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 12px;
	color: var(--ecba-muted);
	border-top: 1px solid var(--ecba-border);
}

.ecba__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 40px 20px;
	text-align: center;
	color: var(--ecba-muted);
	background: #fff;
	border: 1px dashed var(--ecba-border);
	border-radius: 12px;
}

/* ---------- pagination ---------- */
.ecba__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.ecba__pagination[hidden] { display: none; }

.ecba .ecba__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--ecba-text);
	background: #fff;
	border: 1px solid var(--ecba-border);
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ecba .ecba__page svg { width: 16px; height: 16px; }

.ecba a.ecba__page:hover {
	color: var(--ecba-accent);
	border-color: var(--ecba-accent);
}

.ecba .ecba__page.is-current {
	color: #fff;
	background: var(--ecba-accent);
	border-color: var(--ecba-accent);
}

.ecba .ecba__page.is-disabled { opacity: .4; pointer-events: none; }

.ecba .ecba__page--dots { border-color: transparent; background: transparent; }

.ecba .ecba__more {
	padding: 13px 28px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--ecba-accent);
	background: #fff;
	border: 1px solid var(--ecba-accent);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.ecba .ecba__more:hover { color: #fff; background: var(--ecba-accent); }

.ecba a:focus-visible,
.ecba button:focus-visible,
.ecrp a:focus-visible,
.ecsb button:focus-visible { outline: 2px solid var(--ecba-accent); outline-offset: 2px; }

/* ---------- recent posts & search box (sidebar) ---------- */
.ecrp,
.ecsb {
	padding: 22px 20px;
	background: #fff;
	border: 1px solid var(--ecba-border);
	border-radius: 12px;
}

.ecrp .ecrp__title,
.ecsb .ecsb__title {
	margin: 0 0 16px;
	padding: 0;
	font-size: 17px;
	line-height: 1.3;
	color: var(--ecba-text);
}

.ecrp__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecrp__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.ecrp__item::before { display: none; }

.ecrp__thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	overflow: hidden;
	color: var(--ecba-deep);
	background: var(--ecba-soft);
	border-radius: 8px;
}

.ecrp__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ecrp__thumb svg { width: 20px; height: 20px; opacity: .7; }

.ecrp__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ecrp .ecrp__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	color: var(--ecba-text);
	transition: color .2s ease;
}

.ecrp .ecrp__name:hover { color: var(--ecba-accent); }

.ecrp__cat {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ecba-accent);
}

.ecrp__date,
.ecrp__excerpt {
	font-size: 12px;
	line-height: 1.5;
	color: var(--ecba-muted);
}

.ecrp__num {
	flex: 0 0 auto;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: var(--ecba-soft);
}

.ecrp__empty { margin: 0; font-size: 13px; color: var(--ecba-muted); }

.ecrp-thumb-right .ecrp__item { flex-direction: row-reverse; justify-content: space-between; }
.ecrp-thumb-top .ecrp__item { flex-direction: column; align-items: stretch; }
.ecrp-thumb-top .ecrp__thumb { width: 100%; height: 150px; }

.ecsb__form { height: 42px; }
.ecsb .ecsb__form button { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.ecba__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ecba__featured { gap: 28px; }
	.ecba .ecba__featured-title { font-size: 28px; }
}

@media (max-width: 767px) {
	.ecba__grid { grid-template-columns: 1fr; gap: 18px; }

	.ecba__featured {
		grid-template-columns: 1fr !important;
		gap: 22px;
		margin-bottom: 40px;
	}
	.ecba__featured-media { height: 220px; }
	.ecba .ecba__featured-title { font-size: 24px; }

	.ecba__bar { flex-direction: column; align-items: stretch; }
	.ecba__pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -4px;
		padding: 2px 4px 6px;
		scrollbar-width: none;
	}
	.ecba__pills::-webkit-scrollbar { display: none; }
	.ecba__search { width: 100% !important; }

	.ecba__card-media { height: 190px; }
	.ecba .ecba__page { min-width: 34px; height: 34px; font-size: 13px; }
	.ecba__pagination { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.ecba *, .ecrp * { transition: none !important; }
}

/* =========================================================
 * Post Info
 * ====================================================== */
.ecpi {
	--ecpi-justify: center;
	text-align: center;
}

.ecpi__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--ecpi-justify);
	gap: 8px;
	margin-bottom: 20px;
}

.ecpi .ecpi__badge {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: #00380F;
	background: #E9F2DF;
	border: 0 solid transparent;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ecpi a.ecpi__badge:hover { color: #fff; background: #1A8FE3; }

.ecpi .ecpi__title {
	margin: 0 0 22px;
	padding: 0;
	line-height: 1.15;
	color: inherit;
}

.ecpi .ecpi__title {
	margin-left: var(--ecpi-ml, auto);
	margin-right: var(--ecpi-mr, auto);
}

.ecpi__meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--ecpi-justify);
	column-gap: 12px;
	row-gap: 6px;
	font-size: 15px;
	line-height: 1.4;
}

.ecpi__meta a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.ecpi__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ecpi__icon {
	display: inline-flex;
	font-size: 15px;
	line-height: 1;
}

.ecpi__icon svg { width: 15px; height: 15px; fill: currentColor; }

.ecpi__sep {
	font-size: 12px;
	line-height: 1;
	opacity: .7;
}

/* =========================================================
 * Post Content
 * ====================================================== */
.ecpc {
	--ecpc-gap: 1.2em;
	--ecpc-accent: #1A8FE3;
	--ecpc-soft: #E9F2DF;
	--ecpc-deep: #2F6B1E;
	--ecpc-mark: 22px;
	--ecpc-qsize: 26px;
	font-size: 16px;
	line-height: 1.8;
	color: #5B6472;
	overflow-wrap: break-word;
}

.ecpc > *:first-child { margin-top: 0; }
.ecpc > *:last-child { margin-bottom: 0; }

.ecpc p,
.ecpc ul,
.ecpc ol,
.ecpc figure,
.ecpc table,
.ecpc pre {
	margin-top: 0;
	margin-bottom: var(--ecpc-gap);
}

.ecpc--lead > p:first-of-type {
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.6;
	color: #14213D;
}

.ecpc--drop > p:first-of-type::first-letter {
	float: left;
	margin: .08em .12em 0 0;
	font-size: 3.4em;
	font-weight: 700;
	line-height: .85;
	color: #00380F;
}

.ecpc h1,
.ecpc h2,
.ecpc h3,
.ecpc h4,
.ecpc h5,
.ecpc h6 {
	margin-top: 1.7em;
	margin-bottom: .6em;
	line-height: 1.25;
	color: #14213D;
}

.ecpc h2 { font-size: 2em; }
.ecpc h3 { font-size: 1.5em; }
.ecpc h4 { font-size: 1.25em; }

.ecpc a:not(.wp-block-button__link) {
	color: var(--ecpc-accent);
	text-underline-offset: 3px;
}

.ecpc strong,
.ecpc b { color: #14213D; }

/* lists */
.ecpc ul,
.ecpc ol { padding-left: 1.4em; }

.ecpc li + li { margin-top: 10px; }

.ecpc--check ul,
.ecpc--dot ul {
	padding-left: 0;
	list-style: none;
}

.ecpc--check ul > li,
.ecpc--dot ul > li {
	position: relative;
	padding-left: calc(var(--ecpc-mark) + 14px);
	list-style: none;
}

.ecpc--check ul > li::before,
.ecpc--dot ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(.9em - var(--ecpc-mark) / 2);
	width: var(--ecpc-mark);
	height: var(--ecpc-mark);
	background: var(--ecpc-soft);
	border-radius: 50%;
}

.ecpc--check ul > li::after {
	content: "";
	position: absolute;
	left: 0;
	top: calc(.9em - var(--ecpc-mark) / 2);
	width: var(--ecpc-mark);
	height: var(--ecpc-mark);
	background: var(--ecpc-deep);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.ecpc--dot ul > li::before {
	--ecpc-mark: 8px;
	top: calc(.9em - 4px);
	background: var(--ecpc-accent);
}

.ecpc ul ul,
.ecpc ol ol { margin: 10px 0 0; }

/* quote box */
.ecpc blockquote {
	position: relative;
	margin: 2em 0;
	padding: 28px 32px 28px 76px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.25em;
	font-style: italic;
	line-height: 1.55;
	color: #14213D;
	background: var(--ecpc-soft);
	border: 0;
	border-radius: 16px;
	quotes: none;
}

.ecpc blockquote p { margin: 0 0 .5em; font: inherit; color: inherit; }
.ecpc blockquote p:last-child { margin-bottom: 0; }

.ecpc:not(.ecpc--qicon) blockquote { padding-left: 32px; }

.ecpc--qicon blockquote::before {
	content: "";
	position: absolute;
	left: 32px;
	top: 32px;
	width: var(--ecpc-qsize);
	height: var(--ecpc-qsize);
	background: var(--ecpc-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h6v6.5c0 3-1.6 5-4.5 5.5l-.6-1.6C6.6 15.8 7.2 14.7 7.3 13H4V6zm10 0h6v6.5c0 3-1.6 5-4.5 5.5l-.6-1.6c1.7-.6 2.3-1.7 2.4-3.4H14V6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h6v6.5c0 3-1.6 5-4.5 5.5l-.6-1.6C6.6 15.8 7.2 14.7 7.3 13H4V6zm10 0h6v6.5c0 3-1.6 5-4.5 5.5l-.6-1.6c1.7-.6 2.3-1.7 2.4-3.4H14V6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ecpc blockquote cite {
	display: block;
	margin-top: 12px;
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	color: #5B6472;
}

/* media */
.ecpc img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.ecpc figure { margin-left: 0; margin-right: 0; }

.ecpc figcaption,
.ecpc .wp-caption-text {
	margin-top: 8px;
	font-size: 13px;
	color: #5B6472;
}

/* tables, code, hr */
.ecpc table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92em;
}

.ecpc th,
.ecpc td {
	padding: 10px 14px;
	text-align: left;
	border: 1px solid #E4EAEF;
}

.ecpc th { color: #fff; background: #00380F; }

.ecpc code {
	padding: 2px 6px;
	font-size: .9em;
	background: #F1F5F9;
	border-radius: 4px;
}

.ecpc pre {
	padding: 16px 18px;
	overflow-x: auto;
	background: #F1F5F9;
	border-radius: 10px;
}

.ecpc pre code { padding: 0; background: transparent; }

.ecpc hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid #E4EAEF;
}

@media (max-width: 767px) {
	.ecpc blockquote { padding: 22px 20px 22px 58px; font-size: 1.1em; }
	.ecpc--qicon blockquote::before { left: 20px; top: 26px; }
	.ecpc:not(.ecpc--qicon) blockquote { padding-left: 20px; }
}

/* =========================================================
 * Category Box
 * ====================================================== */
.eccb {
	--ecba-accent: #1A8FE3;
	--ecba-soft: #E9F2DF;
	--ecba-text: #14213D;
	--ecba-muted: #5B6472;
	--ecba-border: #E4EAEF;
	padding: 22px 20px;
	color: var(--ecba-text);
	background: #fff;
	border: 1px solid var(--ecba-border);
	border-radius: 12px;
}

.eccb .eccb__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 17px;
	line-height: 1.3;
	color: var(--ecba-text);
}

.eccb__list,
.eccb__children {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eccb__children { margin-top: 6px; padding-left: 18px; }

.eccb__item { margin: 0; padding: 0; list-style: none; }
.eccb__item::before { display: none; }

.eccb .eccb__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 0;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	color: var(--ecba-text);
	border-radius: 6px;
	transition: color .2s ease, background-color .2s ease, padding .2s ease, transform .2s ease;
}

.eccb .eccb__link:hover { color: var(--ecba-accent); }

.eccb .eccb__item.is-current > .eccb__link {
	font-weight: 600;
	color: var(--ecba-accent);
}

.eccb-shift-yes .eccb .eccb__link:hover { transform: translateX(4px); }

.eccb__icon {
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 12px;
	line-height: 1;
	color: var(--ecba-muted);
	transition: color .2s ease;
}

.eccb__icon svg { width: 12px; height: 12px; }
.eccb__icon svg[fill="none"] { fill: none !important; stroke: currentColor; }
.eccb__link:hover .eccb__icon { color: var(--ecba-accent); }

.eccb__name { flex: 1 1 auto; min-width: 0; }

.eccb__count { font-size: 12px; color: var(--ecba-muted); }

.eccb__count--pill {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	background: var(--ecba-soft);
	border-radius: 999px;
}

.eccb__empty { margin: 0; font-size: 13px; color: var(--ecba-muted); }

@media (prefers-reduced-motion: reduce) {
	.eccb .eccb__link { transition: none; }
}


/* =====================================================================
   Post Navigation
   ================================================================== */
.ecb-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	overflow: hidden;
	background-color: #fff;
}

.ecb-post-nav__item {
	display: flex;
	min-width: 0;
	border-inline-start: 0 solid transparent;
}

.ecb-post-nav--divided .ecb-post-nav__item--next {
	border-inline-start-width: 1px;
	border-inline-start-color: #e9edf2;
}

.ecb-post-nav__link {
	display: block;
	width: 100%;
	text-decoration: none;
	transition-property: background-color, color;
	transition-timing-function: ease;
	transition-duration: 0.3s;
}

.ecb-post-nav__link:hover,
.ecb-post-nav__link:focus {
	text-decoration: none;
}

.ecb-post-nav__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.ecb-post-nav__link--empty {
	cursor: default;
}

.ecb-post-nav__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ecb-post-nav__item--next .ecb-post-nav__inner {
	flex-direction: row-reverse;
}

.ecb-post-nav__text {
	min-width: 0;
	flex: 1 1 auto;
}

.ecb-post-nav__item--next .ecb-post-nav__text {
	text-align: right;
}

.ecb-post-nav__thumb {
	flex: 0 0 auto;
	display: block;
	width: 64px;
	height: 64px;
	overflow: hidden;
	line-height: 0;
}

.ecb-post-nav__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ecb-post-nav__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	line-height: 1;
}

.ecb-post-nav__item--next .ecb-post-nav__label {
	justify-content: flex-end;
}

.ecb-post-nav__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition-property: transform;
	transition-timing-function: ease;
	transition-duration: 0.3s;
}

.ecb-post-nav__arrow i,
.ecb-post-nav__arrow svg {
	display: block;
}

.ecb-post-nav__title,
.ecb-post-nav__empty {
	display: block;
	transition-property: color;
	transition-timing-function: ease;
	transition-duration: 0.3s;
}

.ecb-post-nav--clamp .ecb-post-nav__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--ecb-nav-lines, 2);
	line-clamp: var(--ecb-nav-lines, 2);
	overflow: hidden;
}

.ecb-post-nav__item--empty {
	display: block;
}

@media (max-width: 767px) {

	.ecb-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.ecb-post-nav--divided .ecb-post-nav__item--next {
		border-inline-start-width: 0;
		border-top: 1px solid #e9edf2;
	}

	.ecb-post-nav__item--next .ecb-post-nav__inner {
		flex-direction: row;
	}

	.ecb-post-nav__item--next .ecb-post-nav__text {
		text-align: left;
	}

	.ecb-post-nav__item--next .ecb-post-nav__label {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ecb-post-nav__link,
	.ecb-post-nav__title,
	.ecb-post-nav__label,
	.ecb-post-nav__arrow {
		transition-duration: 0.01ms !important;
	}
}



/* ---- Post Navigation: cards layout, circle arrow, middle button ---- */
.ecb-post-nav {
	--ecb-nav-gap: 20px;
}

.ecb-post-nav--has-middle {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
}

.ecb-post-nav--cards {
	gap: var(--ecb-nav-gap);
	overflow: visible;
	background: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

.ecb-post-nav--cards .ecb-post-nav__item {
	background-color: #fff;
	border-radius: inherit;
	overflow: hidden;
	border: 1px solid #e9edf2;
}

.ecb-post-nav--cards.ecb-post-nav--divided .ecb-post-nav__item--next {
	border-inline-start-width: 1px;
}

.ecb-post-nav__item {
	align-self: stretch;
}

.ecb-post-nav__circle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 20px;
	line-height: 1;
	color: #111;
	background-color: #F1F4F2;
	border-radius: 50%;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.ecb-post-nav__circle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.ecb-post-nav__item--prev .ecb-post-nav__link:hover .ecb-post-nav__circle { transform: translateX(-4px); }
.ecb-post-nav__item--next .ecb-post-nav__link:hover .ecb-post-nav__circle { transform: translateX(4px); }

.ecb-post-nav__middle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--ecb-nav-gap);
}

.ecb-post-nav--cards .ecb-post-nav__middle {
	padding: 0;
}

.ecb-post-nav__middle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 52px;
	padding: 0 6px;
	font-size: 22px;
	line-height: 1;
	color: #111;
	background-color: #F1F4F2;
	border-radius: 50%;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.ecb-post-nav__middle-btn:hover,
.ecb-post-nav__middle-btn:focus {
	text-decoration: none;
	transform: scale(1.06);
}

.ecb-post-nav__middle-btn:focus { outline: none; }
.ecb-post-nav__middle-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.ecb-post-nav__middle-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.ecb-post-nav__middle-text {
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.ecb-post-nav__thumb img {
	transition: transform .5s ease;
}

.ecb-post-nav__link:hover .ecb-post-nav__thumb img {
	transform: scale(1.08);
}

@media (max-width: 767px) {
	.ecb-post-nav--has-middle {
		grid-template-columns: minmax(0, 1fr);
	}
	.ecb-post-nav--has-middle .ecb-post-nav__middle {
		order: 3;
		padding: 14px 0 0;
	}
	.ecb-post-nav--cards {
		gap: 12px;
	}
	.ecb-post-nav__item--next .ecb-post-nav__circle {
		order: -1;
	}
}


/* ---------------------------------------------------------
 * On This Page (TOC)
 * ------------------------------------------------------ */
.ecb-toc {
	--ecb-toc-active: #2E8B3A;
	--ecb-toc-line: #E3E9E1;
	--ecb-toc-line-w: 2px;
	--ecb-toc-bar-w: 3px;
	--ecb-toc-indent: 14px;
	--ecb-toc-item-gap: 4px;
	--ecb-toc-title-gap: 18px;
	--ecb-toc-progress: #2E8B3A;
	--ecb-toc-progress-track: #EEF2EC;
	display: block;
	padding: 26px;
	background: #fff;
	border: 1px solid #E8EEE6;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(16, 40, 20, .06);
	box-sizing: border-box;
}

/* sticky (per device, from the widget's responsive switch) */
@media (min-width: 1025px) {
	.elementor-widget.ecb-toc-sticky-yes { position: sticky; top: var(--ecb-toc-top, 110px); align-self: flex-start; z-index: 5; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-widget.ecb-toc-sticky-tablet-yes { position: sticky; top: var(--ecb-toc-top, 110px); align-self: flex-start; z-index: 5; }
}
@media (max-width: 767px) {
	.elementor-widget.ecb-toc-sticky-mobile-yes { position: sticky; top: var(--ecb-toc-top, 80px); align-self: flex-start; z-index: 5; }
}

.ecb-toc__head {
	margin-bottom: var(--ecb-toc-title-gap);
	transition: margin .3s ease;
}

.ecb-toc__title {
	margin: 0;
	padding: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #0E1B33;
}

.ecb-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ecb-toc__toggle:hover,
.ecb-toc__toggle:focus {
	background: none;
	color: inherit;
}

.ecb-toc__toggle:focus { outline: none; }
.ecb-toc__toggle:focus-visible { outline: 2px solid var(--ecb-toc-active); outline-offset: 4px; border-radius: 4px; }

.ecb-toc__toggle-icon {
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
	color: #0E1B33;
	transition: transform .3s ease;
}

.ecb-toc__toggle-icon svg {
	width: 20px;
	height: 20px;
}

.ecb-toc.is-collapsed .ecb-toc__toggle-icon { transform: rotate(-90deg); }
.ecb-toc.is-collapsed .ecb-toc__head { margin-bottom: 0; }
.ecb-toc.is-collapsed .ecb-toc__list-wrap,
.ecb-toc.is-collapsed .ecb-toc__progress { display: none; }

.ecb-toc__progress {
	height: 3px;
	margin: calc(var(--ecb-toc-title-gap) * -0.4) 0 var(--ecb-toc-title-gap);
	overflow: hidden;
	background: var(--ecb-toc-progress-track);
	border-radius: 3px;
}

.ecb-toc__progress-bar {
	display: block;
	height: 100%;
	background: var(--ecb-toc-progress);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .15s linear;
}

.ecb-toc__list-wrap {
	position: relative;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.ecb-toc__list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--ecb-toc-item-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ecb-toc;
}

.ecb-toc__item {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-increment: ecb-toc;
}

.ecb-toc__item::marker { content: none; }

.ecb-toc--nested .ecb-toc__item--sub {
	margin-left: calc(var(--ecb-toc-indent) * var(--ecb-toc-depth, 1));
}

.ecb-toc__link {
	position: relative;
	display: block;
	padding: 7px 8px 7px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #5B6472;
	text-decoration: none;
	transition: color .25s ease, background-color .25s ease;
}

.ecb-toc__link:hover,
.ecb-toc__link:focus {
	text-decoration: none;
}

.ecb-toc__link:focus { outline: none; }
.ecb-toc__link:focus-visible { outline: 2px solid var(--ecb-toc-active); outline-offset: 1px; border-radius: 4px; }

.ecb-toc__item.is-active > .ecb-toc__link {
	color: var(--ecb-toc-active);
	font-weight: 600;
}

/* marker: left line with an active bar (default, like the design) */
.ecb-toc--line .ecb-toc__list::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--ecb-toc-line-w);
	background: var(--ecb-toc-line);
	border-radius: 2px;
}

.ecb-toc--line .ecb-toc__link::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: calc((var(--ecb-toc-bar-w) - var(--ecb-toc-line-w)) / -2);
	width: var(--ecb-toc-bar-w);
	background: var(--ecb-toc-active);
	border-radius: 3px;
	transform: scaleY(0);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.ecb-toc--line.ecb-toc--nested .ecb-toc__item--sub .ecb-toc__link::before {
	left: calc(var(--ecb-toc-indent) * var(--ecb-toc-depth, 1) * -1 + (var(--ecb-toc-bar-w) - var(--ecb-toc-line-w)) / -2);
}

.ecb-toc--line .ecb-toc__item.is-active > .ecb-toc__link::before {
	transform: scaleY(1);
}

/* marker: numbers */
.ecb-toc--numbers .ecb-toc__link {
	padding-left: 2.2em;
}

.ecb-toc--numbers .ecb-toc__link::before {
	content: counter(ecb-toc, decimal-leading-zero);
	position: absolute;
	left: 8px;
	color: var(--ecb-toc-line);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	transition: color .25s ease;
}

.ecb-toc--numbers .ecb-toc__item.is-active > .ecb-toc__link::before {
	color: var(--ecb-toc-active);
}

/* marker: dots */
.ecb-toc--bullets .ecb-toc__link {
	padding-left: 24px;
}

.ecb-toc--bullets .ecb-toc__link::before {
	content: "";
	position: absolute;
	left: 8px;
	top: calc(.73em + 7px - 3px);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ecb-toc-line);
	transition: background-color .25s ease, transform .25s ease;
}

.ecb-toc--bullets .ecb-toc__item.is-active > .ecb-toc__link::before {
	background: var(--ecb-toc-active);
	transform: scale(1.4);
}

.ecb-toc__empty {
	list-style: none;
	font-size: 14px;
	color: #888;
}

