/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

.list-group-item.active {
	background-color: var(--cnvs-themecolor);
	border-color: var(--cnvs-themecolor);
}

/* Keep the header/menu pinned to the top while scrolling. */
#header {
	position: sticky;
	top: 0;
	z-index: 299;
	background-color: var(--cnvs-header-bg);
}

@media (max-width: 767.98px) {
	#header .header-row {
		align-items: center;
	}

	#header .container {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}

	#header #logo {
		order: 1;
		margin-left: 0;
		margin-right: 0;
		justify-content: flex-start;
		text-align: left;
		width: 180px;
		flex: 0 1 auto;
	}

	#header #logo a {
		margin-left: 0;
		margin-right: 0;
	}

	#header-wrap #logo img {
		width: 180px;
		margin-top: 5px;
		margin-bottom: 5px;
		margin-left: 5px;
		margin-right: 0;
	}

	#header .primary-menu-trigger {
		order: 2;
		margin-left: auto;
		margin-right: 0;
		width: auto;
		flex-basis: auto;
		justify-content: flex-end;
	}

	/* Buttons stay hidden until the mobile menu is opened, then they form the first row above the menu items. */
	#header .header-misc {
		display: none;
		order: 3;
		width: 100%;
		flex: 0 0 100%;
		margin-top: 0.75rem;
		margin-left: 0;
		margin-right: 0;
		padding: 0.75rem 0;
		background-color: #ECF5FC;
		justify-content: center;
	}

	body.primary-menu-open #header .header-misc {
		display: flex;
	}

	#header .header-misc .button {
		margin-left: 0.35rem;
		margin-right: 0.35rem;
	}

	#header .primary-menu {
		order: 4;
		flex-basis: 100%;
	}

	body:not(.is-expanded-menu) #header .primary-menu > .menu-container,
	body:not(.is-expanded-menu) #header .primary-menu > .menu-container > .menu-item > .menu-link,
	body:not(.is-expanded-menu) #header .primary-menu > .menu-container > .menu-item > .menu-link > div {
		justify-content: center !important;
		text-align: center !important;
	}

	body:not(.is-expanded-menu) #header .software-products-menu .sub-menu-container .menu-link p {
		display: none;
	}

	body:not(.is-expanded-menu) #header .software-products-menu .sub-menu-container .menu-link .d-flex span {
		display: block !important;
	}

	body:not(.is-expanded-menu) #header .software-products-menu .sub-menu-container .menu-link {
		text-align: left;
	}

	/* Keep the open mobile menu scrollable so long dropdowns stay reachable. */
	body:not(.is-expanded-menu) #header .primary-menu > .menu-container {
		max-height: 80vh;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (min-width: 768px) {
	#header,
	#header-wrap,
	#header .header-wrap-clone {
		height: 105px;
	}

	#header .header-row {
		height: 105px;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
	}

	#header #logo {
		order: 1;
		flex: 0 0 180px;
		width: 180px;
		margin-left: 0 !important;
		margin-right: 1.25rem;
	}

	#header .primary-menu-trigger {
		display: none !important;
	}

	#header .primary-menu {
		order: 2;
		flex: 1 1 auto;
		margin-left: 0;
		display: block !important;
		text-align: left;
	}

	#header .primary-menu > .menu-container {
		justify-content: center;
	}

	#header .header-misc {
		display: flex !important;
		width: 350px;
		order: 3;
		flex: 0 0 350px;
		margin-left: 0.75rem;
		margin-right: 0;
		margin-top: 0;
		justify-content: flex-end;
	}
}

#header #logo img {
	width: 180px;
	height: auto;
}

#header .primary-menu > .menu-container {
	border-right: 0;
}

#header .primary-menu > .menu-container::before {
	display: none;
	content: none;
}

.is-expanded-menu #header .sub-title .menu-container > .menu-item:not(:first-child) > .menu-link::before {
	display: none;
	content: none;
}

.is-expanded-menu #header .mega-menu-small .mega-menu-content {
	width: 400px;
}

/* Narrower dropdown for the Integrations menu. */
.is-expanded-menu #header .mega-menu-integrations .mega-menu-content {
	width: 260px;
}

/* Features dropdown: 3 columns on the first row and 2 columns on the second. */
.is-expanded-menu #header .mega-menu-features {
	position: static;
}

.is-expanded-menu #header .mega-menu-features .mega-menu-content {
	left: 50%;
	transform: translateX(-50%);
	width: 960px;
	max-width: calc(100vw - 30px);
}

/* Highlight the first column of the Features dropdown (desktop only). */
.is-expanded-menu #header .mega-menu-features .features-top-col {
	background-color: #f5f9fd;
	border-radius: 0.25rem;
}

/* Larger links and more vertical spacing in the first column of the Features dropdown (desktop only). */
.is-expanded-menu #header .mega-menu-features .features-top-col .sub-menu-container .menu-item > .menu-link {
	padding-top: 18px;
	padding-bottom: 18px;
}

.is-expanded-menu #header .mega-menu-features .features-top-col .sub-menu-container .menu-item:first-child > .menu-link {
	margin-top: 12px;
}

.is-expanded-menu #header .mega-menu-features .features-top-col .menu-link .d-flex.flex-column > span {
	font-size: 1rem;
}

.is-expanded-menu #header .mega-menu-features .features-top-col .menu-link .d-flex.flex-column > p {
	font-size: 0.9rem;
}

/* The two feature-list columns use text-only links (no icons). */
.mega-menu-features .features-list-col .menu-link svg {
	display: none;
}

/* Mobile: remove the stacked-column padding so item spacing stays even. */
@media (min-width: 768px) {
	.is-expanded-menu #header .mega-menu-features .features-list-col {
		display: flex;
	}

	.is-expanded-menu #header .mega-menu-features .features-list-col > .sub-menu-container {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		padding-top: 16px;
	}
}

@media (max-width: 767.98px) {
	#header .mega-menu-features .mega-menu-content > .row > [class*="col-"] {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}


.block-hero {
	margin-top: 100px;
	margin-bottom: 100px;
}

.menu-item a div p {
	line-height: 12px;
	font-size: 0.825rem;
	font-weight: 400;
	margin-top: 6px;
}

@media (min-width: 768px) {
	#header .primary-menu > .menu-container > .menu-item > .menu-link {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* Move Website Builder and Pricing into More until the wide desktop layout. */
.menu-overflow-source {
	display: none;
}

.menu-overflow-item {
	display: list-item;
}

@media (max-width: 767.98px) {
	#header .menu-overflow-source {
		display: list-item;
	}

	#header .menu-overflow-item {
		display: none;
	}
}

@media (min-width: 900px) and (max-width: 1439.98px) {
	#header .menu-overflow-source {
		display: list-item;
	}

	#header .menu-overflow-item {
		display: none;
	}
}

@media (min-width: 1440px) {
	#header .container {
		padding-right: 0 !important;
	}

	#header .primary-menu > .menu-container > .menu-item > .menu-link {
		padding-left: 8px;
		padding-right: 8px;
	}

	#header .menu-overflow-source {
		display: list-item;
	}

	#header .menu-overflow-item {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1439.98px) {
	#header,
	#header-wrap,
	#header .header-wrap-clone {
		height: 210px;
	}

	#header .header-row {
		height: 210px;
		flex-wrap: wrap;
	}

	#header .header-misc {
		order: 2;
		margin-left: auto;
	}

	#header .primary-menu {
		order: 3;
		flex: 0 0 100%;
		margin-left: 0;
	}

	#header .primary-menu > .menu-container > .menu-item > .mega-menu-content,
	#header .primary-menu > .menu-container > .menu-item > .sub-menu-container {
		max-height: calc(100vh - 210px);
		overflow-x: hidden;
		overflow-y: auto;
	}
}

@media (min-width: 1440px) {
	#header .primary-menu > .menu-container > .menu-item > .mega-menu-content,
	#header .primary-menu > .menu-container > .menu-item > .sub-menu-container {
		max-height: calc(100vh - 105px);
		overflow-x: hidden;
		overflow-y: auto;
	}
}


#header #header-wrap {
	box-shadow: 0 3px 12px rgba(18, 51, 75, .09);
}

#header .primary-menu :is(.sub-menu-container, .mega-menu-content) .menu-link:hover,
#header .primary-menu :is(.sub-menu-container, .mega-menu-content) .menu-link:focus-visible {
	background-color: #12334b;
	color: #fff !important;
}

#header .primary-menu :is(.sub-menu-container, .mega-menu-content) .menu-link:is(:hover, :focus-visible) :is(span, p, div, i, svg) {
	color: #fff !important;
}

#header .primary-menu :is(.sub-menu-container, .mega-menu-content) .menu-link:is(:hover, :focus-visible) svg,
#header .primary-menu :is(.sub-menu-container, .mega-menu-content) .menu-link:is(:hover, :focus-visible) svg [fill]:not([fill="none"]):not([fill="#ffffff"]) {
	fill: #fff;
}

#header .primary-menu :is(.sub-menu-container, .mega-menu-content) .menu-link:is(:hover, :focus-visible) svg[fill="none"] {
	fill: none;
	stroke: #fff;
}

.footer-widgets-wrap svg {
	margin-top: 4px;
}

/* Official CTA system. The site ID wins over legacy page-local rules without
   changing functional classes. Keep disclosure, media and navigation controls out. */
html#official-site :is(body, #wrapper) :where(.button, a.btn:not(.btn-link):not(.square):not([data-bs-toggle]), button.btn:not(.toggle-password):not(.square):not([data-bs-toggle]), input[type="submit"], input[type="reset"]) {
	--official-button-bg: #0d72b0;
	--official-button-color: #fff;
	--official-button-border: #0d72b0;
	--official-button-hover-bg: #095c8f;
	--official-button-hover-color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	height: auto;
	max-width: 100%;
	padding: 12px 22px;
	border: 1px solid var(--official-button-border);
	border-radius: 8px;
	background: var(--official-button-bg);
	color: var(--official-button-color);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	white-space: normal;
	vertical-align: middle;
	box-shadow: none;
	text-shadow: none;
	transform: none;
	animation: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
}

html#official-site :is(body, #wrapper) :is(.button.button-border, .button.button-light, .button.about-secondary, .button.es-btn-ghost, .button.ps-btn-ghost, a.btn[class*="btn-outline-"], a.btn.btn-light, a.btn.btn-secondary) {
	--official-button-bg: #fff;
	--official-button-color: #12334b;
	--official-button-border: #91b5cd;
	--official-button-hover-bg: #e5f1f9;
	--official-button-hover-color: #12334b;
}

html#official-site :is(body, #wrapper) .button.button-full.footer-stick {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 30px 0;
	border: 0;
	border-radius: 0;
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 400;
	line-height: 1.6;
	white-space: normal;
}

html#official-site :is(body, #wrapper) .button.button-full.footer-stick svg {
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
}

html#official-site :is(body, #wrapper) .pricing-box.is-selected .plan-button {
	--official-button-bg: #e1eff8;
	--official-button-color: #12334b;
	--official-button-border: #91b5cd;
	--official-button-hover-bg: #d1e6f4;
	--official-button-hover-color: #12334b;
}

/* White secondary surfaces remain readable on both light and dark sections. */
html#official-site :is(body, #wrapper) :is(.button, a.btn:not(.btn-link):not(.square):not([data-bs-toggle]), button.btn:not(.toggle-password):not(.square):not([data-bs-toggle]), input[type="submit"], input[type="reset"]):hover {
	background: var(--official-button-hover-bg);
	color: var(--official-button-hover-color);
	border-color: #0d72b0;
	box-shadow: none;
	transform: none;
	opacity: 1;
}

html#official-site :is(body, #wrapper) :is(.button, a.btn:not(.btn-link):not(.square):not([data-bs-toggle]), button.btn:not(.toggle-password):not(.square):not([data-bs-toggle]), input[type="submit"], input[type="reset"]):focus-visible {
	/* The framework globally removes focused outlines with !important. */
	outline: 3px solid #0d72b0 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff;
}

html#official-site :is(body, #wrapper) :is(.button, a.btn, button.btn, input[type="submit"], input[type="reset"]):is(:disabled, [aria-disabled="true"], .disabled) {
	opacity: .65;
	cursor: not-allowed;
	pointer-events: none;
}

/* Preserve the first label and its icons, hide only the alternate flip label. */
html#official-site :is(body, #wrapper) .button .button-inner,
html#official-site :is(body, #wrapper) .button .button-inner > span {
	position: static;
	display: inline;
	transform: none;
	animation: none;
	transition: none;
	opacity: 1;
}
html#official-site :is(body, #wrapper) .button .button-inner > span ~ span {
	display: none;
}
html#official-site :is(body, #wrapper) .button :is(i, svg) {
	flex-shrink: 0;
	animation: none;
	transform: none;
	transition: none;
}
html#official-site :is(body, #wrapper) .button i {
	margin: 0;
}

/* The theme forces transparent borders for this legacy hover variant. */
html#official-site :is(body, #wrapper) .button.button-border:hover {
	border-color: #0d72b0 !important;
}

/* Bootstrap spacing/color utilities use !important in the framework. */
html#official-site :is(body, #wrapper) :is(.button, a.btn:not(.btn-link):not(.square):not([data-bs-toggle])):is([class*="px-"], [class*="py-"]) {
	padding: 12px 22px !important;
}
html#official-site :is(body, #wrapper) .button:is(.bg-white, .text-dark, .text-white) {
	background-color: var(--official-button-bg) !important;
	color: var(--official-button-color) !important;
}
html#official-site :is(body, #wrapper) .button:is(.bg-white, .text-dark, .text-white):hover {
	background-color: var(--official-button-hover-bg) !important;
	color: var(--official-button-hover-color) !important;
}
@media (prefers-reduced-motion: reduce) {
	html#official-site :is(body, #wrapper) :is(.button, .btn) { transition: none; }
}
