/*
 * Kilagbe Shared Notice Bar -- placement-safety rules only.
 * The real design (background, padding, border, colors, font) comes
 * from post 46's own generated Elementor CSS file, enqueued alongside
 * this one in kilagbe-notice-bar.php. Nothing here duplicates that.
 */

/* Matches the megaphone-icon vertical-alignment fix that already exists
   for the Homepage's own copy (kilagbe-homepage-sidebar.php's
   `.elementor-46 .kilagbe-notice-icon .elementor-icon` rule, scoped
   there to Page ID 46 only) -- same rule, reused here under this
   wrapper so the injected copy matches exactly. */
.kilagbe-shared-notice-bar .kilagbe-notice-icon .elementor-icon {
	display: inline-flex;
	line-height: 1;
}

/* The injected fragment sits as a direct sibling of #content (outside
   any theme container), the same structural position the Homepage's
   own copy has relative to its header -- no extra width/position rules
   needed. This only guards against unexpected inherited margins from
   the surrounding theme markup. */
.kilagbe-shared-notice-bar {
	margin: 0;
}

/*
 * Font readability bump (2026-10-29). The underlying widget setting on
 * the source (post 46, widget ntc0002) was updated to font-weight 700 /
 * font-size 14px desktop / 13px mobile (was 600 / 13px / 12px), but
 * Elementor's own per-post generated CSS file (post-46.css) did not
 * reliably regenerate from this environment's non-editor write path
 * even after clearing its CSS cache metadata and forcing a fresh page
 * load -- a real limitation of this sandbox, not a design choice. This
 * explicit, scoped override guarantees the same visual result (bold,
 * slightly larger) regardless of that file's regeneration timing, and
 * costs nothing if the generated file does later catch up to match.
 * Font family (Hind Siliguri, inherited), text color (#0E4D38) and the
 * notice bar's background (#E6F2EC) are untouched.
 */
.elementor-element-ntc0002,
.elementor-element-ntc0002 p {
	font-weight: 700 !important;
	font-size: 14px !important;
}

@media (max-width: 767px) {
	.elementor-element-ntc0002,
	.elementor-element-ntc0002 p {
		font-size: 13px !important;
	}
}

/*
 * Running ticker (marquee), 2026-10-29. kilagbe-notice-bar.php's footer
 * script wraps ntc0002's existing text (never duplicated server-side --
 * the single source stays exactly one widget node) in a duplicated
 * .kilagbe-ticker-item pair at runtime, purely as a presentation layer.
 * The icon (ntc0003) is a separate sibling widget and is never touched,
 * so it stays fixed on the left while only this text scrolls.
 */
.elementor-element-ntc0002 .elementor-widget-container,
.elementor-element-ntc0002 {
	overflow: hidden;
}

.elementor-element-ntc0002 {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.kilagbe-ticker-track {
	display: inline-flex;
	width: max-content;
	white-space: nowrap;
	animation: kilagbe-ticker-scroll 26s linear infinite;
	will-change: transform;
}

.kilagbe-ticker-item {
	display: inline-block;
	white-space: nowrap;
	padding-right: 4rem;
}

.kilagbe-ticker-item p {
	margin: 0;
	display: inline;
	white-space: nowrap;
}

@keyframes kilagbe-ticker-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Respect prefers-reduced-motion: stop the animation and show the
   message as ordinary stationary, wrapping text -- the second
   (duplicate, aria-hidden) copy is hidden so only one legible block
   remains. */
@media (prefers-reduced-motion: reduce) {
	.kilagbe-ticker-track {
		animation: none !important;
		transform: none !important;
		display: block !important;
		width: auto !important;
	}

	.kilagbe-ticker-item {
		display: block !important;
		white-space: normal !important;
		padding-right: 0 !important;
	}

	.kilagbe-ticker-item p {
		white-space: normal !important;
	}

	.kilagbe-ticker-item:nth-of-type(2) {
		display: none !important;
	}
}
