.wb-reader {
	display: flex;
	align-items: flex-start;
	width: 100%;
	height: 900px;
	border-top: 1px solid rgba(13, 27, 42, .08);
}

.wb-reader__sidebar {
	width: 20%;
	flex: 0 0 20%;
	position: sticky;
	top: 0;
	align-self: stretch;
	background: #F6F1E9;
	padding: 44px 0;
	height: 100%;
	overflow-y: auto;
	border-left: 1px solid rgba(13, 27, 42, .08);
	box-sizing: border-box;
}

.wb-reader__sidebar-label {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: rgba(13, 27, 42, .45);
	padding: 0 20px 18px;
}

.wb-reader__chapter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wb-reader__chapter-list li {
	margin: 0 0 12px;
	padding: 0 20px;
}

.wb-reader__chapter-list li:last-child {
	margin-bottom: 0;
}

.wb-reader__chapter-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 15px 20px;
	border: 0 !important;
	border-right: 3px solid transparent !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	outline: none;
	background: transparent !important;
	cursor: pointer;
	text-align: right;
	font-family: "Figtree", sans-serif;
	font-size: 17px;
	color: rgba(13, 27, 42, .62) !important;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.wb-reader__chapter-btn:hover {
	background: rgba(233, 180, 76, .1) !important;
	color: #1A2A40 !important;
}

.wb-reader__chapter-btn:focus-visible {
	outline: 2px solid #1A2A40;
	outline-offset: -2px;
}

.wb-reader__chapter-btn.is-active,
.wb-reader__chapter-btn.is-active:hover,
.wb-reader__chapter-btn.is-active:focus {
	background: #1A2A40 !important;
	border-right-color: #E9B44C !important;
	color: #F6F1E9 !important;
	font-weight: 600;
}

.wb-reader__chapter-num {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #C7952E;
	min-width: 20px;
	flex-shrink: 0;
}

.wb-reader__chapter-btn.is-active .wb-reader__chapter-num {
	color: #E9B44C;
}

.wb-reader__chapter-title {
	line-height: 1.4;
	font-size: 20px;
	font-weight: 700;
}

.wb-reader__content {
	width: 80%;
	flex: 0 0 80%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 56px 32px;
	box-sizing: border-box;
	transition: opacity .18s ease;
}

.wb-reader__content.wb-reader__loading {
	opacity: .35;
	pointer-events: none;
}

.wb-reader__content-inner {
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.wb-reader__chapter-heading {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 38px;
	color: #1A2A40;
	margin: 0 0 30px;
	position: relative;
	display: block;
	text-align: center;
	padding-bottom: 14px;
	flex-shrink: 0;
}

.wb-reader__chapter-heading::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 48px;
	height: 3px;
	background: #C7A235;
	border-radius: 2px;
}

.wb-reader__body {
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Figtree", sans-serif;
	font-size: 19px;
	line-height: 2.05;
	color: #0D1B2A;
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
}

.wb-reader__body[dir="rtl"] {
	text-align: right;
}

.wb-reader__body p {
	margin: 0 0 1.4em;
	text-align: justify !important;
}

.wb-reader__body p:last-child {
	margin-bottom: 0;
}

.wb-reader__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-shrink: 0;
	padding-top: 30px;
	margin-top: 30px;
	border-top: 1px solid rgba(13, 27, 42, .08);
	background: #fff;
}

.wb-reader__page-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	direction: ltr;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid rgba(13, 27, 42, .16);
	background: #FFFFFF;
	color: #1A2A40;
	font-weight: 600;
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	cursor: pointer;
	transition: all .2s ease;
}

.wb-reader__page-btn:hover:not(:disabled) {
	background: #1A2A40;
	color: #F6F1E9;
	border-color: #1A2A40;
}

.wb-reader__page-btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.wb-reader__page-status {
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	color: rgba(13, 27, 42, .55);
	min-width: 110px;
	text-align: center;
}

.wb-reader-empty {
	padding: 60px 28px;
	text-align: center;
	font-family: "Figtree", sans-serif;
	color: rgba(13, 27, 42, .55);
}

@media (max-width: 900px) {
	.wb-reader {
		flex-direction: column;
		height: auto;
	}

	.wb-reader__sidebar,
	.wb-reader__content {
		width: 100%;
		flex-basis: auto;
		position: static;
		min-height: auto;
		height: auto;
		overflow: visible;
		display: block;
	}

	.wb-reader__content-inner {
		height: auto;
	}

	.wb-reader__body {
		flex: none;
		overflow-y: visible;
	}

	.wb-reader__sidebar {
		border-left: 0;
		border-bottom: 1px solid rgba(13, 27, 42, .08);
		padding: 22px 0;
	}

	.wb-reader__chapter-list {
		display: flex;
		overflow-x: auto;
		gap: 10px;
		padding: 0 16px;
	}

	.wb-reader__chapter-list li {
		margin: 0;
		padding: 0;
		flex-shrink: 0;
	}

	.wb-reader__chapter-btn {
		white-space: nowrap;
		border-right: 0 !important;
		border-bottom: 3px solid transparent !important;
		padding: 12px 18px;
	}

	.wb-reader__chapter-btn.is-active,
	.wb-reader__chapter-btn.is-active:hover,
	.wb-reader__chapter-btn.is-active:focus {
		border-bottom-color: #E9B44C !important;
	}

	.wb-reader__content {
		padding: 34px 22px;
	}

	.wb-reader__chapter-heading {
		font-size: 26px;
	}

	.wb-reader__body {
		font-size: 17px;
	}
}
