/* Reasons Slider – structural styles only. Visual styling comes from the Elementor Style tab. */

.rs {
	--rs-speed: 400ms;
	--rs-arrow-color: #fff;
	--rs-arrow-bg: #0a4a86;
	--rs-bar-height: 4px;
	--rs-bar-color: #e3e8ee;
	--rs-bar-active: #0a4a86;
	position: relative;
}

/* Header: arrows either side of the heading */
.rs__header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 12px;
}
.rs__heading {
	margin: 0;
	min-width: 0;
	text-align: center;
}

/* Scoped under .rs so theme button styles (e.g. Hello Elementor's pink hover) don't leak in */
.rs .rs__arrow,
.rs .rs__arrow:hover,
.rs .rs__arrow:focus {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	font-size: 11px;
	line-height: 1;
	color: var(--rs-arrow-color);
	fill: var(--rs-arrow-color);
	background-color: var(--rs-arrow-bg);
	cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s;
}
.rs .rs__arrow:not(:disabled):hover,
.rs .rs__arrow:focus-visible {
	color: var(--rs-arrow-color-hover, var(--rs-arrow-color));
	fill: var(--rs-arrow-color-hover, var(--rs-arrow-color));
	background-color: var(--rs-arrow-bg-hover, var(--rs-arrow-bg));
}
.rs__arrow svg {
	width: 1em;
	height: 1em;
}
.rs .rs__arrow:disabled {
	cursor: default;
	opacity: .35;
}
.rs__arrow:focus-visible,
.rs__bar:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rs__intro {
	max-width: 800px;
	margin: 0 auto 40px;
	text-align: center;
}
.rs__intro > :first-child,
.rs__text > :first-child {
	margin-top: 0;
}
.rs__intro > :last-child,
.rs__text > :last-child {
	margin-bottom: 0;
}

/* Slides are stacked in a single grid cell, so the widget is always as tall
   as the tallest slide and nothing below it jumps when slides change. */
.rs__track {
	display: grid;
	touch-action: pan-y;
}
.rs__slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 42px;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--rs-speed) ease, transform var(--rs-speed) ease, visibility 0s linear var(--rs-speed);
}
.rs__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--rs-speed) ease, transform var(--rs-speed) ease, visibility 0s;
	z-index: 1;
}

/* Fade + Slide */
.rs--slide .rs__slide { transform: translateX(30px); }
.rs--slide .rs__slide.is-pos-left { transform: translateX(-30px); }
.rs--slide .rs__slide.is-active { transform: none; }
.rs .rs__slide.rs-notrans { transition: none !important; }

/* No transition */
.rs--none .rs__slide,
.rs--none .rs__slide.is-active { transition: none; }

@media (prefers-reduced-motion: reduce) {
	.rs__slide,
	.rs__slide.is-active { transition: none; transform: none !important; }
}

.rs__media {
	flex: 0 0 auto;
	width: 48%;
	max-width: 100%;
}
.rs__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
}

/* Text column: text at top, bars pushed to the bottom */
.rs__content {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.rs__content-inner {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.rs__title {
	margin: 0 0 16px;
}

/* Pagination bars */
.rs__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 24px 0 20px;
}
.rs .rs__bar,
.rs .rs__bar:hover,
.rs .rs__bar:focus {
	position: relative;
	width: 50px;
	height: calc(var(--rs-bar-height) + 12px); /* larger click target */
	padding: 0;
	margin: 0;
	min-height: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	cursor: pointer;
}
.rs__bar::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: var(--rs-bar-height);
	transform: translateY(-50%);
	background-color: var(--rs-bar-color);
	transition: background-color .2s;
}
.rs__bar.is-active::before,
.rs__bar:hover::before {
	background-color: var(--rs-bar-active);
}
.rs__bar:not(.is-active):hover::before {
	opacity: .5;
}

/* Stacked (image on top): let the text column size naturally */
@media (max-width: 767px) {
	.rs__header { gap: 12px; }
}
