/* Bedaya templates: courses, books, doctor cards.
   Colours and font follow the Elementor kit. Logical properties for RTL.
   Everything is scoped to .bg-* classes.
   Signature shape: the arch from the home page hero. */

.bg-hero, .bg-section, .bg-band, .bg-card, .bg-archive-head, .bg-archive-grid, .bg-extra {
	--bg-green: var(--e-global-color-0aee925, #597d5b);
	--bg-deep: #2e4a32;
	--bg-orange: var(--e-global-color-973244d, #de891e);
	--bg-cream: #f6f5e6;
	--bg-line: #597d5b2e;
	--bg-ink: #3c4a40;
	--bg-font: var(--e-global-typography-primary-font-family, "Tajawal"), sans-serif;
	font-family: var(--bg-font);
}

/* Full width: remove leftovers of the theme's blog layout on these views. */
.bg-fullwidth .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }
.bg-fullwidth #primary { margin: 0; padding: 0; }
.bg-fullwidth .post-navigation { display: none; }

/* ---------- Hero ---------- */
.bg-hero.e-con {
	--padding-top: 72px; --padding-bottom: 72px;
	--padding-left: 20px; --padding-right: 20px;
	background:
		radial-gradient(60% 80% at 8% 0%, #de891e14 0%, transparent 70%),
		var(--bg-cream);
}
.bg-hero .bg-title .elementor-heading-title {
	margin: 0;
	font-family: var(--bg-font);
	font-size: clamp(2rem, 1.35rem + 2.8vw, 3.35rem);
	font-weight: 800;
	line-height: 1.3;
	color: var(--bg-deep);
	text-wrap: balance;
}
.bg-hero .bg-subtitle .elementor-heading-title {
	font-family: var(--bg-font);
	font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
	font-weight: 500;
	line-height: 1.6;
	color: var(--bg-orange);
}
.bg-hero .bg-rich { max-width: 58ch; font-size: 1.125rem; line-height: 1.9; color: var(--bg-ink); }

.bg-hero__media { position: relative; isolation: isolate; }
.bg-hero__media.e-con { --padding-top: 56px; --padding-bottom: 28px; --padding-left: 28px; --padding-right: 28px; }
.bg-hero__media::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block: 0;
	inset-inline: 6%;
	border-radius: 999px 999px 28px 28px;
	background: #597d5b1f;
}
.bg-hero__media::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block: 18px -14px;
	inset-inline: calc(6% - 14px);
	border: 1.5px solid #de891e66;
	border-radius: 999px 999px 32px 32px;
}
.bg-hero__media img { width: 100%; border-radius: 22px; box-shadow: 0 24px 48px -24px #2e4a3273; }
.elementor-location-single.elementor .bg-hero--book .bg-hero__media img { max-width: 380px; }

/* Booking button inside the templates. */
.bg-hero .crm-cta, .bg-band .crm-cta {
	min-width: 220px;
	padding-block: 14px;
	padding-inline: 36px;
	border-radius: 999px;
	font-family: var(--bg-font);
	font-size: 1.125rem;
	font-weight: 700;
	box-shadow: 0 12px 24px -12px #de891ecc;
}

/* ---------- Content sections: heading beside the content on wide screens ---------- */
.bg-section.e-con { --padding-top: 64px; --padding-bottom: 64px; --padding-left: 20px; --padding-right: 20px; }
.bg-section + .bg-section { border-block-start: 1px solid var(--bg-line); }
.bg-section--tint.e-con { background: #f6f5e699; }
.bg-section .bg-head .elementor-heading-title {
	margin: 0;
	font-family: var(--bg-font);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	font-weight: 800;
	line-height: 1.4;
	color: var(--bg-deep);
}
.bg-section .bg-head .elementor-heading-title::after {
	content: "";
	display: block;
	width: 44px;
	height: 22px;
	margin-block-start: 14px;
	border: 3px solid var(--bg-orange);
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
}
@media (min-width: 1025px) {
	.bg-section.e-con > .e-con-inner {
		display: grid;
		grid-template-columns: 250px minmax(0, 1fr);
		column-gap: 64px;
		align-items: start;
	}
}
.bg-section .bg-rich { max-width: 68ch; font-size: 1.1875rem; line-height: 2; color: var(--bg-ink); }

/* ---------- Outcomes ---------- */
.bg-list, .bg-meta { list-style: none; margin: 0; padding: 0; }
.bg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.bg-list li {
	position: relative;
	padding-block: 18px;
	padding-inline: 62px 20px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--bg-line, #597d5b2e);
	line-height: 1.9;
}
.bg-list li::before {
	content: "\2713";
	position: absolute;
	inset-inline-start: 18px;
	inset-block-start: 18px;
	width: 30px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 999px 999px 8px 8px;
	background: #de891e1f;
	color: var(--e-global-color-973244d, #de891e);
	font-weight: 800;
}

/* ---------- Accordions ---------- */
.bg-accordion { display: grid; gap: 12px; counter-reset: bg-unit; }
.bg-accordion details {
	border: 1px solid #597d5b2e;
	border-radius: 18px;
	background: #fff;
	transition: border-color .2s;
}
.bg-accordion details[open] { border-color: #597d5b80; }
.bg-accordion summary {
	display: flex;
	align-items: center;
	gap: 14px;
	min-block-size: 64px;
	padding-block: 12px;
	padding-inline: 18px;
	cursor: pointer;
	list-style: none;
	font-size: 1.125rem;
	font-weight: 700;
	color: #2e4a32;
}
.bg-accordion summary::-webkit-details-marker { display: none; }
.bg-accordion summary::after {
	content: "+";
	margin-inline-start: auto;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	color: var(--e-global-color-973244d, #de891e);
}
.bg-accordion details[open] summary::after { content: "\2212"; }
.bg-accordion summary:focus-visible { outline: 3px solid var(--e-global-color-973244d, #de891e); outline-offset: 2px; border-radius: 16px; }
/* Course units happen in order, so they are numbered. */
.bg-accordion--outline summary::before {
	counter-increment: bg-unit;
	content: counter(bg-unit);
	flex: none;
	width: 36px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 999px 999px 10px 10px;
	background: #597d5b1f;
	font-size: 1rem;
}
.bg-accordion--outline details[open] summary::before { background: var(--e-global-color-0aee925, #597d5b); color: #fff; }
.bg-accordion__body { padding-block: 0 18px; padding-inline: 20px; line-height: 1.9; }
.bg-accordion--outline .bg-accordion__body { padding-inline: 68px 20px; }
.bg-accordion__body p:last-child { margin-block-end: 0; }
.bg-lessons { list-style: none; margin: 0; padding: 0; }
.bg-lessons li { padding-block: 10px; border-block-start: 1px solid #597d5b1f; }

/* ---------- Fact chips ---------- */
.bg-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: var(--bg-meta-justify, flex-start); }
.bg-meta li {
	display: grid;
	padding-block: 8px;
	padding-inline: 18px;
	border: 1px solid #597d5b2e;
	border-radius: 14px;
	background: #fff;
}
.bg-meta__label { font-size: .8125rem; color: var(--e-global-color-0aee925, #597d5b); }
.bg-meta__value { font-weight: 700; color: #2e4a32; }

/* ---------- Instructor ---------- */
.bg-person {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	padding: 28px;
	border: 1px solid #597d5b2e;
	border-radius: 28px;
	background: #fff;
	text-align: start;
}
.bg-person + .bg-person { margin-block-start: 16px; }
.bg-person > div { flex: 1 1 300px; }
.bg-person__photo {
	width: 180px;
	height: 230px;
	margin-inline: auto;
	object-fit: cover;
	object-position: top center;
	border-radius: 999px 999px 20px 20px;
	background: #597d5b17;
}
.bg-person__name { margin-block: 0 6px; font-size: 1.5rem; font-weight: 800; color: #2e4a32; }
.bg-person__job_title { font-weight: 700; color: var(--e-global-color-973244d, #de891e); }
.bg-person__short_bio { margin: 0; line-height: 1.9; }

.bg-sample {
	display: inline-block;
	min-block-size: 48px;
	padding-block: 11px;
	padding-inline: 28px;
	border: 1.5px solid var(--e-global-color-0aee925, #597d5b);
	border-radius: 999px;
	color: var(--e-global-color-0aee925, #597d5b);
	font-weight: 700;
}
.bg-rich p:last-child { margin-block-end: 0; }
.bg-extra.e-con { --padding-top: 32px; --padding-bottom: 32px; }

/* ---------- Closing booking band ---------- */
.bg-band.e-con { --padding-top: 48px; --padding-bottom: 72px; --padding-left: 20px; --padding-right: 20px; }
.bg-band.e-con > .e-con-inner {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: 64px 56px;
	padding-inline: 24px;
	border-radius: 32px;
	background: var(--bg-deep);
}
.bg-band.e-con > .e-con-inner::before,
.bg-band.e-con > .e-con-inner::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-end: -2px;
	inset-inline-start: 6%;
	width: 190px;
	height: 78%;
	border: 1.5px solid #ffffff26;
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
}
.bg-band.e-con > .e-con-inner::after { inset-inline-start: calc(6% + 22px); width: 146px; height: 62%; border-color: #de891e73; }
.bg-band .bg-band__title .elementor-heading-title {
	font-family: var(--bg-font);
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.4;
	color: #fff;
	text-align: center;
}

/* ---------- List page header ---------- */
.bg-archive-head.e-con {
	--padding-top: 88px; --padding-bottom: 56px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--bg-cream);
}
.bg-archive-head::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-end: 0;
	left: 50%;
	width: 300px;
	height: 82%;
	transform: translateX(-50%);
	border-radius: 999px 999px 0 0;
	background: #597d5b17;
}
.bg-archive-head .bg-title .elementor-heading-title {
	margin: 0;
	font-family: var(--bg-font);
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	font-weight: 800;
	color: var(--bg-deep);
	text-align: center;
}
.bg-archive-grid.e-con { --padding-top: 56px; --padding-bottom: 80px; --padding-left: 20px; --padding-right: 20px; }
.bg-archive-grid .e-loop-item { background: transparent; }

/* ---------- Cards ---------- */
.e-loop-item > .elementor { block-size: 100%; }
.bg-card.e-con {
	block-size: 100%;
	--padding-top: 12px; --padding-bottom: 22px; --padding-left: 12px; --padding-right: 12px;
	border: 1px solid var(--bg-line);
	border-radius: 24px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.bg-card.e-con:hover, .bg-card.e-con:focus-within { border-color: #597d5b80; box-shadow: 0 22px 36px -28px #2e4a3299; }
.bg-card .bg-card__media .elementor-widget-container, .bg-card .bg-card__media a { display: block; overflow: hidden; border-radius: 16px; }
.bg-card .bg-card__media img { display: block; width: 100%; object-fit: cover; box-shadow: none; transition: transform .35s ease; }
.bg-card:hover .bg-card__media img { transform: scale(1.035); }
.bg-card--course .bg-card__media img { aspect-ratio: 4 / 3; }
.bg-card--book .bg-card__media img { aspect-ratio: 4 / 5; }
.bg-card--doctor .bg-card__media .elementor-widget-container {
	width: min(100%, 230px);
	margin-inline: auto;
	border-radius: 999px 999px 18px 18px;
	background: #597d5b1a;
}
.bg-card--doctor .bg-card__media img { aspect-ratio: 4 / 5; object-position: top center; }
.bg-card .bg-card__title .elementor-heading-title {
	font-family: var(--bg-font);
	font-size: 1.3125rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--bg-deep);
	text-align: center;
}
.bg-card .bg-card__title a { color: inherit; }
.bg-card .bg-card__text .elementor-heading-title {
	font-family: var(--bg-font);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.7;
	color: var(--bg-ink);
	text-align: center;
}
.bg-card .bg-card__spec .elementor-heading-title {
	font-family: var(--bg-font);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.7;
	color: var(--bg-orange);
	text-align: center;
}
.bg-card { --bg-meta-justify: center; }
.bg-card .bg-card__cta { margin-block-start: auto; padding-block-start: 6px; padding-inline: 10px; text-align: center; }
.bg-card .bg-card__cta .elementor-button, .bg-card .bg-card__cta .crm-cta {
	display: block;
	width: 100%;
	min-height: 48px;
	padding-block: 13px;
	border-radius: 999px;
	font-family: var(--bg-font);
	font-size: 1rem;
	font-weight: 700;
}
.bg-card .bg-card__cta .elementor-button { background: #597d5b14; color: var(--bg-deep); }
.bg-card .bg-card__cta .elementor-button:hover, .bg-card .bg-card__cta .elementor-button:focus-visible { background: var(--bg-deep); color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.bg-hero.e-con { --padding-top: 40px; --padding-bottom: 56px; }
	.bg-section.e-con { --padding-top: 44px; --padding-bottom: 44px; }
	.bg-hero .crm-cta, .bg-band .crm-cta { display: block; width: 100%; }
	.bg-accordion--outline .bg-accordion__body { padding-inline: 20px; }
	.bg-person { justify-content: center; padding: 22px; text-align: center; }
	.bg-band.e-con > .e-con-inner::before, .bg-band.e-con > .e-con-inner::after { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
	.bg-card .bg-card__media img, .bg-card.e-con, .bg-accordion details { transition: none; }
	.bg-card:hover .bg-card__media img { transform: none; }
}
