/* FOS header account — subtle utility-bar text control (beats Elementor kit button styles) */

.elementor-element-f0sstudents {
	display: none !important;
}

.fos-ha {
	--fos-ha-navy: #0a1628;
	--fos-ha-crimson: #8c031c;
	--fos-ha-muted: #94a3b8;
	--fos-ha-text: #e2e8f0;
	--fos-ha-text-strong: #f8fafc;
	--fos-ha-font: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 12px;
	font-family: var(--fos-ha-font);
	z-index: 30;
}

.fos-ha.fos-ha--pending {
	/* Visible fallback until JS moves into the utility bar */
	position: fixed;
	top: 10px;
	right: 16px;
	z-index: 9999;
	margin: 0;
	padding: 4px 8px;
	background: rgba(10, 22, 40, 0.92);
	border-radius: 4px;
}

/* Higher specificity than .elementor-kit-10 button / Hello theme button resets */
.fos-ha a.fos-ha__login,
.fos-ha button.fos-ha__toggle {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	color: var(--fos-ha-text) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: left;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.fos-ha a.fos-ha__login:hover,
.fos-ha a.fos-ha__login:focus-visible,
.fos-ha button.fos-ha__toggle:hover,
.fos-ha button.fos-ha__toggle:focus-visible {
	color: var(--fos-ha-text-strong) !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	outline: none;
	opacity: 1;
}

.fos-ha button.fos-ha__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.fos-ha button.fos-ha__toggle::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 4px solid currentColor;
	opacity: 0.55;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.fos-ha button.fos-ha__toggle:hover::after,
.fos-ha button.fos-ha__toggle:focus-visible::after {
	opacity: 0.85;
}

.fos-ha.is-open button.fos-ha__toggle::after {
	transform: rotate(180deg);
}

.fos-ha__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(10, 22, 40, 0.12);
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(10, 22, 40, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 1000;
}

.fos-ha.is-open .fos-ha__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fos-ha__menu a {
	display: block;
	padding: 9px 14px;
	color: var(--fos-ha-navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.fos-ha__menu a:hover,
.fos-ha__menu a:focus-visible {
	background: #f4f5f6;
	color: var(--fos-ha-crimson);
	outline: none;
}

.fos-ha__menu .fos-ha__sep {
	height: 1px;
	margin: 4px 0;
	background: rgba(10, 22, 40, 0.1);
	list-style: none;
	padding: 0;
}

.fos-ha__menu .fos-ha__logout a {
	color: var(--fos-ha-crimson);
	font-weight: 700;
}

/* Utility bar host: keep control on the right with contact info */
.elementor-element-cc44a18 .e-con-inner {
	position: relative;
}

.elementor-element-1db9dda .elementor-widget-container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px 0;
}

.elementor-element-1db9dda .elementor-widget-container > p {
	margin: 0;
}

@media (max-width: 767px) {
	.fos-ha {
		margin-left: 0;
		margin-top: 4px;
		width: 100%;
		justify-content: center;
	}

	.fos-ha__menu {
		left: 50%;
		right: auto;
		transform: translate(-50%, -4px);
	}

	.fos-ha.is-open .fos-ha__menu {
		transform: translate(-50%, 0);
	}

	.elementor-element-1db9dda .elementor-widget-container {
		flex-direction: column;
		justify-content: center;
	}
}
