/**
 * Box Icon — front-end styles.
 */

.wp-block-nextora-box-icon.nextora-box-icon,
.nextora-box-icon {
	box-sizing: border-box;
	border: none !important;
	padding: 0;
	margin: 0;
}

.nextora-box-icon__inner {
	max-width: var(--nextora-box-icon-max-width, var(--wp--style--global--wide-size, 1200px));
	margin-inline: auto;
}

/* Header */
.nextora-box-icon__header {
	margin-bottom: clamp(2rem, 4vw, 3.125rem);
}

.nextora-box-icon__header--center {
	text-align: center;
}

.nextora-box-icon__header--center .nextora-box-icon__eyebrow {
	justify-content: center;
}

.nextora-box-icon__header--left {
	text-align: start;
}

.nextora-box-icon__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.875rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nextora-box-icon-eyebrow-color, var(--wp--preset--color--primary, currentColor));
}

.nextora-box-icon__eyebrow::before {
	content: '';
	width: 2.125rem;
	height: 2px;
	background: currentColor;
	flex-shrink: 0;
}

.nextora-box-icon__heading {
	margin: 0;
	font-size: clamp(2.375rem, 5.4vw, 4.25rem);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--nextora-box-icon-heading-color, inherit);
}

.nextora-box-icon--has-heading-font .nextora-box-icon__heading,
.nextora-box-icon--has-heading-font .nextora-box-icon__title {
	font-family: var(--nextora-box-icon-heading-font-family);
}

.nextora-box-icon--template-highlights.nextora-box-icon--has-heading-font .nextora-box-icon__stat-number {
	font-family: var(--nextora-box-icon-heading-font-family);
}

.nextora-box-icon__description-intro {
	margin: 0.75rem auto 0;
	max-width: 42rem;
	font-size: 1.03rem;
	color: var(
		--nextora-box-icon-description-color,
		color-mix(in srgb, currentColor 55%, transparent)
	);
}

/* Swiper slides */
.nextora-box-icon__swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.nextora-box-icon__swiper .swiper-slide > .nextora-box-icon__card {
	height: 100%;
	width: 100%;
	box-sizing: border-box;
}

.nextora-box-icon__carousel-root {
	position: relative;
	width: 100%;
}

.nextora-box-icon--loading .nextora-box-icon__swiper {
	opacity: 0.6;
}

.nextora-box-icon--ready .nextora-box-icon__swiper {
	opacity: 1;
	transition: opacity 0.25s ease;
}

/* Scroll reveal */
.nextora-box-icon[data-nextora-scroll-reveal='1'].nextora-box-icon--reveal-pending:not(
		.nextora-box-icon--reveal-ready
	)
	.nextora-box-icon__carousel-root {
	opacity: 0;
	transform: translate3d(0, 2rem, 0);
}

.nextora-box-icon[data-nextora-scroll-reveal='1'].nextora-box-icon--reveal-ready
	.nextora-box-icon__carousel-root {
	opacity: 1;
	transform: none;
}

/* Grid mode (desktop when layoutMode=grid) */
.nextora-box-icon--grid-active .nextora-box-icon__swiper {
	overflow: visible;
}

.nextora-box-icon--grid-active .nextora-box-icon__swiper.swiper-initialized,
.nextora-box-icon--grid-active .nextora-box-icon__swiper.swiper-horizontal,
.nextora-box-icon--grid-active .nextora-box-icon__swiper.swiper-backface-hidden {
	overflow: visible;
}

.nextora-box-icon--grid-active .swiper-wrapper {
	display: grid !important;
	grid-template-columns: repeat(var(--nextora-box-icon-cols, 4), minmax(0, 1fr));
	gap: var(--nextora-box-icon-gap, 18px);
	transform: none !important;
	transition-property: none !important;
	transition-duration: 0s !important;
}

.nextora-box-icon--grid-active .swiper-wrapper.swiper-wrapper {
	flex-direction: unset;
	width: 100% !important;
}

.nextora-box-icon--grid-active .swiper-slide {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	margin-right: 0 !important;
	flex-shrink: unset !important;
}

.nextora-box-icon--grid-active .swiper-slide.swiper-slide-visible,
.nextora-box-icon--grid-active .swiper-slide.swiper-slide-active,
.nextora-box-icon--grid-active .swiper-slide.swiper-slide-next,
.nextora-box-icon--grid-active .swiper-slide.swiper-slide-prev {
	width: auto !important;
	height: auto !important;
	margin-right: 0 !important;
}

.nextora-box-icon--grid-active .nextora-box-icon__pagination,
.nextora-box-icon--grid-active .nextora-box-icon__arrow {
	display: none;
}

/* Card */
.nextora-box-icon__card {
	display: flex;
	flex-direction: column;
	min-height: var(--nextora-box-icon-card-min-height, 240px);
	padding: var(--nextora-box-icon-card-padding, 1.875rem 1.625rem);
	border: var(--nextora-box-icon-card-border-width, 2px) solid
		var(--nextora-box-icon-card-border-color, var(--wp--preset--color--contrast, currentColor));
	border-radius: var(--nextora-box-icon-card-radius, 8px);
	background: var(--nextora-box-icon-card-bg, transparent);
	color: var(--wp--preset--color--contrast, currentColor);
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.nextora-box-icon--template-default .nextora-box-icon__card:hover,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within {
	background: var(
		--nextora-box-icon-card-hover-bg,
		var(--wp--preset--color--contrast, #241310)
	);
	color: var(--wp--preset--color--base, #f4ecdd);
}

@media (prefers-reduced-motion: reduce) {
	.nextora-box-icon__card {
		transition: none;
	}
}

/* Icon */
.nextora-box-icon__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--nextora-box-icon-icon-circle-size, 54px);
	height: var(--nextora-box-icon-icon-circle-size, 54px);
	flex-shrink: 0;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.nextora-box-icon__icon--style-default {
	color: var(--nextora-box-icon-icon-color, currentColor);
	background: transparent;
	border: none;
}

.nextora-box-icon__icon--style-stacked {
	background: var(
		--nextora-box-icon-icon-surface-bg,
		var(--wp--preset--color--primary, #f0531c)
	);
	color: var(--nextora-box-icon-icon-color, #fff);
	border: 1px solid var(--nextora-box-icon-icon-surface-border, transparent);
}

.nextora-box-icon__icon--style-framed {
	background: transparent;
	color: var(--nextora-box-icon-icon-color, currentColor);
	border: 1px solid
		var(--nextora-box-icon-icon-surface-border, var(--wp--preset--color--contrast, currentColor));
}

.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-stacked,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-stacked,
.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-framed,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-framed {
	background: var(
		--nextora-box-icon-icon-hover-surface-bg,
		var(--wp--preset--color--base, #f4ecdd)
	);
	color: var(
		--nextora-box-icon-icon-hover-color,
		var(--wp--preset--color--contrast, #241310)
	);
}

.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-framed,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-framed {
	border-color: var(
		--nextora-box-icon-icon-hover-surface-bg,
		var(--wp--preset--color--base, #f4ecdd)
	);
}

.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-default,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-default {
	color: var(
		--nextora-box-icon-icon-hover-color,
		var(--wp--preset--color--base, #f4ecdd)
	);
}

.nextora-box-icon__icon svg {
	width: var(--nextora-box-icon-icon-size, 25px);
	height: var(--nextora-box-icon-icon-size, 25px);
	display: block;
	stroke: currentColor;
}

.nextora-box-icon__icon-img {
	width: var(--nextora-box-icon-icon-size, 25px);
	height: var(--nextora-box-icon-icon-size, 25px);
	object-fit: contain;
	display: block;
}

/* Title & description */
.nextora-box-icon__title {
	margin: 1.5rem 0 1.15rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.15;
	font-weight: inherit;
	color: var(--nextora-box-icon-card-title-color, currentColor);
}

.nextora-box-icon__description {
	margin: 0;
	flex: 1 1 auto;
	min-height: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(
		--nextora-box-icon-card-desc-color,
		color-mix(in srgb, currentColor 70%, transparent)
	);
}

.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__description,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__description {
	color: var(
		--nextora-box-icon-card-desc-hover-color,
		color-mix(in srgb, currentColor 78%, transparent)
	);
}

/* Link */
.nextora-box-icon__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
	margin-top: 1rem;
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: var(--nextora-box-icon-link-color, var(--wp--preset--color--primary, currentColor));
	transition: color 0.2s ease;
}

.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__link,
.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__link {
	color: var(
		--nextora-box-icon-link-hover-color,
		var(--wp--preset--color--primary, var(--wp--preset--color--base, currentColor))
	);
}

.nextora-box-icon__link:hover,
.nextora-box-icon__link:focus-visible {
	color: var(--nextora-box-icon-link-hover-color, var(--wp--preset--color--secondary, currentColor));
}

.nextora-box-icon__link--static {
	cursor: default;
}

.nextora-box-icon__link-icon {
	display: inline-flex;
	line-height: 0;
}

.nextora-box-icon__link-icon svg {
	width: 0.9375rem;
	height: 0.9375rem;
}

/* Pagination */
.nextora-box-icon__pagination {
	display: flex;
	justify-content: center;
	gap: 0.375rem;
	margin-top: 2rem;
	position: relative !important;
}

.nextora-box-icon__pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	opacity: 1;
	background: var(
		--nextora-box-icon-dot-color,
		color-mix(in srgb, currentColor 35%, transparent)
	);
	transition:
		width 0.25s ease,
		border-radius 0.25s ease,
		background-color 0.25s ease;
}

.nextora-box-icon__pagination .swiper-pagination-bullet-active {
	width: 20px;
	border-radius: 4px;
	background: var(
		--nextora-box-icon-dot-active,
		var(--wp--preset--color--primary, currentColor)
	);
}

/* Arrows */
.nextora-box-icon__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 999px;
	background: var(--wp--preset--color--base, #fff);
	color: var(--nextora-box-icon-arrow-color, currentColor);
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.nextora-box-icon__arrow:hover,
.nextora-box-icon__arrow:focus-visible {
	border-color: var(--wp--preset--color--primary, currentColor);
	color: var(--wp--preset--color--primary, currentColor);
}

.nextora-box-icon__arrow--prev {
	left: -0.5rem;
}

.nextora-box-icon__arrow--next {
	right: -0.5rem;
}

.nextora-box-icon__arrow svg {
	width: 1.125rem;
	height: 1.125rem;
}

@media (max-width: 767px) {
	.nextora-box-icon__arrow--prev {
		left: 0;
	}

	.nextora-box-icon__arrow--next {
		right: 0;
	}
}

/* Ways template (orphanage .ways-grid) */
.nextora-box-icon--template-ways .nextora-box-icon__card {
	position: relative;
	overflow: hidden;
	background: var(--nextora-box-icon-card-bg, var(--wp--preset--color--base, #fff));
	border-color: var(
		--nextora-box-icon-card-border-color,
		color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 12%, transparent)
	);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease,
		background-color 0.2s ease;
}

.nextora-box-icon--template-ways .nextora-box-icon__card::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 5px;
	background: var(
		--nextora-box-icon-way-accent,
		var(--wp--preset--color--primary, currentColor)
	);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.35s ease;
}

.nextora-box-icon--template-ways.nextora-box-icon--grid-active .nextora-box-icon__card:hover,
.nextora-box-icon--template-ways.nextora-box-icon--grid-active .nextora-box-icon__card:focus-within {
	background: var(--nextora-box-icon-card-bg, var(--wp--preset--color--base, #fff));
	color: var(--wp--preset--color--contrast, currentColor);
	transform: translateY(-10px);
	box-shadow: 0 40px 70px -34px
		var(--nextora-box-icon-way-accent-shadow, rgba(46, 26, 71, 0.25));
	border-color: transparent;
}

.nextora-box-icon--template-ways.nextora-box-icon--grid-active .nextora-box-icon__card:hover::before,
.nextora-box-icon--template-ways.nextora-box-icon--grid-active .nextora-box-icon__card:focus-within::before {
	transform: scaleY(1);
}

.nextora-box-icon--template-ways .nextora-box-icon__card-ghost {
	position: absolute;
	top: 4px;
	inset-inline-end: 20px;
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 900;
	line-height: 1;
	color: var(
		--nextora-box-icon-way-accent,
		var(--wp--preset--color--primary, currentColor)
	);
	opacity: 0.08;
	pointer-events: none;
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

.nextora-box-icon--template-ways.nextora-box-icon--grid-active
	.nextora-box-icon__card:hover
	.nextora-box-icon__card-ghost,
.nextora-box-icon--template-ways.nextora-box-icon--grid-active
	.nextora-box-icon__card:focus-within
	.nextora-box-icon__card-ghost {
	opacity: 0.15;
	transform: translateY(-4px);
}

.nextora-box-icon--template-ways .swiper-slide:nth-child(3n + 1) .nextora-box-icon__card,
.nextora-box-icon--template-ways .nextora-box-icon__card:nth-child(3n + 1) {
	--nextora-box-icon-way-accent: var(
		--nextora-box-icon-ways-accent-1,
		var(--wp--preset--color--primary, currentColor)
	);
}

.nextora-box-icon--template-ways .swiper-slide:nth-child(3n + 2) .nextora-box-icon__card,
.nextora-box-icon--template-ways .nextora-box-icon__card:nth-child(3n + 2) {
	--nextora-box-icon-way-accent: var(
		--nextora-box-icon-ways-accent-2,
		var(--wp--preset--color--contrast, currentColor)
	);
}

.nextora-box-icon--template-ways .swiper-slide:nth-child(3n + 3) .nextora-box-icon__card,
.nextora-box-icon--template-ways .nextora-box-icon__card:nth-child(3n + 3) {
	--nextora-box-icon-way-accent: var(
		--nextora-box-icon-ways-accent-3,
		var(--wp--preset--color--secondary, currentColor)
	);
}

.nextora-box-icon--template-ways .nextora-box-icon__card {
	--nextora-box-icon-way-accent-solid: var(--nextora-box-icon-way-accent);
	--nextora-box-icon-way-accent-grad: linear-gradient(
		135deg,
		var(--nextora-box-icon-way-accent),
		color-mix(in srgb, var(--nextora-box-icon-way-accent) 65%, #fff)
	);
	--nextora-box-icon-way-accent-shadow: color-mix(
		in srgb,
		var(--nextora-box-icon-way-accent) 45%,
		transparent
	);
}

.nextora-box-icon--template-ways .nextora-box-icon__icon {
	margin-bottom: 1.625rem;
	background: var(
		--nextora-box-icon-way-accent-grad,
		var(--nextora-box-icon-icon-surface-bg, var(--wp--preset--color--primary, currentColor))
	);
	color: var(--nextora-box-icon-icon-color, #fff);
	border: none;
	box-shadow: 0 14px 30px -10px
		var(--nextora-box-icon-way-accent-shadow, rgba(0, 0, 0, 0.2));
	transition: transform 0.35s ease;
}

.nextora-box-icon--template-ways.nextora-box-icon--grid-active
	.nextora-box-icon__card:hover
	.nextora-box-icon__icon,
.nextora-box-icon--template-ways.nextora-box-icon--grid-active
	.nextora-box-icon__card:focus-within
	.nextora-box-icon__icon {
	transform: rotate(-6deg) scale(1.07);
	background: var(
		--nextora-box-icon-way-accent-grad,
		var(--nextora-box-icon-icon-surface-bg, var(--wp--preset--color--primary, currentColor))
	);
	color: var(--nextora-box-icon-icon-color, #fff);
}

.nextora-box-icon--template-ways .nextora-box-icon__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
}

.nextora-box-icon--template-ways .nextora-box-icon__description {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.nextora-box-icon--template-ways .nextora-box-icon__link {
	margin-top: 1.375rem;
	font-size: 0.90625rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(
		--nextora-box-icon-link-color,
		var(--nextora-box-icon-way-accent-solid, var(--wp--preset--color--primary, currentColor))
	);
}

.nextora-box-icon--template-ways .nextora-box-icon__link-icon svg {
	transition: transform 0.25s ease;
}

.nextora-box-icon--template-ways.nextora-box-icon--grid-active
	.nextora-box-icon__card:hover
	.nextora-box-icon__link-icon
	svg,
.nextora-box-icon--template-ways.nextora-box-icon--grid-active
	.nextora-box-icon__card:focus-within
	.nextora-box-icon__link-icon
	svg {
	transform: translateX(5px);
}

@media (max-width: 880px) {
	.nextora-box-icon--template-ways.nextora-box-icon--grid-active .swiper-slide {
		max-width: 480px;
		margin-inline: auto;
		width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextora-box-icon--template-ways.nextora-box-icon--grid-active .nextora-box-icon__card:hover,
	.nextora-box-icon--template-ways.nextora-box-icon--grid-active .nextora-box-icon__card:focus-within {
		transform: none;
	}

	.nextora-box-icon--template-ways.nextora-box-icon--grid-active
		.nextora-box-icon__card:hover
		.nextora-box-icon__icon,
	.nextora-box-icon--template-ways.nextora-box-icon--grid-active
		.nextora-box-icon__card:focus-within
		.nextora-box-icon__icon {
		transform: none;
	}

	.nextora-box-icon--template-ways.nextora-box-icon--grid-active
		.nextora-box-icon__card:hover
		.nextora-box-icon__link-icon
		svg,
	.nextora-box-icon--template-ways.nextora-box-icon--grid-active
		.nextora-box-icon__card:focus-within
		.nextora-box-icon__link-icon
		svg {
		transform: none;
	}
}

/* Minimal template (orphanage .trust-badge) — card styling only; grid/slider use shared layout. */
.nextora-box-icon--template-minimal .nextora-box-icon__card {
	flex-direction: row;
	align-items: center;
	gap: 0.8125rem;
	min-height: 0;
	text-align: start;
	background: var(--nextora-box-icon-card-bg, var(--wp--preset--color--base, #fff));
	border-color: var(
		--nextora-box-icon-card-border-color,
		color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 12%, transparent)
	);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.nextora-box-icon--template-minimal .nextora-box-icon__card-link {
	text-decoration: none;
	color: inherit;
}

.nextora-box-icon--template-minimal.nextora-box-icon--grid-active .nextora-box-icon__card:hover,
.nextora-box-icon--template-minimal.nextora-box-icon--grid-active .nextora-box-icon__card:focus-within,
.nextora-box-icon--template-minimal .nextora-box-icon__card-link:focus-visible {
	background: var(--nextora-box-icon-card-bg, var(--wp--preset--color--base, #fff));
	color: var(--wp--preset--color--contrast, currentColor);
	transform: translateY(-5px);
	box-shadow: 0 24px 46px -26px
		rgb(from var(--wp--preset--color--contrast, currentColor) r g b / 0.45);
	border-color: var(
		--nextora-box-icon-card-hover-border-color,
		var(--wp--preset--color--secondary, currentColor)
	);
}

.nextora-box-icon--template-minimal .nextora-box-icon__icon {
	flex-shrink: 0;
	background: var(
		--nextora-box-icon-icon-surface-bg,
		rgb(from var(--wp--preset--color--secondary, currentColor) r g b / 0.16)
	);
	color: var(
		--nextora-box-icon-icon-color,
		color-mix(in srgb, var(--wp--preset--color--secondary, currentColor) 72%, black)
	);
	border: none;
	border-radius: 12px;
}

.nextora-box-icon--template-minimal.nextora-box-icon--grid-active
	.nextora-box-icon__card:hover
	.nextora-box-icon__icon,
.nextora-box-icon--template-minimal.nextora-box-icon--grid-active
	.nextora-box-icon__card:focus-within
	.nextora-box-icon__icon {
	background: var(
		--nextora-box-icon-icon-surface-bg,
		rgb(from var(--wp--preset--color--secondary, currentColor) r g b / 0.16)
	);
	color: var(
		--nextora-box-icon-icon-color,
		color-mix(in srgb, var(--wp--preset--color--secondary, currentColor) 72%, black)
	);
}

.nextora-box-icon--template-minimal .nextora-box-icon__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.nextora-box-icon--template-minimal .nextora-box-icon__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.96875rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--nextora-box-icon-card-title-color, var(--wp--preset--color--contrast, currentColor));
	margin-bottom: 0.15rem;
}

.nextora-box-icon--template-minimal .nextora-box-icon__description {
	margin: 0;
	flex: unset;
	font-size: var(--wp--preset--font-size--small, 0.78125rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(
		--nextora-box-icon-card-desc-color,
		color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 55%, transparent)
	);
}

.nextora-box-icon--template-minimal .nextora-box-icon__link {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.nextora-box-icon--template-minimal.nextora-box-icon--grid-active .nextora-box-icon__card:hover,
	.nextora-box-icon--template-minimal.nextora-box-icon--grid-active .nextora-box-icon__card:focus-within {
		transform: none;
	}
}

/* Highlights Stats template — colored stat cards with icon circle, large number, label, subtitle */
/* Grid layout uses standard --grid-active class (set by view.ts). Slider uses Swiper carousel. */

.nextora-box-icon--template-highlights .nextora-box-icon__card {
	min-height: auto;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--nextora-box-icon-card-padding, 30px 24px);
	border: var(--nextora-box-icon-card-border-width, 2px) solid transparent;
	border-radius: var(--nextora-box-icon-card-radius, 26px);
	background: color-mix(in srgb, var(--__hl-accent, var(--wp--preset--color--secondary, #26C6C0)) 14%, var(--wp--preset--color--base, #fff));
	border-color: color-mix(in srgb, var(--__hl-accent, var(--wp--preset--color--secondary, #26C6C0)) 35%, var(--wp--preset--color--base, #fff));
	color: inherit;
	transition: none;
}

.nextora-box-icon--template-highlights .nextora-box-icon__icon {
	margin: 0 auto 14px;
}

.nextora-box-icon--template-highlights .nextora-box-icon__stat-number {
	display: block;
	margin: 0;
	font-weight: 700;
	font-size: clamp(30px, 3.4vw, 42px);
	line-height: 1;
	color: var(--__hl-accent, var(--wp--preset--color--secondary, #26C6C0));
}

.nextora-box-icon--template-highlights .nextora-box-icon__stat-label {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 700;
}

.nextora-box-icon--template-highlights .nextora-box-icon__stat-subtitle {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(
		--nextora-box-icon-card-desc-color,
		color-mix(in srgb, currentColor 55%, transparent)
	);
}

/* Color cycling — 4 accent colors, one per card */
.nextora-box-icon--template-highlights .swiper-slide:nth-child(4n + 1) .nextora-box-icon__card,
.nextora-box-icon--template-highlights .nextora-box-icon__card:nth-child(4n + 1) {
	--__hl-accent: var(--nextora-box-icon-highlight-accent-1, var(--wp--preset--color--secondary, #26C6C0));
}

.nextora-box-icon--template-highlights .swiper-slide:nth-child(4n + 2) .nextora-box-icon__card,
.nextora-box-icon--template-highlights .nextora-box-icon__card:nth-child(4n + 2) {
	--__hl-accent: var(--nextora-box-icon-highlight-accent-2, var(--wp--preset--color--primary, #FF5DA2));
}

.nextora-box-icon--template-highlights .swiper-slide:nth-child(4n + 3) .nextora-box-icon__card,
.nextora-box-icon--template-highlights .nextora-box-icon__card:nth-child(4n + 3) {
	--__hl-accent: var(--nextora-box-icon-highlight-accent-3, #5AC86E);
}

.nextora-box-icon--template-highlights .swiper-slide:nth-child(4n + 4) .nextora-box-icon__card,
.nextora-box-icon--template-highlights .nextora-box-icon__card:nth-child(4n + 4) {
	--__hl-accent: var(--nextora-box-icon-highlight-accent-4, #FF8A3D);
}

.nextora-box-icon--template-highlights .nextora-box-icon__icon--style-stacked,
.nextora-box-icon--template-highlights .nextora-box-icon__icon--style-framed {
	background: var(--__hl-accent, var(--wp--preset--color--secondary, #26C6C0));
	color: var(--wp--preset--color--base, #fff);
	border: none;
}

@media (prefers-reduced-motion: reduce) {
	.nextora-box-icon--template-highlights .nextora-box-icon__card {
		transition: none;
	}
}

/* Disable card hover effects */
.nextora-box-icon--no-card-hover .nextora-box-icon__card,
.nextora-box-icon--no-card-hover .nextora-box-icon__card:hover,
.nextora-box-icon--no-card-hover .nextora-box-icon__card:focus-within {
	transition: none;
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within {
	background: var(--nextora-box-icon-card-bg, transparent);
	color: var(--wp--preset--color--contrast, currentColor);
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__description,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__description {
	color: var(--nextora-box-icon-card-desc-color, color-mix(in srgb, currentColor 70%, transparent));
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__link,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__link {
	color: var(--nextora-box-icon-link-color, var(--wp--preset--color--primary, currentColor));
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-stacked,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-stacked,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-framed,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-framed {
	background: var(--nextora-box-icon-icon-surface-bg, var(--wp--preset--color--primary, #f0531c));
	color: var(--nextora-box-icon-icon-color, #fff);
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-framed,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-framed {
	border-color: var(--nextora-box-icon-icon-surface-border, transparent);
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:hover .nextora-box-icon__icon--style-default,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-default .nextora-box-icon__card:focus-within .nextora-box-icon__icon--style-default {
	color: var(--nextora-box-icon-icon-color, currentColor);
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:hover,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:focus-within {
	transform: none;
	box-shadow: none;
	border-color: var(--nextora-box-icon-card-border-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 12%, transparent));
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:hover::before,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:focus-within::before {
	transform: scaleY(0);
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:hover .nextora-box-icon__card-ghost,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:focus-within .nextora-box-icon__card-ghost {
	opacity: 0.08;
	transform: none;
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:hover .nextora-box-icon__icon,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:focus-within .nextora-box-icon__icon {
	transform: none;
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:hover .nextora-box-icon__link-icon svg,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-ways .nextora-box-icon__card:focus-within .nextora-box-icon__link-icon svg {
	transform: none;
}

.nextora-box-icon--no-card-hover.nextora-box-icon--template-minimal .nextora-box-icon__card:hover,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-minimal .nextora-box-icon__card:focus-within,
.nextora-box-icon--no-card-hover.nextora-box-icon--template-minimal .nextora-box-icon__card-link:focus-visible {
	transform: none;
	box-shadow: none;
}

/* Timeline template */
.nextora-box-icon--template-timeline .nextora-box-icon__inner {
	max-width: var(--nextora-box-icon-max-width, var(--wp--style--global--wide-size, 1200px));
}

.nextora-box-icon--template-timeline .nextora-box-icon__timeline-grid {
	display: grid;
	grid-template-columns: repeat(var(--nextora-box-icon-cols, 4), 1fr);
	gap: var(--nextora-box-icon-gap, 0);
	position: relative;
}

.nextora-box-icon--template-timeline .nextora-box-icon__timeline-grid::before {
	content: '';
	position: absolute;
	top: 22px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--nextora-box-icon-timeline-line-color, color-mix(in srgb, currentColor 12%, transparent));
	pointer-events: none;
}

.nextora-box-icon--template-timeline .nextora-box-icon__timeline-grid--no-line::before {
	display: none;
}

.nextora-box-icon--template-timeline .nextora-box-icon__card {
	position: relative;
	padding-top: var(--nextora-box-icon-card-padding-top, 0);
	padding-right: var(--nextora-box-icon-card-padding-right, 28px);
	padding-bottom: var(--nextora-box-icon-card-padding-bottom, 0);
	padding-left: var(--nextora-box-icon-card-padding-left, 0);
	min-height: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	transition: none;
}

.nextora-box-icon--timeline-align-center .nextora-box-icon__card {
	align-items: center;
	text-align: center;
}

.nextora-box-icon--timeline-align-center .nextora-box-icon__icon {
	align-self: center;
}

.nextora-box-icon--timeline-align-right .nextora-box-icon__card {
	align-items: flex-end;
	text-align: right;
}

.nextora-box-icon--timeline-align-right .nextora-box-icon__icon {
	align-self: flex-end;
}

.nextora-box-icon--template-timeline .nextora-box-icon__icon {
	position: relative;
	z-index: 2;
	margin-bottom: 20px;
}

.nextora-box-icon--template-timeline .nextora-box-icon__icon--style-framed {
	border-width: 2px;
	border-color: var(--nextora-box-icon-icon-surface-border, var(--nextora-box-icon-icon-color, #FF7A00));
	border-style: solid;
	background: var(--nextora-box-icon-icon-surface-bg, #fff);
	color: var(--nextora-box-icon-icon-color, #FF7A00);
}

.nextora-box-icon--template-timeline .nextora-box-icon__timeline-time {
	display: block;
	margin: 0 0 6px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: var(--nextora-box-icon-icon-color, #FF7A00);
}

.nextora-box-icon--template-timeline .nextora-box-icon__title {
	margin: 6px 0 12px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 800;
	line-height: 1;
}

.nextora-box-icon--template-timeline .nextora-box-icon__description {
	margin: 0;
	flex: unset;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	color: var(--nextora-box-icon-card-desc-color, color-mix(in srgb, currentColor 70%, transparent));
}

@media (max-width: 760px) {
	.nextora-box-icon--template-timeline .nextora-box-icon__timeline-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.nextora-box-icon--template-timeline .nextora-box-icon__timeline-grid::before {
		top: 0;
		bottom: 0;
		left: calc(var(--nextora-box-icon-icon-circle-size, 44px) / 2);
		right: auto;
		width: 2px;
		height: auto;
	}

	.nextora-box-icon--template-timeline .nextora-box-icon__card {
		padding: 0 0 0 calc(var(--nextora-box-icon-icon-circle-size, 44px) + 16px);
	}

	.nextora-box-icon--template-timeline .nextora-box-icon__icon {
		position: absolute;
		left: 0;
		top: 0;
		margin: 0;
	}

	.nextora-box-icon--timeline-align-center .nextora-box-icon__card,
	.nextora-box-icon--timeline-align-right .nextora-box-icon__card {
		align-items: flex-start;
		text-align: left;
	}

	.nextora-box-icon--timeline-align-center .nextora-box-icon__icon,
	.nextora-box-icon--timeline-align-right .nextora-box-icon__icon {
		left: 0;
		right: auto;
	}
}

/* Template 04 — Ways Rows: split intro + horizontal rows */
.nextora-box-icon--template-template-4 .nextora-box-icon__inner {
	max-width: var(--nextora-box-icon-max-width, var(--wp--style--global--wide-size, 1200px));
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows--has-header {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: clamp(36px, 5vw, 64px);
	align-items: start;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-header {
	position: sticky;
	top: 110px;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-header .nextora-box-icon__heading {
	font-size: clamp(2rem, 3.8vw, 3.375rem);
	line-height: 1.06;
	text-transform: none;
	margin: 14px 0 16px;
	color: var(--nextora-box-icon-heading-color, inherit);
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-subtitle {
	margin: 0 0 4px;
	font-size: var(--wp--preset--font-size--base);
	font-style: italic;
	color: var(--nextora-box-icon-description-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 55%, transparent));
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-header .nextora-box-icon__description-intro {
	margin: 0 0 24px;
	font-size: 1.03rem;
	color: var(--nextora-box-icon-description-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 55%, transparent));
	max-width: 42rem;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-list {
	display: flex;
	flex-direction: column;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 28px 6px;
	border-top: 1px solid var(--nextora-box-icon-card-border-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 12%, transparent));
	border-radius: 14px;
	color: var(--wp--preset--color--contrast, inherit);
	transition:
		padding 0.25s ease,
		background 0.25s ease;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-list > :last-child {
	border-bottom: 1px solid var(--nextora-box-icon-card-border-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 12%, transparent));
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:hover,
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:focus-within {
	padding-left: 18px;
	background: var(--nextora-box-icon-card-hover-bg, color-mix(in srgb, var(--wra, currentColor) 8%, transparent));
}

/* Accent color cycling — 3 colors, one per row */
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:nth-child(3n + 1) {
	--wra: var(--nextora-box-icon-ways-accent-1, var(--wp--preset--color--primary, currentColor));
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:nth-child(3n + 2) {
	--wra: var(--nextora-box-icon-ways-accent-2, var(--wp--preset--color--contrast, currentColor));
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:nth-child(3n + 3) {
	--wra: var(--nextora-box-icon-ways-accent-3, var(--wp--preset--color--secondary, currentColor));
}

/* Icon with gradient background from accent */
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row-icon .nextora-box-icon__icon {
	margin: 0;
	background: linear-gradient(
		135deg,
		var(--wra, var(--wp--preset--color--primary)),
		color-mix(in srgb, var(--wra, var(--wp--preset--color--primary)) 80%, #fff)
	);
	box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--wra, currentColor) 45%, transparent);
	transition: transform 0.3s ease;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:hover .nextora-box-icon__ways-row-icon .nextora-box-icon__icon,
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:focus-within .nextora-box-icon__ways-row-icon .nextora-box-icon__icon {
	transform: rotate(-6deg) scale(1.06);
}

/* Row tag */
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row-tag {
	display: block;
	margin: 0 0 2px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wra, var(--wp--preset--color--primary, currentColor));
}

/* Row title */
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row .nextora-box-icon__title {
	margin: 2px 0 6px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	text-transform: none;
	color: var(--nextora-box-icon-card-title-color, var(--wp--preset--color--contrast, currentColor));
}

/* Row description */
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row .nextora-box-icon__description {
	margin: 0;
	flex: unset;
	font-size: var(--wp--preset--font-size--small);
	color: var(--nextora-box-icon-card-desc-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 70%, transparent));
}

/* Arrow button */
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--nextora-box-icon-card-border-color, color-mix(in srgb, var(--wp--preset--color--contrast, currentColor) 12%, transparent));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--contrast, inherit);
	flex-shrink: 0;
	text-decoration: none;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:hover .nextora-box-icon__ways-row-arrow,
.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:focus-within .nextora-box-icon__ways-row-arrow {
	background: var(--wra, var(--wp--preset--color--primary));
	border-color: transparent;
	color: #fff;
}

.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row-arrow svg {
	width: 18px;
	height: 18px;
}

/* Disable hover effects when toggle is off */
.nextora-box-icon--template-template-4.nextora-box-icon--no-card-hover .nextora-box-icon__ways-row:hover,
.nextora-box-icon--template-template-4.nextora-box-icon--no-card-hover .nextora-box-icon__ways-row:focus-within {
	padding-left: 6px;
	background: transparent;
}

.nextora-box-icon--template-template-4.nextora-box-icon--no-card-hover .nextora-box-icon__ways-row:hover .nextora-box-icon__ways-row-icon .nextora-box-icon__icon,
.nextora-box-icon--template-template-4.nextora-box-icon--no-card-hover .nextora-box-icon__ways-row:focus-within .nextora-box-icon__ways-row-icon .nextora-box-icon__icon {
	transform: none;
}

.nextora-box-icon--template-template-4.nextora-box-icon--no-card-hover .nextora-box-icon__ways-row:hover .nextora-box-icon__ways-row-arrow,
.nextora-box-icon--template-template-4.nextora-box-icon--no-card-hover .nextora-box-icon__ways-row:focus-within .nextora-box-icon__ways-row-arrow {
	background: transparent;
	border-color: var(--nextora-box-icon-card-border-color, color-mix(in srgb, currentColor 12%, transparent));
	color: inherit;
}

/* Responsive */
@media (max-width: 880px) {
	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows--has-header {
		grid-template-columns: 1fr;
	}

	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-rows-header {
		position: static;
	}

	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row {
		grid-template-columns: auto 1fr;
	}

	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row-arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row {
		transition: none;
	}

	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row-icon .nextora-box-icon__icon {
		transition: none;
	}

	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:hover .nextora-box-icon__ways-row-icon .nextora-box-icon__icon,
	.nextora-box-icon--template-template-4 .nextora-box-icon__ways-row:focus-within .nextora-box-icon__ways-row-icon .nextora-box-icon__icon {
		transform: none;
	}
}
