/* ==============================
   Elementor Section Circles Navigator v1.1
   ============================== */

.esn-wrapper {
	position: relative;
	width: 100%;
	z-index: 99;
}

/* ----- باکس ناوبری دایره‌ای ----- */
.esn-nav-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #ffffff;
	border-radius: 50px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	max-width: fit-content;
	margin: 0 auto 30px;
}

.esn-nav-wrapper.is-sticky {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	animation: esn-fade-in 0.35s ease;
}

@keyframes esn-fade-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-12px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

.esn-nav-placeholder {
	display: none;
	width: 100%;
}

.esn-nav-placeholder.is-active {
	display: block;
}

.esn-circles-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ----- دایره‌ها ----- */
.esn-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #dddddd;
	background-color: #f0f0f0;
	color: #333333;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0;
	outline: none;
	line-height: 1;
	user-select: none;
}

.esn-circle:hover,
.esn-circle.is-active {
	background-color: #2271b1;
	border-color: #2271b1;
	color: #ffffff;
	transform: scale(1.08);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.35);
}

.esn-circle:focus-visible {
	outline: 3px solid rgba(34, 113, 177, 0.4);
	outline-offset: 2px;
}

.esn-number {
	display: block;
}

/* ----- نقاط عمودی کنار صفحه ----- */
.esn-vertical-dots {
	position: fixed;
	top: 40%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	z-index: 9998;
	padding: 12px 8px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	border-radius: 30px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.esn-vertical-dots.esn-dots-right {
	right: 24px;
}

.esn-vertical-dots.esn-dots-left {
	left: 24px;
}

.esn-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #cccccc;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.25s ease;
	outline: none;
}

.esn-dot:hover {
	transform: scale(1.3);
	background-color: #999999;
}

.esn-dot.is-active {
	background-color: #2271b1;
	transform: scale(1.4);
	box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.25);
}

.esn-dot:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* ----- محتوای بخش‌ها ----- */
.esn-sections-content {
	width: 100%;
}

.esn-section {
	width: 100%;
	scroll-margin-top: 100px; /* برای اسکرول نرم بهتر */
}

.esn-section-placeholder {
	font-family: inherit;
}

/* ----- ریسپانسیو ----- */
@media (max-width: 767px) {
	.esn-nav-wrapper {
		margin-bottom: 20px;
		padding: 8px 12px !important;
	}

	.esn-circle {
		width: 40px !important;
		height: 40px !important;
		font-size: 14px;
	}

	.esn-vertical-dots {
		display: none;
	}

	.esn-nav-wrapper.is-sticky {
		top: 10px;
		width: calc(100% - 24px);
		max-width: 360px;
	}
}

/* حالت ویرایشگر */
.elementor-editor-active .esn-vertical-dots {
	opacity: 0.6;
	pointer-events: none;
}
