/* Case Study Carousel (Figma Platform-Page 2034:68311). Loaded only where the widget renders. */
.sv-cs { width: 100%; font-family: "Work Sans", sans-serif; color: var(--e-global-color-71a2b05, #0e1220); }
.sv-cs *, .sv-cs *::before, .sv-cs *::after { box-sizing: border-box; }
.sv-cs-empty { padding: 24px; border: 1px dashed #c4c4c4; border-radius: 8px; font: 14px/20px "Work Sans", sans-serif; color: #6b7285; }

/* Header */
.sv-cs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.sv-cs__title { margin: 0; max-width: 634px; font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -1.5px; color: var(--e-global-color-71a2b05, #0e1220); }
.sv-cs__nav { display: flex; gap: 10.667px; flex: none; }
.sv-cs__arrow { display: flex; align-items: center; justify-content: center; width: 37.333px; height: 37.333px; padding: 0; border: 0; border-radius: 37.333px; background: #141223; cursor: pointer; transition: opacity .2s; }
.sv-cs__arrow:hover { opacity: .8; }
.sv-cs__arrow:focus-visible, .sv-cs__bar:focus-visible, .sv-cs__btn:focus-visible { outline: 2px solid var(--e-global-color-9b83254, #6453ff); outline-offset: 2px; }
.sv-cs__arrow--prev svg { transform: scaleX(-1); }

/* Track */
.sv-cs__viewport { overflow: hidden; }
.sv-cs__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sv-cs__track::-webkit-scrollbar { display: none; }
.sv-cs__slide { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .sv-cs__track { scroll-behavior: auto; } }

/* Card */
.sv-cs__card { display: flex; gap: 32px; align-items: stretch; height: 480px; padding: 1px; overflow: hidden; background: var(--e-global-color-ffd35b9, #fff); border: 1px solid #e8e2fd; border-radius: 12px; }
.sv-cs__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.sv-cs__logo { height: 40px; }
.sv-cs__logo img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; }
.sv-cs__content { display: flex; flex-direction: column; gap: 32px; }
.sv-cs__stat-value { margin: 0 0 4px; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.5px; color: var(--e-global-color-9b83254, #6453ff); }
.sv-cs__stat-label { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; }
.sv-cs__quote-wrap { display: flex; flex-direction: column; gap: 12px; }
.sv-cs__quote { margin: 0; padding: 0; border: 0; max-width: 452px; font-size: 16px; line-height: 24px; font-weight: 400; font-style: normal; color: inherit; }
.sv-cs__author-name { margin: 0 0 2px; font-size: 16px; line-height: 24px; font-weight: 600; }
.sv-cs__author-role { margin: 0; font-size: 14px; line-height: 16px; font-weight: 400; }
.sv-cs__btn { align-self: flex-start; display: inline-flex; align-items: center; padding: 10px 20px; background: #fff; border: 1px solid var(--e-global-color-9b83254, #6453ff); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.4px; color: var(--e-global-color-9b83254, #6453ff); text-decoration: none; transition: background .2s, color .2s; }
.sv-cs__btn:hover { background: var(--e-global-color-9b83254, #6453ff); color: #fff; }
.sv-cs__photo { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: #f3f4f8; }
.sv-cs__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Progress bars */
.sv-cs__bars { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; }
.sv-cs__bar { width: 40px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: #f1f0ff; cursor: pointer; transition: width .3s, background .3s; }
.sv-cs__bar.is-active { width: 160px; background: var(--e-global-color-9b83254, #6453ff); }
/* Desktop (Figma 2034:68338): 16px gap under the card, 32px tall row (bars stay 4px, centred). */
@media (min-width: 768px) {
	.sv-cs__bars { margin-top: 16px; padding: 14px 0; }
}

/* Tablet / mobile */
@media (max-width: 1024px) {
	.sv-cs__title { font-size: 40px; line-height: 48px; }
	.sv-cs__card { height: auto; min-height: 420px; }
}
/* Mobile (Figma Platform-Page 2533:8392, 390px): centered title, arrows on their own row, photo on top. */
@media (max-width: 767px) {
	.sv-cs__head { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; margin-bottom: 16px; }
	.sv-cs__title { max-width: none; font-size: 32px; line-height: 38px; letter-spacing: -.5px; text-align: center; }
	.sv-cs__nav { justify-content: space-between; width: 100%; }
	.sv-cs__card { flex-direction: column; gap: 0; height: auto; min-height: 0; }
	.sv-cs__photo { flex: none; order: -1; width: 100%; height: auto; aspect-ratio: 352 / 235; }
	.sv-cs__body { flex: none; padding: 32px 20px; gap: 24px; justify-content: flex-start; }
	.sv-cs__content { gap: 32px; }
	.sv-cs__quote { max-width: none; }
	.sv-cs__btn { align-self: stretch; justify-content: center; }
	/* Bars keep 32/64px at any slide count: the row scrolls instead of shrinking them. 3-4 slides stay centred as in Figma. */
	.sv-cs__bars { position: relative; justify-content: flex-start; padding: 16px 4px; overflow-x: auto; scrollbar-width: none; }
	.sv-cs__bars::-webkit-scrollbar { display: none; }
	.sv-cs__bar { flex: none; width: 32px; }
	/* Auto end margins centre a short row and leave a long one scrollable from its left edge (no `safe center`, which Safari < 17.6 drops). */
	.sv-cs__bar:first-child { margin-left: auto; }
	.sv-cs__bar:last-child { margin-right: auto; }
	.sv-cs__bar.is-active { width: 64px; }
}
