/*------------------------------------*\
    Homepage - Product Buttons
\*------------------------------------*/

.homepage-product-buttons {
	position: relative;
	overflow: hidden;
}

.product-buttons-intro {
	max-width: 1140px;
	margin: 0 auto 48px;
	text-align: center;
	color: var(--primary-color);
}
.product-buttons-intro h2 {
	padding-top: 0;
}

.product-buttons-intro p {
	color: #666;
}

.product-buttons-intro a {
	color: var(--cat-royal-blue);
	font-weight: 600;
	text-decoration: none;
}

.product-buttons-intro a:hover {
	color: #4DC6EC;
	text-decoration: underline;
}

.product-buttons-intro strong {
	color: var(--cat-royal-blue);
	font-weight: 700;
}

.product-buttons-slider-wrap {
	max-width: 1080px;
	margin: 0 auto 56px;
}

.product-buttons-slider-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.product-buttons-slider-stage {
	width: 100%;
	background: transparent;
	border-radius: 24px;
	padding: 0;
}

.product-buttons-slider-stage .js-product-buttons-slider {
	margin: 0;
}

.product-buttons-slider-stage .slick-list {
	overflow: hidden;
	border-radius: 20px;
	height: 100% !important;
}

.product-buttons-slide {
	outline: none;
}

.product-buttons-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 60px rgba(0, 57, 125, 0.12);
	overflow: hidden;
}

.product-buttons-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 32px 28px;
	text-align: left;
}

.product-buttons-card__title {
	color: var(--cat-royal-blue);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	padding: 0;
}

.product-buttons-card__description {
	color: #5a6b7d;
	font-size: 16px;
	line-height: 1.65;
	margin-bottom: 28px;
}

.product-buttons-card__description p:last-child {
	margin-bottom: 0;
}

.product-buttons-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 28px 32px;
}

.product-buttons-card__image {
	display: block;
	width: 100%;
	max-width: 280px;
	max-height: 300px;
	height: auto;
	object-fit: contain;
}

/* Slick controls live in .product-buttons-slider-nav (appended by slick) */
.product-buttons-slider-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin-top: 32px;
}

.product-buttons-slider-nav .slick-arrow {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

.product-buttons-slider-nav .slick-prev {
	order: 1;
}

.product-buttons-slider-nav .slick-dots {
	position: relative;
	order: 2;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0;
	padding: 0;
	gap: 12px;
	transform: none;
}

.product-buttons-slider-nav .slick-next {
	order: 3;
}

.product-buttons-slider-nav .slick-arrow::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	aspect-ratio: 48/48;
	opacity: 1;
	background-color: var(--cat-royal-blue);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.product-buttons-slider-nav .slick-prev::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
}

.product-buttons-slider-nav .slick-next::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
}

.product-buttons-slider-nav .slick-arrow:hover,
.product-buttons-slider-nav .slick-arrow:focus {
	background: transparent;
	border: none;
}

.product-buttons-slider-nav .slick-arrow:hover::before,
.product-buttons-slider-nav .slick-arrow:focus::before {
	background-color: var(--primary-color);
}

.product-buttons-slider-nav .slick-dots li {
	width: 12px;
	height: 12px;
}

.product-buttons-slider-nav .slick-dots li button {
	width: 12px;
	height: 12px;
	padding: 0;
	background: transparent;
	border: 2px solid var(--secondary-color);
}

.product-buttons-slider-nav .slick-dots li button::before {
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	line-height: 12px;
	font-size: 0;
	opacity: 1;
	border: none;
	border-radius: 50%;
	background: transparent
		url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSI2IiBjeT0iNiIgcj0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDYgNikiIGZpbGw9IndoaXRlIiBzdHJva2U9InVybCgjcGFpbnQwX2xpbmVhcl8yMDg3XzMwNikiIHN0cm9rZS13aWR0aD0iMiIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8yMDg3XzMwNiIgeDE9IjEuMzgxMzciIHkxPSIxLjIxMTAxIiB4Mj0iMTIiIHkyPSIxMiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiM0REM2RUMiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+")
		no-repeat center / contain;
	content: "";
}

.product-buttons-slider-nav .slick-dots li.slick-active {
	height: 12px;
	width: 100px;
}

.product-buttons-slider-nav .slick-dots li.slick-active button {
	height: 100%;
	width: 100%;
}

.product-buttons-catalog {
	text-align: center;
}

.product-buttons-btn-catalog {
	background: #fff;
	color: #194886;
	border: 3px solid #4DC6EC;
    font-weight: 700;
}

.product-buttons-btn-catalog::before {
	color: var(--cat-royal-blue);
}

.product-buttons-btn-catalog:hover {
	background: #e8f6fc;
	color: var(--primary-color);
	border: 3px solid var(--secondary-color-hover);
}
.product-buttons-slider-nav .slick-dots li {
	transition: all 0.3s ease;
}
.product-buttons-slider-nav .slick-dots li.slick-active button {
	border-radius: 20px;
	background: linear-gradient(135deg, #4dc6ec 10.8%, #0063d8 100%);
}

.product-buttons-slider-nav .slick-arrow {
	width: 48px;
	height: 48px;
}
.product-buttons-slider-stage {
	border-radius: 20px;
	position: relative;
	background: var(--White, #fff);
	box-shadow: 0 2px 20px 0 rgba(0, 99, 216, 0.2);
}
.product-buttons-slider-stage::before {
	content: "";
	border-radius: 8px;
	background: rgba(0, 99, 216, 0.08);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 54px);
	height: calc(100% + 54px);
}

.homepage-product-buttons .container {
	position: relative;
	z-index: 2;
}
.bg-pattern__pattern {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;

}

.bg-pattern__pattern img {
    width: 100%;
    height: auto;
    max-height: 1900px;
}
.bottom-product-wave {
	position: absolute;
	bottom: -1px;
	left: -1px;
	right: -1px;
	width: calc(100% + 2px);
	height: auto;
	z-index: 2;
}
.top-product-wave {
    position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	width: calc(100% + 2px);
	height: auto;
	z-index: 2;
}
.homepage-product-buttons {
    margin-top: -2px;
    z-index: 1;
}

/* Close subpixel gaps at wave transitions. */
.homepage-text-card + .homepage-product-buttons {
    margin-top: -3px;
}

.homepage-product-buttons:has(+ .homepage-statistics) {
    margin-bottom: -1px;
}

@media (min-width: 768px) {
	.product-buttons-intro {
		margin-bottom: 56px;
	}

	.product-buttons-slider-stage {
		padding: 0;
	}

	.product-buttons-card {
		flex-direction: row;
		align-items: stretch;
	}

	.product-buttons-card__content {
		flex: 1 1 52%;
		max-width: 52%;
		padding: 48px 40px 48px 48px;
	}

	.product-buttons-card__media {
		flex: 1 1 48%;
		align-items: center;
		padding: 40px 48px 40px 24px;
	}

	.product-buttons-card__image {
		max-width: 100%;
		max-height: 380px;
	}

	.product-buttons-card__title {
		font-size: 28px;
	}
	.homepage-product-buttons {
		padding-bottom: 120px;
	}
}

@media (min-width: 992px) {
	.product-buttons-slider-layout {
		flex-direction: row;
		align-items: center;
		gap: 34px;
	}

	.product-buttons-slider-stage {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0;
	}

	.product-buttons-slider-nav {
		flex: 0 0 32px;
		flex-direction: column;
		justify-content: space-between;
		width: auto;
		align-self: center;
		padding: 4px 0;
		margin-top: 0;
	}

	.product-buttons-slider-nav .slick-prev::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E");
	}

	.product-buttons-slider-nav .slick-next::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E");
	}

	.product-buttons-slider-nav .slick-dots {
		flex: 1 1 auto;
		flex-direction: column;
		justify-content: center;
	}

	.product-buttons-slider-nav .slick-dots li {
		display: block;
		margin: 0;
	}

	.product-buttons-slider-nav .slick-dots li.slick-active {
		height: 257px;
		width: 12px;
	}

	.product-buttons-slider-nav .slick-dots li.slick-active button {
		height: 100%;
		border-radius: 20px;
	}

	.product-buttons-card {
		min-height: 420px;
	}

	.product-buttons-card__content {
		padding: 56px 32px 56px 56px;
	}

	.product-buttons-card__description {
		font-size: 18px;
	}

	.product-buttons-card__media {
		padding: 48px 56px 48px 32px;
	}

	.product-buttons-card__image {
		max-height: 420px;
	}
	.homepage-product-buttons {
		padding-bottom: 150px;
	}
	.product-buttons-intro {
		padding-right: 75px;
        padding-left: 10px;
	}
}

@media (min-width: 1200px) {
	.product-buttons-slider-wrap {
		max-width: 1140px;
	}
	.product-buttons-intro h2 {
		font-size: 48px;
	}

	.product-buttons-card__content {
		padding-left: 64px;
	}
	.product-buttons-card__content {
		flex: 1 1 calc(100% - 318px);
		max-width: calc(100% - 318px);
		padding-right: 0;
	}
	.product-buttons-card__media{
		flex: 1 1 318px;
		max-width: 318px;
	}
}

@media(min-width:1366px) {
    .homepage-product-buttons {
        padding-bottom: 250px;
    }
	.bg-pattern__pattern {
		width: 100%;
		height: 80%;
	}
	.bg-pattern__pattern img {
		height: 100%;
		object-fit: cover;
	}
	.product-buttons-card {
		padding: 23px 107px;
	}
	.product-buttons-card__media ,
	.product-buttons-card__content {
		padding: 0;
	}
}

/* Homepage refresh: the statistics section is pulled up over this one by its top
   wave (200 tall at 1920w, scales fluidly with viewport width). Reserve that wave
   height plus one --hr-section-gap so the product content keeps consistent
   breathing room above the rising wave at every breakpoint. */
.page-template-homepage-refresh .homepage-product-buttons {
    padding-bottom: calc(100vw * 200 / 1920 + var(--hr-section-gap));
}
