/* Review Cards Slider for Elementor */
.rcs {
	--rcs-cols: 4;
	--rcs-gap: 24px;
	--rcs-space: 16px;
	position: relative;
	width: 100%;
	font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: #3b4558;
}
.rcs *, .rcs *::before, .rcs *::after { box-sizing: border-box; }
.rcs__empty { padding: 24px; border: 1px dashed #c5cad6; text-align: center; color: #6b7280; }

/* ---------- Heading ---------- */
.rcs__head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.rcs__eyebrow {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #ff5a5f;
}
.rcs__title {
	margin: 0;
	font-family: 'Quicksand', 'Nunito', system-ui, sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: #101a35;
}

/* ---------- Arrows ---------- */
.rcs__nav { display: flex; gap: 10px; flex: none; margin-left: auto; }
.rcs__navbar { display: flex; justify-content: center; margin-top: 24px; }
.rcs__navbar .rcs__nav { margin-left: 0; }
.rcs .rcs__btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rcs-btn, 46px);
	height: var(--rcs-btn, 46px);
	padding: 0;
	margin: 0;
	font-size: 18px;
	line-height: 1;
	border: 1px solid #3b4a63;
	border-radius: 50%;
	background: transparent;
	color: #101a35;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.rcs .rcs__btn svg, .rcs .rcs__btn i { width: 1em; height: 1em; display: block; font-size: inherit; }
.rcs .rcs__btn:hover:not(:disabled) { background: #101a35; border-color: #101a35; color: #fff; }
.rcs .rcs__btn:focus-visible { outline: 2px solid #ff5a5f; outline-offset: 2px; }
.rcs .rcs__btn:disabled { opacity: .35; cursor: default; }

/* ---------- Slider ---------- */
.rcs__viewport {
	overflow: hidden;
	margin: calc(var(--rcs-space) * -1);
	padding: var(--rcs-space);
	touch-action: pan-y;
}
.rcs__track {
	position: relative;
	display: flex;
	gap: var(--rcs-gap);
	transition: transform .5s ease;
	will-change: transform;
}
.rcs.is-dragging .rcs__track { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.rcs__slide {
	flex: 0 0 calc((100% - (var(--rcs-cols) - 1) * var(--rcs-gap)) / var(--rcs-cols));
	min-width: 0;
	display: flex;
}

/* ---------- Card ---------- */
.rcs__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 25px;
	background: #fff;
	border: 1px solid #e6e9f0;
	border-radius: 24px;
	box-shadow: 0 12px 30px -14px rgba(16, 26, 53, .16);
	transition: box-shadow .25s, transform .25s, background-color .25s, border-color .25s;
}
.rcs__quote {
	display: block;
	margin-bottom: 14px;
	font-size: 22px;
	line-height: 1;
	color: #ff5a5f;
}
.rcs__quote svg { display: block; width: 1em; height: .75em; fill: currentColor; }
.rcs__quote i { display: block; font-size: inherit; line-height: 1; }

.rcs__rating {
	position: relative;
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 22px;
	font-size: 13px;
	line-height: 1;
}
.rcs__stars { display: flex; flex-wrap: nowrap; gap: 4px; }
.rcs__stars--bg { color: #d9dde6; }
.rcs__stars--fg { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; color: #ff5a5f; }
.rcs__star { flex: none; width: 1em; height: 1em; fill: currentColor; display: block; }

.rcs__body { flex: 1 1 auto; margin-bottom: 24px; }
.rcs__text { margin: 0; font-size: 15px; line-height: 1.65em; color: #3b4558; }
.rcs .rcs__more {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #ff5a5f;
	cursor: pointer;
	transition: color .2s;
}
.rcs .rcs__more:hover, .rcs .rcs__more:focus { background: none; color: #101a35; }
.rcs .rcs__more:focus-visible { outline: 2px solid #ff5a5f; outline-offset: 3px; }
.rcs__full { display: none; }

.rcs__by { display: flex; align-items: center; gap: 12px; }
.rcs__who { display: flex; flex-direction: column; min-width: 0; }
.rcs__name {
	font-family: 'Quicksand', 'Nunito', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #101a35;
}
.rcs__role { margin-top: 5px; font-size: 14px; line-height: 1.4; color: #6b7280; }
.rcs__avatar, .rcs__m-avatar { display: block; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.rcs__avatar img, .rcs__m-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-user-drag: none; }
.rcs__m-avatar[hidden] { display: none; }

/* ---------- Bottom button ---------- */
.rcs__footer { display: flex; justify-content: center; margin-top: 32px; }
.rcs .rcs__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 34px;
	border: 2px solid #3b4a63;
	border-radius: 999px;
	background: transparent;
	color: #1f2a44;
	font-family: 'Quicksand', 'Nunito', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.rcs .rcs__cta:hover, .rcs .rcs__cta:focus { background: #1f2a44; border-color: #1f2a44; color: #fff; text-decoration: none; }
.rcs__cta-icon { display: inline-flex; font-size: 16px; line-height: 1; }
.rcs__cta-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Popup ---------- */
.rcs__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
.rcs__modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .25s ease; }
.rcs__overlay { position: absolute; inset: 0; background: rgba(16, 26, 53, .6); }
.rcs__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 36px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px -20px rgba(16, 26, 53, .45);
	outline: none;
	transition: transform .3s ease;
}
.rcs--modal-zoom .rcs__dialog { transform: scale(.94); }
.rcs--modal-slide .rcs__dialog { transform: translateY(40px); }
.rcs--modal-fade .rcs__dialog { transform: none; }
.rcs__modal.is-open .rcs__dialog { transform: none; }

.rcs .rcs__close {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f8;
	color: #101a35;
	font-size: 18px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.rcs .rcs__close svg { width: 1em; height: 1em; display: block; }
.rcs .rcs__close:hover { background: #ff5a5f; color: #fff; }
.rcs .rcs__close:focus-visible { outline: 2px solid #ff5a5f; outline-offset: 2px; }

.rcs__m-rating:empty { display: none; }
.rcs__m-rating { margin-bottom: 18px; }
.rcs__m-rating .rcs__rating { margin-bottom: 0; }
.rcs__m-text { font-size: 16px; line-height: 1.75em; color: #3b4558; margin-bottom: 28px; }
.rcs__m-name { font-family: 'Quicksand', 'Nunito', system-ui, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.3; color: #101a35; }
.rcs__m-role { margin-top: 5px; font-size: 14px; line-height: 1.4; color: #6b7280; }
.rcs__m-role:empty { display: none; }

.rcs__m-reply { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: #f4f6fb; color: #3b4558; font-size: 15px; line-height: 1.65em; }
.rcs__m-reply[hidden] { display: none; }
.rcs__m-reply-label { display: block; margin-bottom: 6px; font-size: .85em; font-weight: 700; color: #101a35; }

html.rcs-no-scroll { overflow: hidden; }

.rcs .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

@media (max-width: 767px) {
	.rcs__head { align-items: flex-end; }
	.rcs__title { font-size: 30px; }
	.rcs__dialog { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.rcs__track, .rcs__card, .rcs__modal, .rcs__dialog { transition-duration: 0s !important; }
}
