/* Vendavo Filter Posts */

.vfp {
	width: 100%;
	--vfp-transition: 250ms;
}

.vfp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	margin-bottom: 28px;
}

.vfp-tab {
	appearance: none;
	cursor: pointer;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid #D7D2EA;
	background: transparent;
	color: #1A1440;
	font-size: .95rem;
	line-height: 1.2;
	transition: background var(--vfp-transition) ease, color var(--vfp-transition) ease, border-color var(--vfp-transition) ease;
}

.vfp-tab:hover { background: #F2EEFB; }

.vfp-fx-button-no .vfp-tab:not(.is-active):hover {
	background: inherit;
	color: inherit;
	border-color: inherit;
}

.vfp-tab.is-active {
	background: #3F1E7A;
	border-color: #3F1E7A;
	color: #FFFFFF;
}

/* Tabs carousel */
.vfp-tabs-carousel {
	position: relative;
	margin-bottom: 28px;
}

.vfp-tabs-carousel .vfp-tabs-swiper {
	overflow: hidden;
	width: 100%;
}

.vfp-tabs-carousel .vfp-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 0;
	overflow: auto;
}

.vfp-tabs-carousel .vfp-tab.swiper-slide {
	width: auto;
	flex-shrink: 0;
	white-space: nowrap;
}

.vfp-tabs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid #D7D2EA;
	background: #FFFFFF;
	color: #1A1440;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	z-index: 2;
	transition: background var(--vfp-transition) ease, color var(--vfp-transition) ease, border-color var(--vfp-transition) ease, opacity var(--vfp-transition) ease;
}

.vfp-tabs-prev { left: -8px; }
.vfp-tabs-next { right: -8px; }

.vfp-tabs-nav:hover {
	background: #3F1E7A;
	border-color: #3F1E7A;
	color: #FFFFFF;
}

.vfp-tabs-nav.swiper-button-disabled {
	opacity: .35;
	pointer-events: none;
}

/* Desktop: disable the carousel — render tabs as a normal wrapping row. */
@media (min-width: 1025px) {
	.vfp-tabs-carousel .vfp-tabs-swiper {
		overflow: visible;
	}
	.vfp-tabs-carousel .swiper-wrapper.vfp-tabs {
		flex-wrap: wrap;
		gap: 8px;
		transform: none !important;
	}
	.vfp-tabs-carousel .vfp-tab.swiper-slide {
		margin-right: 0 !important;
	}
	.vfp-tabs-nav {
		display: none;
	}
}

.vfp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.vfp-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #52527A;
	margin: 24px 0;
}

.vfp-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	transition: transform var(--vfp-transition) ease, box-shadow var(--vfp-transition) ease;
}

.vfp-fx-card-yes .vfp-card:hover { transform: translateY(-2px); }

.vfp-card__body { flex: 1; }
.vfp-card__pills { margin-top: auto; }

.vfp-card__image {
	display: block;
	width: 100%;
	height: 220px;
	overflow: hidden;
}

.vfp-card__image-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--vfp-transition) ease;
}

.vfp-img-zoom-yes .vfp-card:hover .vfp-card__image-img {
	transform: scale(1.05);
}

.vfp-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

.vfp-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
	color: #1A1440;
}

.vfp-card__title a {
	color: inherit;
	text-decoration: none;
}

.vfp-card__title a:hover { text-decoration: none; }

.vfp-card__excerpt {
	margin: 0;
	color: #52527A;
	font-size: .95rem;
	line-height: 1.5;
}

.vfp-card__pills {
	list-style: none;
	margin: 12px 0 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vfp-pill {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: .8rem;
	background: transparent;
	border: 1px solid #D7D2EA;
	color: #1A1440;
	white-space: nowrap;
}

.vfp-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.vfp-loadmore-wrap[hidden] { display: none; }

.vfp-loadmore {
	appearance: none;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	background: transparent;
	border: 1px solid #1A1440;
	color: #1A1440;
	padding: 10px 28px;
	border-radius: 999px;
	font-size: .95rem;
	cursor: pointer;
	transition: background var(--vfp-transition) ease, color var(--vfp-transition) ease, border-color var(--vfp-transition) ease;
}

.vfp-loadmore:focus { text-decoration: none; }

.vfp-loadmore:hover {
	background: #1A1440;
	color: #FFFFFF;
}

.vfp-fx-button-no .vfp-loadmore:hover {
	background: inherit;
	color: inherit;
	border-color: inherit;
}

.vfp-loadmore.is-loading {
	opacity: .6;
	pointer-events: none;
}

.vfp-lm-glass-yes .vfp-loadmore {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.8);
	color: #1A1440;
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.9),
		inset 0 -1px 1px rgba(255, 255, 255, 0.25),
		0 8px 24px rgba(31, 38, 135, 0.08),
		0 1px 2px rgba(0, 0, 0, 0.04);
}

.vfp-lm-glass-yes .vfp-loadmore:hover {
	background: rgba(255, 255, 255, 0.7);
	color: #1A1440;
}

.vfp-tab-glass-yes .vfp-tab:not(.is-active) {
	background: rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.8);
	color: #1A1440;
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.9),
		inset 0 -1px 1px rgba(255, 255, 255, 0.25),
		0 6px 18px rgba(31, 38, 135, 0.06),
		0 1px 2px rgba(0, 0, 0, 0.03);
}

.vfp-tab-glass-yes .vfp-tab:not(.is-active):hover {
	background: rgba(255, 255, 255, 0.7);
}

.vfp.is-fetching .vfp-grid { opacity: .5; transition: opacity .2s ease; }

.vfp-fx-trans-no .vfp-card,
.vfp-fx-trans-no .vfp-card__image-img,
.vfp-fx-trans-no .vfp-tab,
.vfp-fx-trans-no .vfp-loadmore,
.vfp-fx-trans-no .vfp-pill,
.vfp-fx-trans-no .vfp-card__title a {
	transition: none !important;
}

@media (max-width: 1024px) {
	.vfp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.vfp-grid { grid-template-columns: 1fr; }
	.vfp-tabs { gap: 6px; }
}

/* Mobile/tablet: pure native horizontal scroll (no Swiper) with a visible
   grey scrollbar — matches the pill-tabs widget and always reaches the last
   tab. The inner .vfp-tabs (.swiper-wrapper) is the scroll strip. */
@media (max-width: 1024px) {
	.vfp-tabs-carousel .vfp-tabs-swiper {
		overflow: visible;
	}

	.vfp-tabs-carousel .vfp-tabs {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;

		padding-right: 24px;
		padding-bottom: 6px;
		scroll-padding-left: 8px;
		/* Neutralize any leftover Swiper transform. */
		transform: none !important;
	}

	.vfp-tabs-carousel .vfp-tabs::-webkit-scrollbar {
		height: 6px;
	}

	.vfp-tabs-carousel .vfp-tabs::-webkit-scrollbar-track {
		background: rgba(232, 226, 244, 0.55);
		border-radius: 999px;
	}

	.vfp-tabs-carousel .vfp-tabs::-webkit-scrollbar-thumb {
		background: #3F1E7A;
		border-radius: 999px;
	}

	.vfp-tabs-carousel .vfp-tab.swiper-slide {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	/* Native scroll replaces the arrows — hide the (now inert) nav buttons. */
	.vfp-tabs-nav {
		display: none;
	}
}
