/**
 * WebXtrm Testimonials Widget Styles
 */

.wx-testimonials-wrap {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.wx-testimonials-wrap * {
	box-sizing: border-box;
}

/* ===== GRID LAYOUT ===== */
.wx-testimonials--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
	gap: 20px;
}

/* ===== CAROUSEL LAYOUT ===== */
.wx-testimonials--carousel {
	overflow: hidden;
	width: 100%;
}

.wx-testimonials--carousel .swiper-slide {
	height: auto;
	display: flex;
}

.wx-testimonials--carousel .wx-testi-card {
	width: 100%;
	height: 100%;
}

/* ===== CARD ===== */
.wx-testi-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	background: #0f131a;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 28px 24px;
	height: 100%;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.wx-testi-card:hover {
	border-color: rgba(0, 201, 240, 0.2);
}

/* ===== AVATAR ===== */
.wx-testi-avatar {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 2px solid rgba(0, 201, 240, 0.25);
	background: linear-gradient(135deg, #1a2535, #0d1520);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.wx-testi-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.wx-testi-initials {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #00c9f0;
	letter-spacing: 0.5px;
	line-height: 1;
}

/* ===== CARD BODY ===== */
.wx-testi-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Quote Mark */
.wx-testi-quote-mark {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 30px;
	color: #00c9f0;
	line-height: 0.6;
	margin: 0 0 6px;
	font-weight: 700;
	letter-spacing: -2px;
	user-select: none;
}

/* Quote text */
.wx-testi-text {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #9aacbd;
	line-height: 1.6;
	margin: 0 0 16px 0;
	flex: 1;
}

/* Name */
.wx-testi-name {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 3px 0;
	line-height: 1.3;
}

/* Role */
.wx-testi-role {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #00c9f0;
	line-height: 1.3;
}

/* ===== CAROUSEL ARROWS ===== */
.wx-testi-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 201, 240, 0.08);
	border: 1.5px solid rgba(0, 201, 240, 0.3);
	color: #00c9f0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.25s ease;
	padding: 0;
}

.wx-testi-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
}

.wx-testi-arrow:hover {
	background: rgba(0, 201, 240, 0.2);
	border-color: #00c9f0;
}

.wx-testi-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.wx-testi-prev {
	left: -52px;
}

.wx-testi-next {
	right: -52px;
}

/* ===== CAROUSEL PAGINATION ===== */
.wx-testimonials--carousel .swiper-pagination {
	position: static;
	margin-top: 24px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.wx-testimonials--carousel .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(0, 201, 240, 0.3);
	opacity: 1;
	margin: 0 !important;
	transition: all 0.3s ease;
	cursor: pointer;
	border-radius: 50%;
	display: inline-block;
}

.wx-testimonials--carousel .swiper-pagination-bullet-active {
	background: #00c9f0;
	transform: scale(1.2);
}

/* When arrows would overflow on small screens, push inside */
@media (max-width: 900px) {
	.wx-testi-prev {
		left: 4px;
	}
	.wx-testi-next {
		right: 4px;
	}
}
