/* SX Blog: monday-style blog for sx.sa (no bold, no shadows, light only). */
.sxb {
	--sxb-green: #048238;
	--sxb-green-2: #036d2f;
	--sxb-soft: #e3f3ea;
	--sxb-tint: #f4f9f6;
	--sxb-ink: #14201a;
	--sxb-text: #333;
	--sxb-muted: #676879;
	--sxb-line: #e4ebe6;
	--sxb-surface: #f3f4f5;
	--sxb-head: "Thmanyah Serif", Almarai, Barlow, Georgia, serif;
	--sxb-body: Barlow, Almarai, Arial, sans-serif;
	font-family: var(--sxb-body);
	color: var(--sxb-text);
	background: #fff;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.sxb[lang="ar"],
.sxb [lang="ar"] {
	--sxb-body: Almarai, Barlow, Arial, sans-serif;
}
.sxb *,
.sxb *::before,
.sxb *::after { box-sizing: border-box; }
.sxb a { text-decoration: none; color: inherit; }
.sxb h1, .sxb h2, .sxb h3, .sxb strong, .sxb b { font-weight: 400; }
.sxb img { max-width: 100%; height: auto; }

/* ---------- Listing ---------- */
.sxb-list { max-width: 1240px; margin: 0 auto; padding: 72px 24px 96px; }

.sxb-hero { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.sxb-eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--sxb-soft);
	color: var(--sxb-green);
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 20px;
}
.sxb-hero__title {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--sxb-ink);
	margin: 0 0 18px;
}
.sxb[lang="ar"] .sxb-hero__title { letter-spacing: 0; line-height: 1.25; }
.sxb-hero__lead { font-size: 19px; line-height: 1.65; color: var(--sxb-muted); margin: 0 auto 30px; max-width: 640px; }

.sxb-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	margin: 0 auto;
	padding: 6px;
	padding-inline-start: 18px;
	border: 1px solid #c9d6cd;
	border-radius: 999px;
	background: #fff;
	transition: border-color .2s;
}
.sxb-search:focus-within { border-color: var(--sxb-green); }
.sxb-search svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--sxb-muted); stroke-width: 1.8; stroke-linecap: round; }
.sxb-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 16px;
	color: var(--sxb-ink);
	padding: 8px 4px !important;
	height: auto !important;
}
.sxb-search button {
	border: 0;
	border-radius: 999px;
	background: var(--sxb-green);
	color: #fff;
	font: inherit;
	font-size: 15px;
	padding: 10px 22px;
	cursor: pointer;
	transition: background .3s cubic-bezier(.515, .147, .25, 1);
}
.sxb-search button:hover { background: var(--sxb-green-2); }

.sxb-topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 48px;
	max-width: 980px;
}
.sxb-topic {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--sxb-surface);
	color: var(--sxb-ink) !important;
	font-size: 14px;
	line-height: 1.4;
	transition: background .25s, color .25s;
}
.sxb-topic:hover { background: var(--sxb-soft); color: var(--sxb-green) !important; }
.sxb-topic.is-active { background: var(--sxb-soft); color: var(--sxb-green) !important; }
.sxb-topic.is-active::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sxb-green);
	margin-inline-end: 8px;
}

.sxb-note { text-align: center; color: var(--sxb-muted); font-size: 15px; margin: -28px 0 36px; }
.sxb-results { scroll-margin-top: 110px; }

/* Featured article */
.sxb-feature { margin: 0 0 56px; }
.sxb-feature__link {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 20px;
	padding-inline-end: 48px;
	border-radius: 24px;
	background: var(--sxb-tint);
	border: 1px solid var(--sxb-line);
	transition: border-color .25s;
}
.sxb-feature__link:hover { border-color: #b9d6c4; }
.sxb-feature__media { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sxb-soft); }
.sxb-feature__media .sxb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sxb-feature__link:hover .sxb-img { transform: scale(1.03); }
.sxb-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sxb-feature__label { color: var(--sxb-green); font-size: 14px; }
.sxb-feature__title {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--sxb-ink);
	margin: 0;
}
.sxb-feature[lang="ar"] .sxb-feature__title { letter-spacing: 0; line-height: 1.4; }
.sxb-feature__excerpt { font-size: 17px; line-height: 1.7; color: var(--sxb-text); }

/* Cards */
.sxb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.sxb-card__link { display: flex; flex-direction: column; height: 100%; }
.sxb-card__media {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--sxb-soft);
	border: 1px solid var(--sxb-line);
}
.sxb-card__media .sxb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sxb-card__link:hover .sxb-img { transform: scale(1.04); }
.sxb-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 4px 0; flex: 1; }
.sxb-card__title {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	font-size: 22px;
	line-height: 1.4;
	color: var(--sxb-ink);
	margin: 0;
	transition: color .25s;
}
.sxb-card__link:hover .sxb-card__title { color: var(--sxb-green); }
.sxb-card__excerpt {
	font-size: 15px;
	line-height: 1.7;
	color: var(--sxb-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sxb-card .sxb-meta { margin-top: auto; padding-top: 4px; }

.sxb-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--sxb-soft);
	color: var(--sxb-green);
	font-size: 13px;
	line-height: 1.5;
}
.sxb-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sxb-muted); }
.sxb-dot { opacity: .6; }

.sxb-img--empty { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--sxb-soft); }
.sxb-img--empty svg { width: 54px; height: 54px; fill: none; stroke: var(--sxb-green); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }

/* Buttons */
.sxb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	border: 1px solid var(--sxb-green);
	background: var(--sxb-green);
	color: #fff !important;
	font-size: 15px;
	line-height: 1.2;
	transition: background .3s cubic-bezier(.515, .147, .25, 1), color .3s;
}
.sxb-btn:hover { background: var(--sxb-green-2); }
.sxb-btn--ghost { background: transparent; color: var(--sxb-ink) !important; border-color: var(--sxb-ink); }
.sxb-btn--ghost:hover { background: var(--sxb-ink); color: #fff !important; }
.sxb-arrow { display: inline-block; transition: transform .3s ease; }
[dir="rtl"] .sxb-arrow { transform: scaleX(-1); }
a:hover .sxb-arrow, .sxb-btn:hover .sxb-arrow { transform: translateX(3px); }
[dir="rtl"] a:hover .sxb-arrow, [dir="rtl"] .sxb-btn:hover .sxb-arrow { transform: scaleX(-1) translateX(3px); }
.sxb-btn--ghost:hover .sxb-arrow--back { transform: translateX(-3px); }
[dir="rtl"] .sxb-btn--ghost:hover .sxb-arrow--back { transform: scaleX(-1) translateX(-3px); }

/* Pagination */
.sxb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0; }
.sxb-page {
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--sxb-line);
	color: var(--sxb-ink) !important;
	font-size: 15px;
	transition: border-color .2s, background .2s;
}
.sxb-page:hover { border-color: var(--sxb-green); color: var(--sxb-green) !important; }
.sxb-page.is-active { background: var(--sxb-green); border-color: var(--sxb-green); color: #fff !important; }

.sxb-empty { text-align: center; padding: 48px 16px; border-radius: 24px; background: var(--sxb-surface); }
.sxb-empty p { font-size: 17px; color: var(--sxb-muted); margin: 0 0 18px; }

/* CTA band */
.sxb-cta {
	margin: 96px 0 0;
	padding: 64px 32px;
	border-radius: 24px;
	background: var(--sxb-tint);
	border: 1px solid var(--sxb-line);
	text-align: center;
}
.sxb-cta__title {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.25;
	color: var(--sxb-ink);
	margin: 0 0 14px;
}
.sxb-cta__lead { font-size: 17px; line-height: 1.7; color: var(--sxb-muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Article page ---------- */
.sxb-single { padding: 56px 24px 96px; }
.sxb-article { max-width: 1100px; margin: 0 auto; }
.sxb-a-head { max-width: 760px; margin: 0 auto 40px; }
.sxb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sxb-muted); margin-bottom: 22px; }
.sxb-crumbs a { color: var(--sxb-green) !important; }
.sxb-crumbs a:hover { text-decoration: underline; }
.sxb-alt {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: -4px 0 18px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--sxb-line);
	font-size: 14px;
	color: var(--sxb-ink) !important;
	transition: border-color .2s, color .2s;
}
.sxb-alt:hover { border-color: var(--sxb-green); color: var(--sxb-green) !important; }
.sxb-alt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sxb-a-title {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--sxb-ink);
	margin: 0 0 18px;
}
.sxb-single[lang="ar"] .sxb-a-title { letter-spacing: 0; line-height: 1.4; }
.sxb-a-lead { font-size: 20px; line-height: 1.7; color: var(--sxb-muted); margin: 0 0 22px; }
.sxb-a-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--sxb-line);
	border-bottom: 1px solid var(--sxb-line);
}
.sxb-share { display: inline-flex; align-items: center; gap: 6px; }
.sxb-share__label { font-size: 14px; color: var(--sxb-muted); margin-inline-end: 4px; }
.sxb-share__btn {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--sxb-line);
	background: #fff;
	color: var(--sxb-ink);
	cursor: pointer;
	padding: 0;
	transition: border-color .2s, color .2s, background .2s;
}
/* <button> (copy link): undo the theme's button look (purple border, square corners). */
.sxb button.sxb-share__btn {
	-webkit-appearance: none;
	appearance: none;
	width: 38px !important;
	height: 38px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--sxb-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--sxb-ink) !important;
	box-shadow: none !important;
	outline: 0;
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
}
.sxb .sxb-share__btn:hover,
.sxb button.sxb-share__btn:hover,
.sxb button.sxb-share__btn:focus { border-color: var(--sxb-green) !important; color: var(--sxb-green) !important; background: #fff !important; }
.sxb button.sxb-share__btn:focus-visible { outline: 2px solid var(--sxb-soft); outline-offset: 2px; }
.sxb .sxb-share__btn.is-done,
.sxb button.sxb-share__btn.is-done { background: var(--sxb-soft) !important; border-color: var(--sxb-green) !important; color: var(--sxb-green) !important; }
.sxb-share__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sxb-a-cover { margin: 0 0 48px; border-radius: 24px; overflow: hidden; background: var(--sxb-soft); }
.sxb-a-cover .sxb-img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; }

/* Reading column */
.sxb-prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.9; color: #2b302d; }
.sxb-prose > *:first-child { margin-top: 0; }
.sxb-prose p { margin: 0 0 1.3em; }
.sxb-prose h2,
.sxb-prose h3,
.sxb-prose h4 {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	color: var(--sxb-ink);
	line-height: 1.4;
	margin: 2em 0 .6em;
}
.sxb-prose h2 { font-size: 30px; }
.sxb-prose h3 { font-size: 24px; }
.sxb-prose h4 { font-size: 20px; }
.sxb-prose strong, .sxb-prose b { font-weight: 400; color: var(--sxb-ink); }
.sxb-prose a:not(.sx-post-action) { color: var(--sxb-green) !important; text-decoration: underline; text-underline-offset: 3px; }
.sxb-prose ul,
.sxb-prose ol { margin: 0 0 1.4em; padding-inline-start: 1.4em; }
.sxb-prose li { margin: .4em 0; }
.sxb-prose li::marker { color: var(--sxb-green); }
.sxb-prose blockquote {
	margin: 1.8em 0;
	padding: 20px 24px;
	border-radius: 16px;
	background: var(--sxb-tint);
	border: 1px solid var(--sxb-line);
	border-inline-start: 3px solid var(--sxb-green);
	font-size: 19px;
	color: var(--sxb-ink);
}
.sxb-prose blockquote p:last-child { margin: 0; }
.sxb-prose img { border-radius: 16px; }
.sxb-prose figure { margin: 1.8em 0; }
.sxb-prose figcaption { font-size: 14px; color: var(--sxb-muted); text-align: center; margin-top: 8px; }
.sxb-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.sxb-prose th, .sxb-prose td { padding: 12px 14px; border: 1px solid var(--sxb-line); text-align: start; }
.sxb-prose th { background: var(--sxb-tint); font-weight: 400; color: var(--sxb-ink); }
.sxb-prose hr { border: 0; border-top: 1px solid var(--sxb-line); margin: 2.4em 0; }
.sxb-prose code { background: var(--sxb-surface); border-radius: 6px; padding: 2px 6px; font-size: .9em; }

/* Other plugins' extras inside the article */
.sxb-prose .sx-related,
body.sxb-article-page .sx-rail { display: none !important; }
.sxb-prose .sx-post-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}
.sxb-prose .sx-post-action--static { display: none !important; }
.sxb-prose .sx-post-actions__group { display: inline-flex; gap: 8px; align-items: center; }
.sxb-prose .sx-post-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--sxb-line);
	background: #fff;
	color: var(--sxb-ink) !important;
	font-size: 14px;
	line-height: 1;
	box-shadow: none !important;
	text-decoration: none !important;
}
.sxb-prose .sx-post-action:hover { border-color: var(--sxb-green); color: var(--sxb-green) !important; }
.sxb-prose .sx-post-action svg { width: 17px; height: 17px; }

.sxb-a-foot {
	max-width: 720px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--sxb-line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.sxb-related { max-width: 1240px; margin: 96px auto 0; }
.sxb-related__title {
	font-family: var(--sxb-head) !important;
	font-weight: 400 !important;
	font-size: clamp(28px, 3.4vw, 40px);
	color: var(--sxb-ink);
	margin: 0 0 32px;
	text-align: center;
}
.sxb-wrap { max-width: 1240px; margin: 0 auto; }

/* Theme spacing on the article page */
body.sxb-article-page { background: #fff; }
body.sxb-article-page #page-wrap { display: contents; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.sxb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sxb-feature__link { grid-template-columns: 1fr; gap: 24px; padding: 16px; padding-inline-end: 16px; }
	.sxb-feature__body { padding: 0 8px 12px; }
}
@media (max-width: 767px) {
	.sxb-list { padding: 48px 16px 64px; }
	.sxb-single { padding: 36px 16px 64px; }
	.sxb-hero__lead { font-size: 17px; }
	.sxb-feature__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; }
	.sxb-grid { grid-template-columns: 1fr; gap: 36px; }
	.sxb-topics {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin-inline: -16px;
		padding: 0 16px 6px;
		scrollbar-width: none;
	}
	.sxb-topics::-webkit-scrollbar { display: none; }
	.sxb-topic { flex: 0 0 auto; }
	.sxb-search button { padding: 10px 16px; }
	.sxb-cta { margin-top: 64px; padding: 44px 20px; }
	.sxb-prose { font-size: 17px; }
	.sxb-prose h2 { font-size: 26px; }
	.sxb-prose table { display: block; overflow-x: auto; }
	.sxb-a-cover { border-radius: 16px; margin-bottom: 32px; }
	.sxb-a-bar { flex-direction: column; align-items: flex-start; }
	.sxb-related { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.sxb * { transition: none !important; }
}

/* ---------- 1.1.4: one frame for every post image ----------
   Cards, the featured article, the article cover and images inside the text share
   the same 16:10 box, corners, thin border and a light brand tint at the bottom. */
.sxb-card__media,
.sxb-feature__media,
.sxb-a-cover {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--sxb-line);
	background: var(--sxb-soft);
}
.sxb-card__media::after,
.sxb-feature__media::after,
.sxb-a-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(4, 130, 56, 0) 55%, rgba(4, 130, 56, .08));
}
.sxb-card__media .sxb-img,
.sxb-feature__media .sxb-img,
.sxb-a-cover .sxb-img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Article cover: the width of the text column, like the cards. */
.sxb-a-cover {
	max-width: 720px;
	margin: 0 auto 44px;
}

/* Images inside the article text: full column width, same box and frame.
   The whole picture stays visible (no cropping); a different shape sits on the soft background.
   Add the class "sxb-natural" to an image to keep it at its own size. */
.sxb-prose img:not(.emoji):not(.sxb-natural):not(.sx-post-actions img) {
	display: block;
	width: 100% !important;  /* sizes typed in the editor are ignored, so every image matches */
	max-width: 100%;
	height: auto !important;
	aspect-ratio: 16 / 10;
	object-fit: contain;
	object-position: center;
	margin-inline: auto;
	border-radius: 16px;
	border: 1px solid var(--sxb-line);
	background: var(--sxb-soft);
}
.sxb-prose figure,
.sxb-prose .wp-block-image,
.sxb-prose .wp-caption {
	width: 100% !important;
	max-width: 100%;
	margin: 2em auto;
	float: none !important;
}
.sxb-prose .alignleft,
.sxb-prose .alignright,
.sxb-prose .aligncenter { float: none !important; margin-inline: auto !important; }
.sxb-prose p > img:only-child,
.sxb-prose p > a:only-child > img { margin: 2em auto; }
.sxb-prose figcaption,
.sxb-prose .wp-caption-text,
.sxb-prose .wp-element-caption { font-size: 14px; line-height: 1.6; color: var(--sxb-muted); text-align: center; margin-top: 10px; }
.sxb-prose img.sxb-natural { max-width: 100%; height: auto; border-radius: 12px; }
.sxb-prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 2em 0; }
.sxb-prose .wp-block-gallery figure { margin: 0; }
.sxb-prose .wp-block-gallery img:not(.emoji) { aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 640px) {
	.sxb-a-cover { margin-bottom: 32px; border-radius: 14px; }
	.sxb-prose .wp-block-gallery { grid-template-columns: minmax(0, 1fr); }
}