:root {
	--bg: #f7f7f7;
	--surface: #ffffff;
	--text: #0f0f0f;
	--muted: #666666;
	--border: #dfdfdf;
	--accent: #2f6bff;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
	--bg: #0c0c0d;
	--surface: #17181b;
	--text: #f7f7f7;
	--muted: #a8a8a8;
	--border: #2c2d33;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.7;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

a {
	color: inherit;
	text-decoration: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline-start: max(clamp(1.15rem, 5vw, 2.5rem), env(safe-area-inset-left, 0px));
	padding-inline-end: max(clamp(1.15rem, 5vw, 2.5rem), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}

.section-gap {
	padding-block: 2.2rem;
}

.site-header {
	position: sticky;
	top: 0;
	background: color-mix(in srgb, var(--surface) 85%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
	z-index: 100;
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.65rem 0;
	flex-wrap: nowrap;
	min-height: 3.25rem;
}

.site-header__bar .site-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.site-header__nav-cluster {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.site-header__nav-cluster::-webkit-scrollbar {
	height: 3px;
}

.site-header__nav-cluster::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 999px;
}

.site-header__bar .site-controls {
	flex: 0 0 auto;
	min-width: 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-title {
	font-size: 1.2rem;
	font-weight: 700;
}

.site-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-controls button,
.button {
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.button:hover,
.button:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

.mode-toggle:hover,
.mode-toggle:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem 1rem;
	flex-wrap: nowrap;
}

.site-nav a {
	position: relative;
	padding: 0.2rem 0;
	transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--accent);
}

.site-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
	transform: scaleX(1);
}

.site-nav--secondary {
	border-inline-start: 1px solid var(--border);
	padding-inline-start: 1rem;
	margin-inline-start: 0.25rem;
}

.site-nav--secondary:first-child {
	border-inline-start: 0;
	padding-inline-start: 0;
	margin-inline-start: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo-link img {
	max-height: 46px;
	width: auto;
	height: auto;
}

/* Homepage: optional text blocks above / below hero (no DOM when empty). */
.hero-home-widget {
	margin-block: 0;
}

.hero-home-widget--above {
	margin-block-end: clamp(0.75rem, 2vw, 1.25rem);
}

.hero-home-widget--below {
	margin-block-start: clamp(0.75rem, 2vw, 1.25rem);
}

.hero-home-widget__inner {
	padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Appearance → Widgets: homepage regions */
.boocah-home-widget-area__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2.2vw, 1.65rem);
}

.boocah-home-widget-area .boocah-widget__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.15rem, 2.6vw, 1.45rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--text);
}

.boocah-home-widget-area .widget:last-child {
	margin-block-end: 0;
}

/* Homepage: hero + side text split layout */
.hero-area--split .hero-split {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr);
	align-items: stretch;
	gap: clamp(1rem, 2.8vw, 2.25rem);
}

.hero-area--split .hero-split > * {
	min-width: 0;
}

.hero-split__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(1.15rem, 2.8vw, 1.85rem) clamp(1.2rem, 3vw, 2rem);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	background: linear-gradient(
		155deg,
		color-mix(in srgb, var(--surface) 88%, var(--accent) 8%),
		color-mix(in srgb, var(--surface) 94%, transparent)
	);
	border: 1px solid color-mix(in srgb, var(--border) 85%, var(--accent) 15%);
}

.hero-split__panel::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--accent) 18%, transparent),
		var(--accent),
		color-mix(in srgb, var(--accent) 18%, transparent)
	);
	pointer-events: none;
	z-index: 1;
}

.hero-split__panel::after {
	content: '';
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 4px;
	height: 100%;
	border-radius: 2px 0 0 2px;
	background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
	opacity: 0.85;
	pointer-events: none;
	z-index: 1;
}

html[dir='rtl'] .hero-split__panel::after {
	inset-inline-start: auto;
	inset-inline-end: 0;
	border-radius: 0 2px 2px 0;
}

.hero-split__media {
	display: flex;
	flex-direction: column;
	min-height: clamp(200px, 28vh, 320px);
}

.hero-split__media .hero-slide {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.hero-split__media .hero-slide--fit-contain,
.hero-split__media .hero-slide--fit-cover {
	min-height: 0;
}

.hero-split__media .hero-slide--embed {
	align-self: stretch;
	min-height: min(280px, 42vh);
}

.hero-slide--in-split.hero-slide--fit-cover img {
	max-height: min(460px, 50vh);
	width: 100%;
}

.hero-slide--in-split.hero-slide--fit-contain img {
	max-height: min(500px, 54vh);
}

.hero-slide--in-split.hero-slide--embed .hero-embed-wrap {
	min-height: clamp(200px, 36vh, 400px);
}

@media (max-width: 900px) {
	.hero-area--split .hero-split {
		grid-template-columns: 1fr;
		gap: clamp(0.85rem, 2vw, 1.25rem);
	}
}

body.dark-mode .hero-split__panel {
	border-color: color-mix(in srgb, var(--border) 75%, var(--accent));
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--surface) 40%, transparent),
		0 8px 36px rgba(47, 107, 255, 0.12),
		0 22px 56px rgba(0, 0, 0, 0.42);
}

.hero-slide {
	position: relative;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--bg));
}

/* Full image: no clipping — tall infographics keep full height at container width. */
.hero-slide--fit-contain {
	overflow: visible;
	display: block;
	text-align: center;
	padding-block: 0.35rem;
}

.hero-slide--fit-contain img {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	display: block;
	margin-inline: auto;
	border-radius: var(--radius);
}

/* Cropped hero: fixed band for “fill” look */
.hero-slide--fit-cover {
	overflow: hidden;
}

.hero-slide--fit-cover img {
	width: 100%;
	height: clamp(260px, 42vh, 520px);
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero-content {
	position: absolute;
	inset-inline-start: 1.2rem;
	inset-block-end: 1.2rem;
	background: color-mix(in srgb, var(--surface) 75%, transparent);
	padding: 1rem;
	border-radius: 12px;
	z-index: 2;
}

.hero-slide--embed {
	position: relative;
	overflow: hidden;
}

.hero-slide--embed .hero-embed-wrap {
	position: relative;
	width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	background: color-mix(in srgb, var(--text) 12%, var(--surface));
}

.hero-slide--embed .hero-embed-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: min(72vh, 720px);
}

/* Fill the 16:9 box whether oEmbed outputs a bare iframe or a wrapped figure/div. */
.hero-slide--embed .hero-embed-inner iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border: 0;
	display: block;
}

.hero-slide--embed .hero-embed-inner .wp-block-embed,
.hero-slide--embed .hero-embed-inner .wp-block-embed__wrapper,
.hero-slide--embed .hero-embed-inner > div:not(.hero-content),
.hero-slide--embed .hero-embed-inner > figure {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.hero-slide--embed .hero-embed-inner .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border: 0;
}

.boocah-grid {
	display: grid;
	gap: 1.1rem;
	align-items: start;
}

.section-header {
	text-align: start;
	margin-bottom: 1.15rem;
}

.section-header h2 {
	margin: 0;
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--text);
}

.columns-1 {
	grid-template-columns: 1fr;
}

.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.single-post-card,
.single-page-card {
	position: relative;
	background: var(--surface);
	border: 1px solid color-mix(in srgb, var(--border) 88%, var(--accent));
	border-radius: calc(var(--radius) + 4px);
	overflow: hidden;
	padding: 0;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--surface) 100%, transparent),
		0 6px 28px rgba(47, 107, 255, 0.07),
		0 18px 48px rgba(15, 15, 15, 0.07);
}

.single-post-card::before,
.single-page-card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--accent) 15%, transparent),
		var(--accent),
		color-mix(in srgb, var(--accent) 15%, transparent)
	);
	pointer-events: none;
	z-index: 2;
}

body.dark-mode .single-post-card,
body.dark-mode .single-page-card {
	border-color: color-mix(in srgb, var(--border) 75%, var(--accent));
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--surface) 40%, transparent),
		0 8px 36px rgba(47, 107, 255, 0.12),
		0 22px 56px rgba(0, 0, 0, 0.42);
}

.boocah-entry-shell {
	position: relative;
	z-index: 1;
	padding-block: clamp(1.55rem, 4vw, 2.85rem);
	padding-inline: clamp(1.15rem, 3.5vw, 2.25rem);
}

/* Archive cards: fixed preview band — tall/portrait images crop, no row-height blowout. */
.post-card-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	max-height: min(52vw, 280px);
	background: color-mix(in srgb, var(--bg) 80%, var(--border));
}

.post-card-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.post-card--clickable {
	padding: 0;
}

.post-card__link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	outline: none;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card--clickable:hover .post-card__link,
.post-card--clickable:focus-within .post-card__link {
	transform: translateY(-5px);
	box-shadow: 0 18px 44px rgba(15, 15, 15, 0.12);
}

body.dark-mode .post-card--clickable:hover .post-card__link,
body.dark-mode .post-card--clickable:focus-within .post-card__link {
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.post-card__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.post-card--clickable .post-card-thumb img {
	transition: transform 0.35s ease;
}

.post-card--clickable:hover .post-card-thumb img,
.post-card--clickable:focus-within .post-card-thumb img {
	transform: scale(1.05);
}

.post-card.text-side.post-card--clickable .post-card__link {
	flex-direction: row;
	align-items: stretch;
}

.post-card.text-side.post-card--clickable .post-card-thumb {
	flex: 0 0 38%;
	max-width: 42%;
	aspect-ratio: auto;
	max-height: none;
	min-height: 200px;
	align-self: stretch;
}

.post-card.text-side.post-card--clickable .post-card-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.post-card__cta {
	display: inline-flex;
	align-items: center;
	margin-top: 0.75rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--accent);
	letter-spacing: 0.02em;
}

.post-card__cta::after {
	content: "\2192";
	margin-inline-start: 0.35rem;
	transition: transform 0.2s ease;
}

[dir="rtl"] .post-card__cta::after {
	content: "\2190";
}

.post-card--clickable:hover .post-card__cta::after,
.post-card--clickable:focus-within .post-card__cta::after {
	transform: translateX(4px);
}

[dir="rtl"] .post-card--clickable:hover .post-card__cta::after,
[dir="rtl"] .post-card--clickable:focus-within .post-card__cta::after {
	transform: translateX(-4px);
}

.post-card--popup {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card--popup:hover,
.post-card--popup:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15, 15, 15, 0.12);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

/* Popup mode: featured image opens quick view; title opens full post */
.post-card--popup .post-card-thumb--popup-trigger {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-align: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.post-card--popup .post-card-thumb--popup-trigger:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	position: relative;
	z-index: 1;
}

.post-card--popup .post-card-thumb--popup-trigger img {
	transition: transform 0.35s ease;
}

.post-card--popup:hover .post-card-thumb--popup-trigger img,
.post-card--popup:focus-within .post-card-thumb--popup-trigger img {
	transform: scale(1.05);
}

.post-card--popup .post-card-title {
	margin: 0;
}

.post-card--popup .post-card-title__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.post-card--popup .post-card-title__link:hover,
.post-card--popup .post-card-title__link:focus-visible {
	color: var(--accent);
	outline: none;
}

.post-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.button--ghost {
	background: transparent;
	border-color: var(--accent);
	color: var(--accent);
}

.post-card-body {
	padding: clamp(1rem, 3vw, 1.25rem) clamp(1.05rem, 3.5vw, 1.35rem);
	direction: inherit;
	text-align: start;
	unicode-bidi: isolate;
}

.post-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 0.75rem;
	margin-block-end: 0.55rem;
}

.post-card-head .post-card-title {
	margin: 0;
	flex: 1 1 auto;
	min-width: min(100%, 8rem);
	font-size: clamp(1.05rem, 2.1vw, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
	text-align: start;
}

.post-card-head .post-card-meta {
	display: block;
	margin: 0;
	flex: 0 0 auto;
	max-width: 100%;
	white-space: nowrap;
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	align-self: center;
}

.post-card-excerpt {
	text-align: start;
	font-size: 0.95rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.post-card-excerpt p {
	margin: 0 0 0.5em;
}

.post-card-excerpt p:last-child {
	margin-bottom: 0;
}

.post-card.text-side:not(.post-card--clickable) {
	display: grid;
	grid-template-columns: minmax(140px, 35%) 1fr;
}

.post-card-meta {
	color: var(--muted);
	font-size: 0.88rem;
}

.card-glow .post-card {
	box-shadow: 0 0 25px rgba(47, 107, 255, 0.28);
}

.card-glass .post-card {
	background: color-mix(in srgb, var(--surface) 70%, transparent);
	backdrop-filter: blur(9px);
}

.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--bg)) 0%, var(--bg) 100%);
	padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}

.site-footer__primary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.85rem, 2vw, 1.25rem);
}

.site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	color: var(--muted);
	background: color-mix(in srgb, var(--surface) 55%, transparent);
	border: 1px solid var(--border);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 12%, var(--surface));
	border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
	outline: none;
	transform: translateY(-1px);
}

.site-footer__social-link .dashicons {
	font-size: 1.2rem;
	width: 1.2rem;
	height: 1.2rem;
}

.site-footer__social-svg .boocah-wa-icon {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
}

.site-footer__nav .footer-menu,
.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.35rem;
}

.site-footer__nav .footer-menu a,
.site-footer__nav ul a {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	padding-block: 0.2rem;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__nav .footer-menu a:hover,
.site-footer__nav .footer-menu a:focus-visible,
.site-footer__nav ul a:hover,
.site-footer__nav ul a:focus-visible {
	color: var(--accent);
	border-bottom-color: color-mix(in srgb, var(--accent) 55%, transparent);
	outline: none;
}

.site-footer__meta {
	text-align: end;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--muted);
}

.site-footer__copy {
	margin: 0 0 0.4rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 0.5rem;
	font-weight: 600;
	color: var(--text);
}

.site-footer__copy-sep {
	color: var(--border);
	font-weight: 400;
}

.site-footer__theme {
	margin: 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.site-footer__theme a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__theme a:hover,
.site-footer__theme a:focus-visible {
	color: var(--text);
	border-bottom-color: var(--accent);
	outline: none;
}

@media (max-width: 640px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.site-footer__primary {
		align-items: center;
		width: 100%;
	}

	.site-footer__social {
		justify-content: center;
	}

	.site-footer__nav .footer-menu,
	.site-footer__nav ul {
		justify-content: center;
	}

	.site-footer__meta {
		text-align: center;
	}

	.site-footer__copy {
		justify-content: center;
	}
}

/* Floating WhatsApp (Customizer → home contact number) */
.boocah-float-wa {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	z-index: 980;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
	color: #fff;
	background: #25d366;
	box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.boocah-float-wa:hover,
.boocah-float-wa:focus-visible {
	background: #20bd5a;
	color: #fff;
	box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55), 0 3px 10px rgba(0, 0, 0, 0.22);
	transform: scale(1.06);
	outline: none;
}

.boocah-float-wa:focus-visible {
	outline: 2px solid var(--accent, #25d366);
	outline-offset: 3px;
}

.boocah-float-wa__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.boocah-float-wa__icon .boocah-wa-icon {
	width: 1.65rem;
	height: 1.65rem;
}

@media (prefers-reduced-motion: reduce) {
	.boocah-float-wa {
		transition: none;
	}

	.boocah-float-wa:hover,
	.boocah-float-wa:focus-visible {
		transform: none;
	}
}

.boocah-popup[hidden] {
	display: none;
}

.boocah-popup {
	position: fixed;
	inset: 0;
	z-index: 999;
}

.boocah-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.boocah-popup-dialog {
	position: relative;
	width: min(760px, 92vw);
	max-height: 88vh;
	overflow: auto;
	margin: 4vh auto;
	padding: 3.25rem clamp(1rem, 3vw, 1.35rem) clamp(1.15rem, 3vw, 1.5rem);
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.boocah-popup-close {
	position: absolute;
	top: clamp(0.75rem, 2vw, 1rem);
	inset-inline-end: clamp(0.75rem, 2vw, 1rem);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 92%, var(--accent));
	color: var(--text);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.boocah-popup-close:hover,
.boocah-popup-close:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--surface);
	outline: none;
	transform: translateY(-1px);
}

.boocah-popup-close__icon {
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
	margin-top: -0.05em;
}

.boocah-popup-close__text {
	white-space: normal;
	text-align: center;
	max-width: min(58vw, 15rem);
	line-height: 1.25;
}

.boocah-popup-content {
	min-height: 2rem;
}

.boocah-popup-heading {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 800;
	line-height: 1.25;
	text-wrap: balance;
}

.boocah-popup-loading,
.boocah-popup-error {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.boocah-popup-body .wp-block-embed,
.boocah-popup-body .wp-block-embed-youtube {
	margin: 1rem 0;
}

.boocah-popup-body iframe,
.boocah-popup-body .wp-block-embed__wrapper iframe {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 200px;
	height: auto;
	border: 0;
	border-radius: calc(var(--radius) - 6px);
}

.boocah-popup-body .wp-block-embed__wrapper {
	position: relative;
}

.boocah-popup-footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--border);
}

.boocah-popup-full-link {
	text-decoration: none;
}

.boocah-bg-layer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background:
		radial-gradient(circle at 20% 20%, rgba(47, 107, 255, 0.08), transparent 40%),
		radial-gradient(circle at 80% 40%, rgba(47, 107, 255, 0.08), transparent 40%);
	animation: boocahDrift 16s linear infinite;
}

body[data-animation-style="grid"] .boocah-bg-layer {
	background-image:
		linear-gradient(rgba(47, 107, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47, 107, 255, 0.08) 1px, transparent 1px);
	background-size: 28px 28px;
}

body[data-animation-style="particles"] .boocah-bg-layer {
	background-image:
		radial-gradient(circle at 12% 20%, rgba(47, 107, 255, 0.17) 2px, transparent 2px),
		radial-gradient(circle at 62% 72%, rgba(47, 107, 255, 0.17) 2px, transparent 2px),
		radial-gradient(circle at 87% 33%, rgba(47, 107, 255, 0.17) 2px, transparent 2px);
}

@keyframes boocahDrift {
	0% {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(0, -14px, 0);
	}
	100% {
		transform: translate3d(0, 0, 0);
	}
}

/* -------------------------------------------------------------------------
   Single post / page — readable “prose” layout (Arabic-friendly)
   ------------------------------------------------------------------------- */
/* Same element as .container — do not set a smaller max-width or the post card stays narrow. */
.single-post-wrap {
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

.single-post-card .entry-header,
.single-page-card .entry-header {
	margin: 0 0 1.5rem;
	padding: 0 0 1.35rem;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--accent) 5%, var(--surface)) 0%,
		transparent 72%
	);
	border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}

.single-post-card .entry-title,
.single-page-card .entry-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4.5vw, 2.35rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: var(--text);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
	margin-top: 0.15rem;
}

.entry-meta__pill {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 0.4rem;
	padding: 0.38rem 0.95rem;
	border-radius: 999px;
	font-size: 0.86rem;
	line-height: 1.35;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface) 94%, var(--bg));
	box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 60%, transparent);
}

.entry-meta__pill--date {
	color: var(--text);
	font-weight: 600;
}

.entry-meta__time {
	font-variant-numeric: tabular-nums;
}

.entry-meta__pill--cats {
	border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
	background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.entry-meta__sep {
	opacity: 0.55;
	user-select: none;
}

.entry-meta__cats a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
	border-bottom: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.entry-meta__cats a:hover,
.entry-meta__cats a:focus-visible {
	color: color-mix(in srgb, var(--accent) 82%, var(--text));
	text-decoration: underline;
	text-underline-offset: 0.15em;
	outline: none;
}

.single-thumb {
	margin: 0 0 2rem;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--border) 80%, var(--accent));
	background: color-mix(in srgb, var(--bg) 88%, var(--surface));
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, var(--surface) 75%, transparent),
		0 12px 40px rgba(15, 15, 15, 0.09);
}

body.dark-mode .single-thumb {
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, var(--surface) 25%, transparent),
		0 14px 44px rgba(0, 0, 0, 0.35);
}

.single-thumb__img,
.single-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content--prose {
	font-size: clamp(1.04rem, 2.2vw, 1.12rem);
	line-height: 1.88;
	text-align: start;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.entry-content--prose .wp-block-embed {
	margin: 1.75em 0;
}

.entry-content--prose .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	border-radius: calc(var(--radius) - 6px);
	overflow: hidden;
	background: color-mix(in srgb, var(--text) 8%, var(--surface));
	box-shadow: 0 10px 36px rgba(15, 15, 15, 0.12);
}

.entry-content--prose .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Raw oEmbed iframes (no block wrapper) */
.entry-content--prose p:has(> iframe[src*="youtube.com"]),
.entry-content--prose p:has(> iframe[src*="youtu.be"]),
.entry-content--prose p:has(> iframe[src*="vimeo.com"]) {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	margin-block: 1.75em;
	border-radius: calc(var(--radius) - 6px);
	overflow: hidden;
	box-shadow: 0 10px 36px rgba(15, 15, 15, 0.12);
}

.entry-content--prose p:has(> iframe[src*="youtube.com"]) iframe,
.entry-content--prose p:has(> iframe[src*="youtu.be"]) iframe,
.entry-content--prose p:has(> iframe[src*="vimeo.com"]) iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

body.dark-mode .entry-content--prose .wp-block-embed.is-type-video .wp-block-embed__wrapper,
body.dark-mode .entry-content--prose p:has(> iframe[src*="youtube.com"]),
body.dark-mode .entry-content--prose p:has(> iframe[src*="youtu.be"]),
body.dark-mode .entry-content--prose p:has(> iframe[src*="vimeo.com"]) {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.entry-content--prose > *:first-child {
	margin-block-start: 0;
}

.entry-content--prose > *:last-child {
	margin-block-end: 0;
}

.entry-content--prose p {
	margin-block: 0 1.15em;
}

.entry-content--prose .lead,
.entry-content--prose > p:first-of-type {
	font-size: 1.07em;
	color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.entry-content--prose h2,
.entry-content--prose h3,
.entry-content--prose h4 {
	margin-block: 1.85em 0.65em;
	line-height: 1.3;
	font-weight: 700;
	text-wrap: balance;
}

.entry-content--prose h2 {
	font-size: clamp(1.35rem, 3vw, 1.55rem);
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--border);
}

.entry-content--prose h3 {
	font-size: 1.18rem;
	color: color-mix(in srgb, var(--text) 92%, var(--accent));
}

.entry-content--prose h4 {
	font-size: 1.05rem;
}

.entry-content--prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.entry-content--prose a:hover,
.entry-content--prose a:focus-visible {
	text-decoration-thickness: 2px;
}

.entry-content--prose ul,
.entry-content--prose ol {
	margin-block: 0 1.15em;
	padding-inline-start: 1.35em;
}

.entry-content--prose li {
	margin-block: 0.35em;
}

.entry-content--prose li::marker {
	color: var(--accent);
}

.entry-content--prose blockquote {
	margin: 1.5em 0;
	padding: 1rem 1.15rem;
	border-inline-start: 4px solid var(--accent);
	background: color-mix(in srgb, var(--accent) 6%, var(--surface));
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: normal;
}

.entry-content--prose blockquote p {
	margin: 0;
}

.entry-content--prose cite {
	font-size: 0.9em;
	color: var(--muted);
	font-style: normal;
}

.entry-content--prose hr {
	margin: 2rem 0;
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.entry-content--prose img,
.entry-content--prose video {
	max-width: 100%;
	height: auto;
	border-radius: calc(var(--radius) - 8px);
}

.entry-content--prose figure {
	margin: 1.5em 0;
}

.entry-content--prose figcaption {
	margin-top: 0.5rem;
	font-size: 0.88rem;
	color: var(--muted);
	text-align: center;
}

.entry-content--prose pre,
.entry-content--prose code {
	font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
	font-size: 0.9em;
}

.entry-content--prose code {
	padding: 0.12em 0.35em;
	border-radius: 6px;
	background: color-mix(in srgb, var(--border) 35%, transparent);
}

.entry-content--prose pre {
	padding: 1rem 1.1rem;
	overflow-x: auto;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.entry-content--prose pre code {
	padding: 0;
	background: none;
}

.entry-content--prose table {
	width: 100%;
	margin: 1.25em 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.entry-content--prose th,
.entry-content--prose td {
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--border);
	text-align: start;
}

.entry-content--prose th {
	background: color-mix(in srgb, var(--accent) 8%, var(--surface));
	font-weight: 600;
}

.page-links {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--border);
	font-size: 0.92rem;
	color: var(--muted);
}

.page-links a {
	display: inline-block;
	margin-inline-end: 0.35rem;
	margin-block: 0.2rem;
	padding: 0.25rem 0.55rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.page-links a:hover,
.page-links a:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

@media (max-width: 1024px) {
	.columns-3,
	.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.columns-2,
	.columns-3,
	.columns-4,
	.post-card.text-side:not(.post-card--clickable) {
		grid-template-columns: 1fr;
	}

	.post-card.text-side.post-card--clickable .post-card__link {
		flex-direction: column;
	}

	.post-card.text-side.post-card--clickable .post-card-thumb {
		flex: none;
		max-width: 100%;
		aspect-ratio: 16 / 10;
		max-height: min(52vw, 280px);
		min-height: 0;
	}

	.post-card.text-side.post-card--clickable .post-card-thumb img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.hero-content {
		inset: auto 0.9rem 0.9rem 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boocah-bg-layer {
		animation: none;
	}
}

/* —— Contact page (theme form) —— */
.boocah-contact-page .entry-header {
	text-align: start;
}

.boocah-contact-intro {
	margin-bottom: 1.75rem;
	text-align: start;
}

.boocah-contact-form-wrap {
	margin-top: 0.25rem;
	padding-top: 0.5rem;
	border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
	unicode-bidi: isolate;
}

.boocah-contact-alert {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius);
	font-size: 0.95rem;
	line-height: 1.5;
	border: 1px solid var(--border);
}

.boocah-contact-alert--success {
	background: color-mix(in srgb, #16a34a 12%, var(--surface));
	border-color: color-mix(in srgb, #16a34a 35%, var(--border));
	color: var(--text);
}

.boocah-contact-alert--error {
	background: color-mix(in srgb, #dc2626 10%, var(--surface));
	border-color: color-mix(in srgb, #dc2626 32%, var(--border));
	color: var(--text);
}

body.dark-mode .boocah-contact-alert--success {
	background: color-mix(in srgb, #22c55e 14%, var(--surface));
	border-color: color-mix(in srgb, #22c55e 28%, var(--border));
}

body.dark-mode .boocah-contact-alert--error {
	background: color-mix(in srgb, #ef4444 12%, var(--surface));
	border-color: color-mix(in srgb, #ef4444 28%, var(--border));
}

.boocah-contact-form {
	display: grid;
	gap: 0.65rem;
	width: 100%;
	max-width: 100%;
}

.boocah-contact-form__row {
	display: grid;
	gap: 0.65rem 1rem;
}

@media (min-width: 560px) {
	.boocah-contact-form__row {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.boocah-contact-form__field {
	margin: 0;
	padding: 0;
}

.boocah-contact-form__field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text);
	text-align: start;
}

.boocah-contact-form__field .required {
	color: color-mix(in srgb, #dc2626 85%, var(--accent));
	font-weight: 700;
}

.boocah-contact-form__field input[type="text"],
.boocah-contact-form__field input[type="email"],
.boocah-contact-form__field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	border-radius: calc(var(--radius) - 4px);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	line-height: 1.45;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.boocah-contact-form__field textarea {
	min-height: 9rem;
	resize: vertical;
}

.boocah-contact-form__field input:focus-visible,
.boocah-contact-form__field textarea:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.boocah-contact-form__field--honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.boocah-contact-form__actions {
	margin: 1rem 0 0;
	padding: 0;
	text-align: center;
}

.boocah-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	min-width: min(100%, 16rem);
	padding: 0.65rem 2rem;
	border: none;
	border-radius: calc(var(--radius) - 2px);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.boocah-contact-form__submit:hover,
.boocah-contact-form__submit:focus-visible {
	opacity: 0.92;
	transform: translateY(-1px);
}

.boocah-contact-form__submit:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* —— Contact split: form + WhatsApp (homepage & contact page). RTL: form first in DOM = right; WA second = left —— */
.boocah-home-contact .section-header {
	margin-bottom: 0.85rem;
}

.boocah-home-contact__intro {
	margin: 0 0 1.25rem;
	text-align: start;
	font-size: 0.98rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.boocah-contact-split__wa-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5rem 2rem;
	margin-top: 0.35rem;
}

.boocah-contact-split__wa-col {
	flex: 0 0 auto;
	width: min(100%, 11rem);
	text-align: center;
}

.boocah-contact-split__form-col {
	flex: 1 1 280px;
	min-width: 0;
}

.boocah-contact-split__wa {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 1rem 0.75rem;
	border-radius: var(--radius);
	background: #25d366;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: 1.05rem;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.boocah-contact-split__wa:hover,
.boocah-contact-split__wa:focus-visible {
	color: #fff;
	opacity: 0.95;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
	outline: none;
}

.boocah-contact-split__wa:focus-visible {
	outline: 2px solid #128c7e;
	outline-offset: 2px;
}

.boocah-contact-split__wa-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.boocah-contact-split__wa-icon .boocah-wa-icon {
	width: 2.1rem;
	height: 2.1rem;
}

.boocah-contact-split__wa-hint {
	margin: 0.65rem 0 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--muted);
	text-align: center;
}

@media (min-width: 720px) {
	.boocah-contact-split__wa-form {
		flex-wrap: nowrap;
	}

	.boocah-contact-split__wa-col {
		width: 10.5rem;
		text-align: center;
	}
}
