/**
 * Codnix Testimonial Pro — Frontend Styles
 * Premium 3D Coverflow Testimonial Slider
 *
 * @package Codnix_Testimonial_Pro
 * @version 1.0.0
 */

/* =============================================================
   RESET & WRAPPER
   ============================================================= */
.codnix-testimonial-pro-wrapper {
	position: relative;
	width: 100%;
}

.codnix-tp-slider-wrap {
	position: relative;
	width: 100%;
}

/* =============================================================
   SWIPER CORE OVERRIDES
   ============================================================= */
.codnix-tp-swiper {
	width: 100%;
	padding-top: 20px !important;
	padding-bottom: 20px !important;
	overflow: visible !important;
}

/* Contain overflow so side cards don't bleed past the section */
.codnix-testimonial-pro-wrapper {
	overflow: hidden;
}

.codnix-tp-swiper .swiper-wrapper {
	align-items: center;
}

/* =============================================================
   CARD — BASE
   ============================================================= */
.codnix-tp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	padding: 40px 36px;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.24),
		0 2px 8px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
	/* Default transform reset — JS overrides this */
	transform: scale(1);
	opacity: 0.6;
	will-change: transform, opacity;
	transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Active card elevated by JS — extra CSS enhancement */
.swiper-slide-active .codnix-tp-card {
	opacity: 1 !important;
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.36),
		0 8px 24px rgba(0, 0, 0, 0.20),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* =============================================================
   QUOTE ICON
   ============================================================= */
.codnix-tp-quote-icon {
	display: block;
	font-size: 80px;
	line-height: 1;
	font-family: Georgia, 'Times New Roman', serif;
	color: rgba(255, 255, 255, 0.08);
	position: absolute;
	top: 12px;
	right: 24px;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

/* =============================================================
   TESTIMONIAL CONTENT
   ============================================================= */
.codnix-tp-content {
	position: relative;
	z-index: 1;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 24px;
	flex: 1;
}

/* =============================================================
   STAR RATING
   ============================================================= */
.codnix-tp-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.codnix-tp-star {
	font-size: 18px;
	line-height: 1;
	transition: color 0.2s ease;
}

.codnix-tp-star.filled {
	color: #ffd700;
}

.codnix-tp-star.empty {
	color: rgba(255, 255, 255, 0.25);
}

/* =============================================================
   AUTHOR BLOCK
   ============================================================= */
.codnix-tp-author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

/* Layout 3: text top, author bottom */
.codnix-tp-card.layout-3 .codnix-tp-author {
	margin-top: auto;
	margin-bottom: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Layout 2: inline (image left, text right) */
.codnix-tp-card.layout-2 .codnix-tp-author {
	flex-direction: row;
	margin-top: 20px;
	margin-bottom: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================================================
   PROFILE IMAGE
   ============================================================= */
.codnix-tp-image-wrap {
	flex-shrink: 0;
}

.codnix-tp-image-link {
	display: block;
	text-decoration: none;
}

.codnix-tp-image {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

/* =============================================================
   AUTHOR META
   ============================================================= */
.codnix-tp-author-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.codnix-tp-author-name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

a.codnix-tp-author-name:hover {
	opacity: 0.8;
}

.codnix-tp-designation {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.4;
}

.codnix-tp-company {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.4;
	font-style: italic;
}

/* =============================================================
   BOTTOM CONTROLS AREA
   ============================================================= */
.codnix-tp-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 32px;
	flex-wrap: wrap;
}

/* =============================================================
   PAGINATION
   ============================================================= */
.codnix-tp-pagination {
	position: static !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
}

.codnix-tp-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.3);
	opacity: 1;
	margin: 0 6px !important;
	transition: width 0.35s ease, background 0.35s ease;
	display: inline-block;
}

.codnix-tp-pagination .swiper-pagination-bullet-active {
	width: 24px;
	background: #ffffff;
}

/* Fraction pagination */
.codnix-tp-pagination.swiper-pagination-fraction {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

/* Progress bar */
.codnix-tp-pagination.swiper-pagination-progressbar {
	position: relative !important;
	width: 100%;
	max-width: 300px;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
	overflow: hidden;
}

.codnix-tp-pagination.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
	background: #ffffff;
	border-radius: 3px;
}

/* =============================================================
   NAVIGATION ARROWS
   ============================================================= */
.codnix-tp-nav-arrows {
	display: flex;
	align-items: center;
	gap: 12px;
}

.codnix-tp-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.15);
	cursor: pointer;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.2s ease;
	outline: none;
	font-size: 16px;
	text-decoration: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

.codnix-tp-nav-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
	transform: scale(1.08);
}

.codnix-tp-nav-btn:active {
	transform: scale(0.96);
}

.codnix-tp-nav-btn i,
.codnix-tp-nav-btn svg {
	pointer-events: none;
	display: block;
}

/* Absolute positioned arrows */
.codnix-tp-slider-wrap.arrow-pos-absolute .codnix-tp-btn-prev,
.codnix-tp-slider-wrap.arrow-pos-absolute .codnix-tp-btn-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
}

.codnix-tp-slider-wrap.arrow-pos-absolute .codnix-tp-btn-prev {
	left: 0;
}

.codnix-tp-slider-wrap.arrow-pos-absolute .codnix-tp-btn-next {
	right: 0;
}

.codnix-tp-slider-wrap.arrow-pos-absolute .codnix-tp-btn-prev:hover,
.codnix-tp-slider-wrap.arrow-pos-absolute .codnix-tp-btn-next:hover {
	transform: translateY(-50%) scale(1.08);
}

/* Disabled state */
.codnix-tp-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media ( max-width: 1024px ) {
	.codnix-tp-card {
		padding: 30px 24px;
	}
}

@media ( max-width: 767px ) {
	.codnix-tp-card {
		padding: 28px 20px;
	}

	.codnix-tp-content {
		font-size: 14px;
	}

	.codnix-tp-quote-icon {
		font-size: 60px;
	}

	.codnix-tp-image {
		width: 56px;
		height: 56px;
	}

	.codnix-tp-author-name {
		font-size: 15px;
	}

	.codnix-tp-nav-btn {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}

	.codnix-tp-bottom {
		margin-top: 20px;
		gap: 14px;
	}
}

/* =============================================================
   ELEMENTOR EDITOR HELPERS
   ============================================================= */
.elementor-editor-active .codnix-tp-card {
	opacity: 1 !important;
	transform: scale(1) !important;
}
