/**
 * RS Shin Vertical Slide
 * Version: 1.1.1
 */

/* ─── Reset (Blocksy overrides) ─── */
.rsshinvs-wrap,
.rsshinvs-wrap *,
.rsshinvs-wrap *::before,
.rsshinvs-wrap *::after {
	box-sizing: border-box;
}

.rsshinvs-wrap a {
	box-shadow: none !important;
	text-decoration: none !important;
}

.rsshinvs-wrap button {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

/* ─── Wrapper ─── */
.rsshinvs-wrap {
	width: 100%;
}

/* ─── Desktop ─── */
.rsshinvs-desktop {
	display: flex;
	align-items: stretch;
	gap: 70px;
}

.rsshinvs-mobile {
	display: none;
}

/* ─── Images (left column) ─── */
.rsshinvs-images {
	position: relative;
	flex: 0 0 auto;
	width: 40%;
	max-width: 496px;
	aspect-ratio: 496 / 360;
	align-self: center;
	overflow: hidden;
}

.rsshinvs-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.rsshinvs-image.is-active {
	opacity: 1;
}

/* ─── Steps (right column — 2-step viewport, height set by JS) ─── */
.rsshinvs-steps {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
}

/* ─── Track — slides via translateY ─── */
.rsshinvs-steps-track {
	display: flex;
	flex-direction: column;
	transition: transform 0.5s ease;
}

/* ─── Single step ─── */
.rsshinvs-step {
	padding: 80px 0;
	border-bottom: 1px solid #CACACA;
	opacity: 0.5;
	transition: opacity 0.4s ease;
	flex-shrink: 0;
}

.rsshinvs-step:last-child {
	border-bottom: none;
}

.rsshinvs-step.is-active {
	opacity: 1;
}

/* ─── Step label (STEP 01) ─── */
.rsshinvs-step-label {
	display: block;
	margin: 0 0 16px;
	color: #98A68C;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: capitalize;
}

/* ─── Step body ─── */
.rsshinvs-step-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ─── Step title ─── */
.rsshinvs-step-title {
	margin: 0;
	padding: 0;
	color: #5F5E5B;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 23px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 2.3px;
}

/* ─── Step description ─── */
.rsshinvs-step-desc {
	margin: 0;
	padding: 0;
	color: #5F5E5B;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	letter-spacing: 1.6px;
}

/* ═══════════════════════════════════
   Mobile — below 1024px
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
	.rsshinvs-desktop {
		display: none;
	}

	.rsshinvs-mobile {
		display: flex;
		flex-direction: column;
	}

	/* ─── Mobile item ─── */
	.rsshinvs-mobile-item {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	/* ─── Mobile image ─── */
	.rsshinvs-mobile-image {
		width: 100%;
		aspect-ratio: 353 / 256;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	/* ─── Mobile content ─── */
	.rsshinvs-mobile-content {
		padding: 40px 0;
		border-bottom: 1px solid #CACACA;
	}

	.rsshinvs-mobile-item:last-child .rsshinvs-mobile-content {
		border-bottom: none;
	}
}
