/**
 * Advanced Testimonial Slider Pro — Frontend Styles
 * Dark premium glassmorphism theme, fully responsive.
 * All colors/sizes below are DEFAULTS — every value is overridden
 * inline by Elementor's control selectors when the user customizes it.
 */

.atsp-section {
	position: relative;
	background-color: #0a0a2a;
	overflow: hidden;
	box-sizing: border-box;
}

.atsp-section *,
.atsp-section *::before,
.atsp-section *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.atsp-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
}

.atsp-heading {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
}

.atsp-heading .atsp-accent {
	color: #4d6bfe;
}

.atsp-sub-heading {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #a9aec7;
}

/* ---------- Slider shell ---------- */

.atsp-slider {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
}

.atsp-viewport {
	overflow: hidden;
	width: 100%;
}

.atsp-track {
	display: flex;
	gap: 30px;
	will-change: transform;
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
	cursor: grab;
}

.atsp-track.is-dragging {
	cursor: grabbing;
	transition: none !important;
}

.atsp-section.atsp-effect-fade .atsp-track {
	transition: none;
}

.atsp-section.atsp-effect-fade .atsp-card {
	transition: opacity 400ms ease;
}

/* ---------- Card ---------- */

.atsp-card {
	position: relative;
	flex: 0 0 calc((100% - (30px * 2)) / 3);
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 40px 36px 36px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
	height: 100%;
}

.atsp-card:hover {
	transform: translateY(-8px);
	border-color: rgba(77, 107, 254, 0.35);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.atsp-card--featured {
	border-color: rgba(77, 107, 254, 0.55);
}

.atsp-featured-badge {
	position: absolute;
	top: -12px;
	left: 28px;
	background: linear-gradient(135deg, #4d6bfe, #7c3aed);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(77, 107, 254, 0.4);
}

.atsp-quote-icon {
	position: absolute;
	top: 28px;
	right: 28px;
	color: #4d6bfe;
	opacity: 0.35;
	line-height: 0;
	pointer-events: none;
}

.atsp-quote-pos-top-left .atsp-quote-icon {
	top: 28px;
	left: 28px;
	right: auto;
}

.atsp-quote-pos-bottom-right .atsp-quote-icon {
	top: auto;
	bottom: 28px;
	right: 28px;
}

.atsp-quote-pos-bottom-left .atsp-quote-icon {
	top: auto;
	bottom: 28px;
	left: 28px;
	right: auto;
}

.atsp-quote-icon svg {
	width: 48px;
	height: 48px;
	display: block;
}

.atsp-card-top {
	flex: 1 1 auto;
}

/* ---------- Rating ---------- */

.atsp-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 16px;
	font-size: 16px;
}

.atsp-star {
	display: inline-flex;
	line-height: 0;
	color: rgba(255, 255, 255, 0.2);
}

.atsp-star.is-active {
	color: #ffb800;
}

.atsp-star.is-half {
	color: #ffb800;
	opacity: 0.5;
}

.atsp-star svg {
	width: 1em;
	height: 1em;
	display: block;
}

/* ---------- Review text ---------- */

.atsp-review-text {
	margin: 0;
	color: #d7dae8;
	font-size: 16px;
	line-height: 1.7;
	word-wrap: break-word;
}

/* ---------- Divider ---------- */

.atsp-divider {
	height: 1px;
	background-color: rgba(255, 255, 255, 0.1);
	margin: 28px 0 22px;
	flex: none;
}

/* ---------- Card bottom / reviewer meta ---------- */

.atsp-card-bottom {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.atsp-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.15);
	flex: none;
	display: block;
	background: #1c1c3c;
}

.atsp-reviewer-meta {
	min-width: 0;
}

.atsp-reviewer-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.atsp-reviewer-name {
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atsp-verified-badge {
	color: #4d6bfe;
	display: inline-flex;
	line-height: 0;
	flex: none;
}

.atsp-flag {
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
	flex: none;
}

.atsp-designation-row {
	color: #a9aec7;
	font-size: 14px;
	line-height: 1.5;
	margin-top: 2px;
}

.atsp-meta-sep {
	margin-right: 3px;
}

.atsp-review-date {
	display: block;
	color: #6d7291;
	font-size: 12px;
	margin-top: 4px;
}

/* ---------- Controls (arrows + pagination) ---------- */

.atsp-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 44px;
}

.atsp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	cursor: pointer;
	font-size: 18px;
	transition: background-color 250ms ease, color 250ms ease, transform 200ms ease;
	padding: 0;
}

.atsp-arrow:hover {
	background-color: #4d6bfe;
	color: #ffffff;
	transform: scale(1.06);
}

.atsp-arrow:focus-visible {
	outline: 2px solid #4d6bfe;
	outline-offset: 2px;
}

.atsp-arrow svg,
.atsp-arrow i {
	width: 1em;
	height: 1em;
	pointer-events: none;
}

.atsp-arrow-pos-sides .atsp-controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	justify-content: space-between;
	margin-top: 0;
	pointer-events: none;
	z-index: 2;
}

.atsp-arrow-pos-sides .atsp-arrow {
	pointer-events: all;
}

.atsp-arrow-pos-sides .atsp-pagination {
	position: absolute;
	bottom: -44px;
	left: 50%;
	transform: translateX(-50%);
}

.atsp-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
}

.atsp-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.25);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 250ms ease, width 250ms ease;
}

.atsp-bullet.is-active {
	background-color: #4d6bfe;
}

.atsp-bullet-style-bar .atsp-bullet {
	border-radius: 3px;
	width: 22px;
	height: 6px;
}

.atsp-bullet-style-bar .atsp-bullet.is-active {
	width: 34px;
}

.atsp-bullet-style-square .atsp-bullet {
	border-radius: 2px;
}

.atsp-bullet:focus-visible {
	outline: 2px solid #4d6bfe;
	outline-offset: 2px;
}

/* ---------- Responsive columns ---------- */

@media (max-width: 1024px) {
	.atsp-card {
		flex: 0 0 calc((100% - 30px) / 2);
	}
}

@media (max-width: 767px) {
	.atsp-card {
		flex: 0 0 100%;
	}

	.atsp-header {
		margin-bottom: 32px;
	}

	.atsp-controls {
		margin-top: 32px;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.atsp-track,
	.atsp-card,
	.atsp-arrow,
	.atsp-bullet {
		transition: none !important;
	}
}

/* ---------- RTL ---------- */

.atsp-section[dir="rtl"] .atsp-track {
	flex-direction: row-reverse;
}
