:root {
	--be-primary-clr: #5081f5;
	--be-primary-clr-rgb: 80, 129, 245;
	--be-primary-clr-dark: #2e5ac3;
	--be-secondary-clr: #ec980c;
	--be-secondary-clr-rgb: 236, 152, 12;
	--be-secondary-clr-dark: #bc7806;
	--be-red-clr: #f34e4e;
	--be-red-clr-rgb: 243, 78, 78;
	--be-green-clr: #37a04a;
	--be-green-clr-rgb: 55, 160, 74;
	--be-grey-clr: #757575;
	--be-grey-clr-rgb: 117, 117, 117;
	--be-border-clr: #eaecf0;
	--be-section-clr: #f4f4f4;

	--be-title-clr: #202636;
	--be-title-clr-rgb: 32, 38, 54;
	--be-font-clr: #4d5772;

	--be-toc-list-clr: #0a090b;
	--be-content-space-sm: clamp(1.25rem, 0.357rem + 2.381vw, 2.5rem);
	--be-content-space-md: clamp(2rem, 1.286rem + 1.905vw, 3rem);
	--be-content-space-lg: clamp(3.75rem, 2.857rem + 2.381vw, 5rem);
	--be-box-shadow: 0px 51px 40px -30px #21375247;

	--be-border-radius: 12px;
	--be-container-width: 1200px;
}

/* Unset theme container styles */

.be-single-post :where(.container, .rishi-container):has(.be-wrap) {
	all: unset !important;
}

.be-wrap .be-main__content-area #main {
	padding: 0;
}

.be-wrap .be-flow > :where(:not(:first-child)) {
	margin-top: var(--flow-space, 1rem);
}

.be-wrap .be-main__content-area ul:not([class*="is-style-be-list"]) {
	list-style: inherit;
}

.be-wrap
	.be-main__content-area:is(
		ul:not([class*="is-style-be-list"]),
		ol:not([class*="is-style-be-list"])
	) {
	margin: 0 0 1.5em 2em;
	padding: 0;
}

.be-wrap .be-main__content-area article .entry-content ul li::before,
.be-wrap .be-main__content-area article .entry-content ul li::after {
	content: none;
}

.be-wrap .be-main__content-area ul:not([class*="is-style-be-list"]) li {
	padding: 0;
}

/* BE single post styles */

.be-wrap .be-flex {
	--aside-width: 100%;
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.be-wrap .be-container {
	margin: 0 auto;
	width: min(100% - 30px, var(--be-container-width));
}

.be-wrap img {
	max-width: 100%;
	display: block;
	height: auto;
}

/* BE single post header */
.be-wrap .be-header {
	color: var(--be-font-clr);
	background: radial-gradient(
			circle at top right,
			rgba(var(--be-primary-clr-rgb), 0.01) 30%,
			rgba(var(--be-primary-clr-rgb), 0.05) 20px
		),
		radial-gradient(
			circle at top right,
			rgba(var(--be-primary-clr-rgb), 0.01) 40%,
			rgba(var(--be-primary-clr-rgb), 0.05) 20px
		),
		radial-gradient(
			circle at top right,
			rgba(var(--be-primary-clr-rgb), 0.01) 50%,
			rgba(var(--be-primary-clr-rgb), 0.05) 20px
		);
}

.be-wrap .be-header__inner {
	padding-block: 55px;
}

.be-wrap .be-header__inner:where(.be-flex) {
	align-items: center;
	flex-direction: column-reverse;
	padding-block: 55px;
	gap: clamp(2.5rem, -0.268rem + 7.381vw, 6.375rem);
}

.be-wrap .be-header__featured-media img {
	box-shadow: var(--be-box-shadow);
	border-radius: var(--be-border-radius);
}

.be-wrap .be-cat-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.be-wrap .be-cat-links a {
	padding-block: 3px;
	padding-inline: 12px;
	background-color: rgba(var(--be-primary-clr-rgb), 0.1);
	border-radius: 4px;
	color: var(--be-primary-clr);
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.42;
	transition: filter 0.25s ease-in-out;
}

.be-wrap .be-cat-links a:hover {
	filter: brightness(1.3);
}

.be-wrap .be-header__title {
	margin-block-end: 0;
	font-size: clamp(28px, 0.607rem + 2.381vw, 44px);
	line-height: 1.4;
	font-weight: 600;
	color: var(--be-title-clr);
}

.be-wrap .be-header__desc {
	font-size: 18px;
	line-height: 1.66;
	display: inline-block;
}

.be-wrap .be-header-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.be-wrap .be-header-meta > span {
	position: relative;
	font-size: 16px;
	line-height: 1.75;
	padding: 0;
	color: var(--be-font-clr);
}

.be-wrap .be-header-meta span > a {
	color: var(--be-primary-clr);
}

.be-wrap .be-header-meta span > a:hover {
	text-decoration: underline;
}

.be-wrap .be-header-meta span:not(:last-child) {
	--cat-space: 30px;
	margin: 0 var(--cat-space) 0 0;
}

.be-wrap .be-header-meta span:not(:last-child)::after {
	position: absolute;
	content: "";
	width: 5px;
	height: 5px;
	background-color: rgba(var(--be-title-clr-rgb), 0.24);
	aspect-ratio: 1;
	border-radius: 100%;
	top: 50%;
	transform: translateY(-50%) translateX(50%);
	right: calc(var(--cat-space) / -2);
}

/* BE main content */
.be-wrap .be-main__content:where(.be-flex) {
	flex-direction: column-reverse;
}

.be-wrap .be-main__content {
	margin-block-start: var(--be-content-space-md);
	margin-block-end: var(--be-content-space-lg);
}

@media only screen and (width >=768px) {
	.be-wrap .be-main__content-area #ez-toc-container {
		display: none;
		visibility: hidden;
	}

	.be-wrap .be-sticky {
		position: sticky;
		align-self: flex-start;
		top: 40px;
		z-index: 2;
		isolation: isolate;
	}

	.be-wrap .be-flex {
		flex-direction: row;
	}

	.be-wrap .be-header .be-flex {
		--aside-width: 34.17%;
	}

	.be-wrap .be-main__content.be-flex {
		--aside-width: 26%;
	}

	.be-wrap .be-flex__main {
		flex: auto;
		min-width: 0;
	}

	.be-wrap .be-flex__aside {
		flex: 0 0 var(--aside-width);
		max-width: var(--aside-width);
		width: 100%;
	}

	.be-cta-section .be-cta-wrap {
		border-block-start: 1px solid var(--be-border-clr);
		padding-block-start: 25px;
		padding-block-end: 16px;
	}

	.be-wrap .be-toc {
		box-shadow: 0px 16px 40px -16px rgba(25, 40, 63, 0.239);
		padding: 16px 16px 0 16px;
		border-radius: 8px;
	}
}

/* BE toc styles */
.be-wrap .ez-toc-title-container {
	display: flex;
	flex-direction: row-reverse;
	justify-content: start;
	align-items: center;
	gap: 8px;
	padding-block-end: 16px;
	border-block-end: 1px solid var(--be-border-clr);
}

.be-wrap .ez-toc-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--be-font-clr);
	display: block;
	width: 100%;
	position: relative;
	transition: color 0.25s ease-in-out;
}

.be-wrap .ez-toc-title:hover {
	color: var(--be-primary-clr);
}

.be-wrap .ez-toc-title::after {
	content: "";
	position: absolute;
	mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 15L12 9L6 15' stroke='%23101828' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E ");
	mask-repeat: no-repeat;
	mask-size: 24px;
	width: 24px;
	height: 24px;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
	background-color: currentColor;
	transition: transform 0.25s ease-in-out;
}

.be-wrap:has(.toc_close) .ez-toc-title::after {
	transform: translateY(-50%) rotate(180deg);
}

.be-wrap .ez-toc-icon-toggle-span svg {
	display: none;
}

.be-wrap .ez-toc-icon-toggle-span {
	position: relative;
	display: block;
}

.be-wrap .ez-toc-title-toggle > a {
	display: block;
	height: 24px;
	width: 24px;
}

.be-wrap .ez-toc-icon-toggle-span::before {
	content: url("data:image/svg+xml,%3Csvg width='23' height='20' viewBox='0 0 23 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='22.5' height='19.5' rx='3' fill='%23FFE082'/%3E%3Cpath d='M5 3.25H3.5C3.08579 3.25 2.75 3.58579 2.75 4V5.5C2.75 5.91421 3.08579 6.25 3.5 6.25H5C5.41421 6.25 5.75 5.91421 5.75 5.5V4C5.75 3.58579 5.41421 3.25 5 3.25Z' fill='%23039BE5'/%3E%3Cpath d='M18.5 5.5H8C7.80109 5.5 7.61032 5.42098 7.46967 5.28033C7.32902 5.13968 7.25 4.94891 7.25 4.75C7.25 4.55109 7.32902 4.36032 7.46967 4.21967C7.61032 4.07902 7.80109 4 8 4H18.5C18.6989 4 18.8897 4.07902 19.0303 4.21967C19.171 4.36032 19.25 4.55109 19.25 4.75C19.25 4.94891 19.171 5.13968 19.0303 5.28033C18.8897 5.42098 18.6989 5.5 18.5 5.5Z' fill='%23FFB74D'/%3E%3Cpath d='M5 8.5H3.5C3.08579 8.5 2.75 8.83579 2.75 9.25V10.75C2.75 11.1642 3.08579 11.5 3.5 11.5H5C5.41421 11.5 5.75 11.1642 5.75 10.75V9.25C5.75 8.83579 5.41421 8.5 5 8.5Z' fill='%23039BE5'/%3E%3Cpath d='M18.5 10.75H8C7.80109 10.75 7.61032 10.671 7.46967 10.5303C7.32902 10.3897 7.25 10.1989 7.25 10C7.25 9.80109 7.32902 9.61032 7.46967 9.46967C7.61032 9.32902 7.80109 9.25 8 9.25H18.5C18.6989 9.25 18.8897 9.32902 19.0303 9.46967C19.171 9.61032 19.25 9.80109 19.25 10C19.25 10.1989 19.171 10.3897 19.0303 10.5303C18.8897 10.671 18.6989 10.75 18.5 10.75Z' fill='%23FFB74D'/%3E%3Cpath d='M5 13.75H3.5C3.08579 13.75 2.75 14.0858 2.75 14.5V16C2.75 16.4142 3.08579 16.75 3.5 16.75H5C5.41421 16.75 5.75 16.4142 5.75 16V14.5C5.75 14.0858 5.41421 13.75 5 13.75Z' fill='%23039BE5'/%3E%3Cpath d='M18.5 16H8C7.80109 16 7.61032 15.921 7.46967 15.7803C7.32902 15.6397 7.25 15.4489 7.25 15.25C7.25 15.0511 7.32902 14.8603 7.46967 14.7197C7.61032 14.579 7.80109 14.5 8 14.5H18.5C18.6989 14.5 18.8897 14.579 19.0303 14.7197C19.171 14.8603 19.25 15.0511 19.25 15.25C19.25 15.4489 19.171 15.6397 19.0303 15.7803C18.8897 15.921 18.6989 16 18.5 16Z' fill='%23FFB74D'/%3E%3C/svg%3E%0A");
	position: absolute;
	top: 2px;
}

.be-wrap ul.ez-toc-list {
	margin: 16px 0 0 0 !important;
	padding: 0 0 16px 0 !important;
}

.be-wrap ul.ez-toc-list {
	max-height: 86dvh;
	overflow-y: auto;
	scrollbar-width: thin;
}

.be-wrap .be-toc:has(.be-cta-section) ul.ez-toc-list {
	max-height: 50dvh;
}

.be-wrap ul.ez-toc-list ul {
	margin-inline-start: 8px;
	padding: 0;
}

#ez-toc-container nav ul li a {
	display: block;
	margin-block-end: 6px;
}

.be-wrap ul.ez-toc-list li.ez-toc-heading-level-1 + li.ez-toc-heading-level-1 {
	margin-block-end: 16px;
}

.be-wrap ul.ez-toc-list li {
	color: var(--be-toc-list-clr);
	--marker-icon: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9L5 5L1 1' stroke='%23101828' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E ");
}

.be-wrap ul.ez-toc-list li:not(.ez-toc-heading-level-2) {
	padding-inline-start: 14px;
}

.be-wrap ul.ez-toc-list li:not(.ez-toc-heading-level-2)::marker {
	content: var(--marker-icon);
}

.be-wrap ul.ez-toc-list li.ez-toc-heading-level-2 {
	list-style: none;
}

.be-wrap ul.ez-toc-list li.ez-toc-heading-level-2 > .ez-toc-link {
	font-weight: 500;
}

.be-wrap ul.ez-toc-list .ez-toc-link {
	color: var(--be-toc-list-clr);
	transition: color 0.25s ease-in-out;
	text-decoration: none;
	font-size: 16px;
	line-height: 1.5;
}

.be-wrap ul.ez-toc-list :is(.ez-toc-link:hover, .ez-toc-link.toc-active-link) {
	color: var(--be-primary-clr);
}

.be-wrap .updated:not(.published) {
	display: none;
}

/* BE related posts */

.be-wrap .be-related {
	padding-block: var(--be-content-space-lg);
	background-color: rgba(var(--be-primary-clr-rgb), 0.06);
}

.be-wrap .be-related__wrap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 380px));
	gap: 30px;
}

.be-wrap .be-related__title {
	margin-top: 0;
	margin-bottom: var(--be-content-space-sm);
	font-size: clamp(1.25rem, 0.714rem + 1.429vw, 2rem);
	font-weight: 600;
	line-height: 1.375;
}

.be-wrap .be-related__article__thumb {
	margin-block-end: 24px;
}

.be-wrap .be-cat-links {
	margin-block-end: 16px;
}

.be-wrap .be-related__article__thumb img {
	box-shadow: var(--be-box-shadow);
	border-radius: var(--be-border-radius);
}

.be-wrap .be-related__article__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.66;
	transition: color 0.25s ease-in-out;
}

.be-wrap .be-related__article__title a {
	display: block;
	text-decoration: none;
	color: var(--be-title-clr);
}

.be-wrap .be-related__article__title a:hover {
	color: var(--be-primary-clr) !important;
}

@media only screen and (width <=768px) {
	.be-wrap .be-flex__aside #ez-toc-container {
		display: none;
		visibility: hidden;
	}

	.be-flex .be-sticky--mobile {
		position: fixed;
		bottom: 40px;
		z-index: 2;
		isolation: isolate;
	}

	#ez-toc-container {
		padding: 16px 16px 0 16px;
		background-color: #fff;
		box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
		border-radius: var(--be-border-radius);
	}
}

/* Comment Section */
.be-wrap .be-comments-section {
	--be-container-width: 830px;
}

.be-wrap .be-comments-section #comments {
	margin-block-start: var(--be-content-space-lg);
}

.be-wrap .be-comments-section .comments-area .comments-title {
	font-size: 24px;
	line-height: 1.5;
	font-weight: 600;
}

.be-cta-section .be-cta-btn {
	width: fit-content;
	margin: 0 auto;
}

/* common compatibility */
.be-wrap .entry-content > * {
	margin: 0 0 24px;
}

.be-wrap .entry-content > ul,
.be-wrap .entry-content > ol {
	margin: 0 0 24px 30px !important;
}

/* Rara Theme compatibility */
.be-rara .breadcrumb-wrapper {
	padding-bottom: 10px;
	text-align: start;
}

.single.be-rara
	.site-content
	.entry-header
	.container:has(.breadcrumb-wrapper) {
	max-width: var(--be-container-width);
}

.single.be-rara .post .entry-content {
	margin-top: 0;
}

.be-rara.single .site-main article.sticky-meta {
	display: block;
}

/* rishi compatibility */

.be-rishi .main-content-wrapper:has(.be-wrap),
.be-wte .main-content-wrapper:has(.be-wrap) {
	margin-top: 0;
}

.be-rishi .wp-block-buttons:last-child,
.be-wte .wp-block-buttons:last-child {
	margin: 0;
}

.be-rishi :where(body .is-layout-flow ) > *:not(p),
.be-wte :where(body .is-layout-flow) > *:not(p) {
	margin: 0;
}

/* toc */

.be-container .be-toc {
	display: none;
}

.be-container .be-toc:has(#ez-toc-container, .be-cta-section) {
	display: block;
}

.be-container.be-main__content:not(:has(#ez-toc-container, .be-cta-section)) {
	--be-container-width: 816px;
}

.wp-block-post-author__name a{
	text-decoration: none !important;
}

@media screen and (max-width: 568px){
	.is-style-be-author{
		flex-direction: column;
		gap: 16px;
	}
}