.cdf-blog-posts-widget {
	--cdf-blog-filter-line: #99CA3C;
	--cdf-blog-filter-muted: #e8e8e8;
	--cdf-blog-filter-overlap: 26px;
	--cdf-blog-pagination-primary: #99CA3C;
	--cdf-blog-pagination-secondary-soft: #d4e9ad;
	--cdf-blog-pagination-secondary: #40B1B9;
	--cdf-blog-card-text: #5f5f5f;
	--cdf-blog-card-meta: #6d6d6d;
	width: 100%;
	max-width: 1512px;
	margin-inline: auto;
}

.cdf-blog-posts-widget__filters {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 1246px;
	gap: 18px;
	align-items: center;
	margin: 0 auto 34px;
}

.cdf-blog-posts-widget__filter {
	position: relative;
	isolation: isolate;
}

.cdf-blog-posts-widget__filter--category {
	flex: 0 0 248px;
	width: 248px;
	max-width: 100%;
}

.cdf-blog-posts-widget__filter--search {
	flex: 0 0 385px;
	width: 385px;
	max-width: 100%;
	margin-left: calc(-1 * var(--cdf-blog-filter-overlap));
}

.cdf-blog-posts-widget__filter--search input[type="search"] {
	display: block;
	height: 61px !important;
	padding: 0 24px 0 73px !important;
	line-height: 61px !important;
}

.cdf-blog-posts-widget__filter select,
.cdf-blog-posts-widget__filter input {
	width: 100%;
	min-height: 61px;
	border: 0;
	border-radius: 999px;
	font-family: "Raleway", sans-serif;
	font-size: 18px;
	line-height: 1.2;
	background: transparent;
	box-shadow: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: box-shadow 0.2s ease;
}

/* Override the theme reset so the SVG frame is the only visible border. */
.cdf-blog-posts-widget .cdf-blog-posts-widget__filter select,
.cdf-blog-posts-widget .cdf-blog-posts-widget__filter input,
.cdf-blog-posts-widget .cdf-blog-posts-widget__search-button {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.cdf-blog-posts-widget__filter--category,
.cdf-blog-posts-widget__filter--search {
	background: #fff;
	border-radius: 999px;
}

.cdf-blog-posts-widget__filter--category::before,
.cdf-blog-posts-widget__filter--search::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cdf-blog-posts-widget__filter--category::before {
	background-color: var(--cdf-blog-filter-line);
	-webkit-mask: url("../img/categoria.svg") center / 100% 100% no-repeat;
	mask: url("../img/categoria.svg") center / 100% 100% no-repeat;
}

.cdf-blog-posts-widget__filter--search::before {
	background-color: var(--cdf-blog-filter-muted);
	-webkit-mask: url("../img/pesquisa.svg") center / 100% 100% no-repeat;
	mask: url("../img/pesquisa.svg") center / 100% 100% no-repeat;
}

.cdf-blog-posts-widget__filter:focus-within {
	box-shadow: none;
}

.cdf-blog-posts-widget__filter select:focus,
.cdf-blog-posts-widget__filter input:focus,
.cdf-blog-posts-widget__filter select:focus-visible,
.cdf-blog-posts-widget__filter input:focus-visible,
.cdf-blog-posts-widget__search-button:focus,
.cdf-blog-posts-widget__search-button:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.cdf-blog-posts-widget__filter select {
	padding: 0 54px 0 28px;
	color: var(--cdf-blog-filter-line);
	cursor: pointer;
}

.cdf-blog-posts-widget__filter input {
	padding: 0 24px 0 73px;
	color: #7a7a7a;
}

.cdf-blog-posts-widget__filter input::placeholder {
	color: #d0d0d0;
	opacity: 1;
}

.cdf-blog-posts-widget__filter--category::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 26px;
	width: 18px;
	height: 12px;
	background-color: var(--cdf-blog-filter-line);
	pointer-events: none;
	transform: translateY(-50%);
	-webkit-mask: url("../img/chevron.svg") center / contain no-repeat;
	mask: url("../img/chevron.svg") center / contain no-repeat;
}

.cdf-blog-posts-widget__search-button {
	position: absolute;
	top: calc(50% - 7px);
	left: 21px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: transparent;
	font-size: 0;
	line-height: 0;
	z-index: 2;
	cursor: pointer;
	transform: translateY(-50%);
}

.cdf-blog-posts-widget__search-button::before {
	content: "";
	display: block;
	width: 28px;
	height: 28px;
	background-color: #d0d0d0;
	-webkit-mask: url("../img/lupa.svg") center / contain no-repeat;
	mask: url("../img/lupa.svg") center / contain no-repeat;
}

.cdf-blog-posts-widget__filter input::-webkit-search-decoration,
.cdf-blog-posts-widget__filter input::-webkit-search-cancel-button,
.cdf-blog-posts-widget__filter input::-webkit-search-results-button,
.cdf-blog-posts-widget__filter input::-webkit-search-results-decoration {
	display: none;
}

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

.cdf-blog-posts-widget__grid {
	display: grid;
	grid-template-columns: repeat(3, 398px);
	justify-content: center;
	gap: 26px;
}

.cdf-blog-posts-widget__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-height: 473px;
	height: auto;
	padding: 18px 21px;
	box-sizing: border-box;
	border-radius: 26px;
	background: transparent;
	isolation: isolate;
	box-shadow: none;
}

.cdf-blog-posts-widget__card::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: scaleY(1.02);
	background-color: var(--cdf-blog-listing-accent, #99CA3C);
	pointer-events: none;
	-webkit-mask: url("../img/cardblog.svg") center / 100% 100% no-repeat;
	mask: url("../img/cardblog.svg") center / 100% 100% no-repeat;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.cdf-blog-posts-widget__filters {
		flex-wrap: nowrap;
		gap: 12px;
		max-width: 100%;
	}

	.cdf-blog-posts-widget__filter--category {
		flex: 0 0 200px;
		width: 200px;
	}

	.cdf-blog-posts-widget__filter--search {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin-left: -12px;
	}

	.cdf-blog-posts-widget__filter--category::before {
		transform: scaleY(1.1);
		transform-origin: center;
	}

	.cdf-blog-posts-widget__card::before {
		transform: scaleY(1.65);
		transform-origin: center;
	}

	.cdf-blog-posts-widget__button::before {
		transform: scaleY(1.35);
		transform-origin: center;
	}
}

.cdf-blog-posts-widget__image {
	display: block;
	overflow: hidden;
	border-radius: 27px;
	aspect-ratio: 356 / 208;
	background: #f5f5f5;
}

.cdf-blog-posts-widget__image-tag,
.cdf-blog-posts-widget__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.elementor .cdf-blog-posts-widget__image-tag {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.cdf-blog-posts-widget__image-placeholder {
	background:
		linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.08)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.95));
}

.cdf-blog-posts-widget__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	padding-top: 12px;
}

.cdf-blog-posts-widget__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin-bottom: 8px;
	font-family: "Raleway", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--cdf-blog-card-meta);
}

.cdf-blog-posts-widget__meta-separator {
	font-weight: 400;
}

.cdf-blog-posts-widget__title {
	margin: 0 0 10px;
	font-family: "Raleway", sans-serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 35px;
	letter-spacing: 0;
}

.cdf-blog-posts-widget__title a {
	display: -webkit-box;
	color: var(--cdf-blog-listing-accent, #99CA3C);
	text-decoration: none;
	overflow: hidden;
	-webkit-box-orient: vertical;
}

.cdf-blog-posts-widget__excerpt {
	display: -webkit-box;
	margin: 0 0 14px;
	overflow: hidden;
	font-family: "Raleway", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--cdf-blog-card-text);
	-webkit-box-orient: vertical;
}

.cdf-blog-posts-widget__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 70px;
	margin-top: auto;
	padding: 0 24px;
	border-radius: 999px;
	background: transparent;
	isolation: isolate;
	overflow: visible;
	font-family: "Raleway", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	text-align: center;
}

.cdf-blog-posts-widget__button::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--cdf-blog-listing-accent, #99CA3C);
	pointer-events: none;
	z-index: -2;
	-webkit-mask: url("../img/botaocardblog.svg") center / 100% 100% no-repeat;
	mask: url("../img/botaocardblog.svg") center / 100% 100% no-repeat;
}

.cdf-blog-posts-widget__button::after {
	content: "";
	position: absolute;
	inset: 9px 12px 11px;
	border-radius: 999px;
	background: var(--cdf-blog-listing-accent, #99CA3C);
	pointer-events: none;
	z-index: -1;
}

.cdf-blog-posts-widget__button:hover,
.cdf-blog-posts-widget__button:focus {
	color: #fff;
	filter: brightness(0.97);
}

.cdf-blog-posts-widget__empty {
	padding: 32px 24px;
	border: 2px solid #efefef;
	border-radius: 24px;
	background: #fff;
	text-align: center;
}

.cdf-blog-posts-widget__empty p {
	margin: 0;
	font-family: "Raleway", sans-serif;
	font-size: 18px;
	line-height: 1.4;
	color: #666;
}

.cdf-blog-posts-widget__pagination {
	margin-top: 52px;
}

.cdf-blog-posts-widget__pagination-list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdf-blog-posts-widget__pagination-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cdf-blog-posts-widget__pagination-arrow,
.cdf-blog-posts-widget__pagination-page {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-family: "Raleway", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.cdf-blog-posts-widget__pagination-arrow {
	width: 35px;
	height: 35px;
	background: var(--cdf-blog-pagination-secondary);
	color: transparent;
	font-size: 0;
}

.cdf-blog-posts-widget__pagination-arrow:hover,
.cdf-blog-posts-widget__pagination-arrow:focus {
	color: transparent;
}

.cdf-blog-posts-widget__pagination-arrow.is-disabled {
	background: #addfe4;
	color: transparent;
	opacity: 1;
}

.cdf-blog-posts-widget__pagination-arrow::before {
	content: "";
	display: block;
	width: 11px;
	height: 18px;
	background-color: #fff;
	-webkit-mask: url("../img/chevronsetas.svg") center / contain no-repeat;
	mask: url("../img/chevronsetas.svg") center / contain no-repeat;
}

.cdf-blog-posts-widget__pagination-item:last-child .cdf-blog-posts-widget__pagination-arrow::before {
	transform: rotate(180deg);
}

.cdf-blog-posts-widget__pagination-page {
	width: 55px;
	height: 55px;
	background: var(--cdf-blog-pagination-secondary-soft);
	color: #fff;
	isolation: isolate;
	transform: translateY(-1px);
}

.cdf-blog-posts-widget__pagination-page.is-current {
	width: 67px;
	height: 67px;
	background: transparent;
	color: #fff;
}

.cdf-blog-posts-widget__pagination-page.is-current::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--cdf-blog-pagination-primary);
	pointer-events: none;
	z-index: -2;
	-webkit-mask: url("../img/bolanumero.svg") center / 100% 100% no-repeat;
	mask: url("../img/bolanumero.svg") center / 100% 100% no-repeat;
}

.cdf-blog-posts-widget__pagination-page.is-current::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: var(--cdf-blog-pagination-primary);
	pointer-events: none;
	z-index: -1;
}

.cdf-blog-posts-widget__pagination-gap {
	font-family: "Raleway", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: #9a9a9a;
}

@media (max-width: 1024px) {
	.cdf-blog-posts-widget__filters {
		max-width: 818px;
	}

	.cdf-blog-posts-widget__grid {
		grid-template-columns: repeat(2, minmax(0, 398px));
		gap: 22px;
	}
}

@media (max-width: 767px) {
	.cdf-blog-posts-widget__filters {
		width: 100%;
		max-width: 350px;
		flex-wrap: nowrap;
		gap: 12px;
		margin: 0 auto 24px;
	}

	.cdf-blog-posts-widget__filter--category,
	.cdf-blog-posts-widget__filter--search {
		min-width: 0;
	}

	.cdf-blog-posts-widget__filter--category {
		flex: 0 0 150px;
		width: 150px;
		max-width: 150px;
	}

	.cdf-blog-posts-widget__filter--search {
		flex: 1 1 calc(100% - 162px);
		width: auto;
		max-width: none;
		margin-left: 0;
		min-height: 43px;
		height: 43px;
	}

	.cdf-blog-posts-widget__filter select,
	.cdf-blog-posts-widget__filter input {
		min-height: 43px;
		height: 43px;
		font-size: 15px;
		line-height: 43px;
	}

	.cdf-blog-posts-widget__filter--category::before {
		-webkit-mask: url("../img/categoria-mobile.svg") center / 100% 100% no-repeat;
		mask: url("../img/categoria-mobile.svg") center / 100% 100% no-repeat;
	}

	.cdf-blog-posts-widget__filter--search::before {
		inset: 0;
		transform: scaleY(1.1);
		transform-origin: center;
		-webkit-mask: url("../img/pesquisa-mobile.svg") center / 100% 100% no-repeat;
		mask: url("../img/pesquisa-mobile.svg") center / 100% 100% no-repeat;
	}

	.cdf-blog-posts-widget__filter select {
		padding: 0 34px 0 16px;
	}

	.cdf-blog-posts-widget__filter input {
		padding: 0 14px 0 40px;
	}

	.cdf-blog-posts-widget__filter--search input[type="search"] {
		min-height: 43px;
		height: 43px !important;
		padding: 0 14px 0 40px !important;
		line-height: 43px !important;
	}
	.cdf-blog-posts-widget__button::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--cdf-blog-listing-accent, #99CA3C);
	pointer-events: none;
	z-index: -2;
	mask: url("../img/botaocardblog.svg") center / 98% 100% no-repeat;
}
	.cdf-blog-posts-widget__filter--category::after {
		right: 16px;
		width: 14px;
		height: 9px;
	}

	.cdf-blog-posts-widget__search-button {
		left: 0px;
		width: 18px;
		height: 18px;
		top: calc(50% - 8px);
	}

	.cdf-blog-posts-widget__search-button::before {
		width: 16px;
		height: 16px;
		transform: translate(-2px, -2px);
	}

	.cdf-blog-posts-widget__grid {
		grid-template-columns: minmax(0, 350px);
		justify-content: center;
		gap: 18px;
	}

	.cdf-blog-posts-widget__card {
		width: 100%;
		max-width: 350px;
		margin-inline: auto;
		height: auto;
		padding: 16px 18px;
		border-radius: 22px;
	}

	.cdf-blog-posts-widget__card::before {
		transform: scaleY(1.2) !important;
		transform-origin: center;
	}

	.cdf-blog-posts-widget__title {
		font-size: 18px;
		line-height: 1.3;
	}

	.cdf-blog-posts-widget__excerpt {
		font-size: 14px;
	}

	.cdf-blog-posts-widget__button {
		min-height: 62px;
		font-size: 15px;
	}

	.cdf-blog-posts-widget__pagination {
		margin-top: 28px;
	}

	.cdf-blog-posts-widget__pagination-arrow,
	.cdf-blog-posts-widget__pagination-page {
		font-size: 18px;
	}

	.cdf-blog-posts-widget__pagination-arrow {
		width: 32px;
		height: 32px;
		font-size: 0;
	}

	.cdf-blog-posts-widget__pagination-arrow::before {
		width: 10px;
		height: 16px;
	}

	.cdf-blog-posts-widget__pagination-page {
		width: 48px;
		height: 48px;
	}

	.cdf-blog-posts-widget__pagination-page.is-current {
		width: 58px;
		height: 58px;
	}

	.cdf-blog-posts-widget__pagination-page.is-current::after {
		inset: 5px;
	}
}
