/* Accreditation Bar for Elementor — base + animation styles.
   Colors, sizes and spacing are overridden by the widget's Style controls. */

.ab-bar,
.ab-bar *,
.ab-bar *::before,
.ab-bar *::after {
	box-sizing: border-box;
}

.ab-bar {
	--ab-gap: 12px;
	--ab-accent: #1b2f5b;
	--ab-accent-text: #ffffff;

	width: 100%;
	background-color: #f1f6ef;
	border-bottom: 1px solid #dfe5dc;
	padding: 22px 24px;
	font-family: inherit;
}

.ab-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ab-gap);
}

.ab-label {
	margin-right: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #1b2f5b;
	white-space: nowrap;
}

.ab-item {
	display: flex;
}

.ab-pill {
	position: relative;
	display: inline-block;
	padding: 9px 20px;
	background-color: #ffffff;
	border: 1px solid #d5dbd3;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: #1b2f5b;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
		box-shadow 0.25s ease,
		border-color 0.2s ease,
		background-color 0.2s ease,
		background-size 0.35s ease,
		color 0.2s ease;
}

a.ab-pill:focus-visible {
	outline: 2px solid var(--ab-accent);
	outline-offset: 2px;
}

/* =========================================================
   HOVER / CURSOR EFFECTS
   ========================================================= */

/* Lift */
.ab-hover-lift .ab-pill:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px color-mix(in srgb, var(--ab-accent) 18%, transparent);
}

/* Pop */
.ab-hover-pop .ab-pill:hover {
	transform: scale(1.08);
}

/* Glow */
.ab-hover-glow .ab-pill:hover {
	border-color: var(--ab-accent);
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--ab-accent) 12%, transparent),
		0 0 18px color-mix(in srgb, var(--ab-accent) 35%, transparent);
}

/* Fill sweep */
.ab-hover-fill .ab-pill {
	background-image: linear-gradient(var(--ab-accent), var(--ab-accent));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
}
.ab-hover-fill .ab-pill:hover {
	background-size: 100% 100%;
	color: var(--ab-accent-text);
	border-color: var(--ab-accent);
}

/* 3D tilt (cursor position set by JS) */
.ab-hover-tilt .ab-pill {
	transform: perspective(300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition:
		transform 0.12s linear,
		box-shadow 0.25s ease,
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}
.ab-hover-tilt .ab-pill:hover {
	box-shadow: 0 8px 16px color-mix(in srgb, var(--ab-accent) 18%, transparent);
}

/* Magnetic: badges drift toward the cursor (set by JS) */
.ab-hover-magnetic .ab-pill {
	transform: translate(var(--tx, 0px), var(--ty, 0px));
	transition:
		transform 0.18s ease-out,
		box-shadow 0.25s ease,
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}
.ab-hover-magnetic .ab-pill:hover {
	border-color: var(--ab-accent);
}

/* Dock zoom: nearby badges grow like the macOS dock (set by JS) */
.ab-hover-dock .ab-pill {
	transform: scale(var(--s, 1));
	transition:
		transform 0.15s ease-out,
		box-shadow 0.25s ease,
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}
.ab-hover-dock .ab-pill:hover {
	border-color: var(--ab-accent);
	box-shadow: 0 6px 14px color-mix(in srgb, var(--ab-accent) 18%, transparent);
}

/* Spotlight: a soft light follows the cursor inside the badge */
.ab-hover-spotlight .ab-pill {
	isolation: isolate;
	overflow: hidden;
}
.ab-hover-spotlight .ab-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.2s ease;
	background: radial-gradient(
		circle 70px at var(--mx, 50%) var(--my, 50%),
		color-mix(in srgb, var(--ab-accent) 28%, transparent),
		transparent 70%
	);
}
.ab-hover-spotlight .ab-pill:hover {
	border-color: var(--ab-accent);
}
.ab-hover-spotlight .ab-pill:hover::before {
	opacity: 1;
}

/* =========================================================
   IDLE MOTION
   ========================================================= */

/* Float: gentle bobbing, each badge out of step */
.ab-idle-float .ab-pill {
	animation: ab-float 3.2s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * -0.45s);
}

@keyframes ab-float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -4px; }
}

/* Shimmer: a light streak passes over each badge in turn */
.ab-idle-shimmer .ab-pill {
	overflow: hidden;
}
.ab-idle-shimmer .ab-pill::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	pointer-events: none;
	background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--ab-accent) 16%, transparent), transparent);
	animation: ab-shimmer 5s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 0.35s);
}

@keyframes ab-shimmer {
	0%        { left: -60%; }
	35%, 100% { left: 130%; }
}

/* =========================================================
   ENTRANCE (plays once when the bar scrolls into view)
   ========================================================= */

.ab-layout-wrap.ab-js:not(.ab-enter-none):not(.ab-in-view) .ab-item {
	opacity: 0;
}

.ab-layout-wrap.ab-in-view:not(.ab-enter-none) .ab-item {
	animation-duration: 0.6s;
	animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
	animation-fill-mode: both;
	animation-delay: calc(var(--i, 0) * var(--ab-stagger, 80ms));
}

.ab-layout-wrap.ab-in-view.ab-enter-fade       .ab-item { animation-name: ab-enter-fade; }
.ab-layout-wrap.ab-in-view.ab-enter-fade-up    .ab-item { animation-name: ab-enter-fade-up; }
.ab-layout-wrap.ab-in-view.ab-enter-zoom       .ab-item { animation-name: ab-enter-zoom; }
.ab-layout-wrap.ab-in-view.ab-enter-slide-left .ab-item { animation-name: ab-enter-slide-left; }
.ab-layout-wrap.ab-in-view.ab-enter-drop       .ab-item { animation-name: ab-enter-drop; }

@keyframes ab-enter-fade       { from { opacity: 0; } to { opacity: 1; } }
@keyframes ab-enter-fade-up    { from { opacity: 0; translate: 0 16px; }  to { opacity: 1; translate: 0 0; } }
@keyframes ab-enter-zoom       { from { opacity: 0; scale: 0.6; }         to { opacity: 1; scale: 1; } }
@keyframes ab-enter-slide-left { from { opacity: 0; translate: -28px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ab-enter-drop       { from { opacity: 0; translate: 0 -20px; } to { opacity: 1; translate: 0 0; } }

/* =========================================================
   SCROLLING TICKER LAYOUT
   ========================================================= */

.ab-layout-marquee .ab-marquee {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	padding: 10px 0;
	margin: -10px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.ab-track {
	display: flex;
	width: max-content;
	animation: ab-marquee 30s linear infinite;
}

.ab-dir-right .ab-track {
	animation-direction: reverse;
}

.ab-set {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--ab-gap);
	padding-right: var(--ab-gap);
	min-width: var(--ab-min, 0px);
}

.ab-pause .ab-marquee:hover .ab-track {
	animation-play-state: paused;
}

@keyframes ab-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 767px) {
	.ab-bar {
		padding: 18px 16px;
	}
	.ab-label {
		width: 100%;
		margin-right: 0;
		white-space: normal;
	}
	.ab-layout-marquee .ab-marquee {
		flex-basis: 100%;
	}
	.ab-layout-wrap .ab-pill {
		white-space: normal;
		padding: 8px 16px;
	}
}

/* =========================================================
   REDUCED MOTION: respect the visitor's system setting
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.ab-track {
		animation: none;
	}
	.ab-layout-marquee .ab-marquee {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.ab-set[aria-hidden="true"] {
		display: none;
	}
	.ab-item,
	.ab-pill,
	.ab-pill::before,
	.ab-pill::after {
		animation: none !important;
		transition: none !important;
	}
	.ab-item {
		opacity: 1 !important;
	}
	.ab-pill::after {
		display: none;
	}
}
