/* --- VARIABLES --- */
.bps {
	--accent: #004f5f;
	--card-border: #025483;
	--shadow-rgba: 55, 70, 79, 0.08;
	--arrow: #0171A2;
	--badge-usecase: rgba(255, 78, 0, 0.10);
	--badge-solution: rgba(0, 79, 95, 0.10);
	--gap: 2.5rem;
	position: relative;
}

/* --- SECTION BASE --- */
.bps .bps__inner {
	max-width: 120rem;
	margin: 0 auto;
	padding: 74px 2rem;
	position: relative;
}

.bps::before {
	content: "";
	width: 15%;
	height: 85%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2
}

.bps .bps__title {
	font-size: 3rem;
	font-weight: 800;
	color: #0171A2;
	margin-bottom: 0.5rem;
}

.bps .bps__subtitle {
	color: #37464F;
	font-size:1.125rem;
}

/* --- SWIPER --- */
.bps .bps__slider {
	position: relative;
	overflow: visible !important;
}

.bps .bps__nav {
	display: flex;
	justify-content: center;
	gap: 54px;
	margin-top: 2rem;
}

.bps .bps__nav .swiper-button-disabled {
	opacity: 0.5;
}

.bps .bps-card-wrap {
	display: flex;
	gap: 10px;
}

.bps .bps-badge--usecase {
	/*width: 92px;
	display: flex;
	justify-content: center;
	align-items: center;*/
  background: var(--badge-usecase);
  color: #FF4E00;
  margin-bottom: 10px;
  /* match solution “hug text” behavior */
  display: inline-flex;   /* (inherits from .bps-badge, but safe) */
  width: auto;            /* ensure no fixed width */
}

.bps .bps__prev,
.bps .bps__next {
	background: unset;
	border: unset;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.25rem;
	color: var(--accent);
	cursor: pointer;
	transition: all .2s;
}

.bps .bps__prev {
	transform: rotate(180deg);
}

.bps .bps-top-text-arrows {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 44px;
}

/* --- SLIDES --- */
.swiper-slide {
	height: auto;
}

.bps .bps__col {
	display: grid;
	grid-template-rows: auto 90px auto;
	align-items: start;
	height: 100%;
}

.bps .bps-card-wrapper {
	position: relative;
	border-radius: 12px;
	padding: 2px;
	transition: all 0.3s ease;
}

.bps .bps-card-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	padding: 2px;
	background: conic-gradient(from var(--angle, 0deg),
			transparent 0deg,
			transparent 60deg,
			#0171A2 120deg,
			#00d4ff 180deg,
			#0171A2 240deg,
			transparent 300deg,
			transparent 360deg);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bps .bps__col:hover .bps-card-wrapper::before {
	opacity: 1;
	animation: rotateBorderSpotlight 4s linear infinite;
}

.bps .bps-card-wrapper::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 30%, rgba(1, 113, 162, 0.55) 0%, rgba(1, 113, 162, 0.25) 30%, rgba(1, 113, 162, 0) 70%);
	filter: blur(22px);
	opacity: 0;
	transition: opacity .25s ease-out;
	z-index: -1;
	animation: bps-glow-move 5.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes bps-glow-move {
	0% {
		transform: translate(-0%, -1%) translate(-2%, -1%);
	}

	25% {
		transform: translate(-1%, -1%) translate(3%, -2%);
	}

	50% {
		transform: translate(-1%, -1%) translate(4%, 4%);
	}

	75% {
		transform: translate(-1%, -1%) translate(-4%, 4%);
	}

	100% {
		transform: translate(-1%, -1%) translate(-2%, -1%);
	}
}

.bps .bps__col:hover .bps-card-wrapper::after {
	opacity: 1;
}

.bps .bps__col:hover .bps-card-wrapper {
	transform: translateY(-2px);
}

@keyframes rotateBorderSpotlight {
	100% {
		--angle: 360deg;
	}
}

@supports (background: conic-gradient(from 0deg, red, blue)) {
	@property --angle {
		syntax: '<angle>';
		initial-value: 0deg;
		inherits: false;
	}
}

/* --- CARDS --- */
.bps .bps-card {
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: 10px;
	box-shadow: 3px 3px 20px 0 rgba(55, 70, 79, 0.07);
	overflow: hidden;
	transition: all 0.3s;
	position: relative;
}

.bps .bps-card--solution {
	border: 1px solid #01A0CA !important;
}

.bps .bps-card-wrapper .bps-card {
	border: none;
}

.bps .bps-card__media {
	overflow: hidden;
}

.bps .bps-card__media img {
	width: 220px;
	height: 141px;
	object-fit: cover;
	display: block;
	margin: 48px 48px 0 48px;
	border-radius: 10px;
	overflow: hidden;
}

.bps .bps-card__media--bw img {
	filter: grayscale(100%);
	transition: all 0.3s
}

.bps .bps-card__body {
	padding: 24px 48px 48px 48px;
}

.bps .bps-card__title {
	font-weight: 800;
	font-size: 1.375rem;
	color: #0F2A33;
	margin: .5rem 0 12px;
}

.bps .bps-card__copy {
	font-size: 1.125rem;
	line-height: 1.5;
	color: #37464F;
}

.bps .bps-badge {
	display: inline-flex;
	align-items: center;
	font-size: .875rem;
	font-weight: 700;
	padding: .35rem .6rem;
	border-radius: 999px;
	color: #0F2A33;
	white-space: nowrap;
	height: fit-content;
}

.bps .bps-badge--usecase {
	background: var(--badge-usecase);
	color: #FF4E00;
  margin-bottom: 10px;
}

.bps .bps-badge--solution {
	background: var(--badge-solution);
	color: #004F5F;
	margin-bottom: 10px;
}

/* --- CONNECTOR --- */
.bps .bps-connector {
	display: grid;
	place-items: center;
	position: relative;
	z-index: 0;
}

.bps .bps-connector::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 50%;
	bottom: -5px;
	left: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
	z-index: 2;
	transition: all 0.3s;
}

.bps .bps-connector__svg {
	width: 24px;
	height: 80px;
	color: var(--arrow);
	overflow: visible !important;
}

.bps .bps-connector__path {
	stroke-dashoffset: 0;
}

/* --- HOVER EFFECTS --- */
@media (hover:hover) {
	.bps .bps__col:hover .bps-card {
		box-shadow: 0 28px 56px rgba(var(--shadow-rgba));
	}

	.bps .bps__col:hover .bps-card__media--bw img {
		filter: grayscale(0%)
	}

	.bps .bps__col:hover .bps-connector__path {
		animation: dashMove 4.2s linear infinite;
	}

	.bps .bps__col:hover .bps-connector::before {
		opacity: 0;
	}
}

@keyframes dashMove {
	to {
		stroke-dashoffset: -90;
	}
}

/* --- CTA BUTTONS --- */
.bps .bps__ctas {
	display: flex;
	gap: 54px;
	justify-content: start;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

.bps .bps-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .9rem 1.25rem;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}

.bps .bps-btn--primary {
	color: #fff;
	background: linear-gradient(94deg, #009BB9 -26.41%, #004F5F 48.83%);
}

.bps .bps-btn--secondary {
	color: #0F2A33;
	border: 1px solid var(--card-border);
	background: #fff;
}

.bps .bps-btn {
	border-radius: 10px;
	overflow: hidden;
	padding: 1rem 4rem 1rem 2rem;
	position: relative;
	text-wrap: nowrap;
	transition: all .3s;
	z-index: 1;
	background: linear-gradient(90deg, #0171A2 0%, #025483 47%);
	color: #fff;
}

.bps .bps-btn--secondary:last-child {
	background: unset;
	outline: 2px solid #37464F;
	color: #37464F;
	border:none;
}

.bps .bps-btn--secondary:last-child:hover {
	outline: unset !important;
}

.bps .bps-btn:hover {
	color: #fff;
}

.bps .bps-btn::before {
	background: linear-gradient(90deg, #0171A2 0%, #025483 47%);
	background-color: #004f5f;
	border-radius: 0;
	content: "";
	height: 100%;
	position: absolute;
	right: -100%;
	top: 0;
	transition: all .2s;
	width: 100%;
	z-index: -1;
}

.bps .bps-btn:hover:before {
	right: 0;
}

.bps .bps-btn::after {
	content: url(https://www.stibosystems.com/hubfs/Website%20redesign%202024/Home-hero/arrow-right-bold.svg);
	height: 1.5rem;
	overflow: hidden;
	position: absolute;
	right: 1.5rem;
	scale: .9;
	top: 52%;
	transform: translateY(-50%);
	width: 1.5rem;
	filter: brightness(0) invert(1);
}

.bps .bps-btn:hover:after {
	filter: brightness(0) invert(1) !important;
}

.bps .bps-btn--secondary:last-child:after {
	filter: unset;
}

.bps .bps__col.is-active .bps-card {
	box-shadow: 0 28px 56px rgba(var(--shadow-rgba));
}

.bps .bps__col.is-active .bps-card__media--bw img {
	filter: grayscale(0%);
}
.bps .bps-card__media .bps-icon{
	object-fit: contain;
    width: 48px;
    height: 48px;
}
.bps .bps__col.is-active .bps-connector__path {
	animation: dashMove 4.2s linear infinite;
}

.bps .bps__col.is-active .bps-connector::before {
	opacity: 0;
}

.bps .bps__col.is-active .bps-card-wrapper {
	transform: translateY(-2px);
}

.bps .bps__col.is-active .bps-card-wrapper::before {
	opacity: 1;
	animation: rotateBorderSpotlight 4s linear infinite;
}

.bps .bps__col.is-active .bps-card-wrapper::after {
	opacity: 1;
}

body,
html {
	overflow-x: hidden;
}

/* --- Responsive --- */
@media (max-width: 540px) {
	.bps .bps-card__body {
		padding: 24px 24px 48px 24px;
	}

	.bps .bps-card__media img {
		margin: 48px 24px 0 24px;
	}
}

@media (max-width: 1200px) {
	.bps .bps__slider {
		overflow: hidden;
	}

	.bps::before {
		display: none;
	}

	.bps {
		overflow: hidden;
	}
}

@media (max-width: 900px) {
	.bps .bps-top-text-arrows {
		flex-direction: column;
	}

	.bps .bps__ctas {
		gap: 24px;
		margin-bottom: 0;
	}
}