.loader {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top: 2px solid var(--primary);
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.glossary-search-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
}
.glossary-search {
	flex: 0 0 calc(100% - 130px);
	position: relative;
}
.glossary-search .icon-search {
	position: absolute;
	left: 13px;
	top: 28px;
	font-size: 20px;
	color: #555555;
}
#glossary-search {
	border: 1px solid #EBEBEB;
	height: 76px;
	border-radius: 24px;
	box-shadow: 0px 0px 84px 0px #0533E60D inset;
	width: 100%;
	padding: 5px 30px 5px 40px;
	transition: 0.4s ease;
}
#glossary-search::placeholder {
	color: #B9B9C5;
	font-size: 14px;
}
#glossary-search:focus {
	border-color: #8189A8;
}
.glossary-search .icon-remove {
	display: none;
	cursor: pointer;
	position: absolute;
	right: 13px;
	top: 33px;
	color: red;
	font-size: 13px;
}
.letters-mobile {
	position: relative;
}
.letters-mobile .icon-sort {
	position: absolute;
	top: 29px;
	left: 13px;
	color: #555555;
	font-size: 18px;
	z-index: 1;
	pointer-events: none;
}
.glossary-dropdown option {
	color: #333;
}
.glossary-dropdown {
	background: #fff;
	border: 1px solid #EBEBEB;
	box-shadow: 0px 0px 84px 0px #0533E60D inset;
	width: 117px;
	height: 76px;
	border-radius: 20px;
	padding-left: 40px;
	padding-right: 10px;
	color: #B9B9C5;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	/* SVG as background */
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.66667 5L10.3333 1' stroke='%231C274C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 6px;
}
.glossary-tags {
	display: flex;
	overflow: auto;
	gap: 12px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	overflow-x: scroll;
	position: relative;
}
.glossary-tags::-webkit-scrollbar {
	display: none;
}
.glossary-tags.dragging {
	cursor: grabbing;
	user-select: none;
}
.glossary-tags {
	cursor: grab;
}
.glossary-tags-wrap {
	overflow: hidden;
	position: relative;
}
.glossary-tags-wrap::after {
	content: '';
	width: 50px;
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	background:
			linear-gradient(to right, #fff0,#fff);
	pointer-events: none;
}
.glossary-tag {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0px 0px 44px 0px #0533E61A inset;
	height: 47px;
	border-radius: 12px;
	min-width: 116px;
	color: #0E1448;
	cursor: pointer;
	transition: 0.4s ease;
}
.glossary-tag:hover {
	background: #8189A8;
	box-shadow: none;
	color: #fff;
}
.glossary-nav {
	display: flex;
	gap: 30px;
	margin: 40px 0 72px;
}
.glossary-nav a {
	color: #8189A8;
	font-size: 24px;
	line-height: 220%;
	min-width: 35px;
	text-align: center;
	transition: 0.4s ease;
}
.glossary-nav a.active,
.glossary-nav a:hover {
	color: var(--primary);
}
.glossary-section {
	display: grid;
	gap: 24px;
	margin-bottom: 80px;
}
.glossary-list {
	overflow: hidden;
	transition: 0.7s ease;
}
.nav-letter-wrap {
	position: relative;
}
.nav-letter {
	min-width: 64px;
	height: 64px;
	border-radius: 10px;
	display: inline-flex;
	background: linear-gradient(219.93deg, rgba(5, 51, 230, 0.126) 17.5%, rgba(88, 247, 163, 0.07) 106.54%);
	justify-content: center;
	align-items: center;
	line-height: 1;
	backdrop-filter: blur(53.846153259277344px);
	color: #8189A8;
	font-size: 30px;
	font-variation-settings: "wght" 500, "wdth" 100;
	position: sticky;
	top: 0;
}

/* Additional CSS to hide nav letters that should be hidden */
.glossary-list-wrap .glossary-list {
	overflow: hidden;
}

.glossary-list-wrap.expanded .glossary-list {
	overflow: visible;
}
.nav-letter.stuck {
	color: var(--primary);
}
/* Make sure sticky elements respect the overflow constraint */
.nav-letter.stuck,
.nav-letter.stuck-bottom {
	visibility: inherit;
}

.glossary-section:not(:visible) .nav-letter {
	display: none !important;
}
/* Fix overflow and sticky positioning */
.glossary-list {
	position: relative;
	overflow: hidden !important;
}

.glossary-list-wrap.expanded .glossary-list {
	overflow: visible !important;
}



/* Hide nav letters when sections are hidden */
.glossary-section:not(:visible) .nav-letter {
	display: none !important;
}

.no-results {
	display: none;
	padding: 12px;
	text-align: center;
	font-size: 16px;
	color: #b00707d4;
	width: 100%;
	margin: 0 0 16px;
	border-top: 1px solid #e11919;
	border-bottom: 1px solid #e11919;
}

/* Make the button properly visible */
.glossary-toggle-btn {
	display: block;
	position: relative;
	z-index: 3;
	margin-top: 15px;
}

.glossary-section ul {
	display: grid;
	gap: 32px;
}
.glossary-item {
	position: relative;
	padding: 12px 0 12px 27px;
}
.glossary-item::before {
	content: '';
	width: 7px;
	height: 100%;
	border-radius: 2px;
	position: absolute;
	left: 0;
	top: 0;
	background: linear-gradient(180deg, #CEEEF3 0%, #CBDBF9 100%);
	background-size: 200% 200%;
	animation: gradientPulse 3s infinite ease-in-out;
	transition: 0.4s ease-in;
	background-position: 100% 100%;
}
.glossary-item-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.like-button {
	background: #FFFFFF;
	border: 1px solid #EBEBEB;
	box-shadow: 0px 0px 73.29px 0px #0533E60D inset;
	border-radius: 21px;
	outline: none;
	min-width: 78px;
	height: 37px;
	color: #02021E;
	font-size: 17px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	transition: 0.4s ease;
}
.like-button:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.like-button.liked {
	border-color: var(--primary);
	color: var(--primary);
}
.glossary-toggle-btn {
	margin: auto;
	display: flex;
}
.glossary-list-wrap.expand::after {
	content: '';
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFF 66.1%);
	position: absolute;
	bottom: 0;
	height: 200px;
	display: block;
	left: 0;
	right: 0;
}
.glossary-content {
	color: #02021E;
	font-size: 14px;
	line-height: 2.2;
	margin-bottom: 32px;
}
.glossary-item .read-more {
	color: #8189A8;
	font-size: 16px;
	line-height: 1;
	font-variation-settings: "wght" 500, "wdth" 100;
	display: flex;
	align-items: center;
	gap: 8px;
}
.glossary-item:hover .read-more {
	color: var(--primary);
}
.glossary-item .read-more i {
	font-size: 6px;
	color: #02021E;
}
.glossary-item-head .title {
	font-size: 20px;
	line-height: 140%;
}
.glossary-item:hover .title a {
	color: var(--primary);
}

.glossary-main {
	margin-top: 12px;
	margin-bottom: 56px;
}
.next-post,
.prev-post {
	display: flex;
	flex-direction: column;
	box-shadow: 0px 0px 44px 0px #0533E61A inset;
	border-radius: 20px;
	padding: 19px 20px 18px;
	margin-bottom: 10px;
	font-variation-settings: "wght" 500, "wdth" 100;
}
.next-post i,
.prev-post i {
	color: #8481A8;
	font-size: 13px;
}
.single-sidebar {
	flex: 0 0 30%;
	position: sticky;
	padding: 34px 0 34px 30px;
	top: 112px;
	overflow: hidden;
}
.single-sidebar::before {
	content: '';
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, rgba(5, 51, 230, 0) 0%, #0533E6 40px, #0533E6 calc(100% - 40px), rgba(5, 51, 230, 0) 100%);
	box-shadow: 16px 0 50px 2px #C9DCF5;
	position: absolute;
	top: 0;
	left: 0;
}
.related-box .title {
	font-size: 18px;
	color: var(--color_main);
	font-variation-settings: "wght" 500, "wdth" 100;
	margin-bottom: 24px;
	display: block;
	line-height: 1.4;
}
.related-box ul {
	padding-left: 8px;
	margin-bottom: 32px;
}
.related-box ul a {
	padding-left: 16px;
	position: relative;
	font-size: 16px;
	color: var(--color_main);
	line-height: 1.4;
	text-transform: capitalize;
}
.related-box ul a::before {
	content: '';
	width: 6px;
	height: 6px;
	background:
			#8189A8;
	border-radius:
			50%;
	position: absolute;
	left: 0;
	top: 8px;
}
.related-box ul a:hover {
	color: var(--primary);
}
.related-box ul li {
	margin-bottom: 16px;
}
.related-box {
	position: relative;
}
.related-box::before {
	content: "\e912";
	font-family: icomoon;
	color: var(--primary);
	font-size: 24px;
	position: absolute;
	left: -40px;
	top: -12px;
}
.dropdown-selected {
	position: relative;
	width: 117px;
	background: #fff;
	border: 1px solid #EBEBEB;
	border-radius: 20px;
	box-shadow: 0px 0px 84px 0px #0533E60D inset;
	padding-left: 40px;
	padding-right: 10px;
	height: 76px;
	line-height: 76px;
	color: #B9B9C5;
	cursor: pointer;
	user-select: none;
	font-family: inherit;
}

.dropdown-selected::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.66667 5L10.3333 1' stroke='%231C274C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

.dropdown-options {
	display: none;
	position: absolute;
	top: 75%;
	left: 0;
	width: 100% ;
	border: 1px solid #EBEBEB;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: rgb(235, 235, 235);
	border-radius: 0 0 20px 20px;
	background: #fff;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1;
	box-shadow: 0px 0px 84px 0px #0533E60D inset;
	border-top: 0;
	
	text-align: center;
}

.dropdown-options li {
	padding: 10px 20px;
	cursor: pointer;
	color: var(--primary);
	line-height: 1.5;
}

.dropdown-options li:hover {
	background: #E0E5FC;
}

@media screen and (min-width: 768px) {
	.glossary-section {
		display: flex;
		gap: 21px;
	}
	.nav-letter {
		min-width: 120px;
		height: 120px;
		border-radius: 20px;
		font-size: 60px;
	}
	.nav-letter-wrap {
		min-width: 120px;
		min-height: 100%;
	}
	.glossary-search {
		flex: 0 0 35%;
	}
	.no-results {
		padding: 20px;
		font-size: 18px;
		margin: 30px 0;
	}
	.glossary-tag {
		height: 76px;
		border-radius: 24px;
		min-width: 164px;
	}
	.nav-letter.stuck {
		position: fixed;
		top: 112px;
	}
	.nav-letter.stuck-bottom {
		position: absolute;
		bottom: 0;
		top: auto;
	}
	.glossary-list-wrap.expand::after {
		height: 400px;
	}
	#glossary-search {
		padding: 5px 30px 5px 70px;
	}
	.glossary-search .icon-search {
		left: 38px;
	}
	.glossary-search .icon-remove {
		right: 38px;
	}
	.glossary-search-wrap {
		flex-wrap: nowrap;
	}
	.glossary-main {
		display: flex;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 144px;
	}

}

@media screen and (min-width: 992px) {
	.glossary-main {
		gap: 57px;
	}
	.nav-letter {
		min-width: 200px;
		height: 200px;
		border-radius: 30.77px;
		font-size: 88px;
	}
	.nav-letter-wrap {
		min-width: 200px;
	}
	.like-button {
		min-width: 89px;
	}
	.glossary-item-head {
		margin-bottom: 24px;
	}
	.glossary-item-head .title {
		font-size: 24px;
		line-height: 140%;
	}
	.glossary-content {
		font-size: 16px;
	}

}
