/**
 * Vertical Marquee Slider — frontend styles.
 * Prefix: eis- (namespace to avoid theme/plugin collisions)
 */

.eis-widget {
	--eis-breakpoint: 768px;
	--eis-accent: #F59E0B;
	box-sizing: border-box;
}

.eis-widget *,
.eis-widget *::before,
.eis-widget *::after {
	box-sizing: border-box;
}

.eis-inner {
	display: flex;
	align-items: center;
	width: 100%;
}

.eis-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1.5px solid var(--eis-accent);
	border-radius: 999px;
	background: transparent;
	color: #0F172A;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
	line-height: 1;
	white-space: nowrap;
}

.eis-btn:hover,
.eis-btn:focus-visible {
	background-color: var(--eis-accent);
	color: #FFFFFF;
	border-color: var(--eis-accent);
}

.eis-btn:focus-visible {
	outline: 2px solid #0F172A;
	outline-offset: 2px;
}

.eis-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s ease;
}

.eis-btn-icon svg,
.eis-btn-icon i {
	width: 1em;
	height: 1em;
	font-size: 14px;
}

/* -------------------------------------------------- *
 * Slider viewport
 * -------------------------------------------------- */

.eis-slider-viewport {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 640px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Desktop two-column layout */
.eis-columns {
	display: flex;
	column-gap: 20px;
	width: 100%;
	height: 100%;
}

.eis-column {
	flex: 1 1 50%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	position: relative;
}

/* Stagger the two columns visually, like the reference layout */
.eis-column[data-eis-column="2"] {
	margin-top: 64px;
}

.eis-track {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	will-change: transform;
}

/* Mobile horizontal row — hidden on desktop by default */
.eis-mobile-row {
	display: none;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.eis-mobile-track {
	display: flex;
	flex-direction: row;
	gap: 20px;
	height: 100%;
	align-items: center;
	will-change: transform;
	cursor: grab;
	touch-action: pan-y;
}

.eis-mobile-track.eis-dragging {
	cursor: grabbing;
}

.eis-mobile-track .eis-card {
	width: 280px;
	min-width: 280px;
	flex: 0 0 auto;
	height: auto;
}

/* -------------------------------------------------- *
 * Card
 * -------------------------------------------------- */

.eis-card {
	position: relative;
	background-color: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .08);
	padding: 32px 28px 28px;
	min-height: 220px;
	width: 100%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.eis-card-icon {
	position: absolute;
	top: -1px;
	left: -1px;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #1B5FE0;
	border-radius: 10px 10px 0 0;
	transform: translateY(-100%);
}

.eis-card-icon i {
	color: #FFFFFF;
	font-size: 20px;
	line-height: 1;
}

.eis-card-icon svg {
	fill: #FFFFFF;
	width: 20px;
	height: 20px;
}

.eis-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}

.eis-card-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.3;
}

.eis-card-description {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #64748B;
	flex-grow: 1;
}

.eis-card .eis-btn {
	align-self: flex-start;
	margin-top: 8px;
	padding: 10px 18px;
	font-size: 14px;
}

/* -------------------------------------------------- *
 * Responsive: switch to horizontal slider at the
 * configured breakpoint (set via inline custom property).
 * -------------------------------------------------- */

@media (max-width: 768px) {
	.eis-widget[style*="--eis-breakpoint"] {
		/* Fallback rule; JS also toggles a class for browsers/edge cases. */
	}
}

.eis-widget.eis-is-mobile-layout .eis-inner {
	align-items: stretch;
}

.eis-widget.eis-is-mobile-layout .eis-slider-viewport {
	width: 100%;
	height: auto;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.eis-widget.eis-is-mobile-layout .eis-columns {
	display: none;
}

.eis-widget.eis-is-mobile-layout .eis-mobile-row {
	display: block;
}

/* -------------------------------------------------- *
 * Reduced motion — disable automatic movement.
 * -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.eis-track,
	.eis-mobile-track {
		transition: none !important;
	}
}

.eis-widget.eis-reduced-motion .eis-track,
.eis-widget.eis-reduced-motion .eis-mobile-track {
	transform: none !important;
}

/* -------------------------------------------------- *
 * Elementor editor niceties
 * -------------------------------------------------- */

.elementor-editor-active .eis-slider-viewport {
	overflow: auto;
}
