/* ===================================================
   T-Mails Testimonials – Frontend Styles
   Scoped via .tmails-wrapper-{id} to avoid conflicts
   =================================================== */

/* ---------- Wrapper ---------- */
.tmails-testimonials-wrapper {
	position: relative;
	width: 100%;
}

/* ---------- Splide track – allow peeking side slides ---------- */
.tmails-testimonials-wrapper .splide__track {
	overflow: visible;
}

.tmails-testimonials-wrapper .splide {
	overflow: visible; /* clip outside the wrapper bounds */
}

/* ---------- Base Card ---------- */
.tmails-testimonials-wrapper .tmails-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border-radius: 16px;
	overflow: hidden;
	background: #f4f1ea;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.tmails-testimonials-wrapper .splide__slide.is-active.is-visible .tmails-card{
    transform: scale(1) !important;
}
.tmails-testimonials-wrapper .splide__slide .tmails-card{
    transform: scale(0.9) !important;
    transition: transform 0.5s ease;
}
.tmails-testimonials-wrapper .splide__arrow svg {
    overflow: visible;
}

/* Dim non-active slides */
.tmails-testimonials-wrapper .splide__slide:not(.is-active) .tmails-card {
	opacity: 0.55;
}

/* ---------- Text Side ---------- */
.tmails-testimonials-wrapper .tmails-card__text {
	flex: 1 1 50%;
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

/* ---------- Image Side ---------- */
.tmails-testimonials-wrapper .tmails-card__image-wrap {
	flex: 0 0 50%;
	position: relative;
	overflow: hidden;
}

.tmails-testimonials-wrapper .tmails-card__image-wrap img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* Aspect ratio helper classes applied via JS from widget setting */
.tmails-testimonials-wrapper .tmails-ratio-1-1  .tmails-card__image-wrap { aspect-ratio: 1 / 1; }
.tmails-testimonials-wrapper .tmails-ratio-4-3  .tmails-card__image-wrap { aspect-ratio: 4 / 3; }
.tmails-testimonials-wrapper .tmails-ratio-16-9 .tmails-card__image-wrap { aspect-ratio: 16 / 9; }
.tmails-testimonials-wrapper .tmails-ratio-3-4  .tmails-card__image-wrap { aspect-ratio: 3 / 4; }
.tmails-testimonials-wrapper .tmails-ratio-free .tmails-card__image-wrap { aspect-ratio: unset; }

/* ---------- Quote Icon ---------- */
.tmails-testimonials-wrapper .tmails-card__quote-icon {
	display: block;
	width: 36px;
	height: auto;
}

/* ---------- Content Text ---------- */
.tmails-testimonials-wrapper .tmails-card__content {
	margin: 0;
	font-style: italic;
	line-height: 1.65;
}

/* ---------- Author ---------- */
.tmails-testimonials-wrapper .tmails-card__author {
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	    margin-bottom: -3%;
}

/* ---------- Designation ---------- */
.tmails-testimonials-wrapper .tmails-card__designation {
	margin: 0;
	line-height: 1.3;
}

/* ===================================================
   Navigation Arrows
   Positioned outside the card, vertically centered
   =================================================== */
.tmails-testimonials-wrapper .splide__arrows {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.tmails-testimonials-wrapper .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	cursor: pointer;
	pointer-events: all;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tmails-testimonials-wrapper .splide__arrow:hover {
	background: none;
	box-shadow: none;
	border: none;
}
.tmails-testimonials-wrapper .splide__arrow:focus {
	background: none;
	box-shadow: none;
	border: none;
	    outline: none;
}
.tmails-testimonials-wrapper .splide__arrow svg {
	fill: #333;
	width: 18px;
	height: 18px;
}

/* Position prev arrow at left edge of visible area */
.tmails-testimonials-wrapper .splide__arrow--prev {
	left: 6%;
}

/* Position next arrow at right edge of visible area */
.tmails-testimonials-wrapper .splide__arrow--next {
	right: 6%;
}

/* Hide default Splide pagination dots */
.tmails-testimonials-wrapper .splide__pagination {
	display: none;
}

/* ===================================================
   Mobile Layout  (≤ 768px)
   Image on top, text below – vertical card
   =================================================== */
@media (max-width: 768px) {
	.tmails-testimonials-wrapper .tmails-card {
		flex-direction: column-reverse !important;
	}

	.tmails-testimonials-wrapper .tmails-card__image-wrap {
		flex: 0 0 auto;
		width: 100%;
		min-height: 220px;
	}

	.tmails-testimonials-wrapper .tmails-card__text {
		flex: 1 1 auto;
		padding: 28px 24px;
	}

	/* Push arrows wider on mobile so they don't overlap the card */
	.tmails-testimonials-wrapper .splide__arrow--prev {
		left: -9%;
	}

	.tmails-testimonials-wrapper .splide__arrow--next {
		right: -9%;
	}
}
