/**
 * Compatibility and enterprise refinements for migrated Avada Builder pages.
 * Existing service, product and company styles remain the visual system; this
 * file removes Builder wrapper spacing and replaces decorative numbering.
 */

body.cygnivo-avada-builder-page #main {
	padding: 0 !important;
	background: #fff;
}

body.cygnivo-avada-builder-page #main > .fusion-row,
body.cygnivo-avada-builder-page #content {
	width: 100%;
	max-width: none !important;
	margin: 0;
}

body.cygnivo-avada-builder-page #content {
	float: none;
}

body.cygnivo-avada-builder-page .post-content {
	margin: 0;
}

body.cygnivo-avada-builder-page .cyg-avada-builder-section {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow: hidden !important;
}

body.cygnivo-avada-builder-page .cyg-avada-builder-section > .fusion-builder-row,
body.cygnivo-avada-builder-page .cyg-avada-builder-section .fusion-layout-column,
body.cygnivo-avada-builder-page .cyg-avada-builder-section .fusion-column-wrapper {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.cygnivo-avada-builder-page .cyg-avada-builder-section section,
body.cygnivo-avada-builder-page .cyg-avada-builder-section header {
	width: 100%;
	max-width: 100%;
}

/* Sequence labels are removed without replacing them with lines or dots. */
body.cygnivo-avada-builder-page .cyg-numberless-marker {
	display: none !important;
}

body.cygnivo-avada-builder-page .cyg-service-signal__node,
body.cygnivo-avada-builder-page .cyg-service-value__grid > div,
body.cygnivo-avada-builder-page .cyg-service-steps li,
body.cygnivo-avada-builder-page .cyg-product-principles li,
body.cygnivo-avada-builder-page .cyg-product-flow li,
body.cygnivo-avada-builder-page .cyg-company-model li,
body.cygnivo-avada-builder-page .cyg-resources-questions li,
body.cygnivo-avada-builder-page .cyg-contact-next li {
	grid-template-columns: 1fr;
	gap: 0;
}

body.cygnivo-avada-builder-page .cyg-service-steps::before {
	display: none;
}

/* Native Avada Blog element, aligned to the Cygnivo editorial system. */
body.cygnivo-avada-builder-page .cyg-avada-blog-feed.fusion-blog-layout-grid {
	margin: 0;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-grid {
	margin-bottom: 24px;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-wrapper {
	display: flex;
	min-height: 660px;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dbe6ef;
	border-radius: 22px;
	background: #fff;
	box-shadow: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-wrapper:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 48px rgb(20 54 82 / 12%);
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-image-wrapper {
	min-height: 220px;
	background: linear-gradient(135deg, #073b54, #087681 52%, #413b8c);
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-image-wrapper img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-wrapper:not(:has(.fusion-image-wrapper))::before {
	display: grid;
	place-items: end start;
	height: 220px;
	padding: 28px;
	color: rgb(255 255 255 / 72%);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	content: "CYGNIVO · ENTERPRISE INSIGHT";
	background:
		radial-gradient(circle at 82% 18%, rgb(105 219 243 / 26%), transparent 26%),
		linear-gradient(135deg, #073b54, #087681 52%, #413b8c);
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-content-wrapper {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 30px !important;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .blog-shortcode-post-title {
	margin: 0 0 14px !important;
	font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
	line-height: 1.17 !important;
	letter-spacing: -0.035em;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .blog-shortcode-post-title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-content {
	margin-bottom: 0 !important;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-post-content p {
	display: -webkit-box;
	overflow: hidden;
	color: #607487;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .fusion-meta-info {
	margin-top: auto !important;
	border: 0;
	color: #148b99;
	font-size: 0.72rem;
	font-weight: 700;
}

body.cygnivo-avada-builder-page .cyg-avada-blog-feed .pagination {
	justify-content: center;
	margin-top: 36px;
}
