.ri-testimonial-slider-container {
	position: relative;
	width: 100%;
}

.ri-testimonial-slider {
	width: 100%;
	padding-bottom: 40px !important; /* Make room for pagination dots */
}

.ri-testimonial-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.ri-testimonial-slider .swiper-slide {
	height: auto;
	display: flex;
}

.ri-testimonial-slider .ri-testimonial-card {
	height: 100%;
	width: 100%;
}

.ri-testimonial-card {
	background-color: #ffffff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.ri-testimonial-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ri-testimonial-image {
	margin-bottom: 20px;
}

.ri-testimonial-image img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ri-testimonial-content {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	flex-grow: 1;
}

.ri-testimonial-content p {
	margin: 0;
}

.ri-testimonial-meta {
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

.ri-testimonial-name {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 5px 0;
	line-height: 1.2;
}

.ri-testimonial-designation {
	font-size: 14px;
	color: #888;
	line-height: 1.2;
}

.ri-testimonial-stars {
	margin-top: 15px;
	font-size: 18px;
	line-height: 1;
	display: flex;
	gap: 2px;
}

.ri-star-filled {
	color: #ffb400; /* Star color */
}

.ri-star-empty {
	color: #ccc;
}

/* Slider Controls Styles */
.ri-slider-arrow {
	width: 44px;
	height: 44px;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.ri-slider-arrow::after {
	font-size: 16px !important;
	font-weight: bold;
}

.ri-slider-arrow:hover {
	background-color: #333;
	color: #fff;
}

/* Dots Styling */
.ri-slider-dots {
	bottom: 0 !important;
}

.ri-slider-dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	opacity: 0.5;
	background-color: #aaa;
	transition: all 0.3s ease;
}

.ri-slider-dots .swiper-pagination-bullet-active {
	opacity: 1;
	background-color: #333;
	width: 24px;
	border-radius: 4px;
}

/* Custom Icon Hide Swiper Default Pseudoelement */
.ri-slider-arrow.ri-has-custom-icon::after {
	display: none !important;
}

/* Style 2 (Editorial Quote Layout) */

/*
 * The swiper element must be position:relative so the single absolute-positioned
 * navigation overlay anchors to the slider bounds, not the page.
 * Also remove the default dots-spacing padding since Style 2 nav is overlaid.
 */
.ri-layout-style-2 .ri-testimonial-slider {
	position: relative;
}

.ri-testimonial-card.ri-layout-style-2 {
	border: none;
	box-shadow: none;
	background-color: transparent;
	border-radius: 0;
	padding: 0;
	display: grid;
	/* Column 1: slim divider, Column 2: all content */
	grid-template-columns: auto 1fr;
	align-items: stretch;
	gap: 0;
	box-sizing: border-box;
	transition: none;
}

.ri-testimonial-card.ri-layout-style-2:hover {
	transform: none;
	box-shadow: none;
}

/* Full-height vertical divider — spans the entire card height */
.ri-style-2-divider {
	grid-column: 1;
	grid-row: 1;
	align-self: stretch;
	border-left-style: solid;
	border-left-width: 1px;
	border-left-color: #1a1a1a;
	margin-right: 40px;
}

/*
 * Main content column: flex column so that:
 *   - Quote fills available space (flex: 1), stays TOP aligned
 *   - Bottom row (author + image + nav) is pushed to the BOTTOM via margin-top: auto
 */
.ri-style-2-main-content {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

/* Quote text — top-aligned, grows to fill space */
.ri-layout-style-2 .ri-testimonial-content {
	flex: 1;
	align-self: flex-start;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.6;
	color: #1a1a1a;
	font-style: italic;
	font-family: Georgia, 'Times New Roman', serif;
	margin: 0 0 32px 0;
	width: 100%;
}

.ri-layout-style-2 .ri-testimonial-content p {
	margin: 0;
}

/*
 * Bottom row: author info (left) + image (right)
 * Always at the bottom because .ri-style-2-main-content is flex column
 * and the quote above has flex:1 pushing this row down.
 */
.ri-style-2-bottom-row {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: auto;
	flex-shrink: 0;
}

/* Left side of bottom row: author block + navigation stacked vertically */
.ri-style-2-bottom-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
	flex: 1;
	min-width: 0;
}

/* Author block */
.ri-layout-style-2 .ri-testimonial-author-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ri-layout-style-2 .ri-testimonial-name {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
}

.ri-layout-style-2 .ri-testimonial-designation {
	font-size: 14px;
	color: #555;
	margin: 0;
	line-height: 1.2;
	display: block;
}

.ri-layout-style-2 .ri-testimonial-company {
	font-size: 14px;
	color: #777;
	margin: 0;
	line-height: 1.2;
	display: block;
}

.ri-layout-style-2 .ri-testimonial-stars {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1;
	display: flex;
	gap: 2px;
}

/* Image — right side of bottom row, bottom-aligned with the author block */
.ri-layout-style-2 .ri-testimonial-image {
	flex-shrink: 0;
	align-self: flex-end;
}

.ri-layout-style-2 .ri-testimonial-image img {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	display: block;
}

/*
 * Style 2 navigation is rendered ONCE, outside the swiper slides, as a direct
 * child of the swiper container (.ri-testimonial-slider which is position:relative).
 * We absolute-position it to overlay the bottom section of the visible slide,
 * matching where the card's author block bottom-left sits.
 */
.ri-layout-style-2 .ri-style-2-navigation-outer {
	position: absolute;
	/* Align with the left of the content area (after the divider + margin) */
	bottom: 0;
	left: 0;
	z-index: 10;
	display: flex;
	gap: var(--arrow-gap, 12px);
	align-items: center;
	pointer-events: none; /* let the children intercept clicks */
}

/* Children must re-enable pointer events */
.ri-layout-style-2 .ri-style-2-navigation-outer > * {
	pointer-events: auto;
}

/* Position variants */
.ri-layout-style-2 .ri-style-2-navigation-outer.ri-style-2-nav-pos-bottom-left {
	left: 0;
	right: auto;
	justify-content: flex-start;
}

.ri-layout-style-2 .ri-style-2-navigation-outer.ri-style-2-nav-pos-bottom-center {
	left: 50%;
	transform: translateX(-50%);
	justify-content: center;
}

.ri-layout-style-2 .ri-style-2-navigation-outer.ri-style-2-nav-pos-bottom-right {
	right: 0;
	left: auto;
	justify-content: flex-end;
}

/* Invisible anchor inside each card — reserves height so the card bottom row
 * has the same layout footprint whether nav is rendered inside or outside */
.ri-style-2-nav-anchor {
	display: block;
	height: 40px;
	width: 100%;
	pointer-events: none;
	visibility: hidden;
}

/* Reset ALL Swiper default styles on Style 2 arrows */
.ri-layout-style-2 .ri-style-2-navigation-outer .ri-slider-arrow,
.ri-layout-style-2 .ri-style-2-navigation-outer .swiper-button-prev,
.ri-layout-style-2 .ri-style-2-navigation-outer .swiper-button-next {
	position: static !important;
	margin: 0 !important;
	transform: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	box-sizing: content-box;
	transition: opacity 0.2s ease;
	/* Icon-only — no circle, no border, no background */
	width: auto !important;
	height: auto !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0;
	color: #1a1a1a;
	cursor: pointer;
}

.ri-layout-style-2 .ri-style-2-navigation-outer .ri-slider-arrow:hover {
	opacity: 0.6;
}

/* Swiper disabled state — show visually but do not hide */
.ri-layout-style-2 .ri-style-2-navigation-outer .swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/*
 * Suppress Swiper's default ::after arrow pseudo-elements in Style 2
 * to prevent double-icon rendering.
 */
.ri-layout-style-2 .ri-style-2-navigation-outer .swiper-button-prev::after,
.ri-layout-style-2 .ri-style-2-navigation-outer .swiper-button-next::after {
	display: none !important;
	content: none !important;
}

/* Custom icon sizing */
.ri-layout-style-2 .ri-slider-arrow i {
	font-size: 14px;
	line-height: 1;
}

.ri-layout-style-2 .ri-slider-arrow svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* Arrow navigation position variants */
.ri-layout-style-2 .ri-style-2-navigation.ri-style-2-nav-pos-bottom-left {
	justify-content: flex-start;
}

.ri-layout-style-2 .ri-style-2-navigation.ri-style-2-nav-pos-bottom-center {
	justify-content: center;
}

.ri-layout-style-2 .ri-style-2-navigation.ri-style-2-nav-pos-bottom-right {
	justify-content: flex-end;
}

/* Navigation Arrow Positioning Custom Classes for Style 1 */
.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-bottom-left .ri-slider-prev {
	left: 0;
	right: auto;
	bottom: 0;
	top: auto;
	transform: none;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-bottom-left .ri-slider-next {
	left: 54px;
	right: auto;
	bottom: 0;
	top: auto;
	transform: none;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-bottom-right .ri-slider-prev {
	right: 54px;
	left: auto;
	bottom: 0;
	top: auto;
	transform: none;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-bottom-right .ri-slider-next {
	right: 0;
	left: auto;
	bottom: 0;
	top: auto;
	transform: none;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-top-right .ri-slider-prev {
	right: 54px;
	left: auto;
	top: 0;
	bottom: auto;
	transform: none;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-top-right .ri-slider-next {
	right: 0;
	left: auto;
	top: 0;
	bottom: auto;
	transform: none;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-inside-center .ri-slider-prev {
	left: 10px;
	right: auto;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-inside-center .ri-slider-next {
	right: 10px;
	left: auto;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
}

/* Auto handle container padding if arrows are at the bottom or top for Style 1 */
.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-bottom-left .ri-testimonial-slider,
.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-bottom-right .ri-testimonial-slider {
	padding-bottom: 70px !important;
}

.ri-testimonial-slider-container.ri-layout-style-1.ri-arrow-pos-top-right .ri-testimonial-slider {
	padding-top: 70px !important;
}

/* Responsive Scaling and Media Queries */
@media (max-width: 1024px) {
	.ri-testimonial-card.ri-layout-style-2 .ri-testimonial-content {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	/* Keep the divider on the left but reduce gap on mobile */
	.ri-style-2-divider {
		margin-right: 20px;
	}

	/* Quote: smaller font, full-width, still top-aligned */
	.ri-layout-style-2 .ri-testimonial-content {
		font-size: 18px;
		margin-bottom: 20px;
	}

	/*
	 * On mobile: bottom-row stacks vertically
	 * Order: Author info → Image → Navigation
	 */
	.ri-style-2-bottom-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	/* Image takes full width / left-aligned on mobile */
	.ri-layout-style-2 .ri-testimonial-image {
		align-self: flex-start;
	}

	.ri-layout-style-2 .ri-testimonial-image img {
		width: 80px;
		height: 80px;
	}
}

