/**
 * Nexus Builder — front page block elements (carousel, flip, modal, etc.)
 */

.nexus-el-section {
	max-width: var(--nexus-container, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	min-width: 0;
	box-sizing: border-box;
	overflow-wrap: break-word;
}

.nexus-el-align-center {
	text-align: center;
}

.nexus-el-spacer {
	display: block;
	width: 100%;
}

.nexus-el-dual-head {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}
.nexus-el-dual-head .nexus-el-dual-a { color: var(--nexus-sec-heading, var(--nexus-heading, #0f172a)); }
.nexus-el-dual-head .nexus-el-dual-b { color: var(--nexus-primary, #0f766e); }

.nexus-el-buttons-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
	margin: 1rem 0;
}
.nexus-el-buttons-row.nexus-el-align-left { justify-content: flex-start; }

.nexus-el-carousel {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 0;
	scrollbar-width: thin;
	max-width: 100%;
}
.nexus-el-carousel::-webkit-scrollbar { height: 6px; }
.nexus-el-carousel figure {
	scroll-snap-align: center;
	flex: 0 0 min(85vw, 480px);
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.nexus-el-carousel img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Showcase carousel — image + copy slider */
.nexus-el-carousel-showcase {
	position: relative;
	margin: 1.5rem 0;
}
.nexus-el-carousel-showcase-slide {
	display: none;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	align-items: center;
}
.nexus-el-carousel-showcase-slide.is-active {
	display: grid;
}
.nexus-el-carousel-showcase-media {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--nexus-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
}
.nexus-el-carousel-showcase-media img {
	display: block;
	width: 100%;
	height: auto;
}
.nexus-el-carousel-showcase-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	color: var(--nexus-sec-heading, var(--nexus-heading, #0f172a));
}
.nexus-el-carousel-showcase-text {
	margin: 0 0 1rem;
	color: var(--nexus-body-text-muted, #64748b);
	line-height: 1.6;
}
.nexus-el-carousel-showcase-link a {
	color: var(--nexus-primary, #0f766e);
	font-weight: 600;
	text-decoration: none;
}
.nexus-el-carousel-showcase-link a:hover {
	text-decoration: underline;
}
.nexus-el-carousel-showcase-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}
.nexus-el-carousel-showcase-prev,
.nexus-el-carousel-showcase-next {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--nexus-border, #e2e8f0);
	border-radius: 999px;
	background: var(--nexus-surface, #fff);
	color: var(--nexus-body-text, #334155);
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}
.nexus-el-carousel-showcase-dots {
	display: flex;
	gap: 0.35rem;
}
.nexus-el-carousel-showcase-dots button {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: var(--nexus-border, #cbd5e1);
	cursor: pointer;
}
.nexus-el-carousel-showcase-dots button.is-active {
	background: var(--nexus-primary, #0f766e);
}
@media (max-width: 782px) {
	.nexus-el-carousel-showcase-slide.is-active {
		grid-template-columns: 1fr;
	}
}

.nexus-el-flip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	perspective: 1000px;
}
.nexus-el-flip {
	height: 200px;
	position: relative;
}
.nexus-el-flip-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.55s ease;
	transform-style: preserve-3d;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}
.nexus-el-flip:hover .nexus-el-flip-inner { transform: rotateY(180deg); }
.nexus-el-flip-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	border-radius: 12px;
}
.nexus-el-flip-front {
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
	color: #0f172a;
}
.nexus-el-flip-back {
	background: linear-gradient(135deg, #0f766e, #0d9488);
	color: #fff;
	transform: rotateY(180deg);
}
.nexus-el-flip-inner.nexus-has-custom-card-bg .nexus-el-flip-front,
.nexus-el-flip-inner.nexus-has-custom-card-bg .nexus-el-flip-back {
	background: transparent !important;
	color: #0f172a;
}

.nexus-el-timeline {
	position: relative;
	padding-left: 1.5rem;
	border-left: 2px solid var(--nexus-primary, #0f766e);
	margin: 1.5rem 0;
}
.nexus-el-timeline li {
	list-style: none;
	margin-bottom: 1.5rem;
	position: relative;
}
.nexus-el-timeline li::before {
	content: "";
	position: absolute;
	left: -1.65rem;
	top: 0.35rem;
	width: 10px;
	height: 10px;
	background: var(--nexus-primary, #0f766e);
	border-radius: 50%;
}

.nexus-el-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
}
.nexus-el-info-box {
	padding: 1.25rem;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}
.nexus-el-info-box .nexus-el-icon {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
}

.nexus-el-info-box .nexus-el-icon-inner,
.nexus-el-info-box .nexus-section-icon-svg {
	display: block;
}

.nexus-el-info-box .nexus-el-icon,
.nexus-el-info-box .nexus-el-icon-inner,
.nexus-service-item .nexus-service-icon,
.nexus-feature-item .nexus-feature-icon,
.nexus-feature-item .nexus-feature-icon-inner,
.nexus-el-icon-block .nexus-el-icon-block-icon,
.nexus-el-icon-block .nexus-el-icon-block-icon .nexus-el-icon-inner,
.nexus-el-info-box .nexus-section-icon-svg,
.nexus-service-item .nexus-section-icon-svg,
.nexus-feature-item .nexus-section-icon-svg,
.nexus-el-icon-block .nexus-section-icon-svg {
	color: var(--nexus-card-icon, var(--nexus-sec-icon, var(--nexus-primary, #0f766e)));
}

.nexus-el-circle-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	text-align: center;
}
.nexus-el-circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: linear-gradient(145deg, #ede9fe, #cffafe);
	border: 3px solid #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.nexus-el-circle-val { font-size: 1.35rem; font-weight: 700; color: #0f172a; }
.nexus-el-circle-lab { font-size: 0.8rem; color: #64748b; }

.nexus-el-icon-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.nexus-el-icon-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.35rem 0;
}
.nexus-el-icon-list__icon {
	flex: 0 0 auto;
	color: var(--nexus-primary, #0f766e);
	line-height: 1.4;
}
.nexus-el-icon-list__text {
	flex: 1 1 auto;
}

.nexus-el-table-wrap { overflow-x: auto; margin: 1rem 0; }
.nexus-el-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.nexus-el-table th,
.nexus-el-table td {
	border: 1px solid #e2e8f0;
	padding: 0.65rem 0.85rem;
	text-align: left;
}
.nexus-el-table th { background: #f1f5f9; }

.nexus-el-highlight {
	padding: 1.5rem;
	border-radius: 12px;
	background: linear-gradient(90deg, #fef3c7, #fffbeb);
	border-left: 4px solid #d97706;
	/* Readable even when parent section sets light text (--nexus-sec-text) for heroes. */
	color: #78350f;
}
.nexus-el-highlight h3 {
	color: #78350f;
	margin-top: 0;
}
.nexus-el-highlight p {
	color: #92400e;
	margin-bottom: 0;
}

.nexus-el-expandable details {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--nexus-surface);
}
.nexus-el-expandable summary {
	cursor: pointer;
	font-weight: 600;
}

.nexus-el-modal-trig { margin: 1rem 0; }
.nexus-el-modal {
	border: none;
	border-radius: 12px;
	padding: 0;
	max-width: min(90vw, 520px);
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
}
.nexus-el-modal::backdrop { background: rgba(15, 23, 42, 0.45); }
.nexus-el-modal-inner { padding: 1.5rem; }
.nexus-el-modal h3 { margin-top: 0; }

.nexus-el-banner {
	position: relative;
	padding: 2.5rem 1.5rem;
	border-radius: 16px;
	background: linear-gradient(120deg, #312e81, #0f766e);
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
	min-height: 12rem;
}
.nexus-el-banner-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: center;
	padding: 2rem;
	border-radius: 16px;
	background: #f1f5f9;
}
@media (max-width: 768px) {
	.nexus-el-banner-2 { grid-template-columns: 1fr; }
}
.nexus-el-banner-2 img { width: 100%; height: auto; border-radius: 12px; }

body.nexus-dark-mode .nexus-el-expandable details {
	background: var(--nexus-surface, #1a1a24);
	border-color: var(--nexus-border, #3f3f46);
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-expandable summary {
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-expandable .nexus-el-expand-inner {
	color: var(--nexus-body-text-muted, #a1a1aa);
}
body.nexus-dark-mode .nexus-el-modal-inner {
	background: var(--nexus-surface, #1a1a24);
	color: var(--nexus-body-text, #e4e4e7);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
body.nexus-dark-mode .nexus-el-banner-2 {
	background: var(--nexus-surface, #1a1a24);
	color: var(--nexus-body-text, #e4e4e7);
}

.nexus-el-fancy .nexus-el-fancy-hi {
	color: var(--nexus-primary, #0f766e);
	font-weight: 700;
}

.nexus-el-fancy-hi--shimmer {
	background: linear-gradient(
		90deg,
		var(--nexus-primary, #0f766e) 0%,
		var(--nexus-accent, #0891b2) 45%,
		var(--nexus-primary-hover, #0d9488) 100%
	);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: nexus-fancy-shimmer 3.2s linear infinite;
}

.nexus-el-fancy-hi--pulse {
	animation: nexus-fancy-pulse 2.4s ease-in-out infinite;
}

.nexus-el-fancy-hi--typewriter {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: bottom;
	border-right: 0.12em solid currentColor;
	width: 0;
	max-width: 100%;
	animation:
		nexus-fancy-typewriter calc(var(--nexus-fancy-chars, 12) * 0.08s) steps(var(--nexus-fancy-chars, 12), end) 0.35s forwards,
		nexus-fancy-caret 0.65s step-end infinite;
}

@keyframes nexus-fancy-shimmer {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

@keyframes nexus-fancy-pulse {
	0%, 100% { color: var(--nexus-primary, #0f766e); transform: scale(1); }
	50% { color: var(--nexus-accent, #0891b2); transform: scale(1.04); }
}

@keyframes nexus-fancy-typewriter {
	from { width: 0; }
	to { width: calc(var(--nexus-fancy-chars, 12) * 1ch); }
}

@keyframes nexus-fancy-caret {
	0%, 100% { border-color: transparent; }
	50% { border-color: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
	.nexus-el-fancy-hi--shimmer,
	.nexus-el-fancy-hi--pulse,
	.nexus-el-fancy-hi--typewriter {
		animation: none;
		background: none;
		color: var(--nexus-primary, #0f766e);
		width: auto;
		border-right: 0;
		transform: none;
	}
}

.nexus-el-ihover {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	max-width: 480px;
	margin: 0 auto;
}
.nexus-el-ihover img { display: block; width: 100%; height: auto; }
.nexus-el-ihover-cap {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.75);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.35s ease;
	text-align: center;
}
.nexus-el-ihover:hover .nexus-el-ihover-cap { opacity: 1; }

.nexus-el-hot-wrap {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}
.nexus-el-hot-wrap img { width: 100%; height: auto; display: block; }
.nexus-el-hot-dot {
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #f43f5e;
	border: 3px solid #fff;
	cursor: help;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nexus-el-vid-banner {
	position: relative;
	min-height: 280px;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0f172a;
}
.nexus-el-vid-banner video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}
.nexus-el-vid-banner .nexus-el-vid-cap {
	position: relative;
	z-index: 1;
	color: #fff;
	text-align: center;
	padding: 1rem;
}

.nexus-el-sep img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 0;
}

.nexus-el-ribbon {
	display: inline-block;
	padding: 0.25rem 2.5rem;
	background: #e11d48;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	transform: rotate(-4deg);
	box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.nexus-el-swatch {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1rem;
}
.nexus-el-swatch span {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.nexus-el-range {
	width: 100%;
	max-width: 400px;
	margin: 1rem auto;
	display: block;
}

.nexus-el-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.nexus-el-reveal.nexus-el-inview {
	opacity: 1;
	transform: none;
}
.nexus-el-reveal--fade {
	transform: none;
}
.nexus-el-reveal--fade-down {
	transform: translateY(-16px);
}
.nexus-el-reveal--zoom {
	transform: scale(0.94);
}
.nexus-el-reveal--slide-left {
	transform: translateX(24px);
}
.nexus-el-reveal--slide-right {
	transform: translateX(-24px);
}
@media (prefers-reduced-motion: reduce) {
	.nexus-el-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.nexus-el-sticky-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2rem;
	align-items: start;
}
@media (max-width: 768px) {
	.nexus-el-sticky-grid { grid-template-columns: 1fr; }
}
.nexus-el-sticky-side {
	position: sticky;
	top: 100px;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 12px;
}

.nexus-el-info-strip {
	background: #0f172a;
	color: #e2e8f0;
	padding: 0.75rem 1rem;
	text-align: center;
	font-size: 0.95rem;
	border-radius: 8px;
}

.nexus-el-woo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.25rem;
}

.nexus-el-posts-grid.nexus-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}
.nexus-el-posts-grid.nexus-blog-grid-cols-1 { grid-template-columns: 1fr; }
.nexus-el-posts-grid.nexus-blog-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexus-el-posts-grid.nexus-blog-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexus-el-posts-grid.nexus-blog-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 782px) {
	.nexus-el-posts-grid.nexus-blog-grid-cols-3,
	.nexus-el-posts-grid.nexus-blog-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.nexus-el-posts-grid.nexus-blog-grid { grid-template-columns: 1fr; }
}

/* Builder elements in dark mode — swap light-only surfaces to theme variables */
body.nexus-dark-mode .nexus-el-info-box {
	background: var(--nexus-surface, #1a1a24);
	border-color: var(--nexus-border, #3f3f46);
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-info-box .nexus-el-info-title {
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-flip-front {
	background: linear-gradient(135deg, var(--nexus-surface-alt, #27272f), var(--nexus-surface, #1a1a24));
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-table th,
body.nexus-dark-mode .nexus-el-table td {
	border-color: var(--nexus-border, #3f3f46);
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-table th {
	background: var(--nexus-surface-alt, #27272f);
}
body.nexus-dark-mode .nexus-el-circle {
	background: linear-gradient(145deg, var(--nexus-surface-alt, #27272f), var(--nexus-surface, #1a1a24));
	border-color: var(--nexus-border, #3f3f46);
	box-shadow: var(--nexus-shadow, 0 4px 12px rgba(0, 0, 0, 0.45));
}
body.nexus-dark-mode .nexus-el-circle-val {
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-circle-lab {
	color: var(--nexus-body-text-muted, #a1a1aa);
}
body.nexus-dark-mode .nexus-el-sticky-side {
	background: var(--nexus-surface, #1a1a24);
	border: 1px solid var(--nexus-border, #3f3f46);
}
body.nexus-dark-mode .nexus-el-carousel figure {
	box-shadow: var(--nexus-shadow, 0 4px 12px rgba(0, 0, 0, 0.45));
}
body.nexus-dark-mode .nexus-el-carousel-showcase-media {
	box-shadow: var(--nexus-shadow, 0 4px 12px rgba(0, 0, 0, 0.45));
}
body.nexus-dark-mode .nexus-el-carousel-showcase-prev,
body.nexus-dark-mode .nexus-el-carousel-showcase-next {
	background: var(--nexus-surface, #1a1a24);
	border-color: var(--nexus-border, #3f3f46);
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-highlight {
	background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), rgba(250, 204, 21, 0.08));
	border-left-color: #ca8a04;
	color: var(--nexus-body-text, #e4e4e7);
}
body.nexus-dark-mode .nexus-el-highlight h3,
body.nexus-dark-mode .nexus-el-highlight p {
	color: inherit;
}
body.nexus-dark-mode .nexus-el-dual-head .nexus-el-dual-a {
	color: var(--nexus-body-text, #e4e4e7);
}

/* Center partial rows so 1-3 cards sit in the middle instead of hugging the left edge. */
.nexus-el-flip-grid,
.nexus-el-info-grid,
.nexus-el-woo-grid,
.nexus-el-posts-grid.nexus-blog-grid {
	justify-content: center;
}

.nexus-el-flip-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 300px));
}

.nexus-el-info-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 280px));
}

.nexus-el-woo-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 280px));
}

.nexus-el-posts-grid.nexus-blog-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 340px));
}

.nexus-el-posts-grid.nexus-blog-grid-cols-1 { grid-template-columns: minmax(min(100%, 260px), 520px); }
.nexus-el-posts-grid.nexus-blog-grid-cols-2 { grid-template-columns: repeat(2, minmax(min(100%, 260px), 340px)); }
.nexus-el-posts-grid.nexus-blog-grid-cols-3 { grid-template-columns: repeat(3, minmax(min(100%, 240px), 320px)); }
.nexus-el-posts-grid.nexus-blog-grid-cols-4 { grid-template-columns: repeat(4, minmax(min(100%, 220px), 280px)); }

body.nexus-builder-active .nexus-section-empty-msg,
body.nexus-builder-active .nexus-el-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 8rem;
	padding: 1.25rem;
	border: 1px dashed rgba(15, 118, 110, 0.55);
	border-radius: 12px;
	background: rgba(15, 118, 110, 0.06);
	color: var(--nexus-body-text-muted, #64748b);
	text-align: center;
	font-size: 0.95rem;
	box-sizing: border-box;
}

@media (max-width: 782px) {
	.nexus-el-posts-grid.nexus-blog-grid-cols-2,
	.nexus-el-posts-grid.nexus-blog-grid-cols-3,
	.nexus-el-posts-grid.nexus-blog-grid-cols-4 {
		grid-template-columns: repeat(2, minmax(min(100%, 220px), 1fr));
	}
}

@media (max-width: 480px) {
	.nexus-el-flip-grid,
	.nexus-el-info-grid,
	.nexus-el-woo-grid,
	.nexus-el-posts-grid.nexus-blog-grid,
	.nexus-el-posts-grid.nexus-blog-grid-cols-1,
	.nexus-el-posts-grid.nexus-blog-grid-cols-2,
	.nexus-el-posts-grid.nexus-blog-grid-cols-3,
	.nexus-el-posts-grid.nexus-blog-grid-cols-4 {
		grid-template-columns: 1fr;
	}
}

.nexus-progress-list { display: grid; gap: 1rem; max-width: 720px; margin: 0 auto; }
.nexus-progress-label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.35rem; }
.nexus-progress-track { height: 8px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; }
.nexus-progress-track > span { display: block; height: 100%; background: var(--nexus-primary, #0f766e); border-radius: inherit; }
.nexus-marquee-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nexus-marquee-inner { display: flex; gap: 2.5rem; width: max-content; animation: nexus-marquee-scroll var(--nexus-marquee-speed, 30s) linear infinite; }
.nexus-marquee-logo img { height: 42px; width: auto; opacity: .85; filter: grayscale(1); }
@keyframes nexus-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nexus-toc-list { margin: 0; padding-left: 1.25rem; }
.nexus-toc-list a { text-decoration: none; }
.nexus-toc-list a:hover { text-decoration: underline; }

/* Before / After image comparison */
.nexus-el-before-after {
	position: relative;
	overflow: hidden;
	max-width: 900px;
	margin: 0 auto;
	border-radius: 12px;
	user-select: none;
	touch-action: none;
	background: #e2e8f0;
}
.nexus-el-before-after img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}
.nexus-ba-after {
	position: absolute;
	inset: 0;
	clip-path: inset(0 50% 0 0);
}
.nexus-ba-after img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.nexus-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	background: var(--nexus-surface);
	cursor: ew-resize;
	z-index: 3;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.nexus-ba-handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--nexus-surface);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.nexus-ba-vertical .nexus-ba-handle {
	top: 50%;
	left: 0;
	right: 0;
	bottom: auto;
	width: auto;
	height: 3px;
	margin: -1.5px 0 0;
	cursor: ns-resize;
}
.nexus-ba-label {
	position: absolute;
	z-index: 2;
	padding: 0.25rem 0.65rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
}
.nexus-ba-label-before {
	top: 0.75rem;
	left: 0.75rem;
}
.nexus-ba-label-after {
	top: 0.75rem;
	right: 0.75rem;
}
.nexus-ba-vertical .nexus-ba-label-before {
	top: auto;
	bottom: 0.75rem;
	left: 0.75rem;
}
.nexus-ba-vertical .nexus-ba-label-after {
	top: 0.75rem;
	right: auto;
	left: 0.75rem;
}

/* Icon timeline */
.nexus-el-icon-timeline {
	padding-left: 0;
	border-left: none;
}
.nexus-el-icon-timeline-step {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}
.nexus-el-icon-timeline-step::before {
	display: none;
}
.nexus-el-icon-timeline-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--nexus-card-icon, var(--nexus-sec-icon, var(--nexus-primary, #0f766e)));
	color: #fff;
}
.nexus-el-icon-timeline-icon .nexus-section-icon-svg {
	filter: brightness(0) invert(1);
}
.nexus-el-icon-timeline-body {
	flex: 1;
	min-width: 0;
}
.nexus-el-icon-timeline-body p {
	margin: 0.35rem 0 0;
}

/* Standalone icon block */
.nexus-el-icon-block {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}
.nexus-el-icon-block-left {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}
.nexus-el-icon-block-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	color: var(--nexus-primary, #0f766e);
}
.nexus-el-icon-block-left .nexus-el-icon-block-icon {
	justify-content: flex-start;
}
.nexus-el-icon-block-title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
}
.nexus-el-icon-block-text {
	margin: 0;
	color: #64748b;
}
.nexus-el-icon-block-link-wrap {
	margin: 0.75rem 0 0;
}
.nexus-el-icon-block-link {
	font-weight: 600;
	text-decoration: none;
	color: var(--nexus-primary, #0f766e);
}
.nexus-el-icon-block-link:hover {
	text-decoration: underline;
}

@media (max-width: 782px) {
	.nexus-el-before-after .nexus-ba-handle::after {
		width: 44px;
		height: 44px;
	}

	.nexus-el-icon-timeline-step {
		flex-direction: column;
		align-items: flex-start;
	}
}