/**
 * Budi Support Card Slider
 * Arrow button styles are global — see /css/budi-swiper-arrow.css
 */

.budi-scs-wrapper {
	position: relative;
}

.budi-scs {
	overflow: hidden;
}

/* slidesPerView:'auto' requires an explicit slide width */
.budi-scs__card.swiper-slide {
	width: 365px;
	max-width: 90vw;
	min-height: 540px;
	box-sizing: border-box;
	perspective: 1200px;
}

/* --- Flip inner ---------------------------------------------------------- */
.budi-scs__card-inner {
	position: relative;
	width: 100%;
	min-height: 540px;
	transform-style: preserve-3d;
	transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.budi-scs__card.is-flipped .budi-scs__card-inner {
	transform: rotateY(180deg);
}

/* --- Faces --------------------------------------------------------------- */
.budi-scs__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	border-radius: 20px;
	padding: 30px 15px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* --- Front face ---------------------------------------------------------- */
.budi-scs__face--front {
	align-items: center;
	text-align: center;
	background: #f4f4f4;
}

.budi-scs__front-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
	width: 100%;
}

.budi-scs__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
}

.budi-scs__logo-img {
	width: auto;
	height: 60px;
	object-fit: contain;
}

.budi-scs__front-content {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.budi-scs__title {
	margin: 0;
	line-height: 1.3;
	font-weight: 600;
}

.budi-scs__desc {
	margin: 0;
	line-height: 1.5;
	color: var(--color-sub);
}

.budi-scs-wrapper .budi-scs__more {
	margin-top: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	font-family: inherit !important;
	font-weight: 600;
	color: var(--color-sub) !important;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.budi-scs-wrapper .budi-scs__more:hover {
	opacity: 0.7;
}

/* --- Detail (red gradient) face ----------------------------------------- */
.budi-scs__face--detail {
	gap: 40px;
	padding: 30px;
	color: #fff;
	background: linear-gradient(240deg, #FF4540 1.83%, #E30612 94.41%);
	transform: rotateY(180deg);
}

.budi-scs-wrapper .budi-scs__close {
	display: none !important;
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
	font-family: inherit !important;
	cursor: pointer;
	transition: background 0.2s ease;
}

.budi-scs-wrapper .budi-scs__close:hover {
	background: rgba(255, 255, 255, 0.32) !important;
}

.budi-scs__detail-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.budi-scs__detail-logo-img {
	width: auto;
	height: 60px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.budi-scs__detail-title {
	margin: 0 0 15px 0;
	line-height: 1.3;
	font-weight: 600;
	color: #fff;
}

.budi-scs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.budi-scs__list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.4;
}

.budi-scs__check {
	flex: 0 0 auto;
	margin-top: 3px;
	color: #fff;
}

.budi-scs__cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: #fff;
	color: #b3121c;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.budi-scs__cta:hover {
	opacity: 0.85;
	color: #b3121c;
}

/* --- Normal text content ------------------------------------------------- */
.budi-scs__text {
	line-height: 1.6;
	flex: 1;
}

.budi-scs__text br {
	display: block;
	content: '';
	margin-bottom: 2px;
}

/* --- Controls ------------------------------------------------------------ */
.budi-scs__controls {
	margin-top: 50px;
	gap: 16px;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 575px) {
	.budi-scs__card.swiper-slide {
		width: 300px;
	}

	.budi-scs__face {
		padding: 24px 20px;
	}
}
