/* LNS Testimonial Flip Cards — "Deep Sea Bubble" theme (v1.3.0) */

.lns-tf-grid,
.lns-tf-wrap,
.lns-tf-heading-wrap,
.lns-tf-modal-overlay {
	--lns-tf-abyss: #031c27;
	--lns-tf-ocean: #073e52;
	--lns-tf-reef: #0b6178;
	--lns-tf-glow: #3fd8ec;
	--lns-tf-foam: #eafbff;
	--lns-tf-serif: Georgia, 'Times New Roman', Times, serif;
}

/* ---------- Optional bubble heading: [lns_testimonials title="Client Reviews"] ---------- */
.lns-tf-heading-wrap {
	display: flex;
	justify-content: center;
	margin: 24px 0 8px;
}

.lns-tf-heading-orb,
.lns-tf-quote-icon,
.lns-tf-avatar,
.lns-tf-photo-orb {
	/* Shared glass-bubble look: glossy rim + inner glow + specular highlight. */
	position: relative;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 120%, rgba(63, 216, 236, 0.55) 0%, rgba(63, 216, 236, 0) 55%),
		radial-gradient(circle at 50% 45%, rgba(7, 62, 82, 0.2) 0%, rgba(3, 28, 39, 0.65) 100%);
	border: 2px solid rgba(160, 240, 255, 0.75);
	box-shadow:
		0 0 18px rgba(63, 216, 236, 0.45),
		inset 0 0 22px rgba(63, 216, 236, 0.45),
		inset 0 -10px 24px rgba(63, 216, 236, 0.35);
}

.lns-tf-heading-orb::after,
.lns-tf-quote-icon::after,
.lns-tf-avatar::after,
.lns-tf-photo-orb::after {
	/* Specular highlight, top-right — the "sparkle" from the reference. */
	content: '';
	position: absolute;
	top: 14%;
	right: 16%;
	width: 16%;
	height: 16%;
	border-radius: 50%;
	background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 72%);
	pointer-events: none;
}

.lns-tf-heading-orb {
	width: 190px;
	height: 190px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--lns-tf-serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.12;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	padding: 24px;
	box-sizing: border-box;
}

.lns-tf-heading-orb span {
	position: relative;
	z-index: 1;
}

/* ---------- Grid ---------- */
.lns-tf-grid {
	--lns-tf-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--lns-tf-columns), 1fr);
	gap: 28px;
	margin: 24px 0;
}

@media (max-width: 900px) {
	.lns-tf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.lns-tf-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Card + flip ---------- */
.lns-tf-card {
	position: relative;
	height: 390px;
	perspective: 1200px;
	outline: none;
}

.lns-tf-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: left;
	transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
	transform-style: preserve-3d;
	border-radius: 22px;
	box-shadow: 0 14px 34px rgba(3, 28, 39, 0.35);
}

.lns-tf-card:hover .lns-tf-card-inner,
.lns-tf-card.lns-tf-flipped .lns-tf-card-inner {
	transform: rotateY(180deg);
}

/* While the cursor is inside the scrollable text, cancel the hover-flip so
   mouse-wheel scrolling doesn't fight the flip animation. */
.lns-tf-card.lns-tf-no-flip .lns-tf-card-inner {
	transform: none !important;
}

.lns-tf-card-front,
.lns-tf-card-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 22px;
	overflow: hidden;
	color: var(--lns-tf-foam);
	/* Deep-water backdrop: light shafts from the surface fading into the abyss. */
	background:
		radial-gradient(ellipse 70% 40% at 50% 0%, rgba(63, 216, 236, 0.28) 0%, rgba(63, 216, 236, 0) 70%),
		linear-gradient(170deg, var(--lns-tf-reef) 0%, var(--lns-tf-ocean) 45%, var(--lns-tf-abyss) 100%);
	border: 1px solid rgba(160, 240, 255, 0.25);
}

.lns-tf-card-front::before,
.lns-tf-card-back::before {
	/* Soft caustic light streaks. */
	content: '';
	position: absolute;
	inset: -20% -10% auto;
	height: 70%;
	background: repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.05) 0 14px, rgba(255, 255, 255, 0) 14px 46px);
	pointer-events: none;
	mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.lns-tf-card-front {
	padding: 26px 24px 20px;
	display: flex;
	flex-direction: column;
}

/* ---------- Rising bubbles (decorative) ---------- */
.lns-tf-bubbles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.lns-tf-bubbles i {
	position: absolute;
	bottom: -20px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(190, 245, 255, 0.6);
	background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8) 0 12%, rgba(63, 216, 236, 0.12) 40%, rgba(63, 216, 236, 0) 70%);
	opacity: 0;
	animation: lns-tf-rise 9s linear infinite;
}

.lns-tf-bubbles i:nth-child(1) { left: 8%;  width: 8px;  height: 8px;  animation-delay: 0s;   animation-duration: 8s; }
.lns-tf-bubbles i:nth-child(2) { left: 22%; width: 14px; height: 14px; animation-delay: 2.5s; animation-duration: 11s; }
.lns-tf-bubbles i:nth-child(3) { left: 48%; width: 6px;  height: 6px;  animation-delay: 4s;   animation-duration: 7s; }
.lns-tf-bubbles i:nth-child(4) { left: 66%; width: 12px; height: 12px; animation-delay: 1s;   animation-duration: 10s; }
.lns-tf-bubbles i:nth-child(5) { left: 82%; width: 7px;  height: 7px;  animation-delay: 6s;   animation-duration: 9s; }
.lns-tf-bubbles i:nth-child(6) { left: 92%; width: 16px; height: 16px; animation-delay: 3.5s; animation-duration: 12s; }

@keyframes lns-tf-rise {
	0%   { transform: translate(0, 0); opacity: 0; }
	10%  { opacity: 0.9; }
	50%  { transform: translate(8px, -210px); }
	90%  { opacity: 0.7; }
	100% { transform: translate(-6px, -430px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.lns-tf-bubbles i {
		animation: none;
		opacity: 0.5;
	}
	.lns-tf-bubbles i:nth-child(odd)  { bottom: 30%; }
	.lns-tf-bubbles i:nth-child(even) { bottom: 62%; }
	.lns-tf-card-inner {
		transition-duration: 0.01s;
	}
}

/* ---------- Front content ---------- */
.lns-tf-quote-icon {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	margin: -8px auto 12px; /* Sits in the same row as the flip / play buttons. */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.lns-tf-quote-icon span {
	font-family: var(--lns-tf-serif);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	margin-top: 16px;
	text-shadow: 0 0 10px rgba(63, 216, 236, 0.8);
}

/* Card height stays fixed; text of any length scrolls inside the remaining space. */
.lns-tf-text {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(234, 251, 255, 0.92);
	text-align: center;
	margin-top: 14px;
	padding: 0 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(63, 216, 236, 0.6) transparent;
}

.lns-tf-text::-webkit-scrollbar {
	width: 6px;
}

.lns-tf-text::-webkit-scrollbar-track {
	background: transparent;
}

.lns-tf-text::-webkit-scrollbar-thumb {
	background-color: rgba(63, 216, 236, 0.55);
	border-radius: 3px;
}

.lns-tf-text:focus-visible {
	outline: 2px solid var(--lns-tf-glow);
	outline-offset: 2px;
	border-radius: 6px;
}

.lns-tf-text p {
	margin: 0 0 10px;
	color: inherit;
}

.lns-tf-meta {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	text-align: center;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(160, 240, 255, 0.2);
}

.lns-tf-meta-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.lns-tf-avatar {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.lns-tf-avatar[style] {
	/* Photo inside the bubble: keep the glass rim + glow, let the photo show through. */
	background-color: var(--lns-tf-ocean);
}

.lns-tf-avatar b,
.lns-tf-photo-orb b {
	font-family: var(--lns-tf-serif);
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.lns-tf-avatar b {
	font-size: 22px;
}

.lns-tf-name {
	font-family: var(--lns-tf-serif);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.25;
	color: #ffffff;
}

.lns-tf-designation {
	font-size: 13px;
	color: rgba(160, 240, 255, 0.85);
	margin-top: 3px;
}

.lns-tf-company {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	margin-top: 2px;
}

/* ---------- Back: client photo inside a big glass bubble ---------- */
.lns-tf-card-back {
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
}

.lns-tf-photo-orb {
	width: min(210px, 62%);
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center;
	background-color: var(--lns-tf-ocean);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	box-shadow:
		0 0 34px rgba(63, 216, 236, 0.55),
		inset 0 0 30px rgba(63, 216, 236, 0.55),
		inset 0 -16px 34px rgba(63, 216, 236, 0.4);
	animation: lns-tf-bob 6s ease-in-out infinite;
}

.lns-tf-photo-orb:not([style]) {
	background:
		radial-gradient(circle at 50% 120%, rgba(63, 216, 236, 0.55) 0%, rgba(63, 216, 236, 0) 55%),
		radial-gradient(circle at 50% 45%, rgba(7, 62, 82, 0.2) 0%, rgba(3, 28, 39, 0.65) 100%);
}

.lns-tf-photo-orb b {
	font-size: 64px;
}

@keyframes lns-tf-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
	.lns-tf-photo-orb {
		animation: none;
	}
}

.lns-tf-back-meta {
	position: relative;
	padding: 0 8px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lns-tf-back-meta .lns-tf-name {
	font-size: 22px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- Flip + video buttons (outside .lns-tf-card-inner, never flip) ---------- */
.lns-tf-flip-btn,
.lns-tf-video-btn {
	position: absolute;
	top: 14px;
	border-radius: 50%;
	background: rgba(3, 28, 39, 0.55);
	border: 2px solid rgba(160, 240, 255, 0.8);
	box-shadow: 0 0 10px rgba(63, 216, 236, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lns-tf-flip-btn {
	left: 14px;
	width: 36px;
	height: 36px;
}

.lns-tf-video-btn {
	right: 14px;
	width: 42px;
	height: 42px;
}

.lns-tf-flip-btn:hover,
.lns-tf-flip-btn:focus-visible,
.lns-tf-video-btn:hover,
.lns-tf-video-btn:focus-visible {
	background: var(--lns-tf-glow, #3fd8ec);
	box-shadow: 0 0 18px rgba(63, 216, 236, 0.85);
	transform: scale(1.08);
	outline: none;
}

.lns-tf-flip-btn:focus-visible,
.lns-tf-video-btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.lns-tf-flip-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.lns-tf-play-triangle {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 12px solid #ffffff;
}

/* ---------- Load More ---------- */
.lns-tf-card.lns-tf-is-hidden {
	display: none;
}

.lns-tf-card.lns-tf-reveal {
	animation: lns-tf-surface 0.6s ease-out both;
}

@keyframes lns-tf-surface {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.lns-tf-load-more-wrap {
	display: flex;
	justify-content: center;
	margin: 8px 0 24px;
}

.lns-tf-load-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #12bae9;
	box-shadow: inset 5px -5px 10px #12bae9;
	border-radius: 999px;
	background-color: rgba(2, 159, 83, .01);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	text-align: center !important;
	color: #fff;
	padding: 13px;
	padding-left: 30px;
	padding-right: 30px;
	font-family: var(--lns-tf-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 32px !important;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lns-tf-load-more::after {
	/* Bubble sparkle. */
	content: '';
	position: absolute;
	top: 6px;
	right: 18px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
}

.lns-tf-load-more:hover,
.lns-tf-load-more:focus-visible {
	transform: translateY(-2px);
	box-shadow: inset 5px -5px 14px #12bae9, 0 0 14px rgba(18, 186, 233, 0.6);
	outline: none;
}

.lns-tf-load-more:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.lns-tf-load-more-count {
	font-family: inherit;
	font-weight: 400;
	font-size: 15px;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.lns-tf-card.lns-tf-reveal {
		animation: none;
	}
}

/* ---------- Modal / lightbox ---------- */
.lns-tf-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(3, 28, 39, 0.9);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lns-tf-modal-overlay.is-open {
	display: flex;
}

.lns-tf-modal-content {
	position: relative;
	width: 100%;
	max-width: 860px;
}

.lns-tf-modal-iframe-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 40px rgba(63, 216, 236, 0.35);
}

.lns-tf-modal-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.lns-tf-modal-close {
	position: absolute;
	top: -42px;
	right: 0;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.lns-tf-modal-close:hover,
.lns-tf-modal-close:focus {
	color: var(--lns-tf-glow);
	outline: none;
}

body.lns-tf-modal-open {
	overflow: hidden;
}
