/* EZ BNS Testimonial V2 — front-end carousel styles */

.ez-bns-tv2 {
	--ez-bns-tv2-card-bg: transparent;
	--ez-bns-tv2-card-border: rgba(255, 255, 255, 0.14);
	--ez-bns-tv2-text: #e8e8e8;
	--ez-bns-tv2-muted: #9a9a9a;
	--ez-bns-tv2-quote: #555;
	--ez-bns-tv2-divider: rgba(255, 255, 255, 0.12);
	--ez-bns-tv2-dot: #555;
	--ez-bns-tv2-dot-active: #fff;
	--ez-bns-tv2-gap: 24px;
	background: transparent;
	padding: 40px 20px;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

.ez-bns-tv2 * {
	box-sizing: border-box;
}

/* Viewport masks the overflow of the sliding track.
   touch-action: pan-y lets the page scroll vertically while we capture
   horizontal swipe gestures for the carousel.
   Vertical padding keeps the card borders/rounded corners off the clip edge
   so they aren't shaved; it does not affect the horizontal width JS measures. */
.ez-bns-tv2__viewport {
	overflow: hidden;
	width: 100%;
	padding: 6px 0;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

/* Track holds all slides in a row and is translated horizontally.
   Defaults to LTR; in RTL the viewport + track flow right-to-left so the
   first card sits on the right and the carousel mirrors its motion (the JS
   flips the translate sign to match). */
.ez-bns-tv2__track {
	display: flex;
	flex-wrap: nowrap;
	will-change: transform;
	transition: transform 0.5s ease;
	direction: ltr;
}

.ez-bns-tv2[dir="rtl"] .ez-bns-tv2__viewport,
.ez-bns-tv2[dir="rtl"] .ez-bns-tv2__track {
	direction: rtl;
}

/* RTL text alignment within each card. */
.ez-bns-tv2[dir="rtl"] .ez-bns-tv2__card {
	text-align: right;
}

.ez-bns-tv2[dir="rtl"] .ez-bns-tv2__meta {
	align-items: flex-end;
}

.ez-bns-tv2.ez-bns-tv2--no-anim .ez-bns-tv2__track {
	transition: none;
}

/* Each slide width is set inline by JS based on cards-per-row. */
.ez-bns-tv2__slide {
	flex: 0 0 auto;
	padding: 0 calc(var(--ez-bns-tv2-gap) / 2);
	display: flex;
}

/* Card — transparent fill, only the border is visible */
.ez-bns-tv2__card {
	position: relative;
	background: var(--ez-bns-tv2-card-bg);
	border: 1px solid var(--ez-bns-tv2-card-border);
	border-radius: 8px;
	padding: 40px 30px 30px;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

a.ez-bns-tv2__card {
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

a.ez-bns-tv2__card:hover {
	background-color: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.22);
}

/* Decorative opening quote */
.ez-bns-tv2__quote-mark {
	position: absolute;
	top: 6px;
	left: 18px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 64px;
	line-height: 1;
	color: var(--ez-bns-tv2-quote);
	pointer-events: none;
	user-select: none;
}

.ez-bns-tv2[dir="rtl"] .ez-bns-tv2__quote-mark {
	left: auto;
	right: 18px;
}

/* Testimonial text */
.ez-bns-tv2__text {
	position: relative;
	z-index: 1;
	margin: 28px 0 0;
	color: var(--ez-bns-tv2-text);
	font-size: 14.5px;
	line-height: 1.75;
	flex: 1 1 auto;
}

/* Spacer between the quote text and the avatar/meta area (replaces the old rule) */
.ez-bns-tv2__divider {
	border: 0;
	margin: 0;
	height: 0;
	width: 100%;
}

/* Meta: avatar + name */
.ez-bns-tv2__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 44px;
}

.ez-bns-tv2__avatar {
	display: inline-block;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	flex: 0 0 auto;
}

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

.ez-bns-tv2__name {
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* Dots */
.ez-bns-tv2__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 9px;
	margin-top: 28px;
	min-height: 12px;
}

/* High specificity + !important so Elementor / theme button styling cannot
   override the dot fill, border, shadow, or hover colors. */
.ez-bns-tv2 .ez-bns-tv2__dots button.ez-bns-tv2__dot {
	width: 8px;
	height: 8px;
	min-width: 0;
	min-height: 0;
	max-width: none;
	border-radius: 50%;
	background: var(--ez-bns-tv2-dot) !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.25s ease, transform 0.25s ease;
	flex: 0 0 auto;
}

.ez-bns-tv2 .ez-bns-tv2__dots button.ez-bns-tv2__dot:hover,
.ez-bns-tv2 .ez-bns-tv2__dots button.ez-bns-tv2__dot:focus,
.ez-bns-tv2 .ez-bns-tv2__dots button.ez-bns-tv2__dot:focus-visible {
	background: var(--ez-bns-tv2-dot-active) !important;
	transform: scale(1.15);
}

.ez-bns-tv2 .ez-bns-tv2__dots button.ez-bns-tv2__dot.is-active {
	background: var(--ez-bns-tv2-dot-active) !important;
	transform: scale(1.15);
}

/* Mobile dot window: smaller edge dots to suggest a sliding window. */
.ez-bns-tv2 .ez-bns-tv2__dots button.ez-bns-tv2__dot.is-edge {
	transform: scale(0.7);
	opacity: 0.7;
}

/* Mobile: 1 card full width */
@media (max-width: 767px) {
	.ez-bns-tv2 {
		padding: 28px 12px;
	}

	.ez-bns-tv2__slide {
		padding: 0 6px;
	}

	.ez-bns-tv2__card {
		padding: 30px 22px 22px;
	}

	.ez-bns-tv2__meta {
		margin-top: 28px;
	}
}
