/* Image Hotspot Block */

.lrn-image-hotspot-sec .lrn-hotspot-intro {
	margin-bottom: 24px;
}

.lrn-hotspot-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.lrn-hotspot-image {
	display: block;
	max-width: 100%;
	height: auto;
}

.lrn-hotspot-point {
	position: absolute;
	transform: translate(-50%, -50%);
	line-height: normal;
	z-index: 2;
}

.lrn-hotspot-point--box {
	left: 0 !important;
	top: 0 !important;
	width: 100%;
	height: 100%;
	transform: none;
	pointer-events: none;
}

.lrn-hotspot-box-target {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.9);
	background: rgba(20, 107, 82, 0.22);
	cursor: pointer;
	pointer-events: auto;
}

.lrn-hotspot-box-target:hover,
.lrn-hotspot-box-target:focus-visible {
	background: rgba(20, 107, 82, 0.38);
}

.lrn-hotspot-box-target:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.lrn-hotspot-point--box .lrn-hotspot-popup {
	top: 50%;
	left: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
	pointer-events: auto;
}

.lrn-hotspot-point--box .lrn-hotspot-marker {
	pointer-events: auto;
}

.lrn-hotspot-point.is-open {
	z-index: 5;
}

.lrn-hotspot-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	cursor: pointer;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

.lrn-hotspot-marker--box {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 1;
	pointer-events: auto;
}

.lrn-hotspot-marker:hover,
.lrn-hotspot-marker:focus-visible {
	transform: scale(1.12);
}

.lrn-hotspot-marker:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.lrn-hotspot-icon-plus {
	position: relative;
	display: block;
	width: 50%;
	height: 50%;
}

.lrn-hotspot-icon-plus::before,
.lrn-hotspot-icon-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: currentColor;
}

.lrn-hotspot-icon-plus::before {
	width: 100%;
	height: 2px;
	transform: translate(-50%, -50%);
}

.lrn-hotspot-icon-plus::after {
	width: 2px;
	height: 100%;
	transform: translate(-50%, -50%);
}

.lrn-hotspot-icon-dot {
	display: block;
	width: 30%;
	height: 30%;
	border-radius: 50%;
	background-color: currentColor;
}

.lrn-hotspot-wrap.is-pulsing .lrn-hotspot-marker::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: inherit;
	opacity: 0.55;
	transform: translate(-50%, -50%);
	animation: lrn-hotspot-pulse 2.2s ease-out infinite;
	z-index: -1;
}

@keyframes lrn-hotspot-pulse {
	0% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.55;
	}
	100% {
		transform: translate(-50%, -50%) scale(2);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lrn-hotspot-wrap.is-pulsing .lrn-hotspot-marker::before {
		animation: none;
	}
	.lrn-hotspot-marker {
		transition: none;
	}
}

.lrn-hotspot-popup {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%);
	max-width: 80vw;
	padding: 16px 18px;
	border-radius: 6px;
	text-align: left;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	z-index: 6;
}

.lrn-hotspot-popup[hidden] {
	display: none;
}

.lrn-hotspot-popup::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -10px;
	border: 10px solid transparent;
	border-top-color: inherit;
}

.lrn-hotspot-point.is-flipped .lrn-hotspot-popup {
	bottom: auto;
	top: calc(100% + 14px);
}

.lrn-hotspot-point.is-flipped .lrn-hotspot-popup::after {
	top: auto;
	bottom: 100%;
	transform: rotate(180deg);
}

.lrn-hotspot-popup-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
	color: inherit;
}

.lrn-hotspot-popup-content,
.lrn-hotspot-popup-content p,
.lrn-hotspot-popup-content li {
	font-size: 15px;
	line-height: 1.5;
	color: inherit;
}

.lrn-hotspot-popup-content p:last-child {
	margin-bottom: 0;
}

.lrn-hotspot-popup-link {
	display: inline-block;
	margin-top: 10px;
	font-weight: 700;
	text-decoration: underline;
}

.lrn-hotspot-close {
	position: absolute;
	top: 4px;
	right: 6px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.lrn-hotspot-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 575.98px) {
	.lrn-hotspot-popup {
		width: 220px !important;
	}
}
