/* =========================================================
   Blog hub — /blogs/ and /ar/blogs/
   The top section (heading, search, the newest post and the trending list)
   is drawn in the SPC brand tokens. From the grid down it is a rebuild of the
   Elementor page it replaces, to the same look: those sizes, greys and
   spacings are that page's own, read from its stylesheet (post-3738 and its
   loop template), not sampled from a screenshot; its blue, #004CFF, is
   written as the brand token #004dff.
   Class names are prefixed and every rule is scoped to the template root,
   so nothing here can reach the rest of the theme.
   Layout uses logical properties throughout: the Arabic page is this same
   sheet read right to left, plus the overrides at the end.
   ========================================================= */

.spcfz-blog-hub {
	--spcfz-bh-blue: #004dff; /* --spc-blue */
	--spcfz-bh-blue-deep: #102ea2; /* --spc-blue-2 */
	--spcfz-bh-heading: #333333;
	--spcfz-bh-ink: #222222;
	--spcfz-bh-muted: #606060;
	--spcfz-bh-page: #f7faff;
	--spcfz-bh-line: #d8d8d8;
	--spcfz-bh-line-soft: #e5e5e5;
	--spcfz-bh-field-line: #b2b1b1;
	/* The top section's own. */
	--spcfz-bh-navy: #071329; /* --spc-ink */
	--spcfz-bh-body: #3f4b63;
	--spcfz-bh-slate: #53617c;
	--spcfz-bh-rule: #dfe7f4;
	--spcfz-bh-rule-strong: #c3ccdd;
	--spcfz-bh-tint: #f3f6ff;
	--spcfz-bh-wrap: 1304px;
	--spcfz-bh-card-height: 300px;

	padding-bottom: 80px;
	background: var(--spcfz-bh-page);
	color: var(--spcfz-bh-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.spcfz-blog-hub *,
.spcfz-blog-hub *::before,
.spcfz-blog-hub *::after {
	box-sizing: border-box;
}

/* Elementor's kit styles bare headings and loads after the theme, so every
   heading rule here starts from the template root to stay ahead of it. */
.spcfz-blog-hub h1,
.spcfz-blog-hub h2,
.spcfz-blog-hub h3 {
	margin: 0;
	padding: 0;
	font-family: inherit;
	text-transform: none;
}

.spcfz-blog-hub p {
	margin: 0;
}

.spcfz-blog-hub a {
	color: inherit;
	text-decoration: none;
}

.spcfz-blog-hub img {
	display: block;
	max-width: 100%;
}

.spcfz-blog-hub :focus-visible {
	outline: 2.5px solid var(--spcfz-bh-blue);
	outline-offset: 3px;
	border-radius: 6px;
}

.spcfz-bh-vh {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.spcfz-bh-wrap {
	width: 100%;
	max-width: calc(var(--spcfz-bh-wrap) + 136px);
	margin-inline: auto;
	padding-inline: 68px;
}

/* The centred section headings: "Browse by Topic", "Explore All Blogs", the form's. */
.spcfz-blog-hub .spcfz-bh-heading {
	color: var(--spcfz-bh-heading);
	font-size: 40px;
	font-weight: 600;
	line-height: 48px;
	text-align: center;
}

/* ---------- the top: heading, search, the newest post, trending ---------- */

.spcfz-bh-hero {
	padding: 30px 0 44px;
	border-bottom: 1px solid var(--spcfz-bh-rule);
	background: var(--spcfz-bh-tint);
}

.spcfz-bh-crumb {
	margin-bottom: 28px;
	color: var(--spcfz-bh-slate);
	font-size: 15px;
	line-height: 1.4;
}

.spcfz-blog-hub .spcfz-bh-crumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spcfz-blog-hub .spcfz-bh-crumb li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.spcfz-blog-hub .spcfz-bh-crumb a:hover {
	color: var(--spcfz-bh-blue);
}

.spcfz-bh-crumb [aria-current] {
	color: var(--spcfz-bh-navy);
	font-weight: 500;
}

.spcfz-bh-sep {
	flex: none;
	color: var(--spcfz-bh-rule-strong);
}

.spcfz-bh-hero-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 64px;
}

.spcfz-bh-hero-copy {
	flex: 1 1 520px;
	min-width: 0;
}

.spcfz-blog-hub .spcfz-bh-hero h1 {
	color: var(--spcfz-bh-navy);
	font-size: clamp(32px, 3.2vw, 46px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

/* The second half of the heading, in the brand blue. */
.spcfz-blog-hub .spcfz-bh-hero h1 span {
	color: var(--spcfz-bh-blue);
}

.spcfz-blog-hub .spcfz-bh-lede {
	max-width: 600px;
	margin-top: 14px;
	color: var(--spcfz-bh-body);
	font-size: 17px;
	line-height: 1.6;
}

/*
 * The search field of the category pages (blog-category.css), to the same
 * measures: a white pill, 62px tall, on a soft shadow, with a pill button
 * 6px inside its edge.
 */
.spcfz-bh-search {
	display: flex;
	flex: 0 1 420px;
	align-items: center;
	gap: 13px;
	min-width: 0;
	margin: 0;
	padding-block: 6px;
	padding-inline: 20px 6px;
	border: 1px solid var(--spcfz-bh-rule);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(7, 19, 41, 0.08);
	color: var(--spcfz-bh-slate);
	transition: border-color 0.18s, box-shadow 0.18s;
}

.spcfz-bh-search:focus-within {
	border-color: var(--spcfz-bh-blue);
	box-shadow: 0 0 0 4px rgba(0, 77, 255, 0.12);
}

.spcfz-bh-search svg {
	flex: none;
}

.spcfz-blog-hub .spcfz-bh-search input[type="search"] {
	flex: 1;
	min-width: 0;
	width: auto;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--spcfz-bh-navy);
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
}

.spcfz-blog-hub .spcfz-bh-search input[type="search"]::placeholder {
	color: var(--spcfz-bh-slate);
	opacity: 1;
}

.spcfz-blog-hub .spcfz-bh-search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.spcfz-blog-hub .spcfz-bh-search button {
	flex: none;
	height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--spcfz-bh-blue);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background 0.18s;
}

.spcfz-blog-hub .spcfz-bh-search button:hover,
.spcfz-blog-hub .spcfz-bh-search button:focus {
	background: var(--spcfz-bh-blue-deep);
	color: #fff;
}

/* The same field again, centred under the posts' heading. */
.spcfz-bh-search--list {
	max-width: 620px;
	margin: 22px auto 0;
}

/* The newest post, and the trending list beside it at the same height. */
.spcfz-bh-lead {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 24px 28px;
	margin-top: 32px;
}

.spcfz-bh-feature,
.spcfz-bh-side {
	border: 1px solid var(--spcfz-bh-rule);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(7, 19, 41, 0.08);
}

.spcfz-bh-feature {
	display: flex;
	flex: 1.9 1 560px;
	min-width: 0;
	overflow: hidden;
}

/* Half the card, whatever its height: the picture fills it rather than setting it. */
.spcfz-bh-feature-shot {
	position: relative;
	flex: 0 0 50%;
	min-width: 0;
	min-height: 270px;
	overflow: hidden;
	background: #e6ecf6;
}

.spcfz-blog-hub .spcfz-bh-feature-shot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.spcfz-bh-feature-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	padding: 24px 28px;
}

.spcfz-blog-hub .spcfz-bh-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--spcfz-bh-slate);
	font-size: 13px;
	line-height: 1.4;
}

.spcfz-bh-newest {
	color: var(--spcfz-bh-blue);
	font-weight: 600;
}

.spcfz-bh-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
}

.spcfz-blog-hub .spcfz-bh-feature h2 {
	display: -webkit-box;
	overflow: hidden;
	color: var(--spcfz-bh-navy);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.26;
	letter-spacing: -0.01em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.spcfz-blog-hub .spcfz-bh-feature h2 a:hover,
.spcfz-blog-hub .spcfz-bh-row h3 a:hover {
	color: var(--spcfz-bh-blue);
}

.spcfz-blog-hub .spcfz-bh-feature-dek {
	display: -webkit-box;
	overflow: hidden;
	color: var(--spcfz-bh-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.spcfz-blog-hub .spcfz-bh-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--spcfz-bh-blue);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.spcfz-blog-hub .spcfz-bh-link:hover {
	color: var(--spcfz-bh-blue-deep);
}

.spcfz-bh-link svg {
	flex: none;
	transition: transform 0.2s;
}

.spcfz-bh-side {
	flex: 1 1 340px;
	min-width: 0;
	padding: 16px 22px 6px;
}

.spcfz-blog-hub .spcfz-bh-side h2 {
	margin-bottom: 12px;
	color: var(--spcfz-bh-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

/*
 * More than three posts, beside the newest one: the list scrolls inside the panel. Three rows show
 * and the fourth is cut short and fades out, which is what says there is more.
 * The scrollbar sits in the panel's own padding, so the rows keep their width.
 */
.spcfz-bh-side--scroll {
	position: relative;
	overflow: hidden;
	padding-bottom: 0;
}

.spcfz-bh-side--scroll .spcfz-bh-side-list {
	max-height: 290px;
	margin-inline-end: -12px;
	padding-inline-end: 6px;
	padding-bottom: 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.spcfz-bh-side--scroll::after {
	content: "";
	position: absolute;
	inset-inline: 0 22px;
	bottom: 0;
	height: 28px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.spcfz-bh-side-list::-webkit-scrollbar {
	width: 6px;
}

.spcfz-bh-side-list::-webkit-scrollbar-track {
	background: transparent;
}

.spcfz-bh-side-list::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: var(--spcfz-bh-rule-strong);
}

.spcfz-bh-side-list::-webkit-scrollbar-thumb:hover {
	background: var(--spcfz-bh-slate);
}

/* Firefox: the same thin grey bar, by the standard properties. */
@supports not selector(::-webkit-scrollbar) {
	.spcfz-bh-side-list {
		scrollbar-width: thin;
		scrollbar-color: var(--spcfz-bh-rule-strong) transparent;
	}
}

.spcfz-bh-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 11px 0;
	border-top: 1px solid var(--spcfz-bh-rule);
}

.spcfz-bh-row > div {
	flex: 1;
	min-width: 0;
}

.spcfz-bh-row-shot {
	flex: none;
	overflow: hidden;
	width: 84px;
	height: 56px;
	border-radius: 8px;
	background: #e6ecf6;
}

.spcfz-blog-hub .spcfz-bh-row-shot img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.spcfz-blog-hub .spcfz-bh-row h3 {
	display: -webkit-box;
	overflow: hidden;
	color: var(--spcfz-bh-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.spcfz-blog-hub .spcfz-bh-row-meta {
	margin-top: 4px;
	color: var(--spcfz-bh-slate);
	font-size: 12.5px;
	line-height: 1.4;
}

/* ---------- a post with no picture ---------- */

/* Fills whichever frame it lands in: the newest post's, a trending row's or a card's. */
.spcfz-bh-noimg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, var(--spcfz-bh-blue-deep), var(--spcfz-bh-blue));
}

.spcfz-bh-feature-shot .spcfz-bh-noimg {
	position: absolute;
	inset: 0;
}

/* ---------- the image card ---------- */

/*
 * A picture with its title, author and date over the foot. The dark foot is
 * the inset shadow the old page used, drawn over the picture.
 */
.spcfz-bh-card {
	position: relative;
	overflow: hidden;
	min-height: var(--spcfz-bh-card-height);
	height: 100%;
	border-radius: 12px;
	background: #dfe6f1;
}

.spcfz-bh-card-media {
	position: absolute;
	inset: 0;
}

.spcfz-blog-hub .spcfz-bh-card-media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
}

.spcfz-bh-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: rgba(0, 0, 0, 0.9) 0 -140px 36px -28px inset;
}

/*
 * The post's topic, as a small white chip over the top of the picture: blue
 * text and a blue dot, the white-and-blue of the page's buttons. White reads
 * on any picture; the solid blue pill it replaced was lost against blue skies.
 */
.spcfz-blog-hub .spcfz-bh-card-topic {
	position: absolute;
	top: 14px;
	inset-inline: 14px;
	z-index: 2;
	display: flex;
}

.spcfz-blog-hub .spcfz-bh-card-topic a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding-block: 6px;
	padding-inline: 10px 12px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(7, 19, 41, 0.2);
	color: var(--spcfz-bh-blue);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.2s, color 0.2s;
}

.spcfz-blog-hub .spcfz-bh-card-topic a::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.spcfz-blog-hub .spcfz-bh-card-topic a:hover {
	background: var(--spcfz-bh-blue);
	color: #fff;
}

/* Fills the card, so the title's link can cover all of it. */
.spcfz-bh-card-text {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 20px 15px;
}

.spcfz-blog-hub .spcfz-bh-card-title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 5px 0 20px rgba(0, 0, 0, 0.75);
}

.spcfz-blog-hub .spcfz-bh-card-title a {
	color: #fff;
}

.spcfz-bh-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.spcfz-blog-hub .spcfz-bh-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 14px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-shadow: 5px 0 20px rgba(0, 0, 0, 0.75);
}

/* ---------- the list ---------- */

.spcfz-bh-list {
	padding-top: 70px;
}

.spcfz-blog-hub .spcfz-bh-results {
	margin-top: 12px;
	color: var(--spcfz-bh-muted);
	font-size: 15px;
	text-align: center;
}

.spcfz-bh-results b {
	color: var(--spcfz-bh-ink);
	font-weight: 600;
}

.spcfz-blog-hub .spcfz-bh-results a {
	margin-inline-start: 10px;
	color: var(--spcfz-bh-blue);
	font-weight: 600;
}

.spcfz-bh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 43px 30px;
	margin-top: 33px;
}

.spcfz-bh-empty {
	margin-top: 33px;
	padding: 56px 24px;
	border: 1px dashed var(--spcfz-bh-line);
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

.spcfz-blog-hub .spcfz-bh-empty h3 {
	margin-bottom: 6px;
	color: var(--spcfz-bh-heading);
	font-size: 22px;
	font-weight: 600;
}

/* ---------- pagination: the old page's own styling ---------- */

.spcfz-bh-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
}

.spcfz-blog-hub .spcfz-bh-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(0, 77, 255, 0.1);
	border-radius: 10px;
	background: #fff;
	color: var(--spcfz-bh-blue);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: all 0.25s ease;
}

.spcfz-blog-hub .spcfz-bh-pager .page-numbers.current {
	border-color: var(--spcfz-bh-blue);
	background: var(--spcfz-bh-blue);
	box-shadow: 0 10px 24px rgba(0, 77, 255, 0.28);
	color: #fff;
}

.spcfz-blog-hub .spcfz-bh-pager a.page-numbers:hover {
	border-color: var(--spcfz-bh-blue);
	background: var(--spcfz-bh-blue);
	box-shadow: 0 12px 28px rgba(0, 77, 255, 0.25);
	color: #fff;
	transform: translateY(-2px);
}

.spcfz-blog-hub .spcfz-bh-pager .page-numbers.prev,
.spcfz-blog-hub .spcfz-bh-pager .page-numbers.next {
	min-width: 120px;
	gap: 8px;
}

/* No page to go back to on the first one. */
.spcfz-blog-hub .spcfz-bh-pager span.page-numbers.prev {
	border-color: rgba(100, 116, 139, 0.16);
	color: #64748b;
	opacity: 0.55;
	cursor: not-allowed;
}

.spcfz-bh-pager .page-numbers.prev::before,
.spcfz-bh-pager .page-numbers.next::after {
	margin-bottom: 4px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
}

.spcfz-bh-pager .page-numbers.prev::before {
	content: "‹";
}

.spcfz-bh-pager .page-numbers.next::after {
	content: "›";
}

.spcfz-blog-hub .spcfz-bh-pager .page-numbers.dots {
	min-width: 28px;
	padding: 0 4px;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: #64748b;
}

/* ---------- browse by topic ---------- */

.spcfz-bh-topics {
	padding-top: 70px;
}

.spcfz-blog-hub .spcfz-bh-topic-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

/*
 * Three rows until asked. The list arrives folded (is-folded, set by the
 * template) so the posts under it never jump: the rows past the third are
 * simply left out. The script then takes over: it drops is-folded, holds the
 * list at the height of three rows and marks the rows past them as tucked.
 * Opening and closing glide between the two heights while the tucked rows fade.
 * The counts here (nine, and six on a phone) are three rows of the grid above
 * and must match ROWS in assets/js/blog-hub.js.
 *
 * The list clips only while it is moving. At rest the tucked rows are already
 * invisible, so it can let a hovered tile's shadow spill past its edge.
 */
.spcfz-bh-topic-list > li {
	display: flex;
}

.spcfz-bh-topic-list.is-folded > li:nth-child(n + 10) {
	display: none;
}

.spcfz-bh-topic-list.is-moving {
	overflow: hidden;
	transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Out of sight and out of the tab order. */
.spcfz-bh-topic-list > li.spcfz-bh-tucked {
	visibility: hidden;
	opacity: 0;
}

/* Fading happens only while the list is opening or closing, never on arrival. */
.spcfz-bh-topic-list.is-moving > li {
	transition: opacity 0.4s ease 0.1s, visibility 0s;
}

/* Hidden only once the list has closed over them. */
.spcfz-bh-topic-list.is-moving > li.spcfz-bh-tucked {
	transition: opacity 0.3s ease, visibility 0s linear 0.5s;
}

.spcfz-blog-hub .spcfz-bh-topic-list a {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border: 1px solid var(--spcfz-bh-line-soft);
	border-radius: 12px;
	background: #fff;
	color: var(--spcfz-bh-ink);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.spcfz-blog-hub .spcfz-bh-topic-list a:hover {
	border-color: rgba(0, 77, 255, 0.35);
	box-shadow: 0 12px 28px rgba(0, 77, 255, 0.12);
}

.spcfz-bh-topic-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.spcfz-bh-topic-count {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--spcfz-bh-muted);
	font-size: 14px;
}

.spcfz-bh-topic-arrow {
	color: var(--spcfz-bh-blue);
	transition: transform 0.2s;
}

/* The button wears the pagination's clothes. */
.spcfz-blog-hub .spcfz-bh-topics-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 220px;
	height: 42px;
	margin: 24px auto 0;
	padding: 0 18px;
	border: 1px solid rgba(0, 77, 255, 0.1);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--spcfz-bh-blue);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: all 0.25s ease;
}

.spcfz-blog-hub .spcfz-bh-topics-more:hover {
	border-color: var(--spcfz-bh-blue);
	background: var(--spcfz-bh-blue);
	box-shadow: 0 12px 28px rgba(0, 77, 255, 0.25);
	color: #fff;
}

.spcfz-blog-hub .spcfz-bh-topics-more[hidden] {
	display: none;
}

/* Nine topics or fewer already fit in three rows of three. */
@media (min-width: 768px) {
	.spcfz-blog-hub .spcfz-bh-topics-more--narrow {
		display: none;
	}
}

.spcfz-bh-topics-more svg {
	transition: transform 0.25s;
}

.spcfz-bh-topics-more[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* ---------- enquiry ---------- */

.spcfz-bh-enquiry {
	padding-top: 70px;
}

.spcfz-bh-enquiry-row {
	display: flex;
	align-items: stretch;
	gap: 28px;
	margin-top: 20px;
}

.spcfz-bh-enquiry-photo {
	position: relative;
	flex: 1 1 0;
	overflow: hidden;
	min-height: 488px;
	border-radius: 20px;
	background: #e6ecf6;
}

.spcfz-blog-hub .spcfz-bh-enquiry-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 18% 0;
}

.spcfz-bh-form {
	flex: 1 1 0;
	min-width: 0;
}

/*
 * The enquiry form is Gravity Forms' own markup, dressed as the old page
 * dressed it. Its theme sets sizes through variables on the wrapper's id, so
 * these overrides carry !important; nothing else in this sheet needs it.
 */
.spcfz-bh-form .gform_wrapper.gform-theme {
	--gf-ctrl-choice-size: 20px !important;
	margin: 0;
}

.spcfz-bh-form .gform_wrapper .gform_fields {
	grid-row-gap: 40px !important;
}

.spcfz-bh-form .gform_wrapper .gfield_label {
	margin-bottom: 8px !important;
	color: var(--spcfz-bh-ink) !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 27px !important;
}

/* The old page hid "(Required)" after each label; so does this one. */
.spcfz-bh-form .gform_wrapper .gfield_required {
	display: none !important;
}

.spcfz-bh-form .gform_wrapper input[type="text"],
.spcfz-bh-form .gform_wrapper input[type="email"],
.spcfz-bh-form .gform_wrapper input[type="tel"] {
	width: 100% !important;
	height: 48px !important;
	padding-block: 10px !important;
	border: 1px solid var(--spcfz-bh-field-line) !important;
	border-radius: 8px !important;
	background-color: var(--spcfz-bh-page) !important;
	box-shadow: none !important;
	color: var(--spcfz-bh-heading) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
}

.spcfz-bh-form .gform_wrapper input[type="text"],
.spcfz-bh-form .gform_wrapper input[type="email"] {
	padding-inline: 10px !important;
}

.spcfz-bh-form .gform_wrapper input::placeholder {
	color: #b4b4b4 !important;
	opacity: 1 !important;
}

.spcfz-bh-form .gform_wrapper input[type="text"]:focus,
.spcfz-bh-form .gform_wrapper input[type="email"]:focus,
.spcfz-bh-form .gform_wrapper input[type="tel"]:focus {
	border-color: var(--spcfz-bh-blue) !important;
	outline: 0 !important;
}

/* The country picker wraps the phone input; it should fill the row like the others. */
.spcfz-bh-form .gform_wrapper .iti {
	display: block;
	width: 100%;
}

.spcfz-bh-form .gform_wrapper .ginput_container_consent {
	display: flex !important;
	align-items: flex-start !important;
}

.spcfz-bh-form .gform_wrapper .ginput_container_consent input[type="checkbox"] {
	flex: none;
	margin: 2px 0 0 !important;
}

/* The consent wording is the small print: smaller and greyer than the field labels, so the form reads lighter. */
.spcfz-bh-form .gform_wrapper .gfield_consent_label {
	margin: 0 !important;
	margin-inline-start: 12px !important;
	color: var(--spcfz-bh-muted) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
}

.spcfz-blog-hub--ar .spcfz-bh-form .gform_wrapper .gfield_consent_label {
	line-height: 1.85 !important;
}

.spcfz-bh-form .gform_wrapper .gform_footer {
	justify-content: flex-start !important;
	margin: 30px 0 0 !important;
	padding: 0 !important;
}

.spcfz-bh-form .gform_wrapper .gform_footer input[type="submit"] {
	width: 180px !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 20px !important;
	border: 0 !important;
	border-radius: 36px !important;
	background: var(--spcfz-bh-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background 0.2s;
}

.spcfz-bh-form .gform_wrapper .gform_footer input[type="submit"]:hover {
	background: var(--spcfz-bh-blue-deep) !important;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
	.spcfz-bh-wrap {
		padding-inline: 32px;
	}

	/* Side by side, the newest post's title runs out of room here; one above the other instead. */
	.spcfz-bh-feature,
	.spcfz-bh-side {
		flex-basis: 100%;
	}

	/*
	 * Stacked, the panel has no height to match, and a box that scrolls inside
	 * a page that scrolls is awkward under a thumb: every row shows instead.
	 */
	.spcfz-bh-side--scroll {
		padding-bottom: 6px;
	}

	.spcfz-bh-side--scroll .spcfz-bh-side-list {
		max-height: none;
		margin-inline-end: 0;
		padding-inline-end: 0;
		padding-bottom: 0;
		overflow: visible;
	}

	.spcfz-bh-side--scroll::after {
		content: none;
	}

	.spcfz-bh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 24px;
	}
}

@media (max-width: 767px) {
	.spcfz-blog-hub {
		--spcfz-bh-card-height: 250px;

		padding-bottom: 50px;
	}

	.spcfz-bh-wrap {
		padding-inline: 17px;
	}

	.spcfz-blog-hub .spcfz-bh-heading {
		font-size: 24px;
		line-height: 31.2px;
	}

	.spcfz-bh-hero {
		padding: 22px 0 28px;
	}

	.spcfz-bh-crumb {
		margin-bottom: 20px;
		font-size: 14px;
	}

	.spcfz-blog-hub .spcfz-bh-hero h1 {
		font-size: 33px;
	}

	.spcfz-blog-hub .spcfz-bh-lede {
		font-size: 16px;
	}

	.spcfz-bh-search {
		flex: 1 1 100%;
	}

	.spcfz-bh-lead {
		gap: 18px;
		margin-top: 24px;
	}

	/* The newest post stacks: picture on top, words below. */
	.spcfz-bh-feature {
		flex: 1 1 100%;
		flex-direction: column;
	}

	.spcfz-bh-feature-shot {
		flex: none;
		min-height: 0;
		aspect-ratio: 3 / 2;
	}

	.spcfz-bh-feature-body {
		padding: 20px 18px 22px;
	}

	.spcfz-bh-side {
		flex: 1 1 100%;
		padding: 14px 18px 4px;
	}

	.spcfz-bh-side--scroll {
		padding-bottom: 4px;
	}

	.spcfz-bh-list,
	.spcfz-bh-topics,
	.spcfz-bh-enquiry {
		padding-top: 50px;
	}

	.spcfz-blog-hub .spcfz-bh-card-title {
		font-size: 20px;
		line-height: 1.2;
	}

	.spcfz-blog-hub .spcfz-bh-card-meta {
		font-size: 14px;
	}

	.spcfz-bh-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 33px;
		margin-top: 30px;
	}

	.spcfz-bh-pager {
		margin-top: 32px;
	}

	.spcfz-blog-hub .spcfz-bh-pager .page-numbers {
		min-width: 40px;
		height: 40px;
		border-radius: 9px;
		font-size: 14px;
	}

	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.prev,
	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.next {
		min-width: 0;
		padding: 0 14px;
	}

	.spcfz-blog-hub .spcfz-bh-topic-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 20px;
	}

	.spcfz-bh-topic-list.is-folded > li:nth-child(n + 7) {
		display: none;
	}

	.spcfz-blog-hub .spcfz-bh-topic-list a {
		padding: 14px;
	}

	.spcfz-bh-topic-name {
		font-size: 14.5px;
	}

	.spcfz-bh-topic-count {
		font-size: 13px;
	}

	.spcfz-bh-topic-arrow {
		display: none;
	}

	.spcfz-blog-hub .spcfz-bh-topics-more {
		width: 100%;
		min-width: 0;
		margin-top: 16px;
	}

	/* The old page dropped the photo on phones; the form stands alone. */
	.spcfz-bh-enquiry-photo {
		display: none;
	}

	.spcfz-bh-enquiry-row {
		margin-top: 24px;
	}

	.spcfz-bh-form .gform_wrapper .gform_footer {
		justify-content: center !important;
	}
}

/* On the narrowest phones: Previous, this page, the next page, Next. */
@media (max-width: 480px) {
	.spcfz-bh-pager {
		display: grid;
		grid-template-columns: 1fr 42px 42px 1fr;
		max-width: 360px;
		margin-inline: auto;
		padding: 0 14px;
	}

	.spcfz-blog-hub .spcfz-bh-pager .page-numbers {
		display: none;
	}

	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.prev,
	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.next,
	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.current,
	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.current + a.page-numbers:not(.next) {
		display: inline-flex;
	}

	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.current,
	.spcfz-blog-hub .spcfz-bh-pager .page-numbers.current + a.page-numbers:not(.next) {
		min-width: 42px;
		padding: 0;
	}
}

/* ---------- motion ---------- */

/*
 * Everything that moves lives here, and only for visitors who have not asked
 * their device for less motion. Nothing below can leave content hidden:
 *   - the newest post rises once with a CSS animation that ends at rest; it
 *     moves but never fades, so the largest picture on screen paints at once;
 *   - sections further down are hidden only by the script, only if they are
 *     still below the screen when it runs, and it shows them as they arrive.
 */
@media (prefers-reduced-motion: no-preference) {
	@keyframes spcfz-bh-rise {
		from {
			opacity: 0;
			transform: translateY(16px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}

	@keyframes spcfz-bh-lift {
		from {
			transform: translateY(16px);
		}

		to {
			transform: none;
		}
	}

	.spcfz-bh-feature {
		animation: spcfz-bh-lift 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.spcfz-bh-side {
		animation: spcfz-bh-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
	}

	/* Sections below the screen fade up as they scroll in; see assets/js/blog-hub.js. */
	.spcfz-blog-hub .spcfz-bh-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.spcfz-blog-hub .spcfz-bh-reveal.is-in {
		opacity: 1;
		transform: none;
	}

	/* Pictures ease closer under the pointer. */
	.spcfz-blog-hub .spcfz-bh-card-media img,
	.spcfz-blog-hub .spcfz-bh-feature-shot img,
	.spcfz-blog-hub .spcfz-bh-row-shot img,
	.spcfz-blog-hub .spcfz-bh-enquiry-photo img {
		transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	@media (hover: hover) {
		.spcfz-blog-hub .spcfz-bh-card:hover .spcfz-bh-card-media img,
		.spcfz-blog-hub .spcfz-bh-feature:hover .spcfz-bh-feature-shot img,
		.spcfz-blog-hub .spcfz-bh-row:hover .spcfz-bh-row-shot img,
		.spcfz-blog-hub .spcfz-bh-enquiry-photo:hover img {
			transform: scale(1.045);
		}

		.spcfz-bh-feature:hover .spcfz-bh-link svg {
			transform: translateX(3px);
		}

		.spcfz-blog-hub--ar .spcfz-bh-feature:hover .spcfz-bh-link svg {
			transform: scaleX(-1) translateX(3px);
		}

		.spcfz-blog-hub .spcfz-bh-topic-list a:hover {
			transform: translateY(-2px);
		}

		.spcfz-bh-topic-list a:hover .spcfz-bh-topic-arrow {
			transform: translateX(3px);
		}

		.spcfz-blog-hub--ar .spcfz-bh-topic-list a:hover .spcfz-bh-topic-arrow {
			transform: scaleX(-1) translateX(3px);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.spcfz-blog-hub *,
	.spcfz-blog-hub *::before,
	.spcfz-blog-hub *::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* ---------- Arabic ---------- */

/* Arrows and chevrons point the way the text reads. */
.spcfz-blog-hub--ar .spcfz-bh-sep,
.spcfz-blog-hub--ar .spcfz-bh-link svg,
.spcfz-blog-hub--ar .spcfz-bh-topic-arrow {
	transform: scaleX(-1);
}

.spcfz-blog-hub--ar .spcfz-bh-pager .page-numbers.prev::before {
	content: "›";
}

.spcfz-blog-hub--ar .spcfz-bh-pager .page-numbers.next::after {
	content: "‹";
}

/* Arabic script needs its own face and more leading, and has no capitals. */
.spcfz-blog-hub--ar {
	font-family: "Noto Kufi Arabic", "General Sans", system-ui, sans-serif;
	line-height: 1.8;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-heading {
	font-size: 36px;
	line-height: 1.5;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-hero h1 {
	font-size: clamp(30px, 2.9vw, 42px);
	line-height: 1.45;
	letter-spacing: 0;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-lede {
	font-size: 16px;
	line-height: 1.9;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-feature h2 {
	font-size: 20px;
	line-height: 1.6;
	letter-spacing: 0;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-feature-dek {
	font-size: 14.5px;
	line-height: 1.9;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-row h3 {
	font-size: 14.5px;
	line-height: 1.6;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-meta,
.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-row-meta,
.spcfz-blog-hub--ar .spcfz-bh-crumb {
	line-height: 1.7;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-card-title {
	font-size: 17px;
	line-height: 1.6;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-card-meta {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.6;
}

.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-card-topic a {
	padding-block: 4px;
	line-height: 1.6;
}

.spcfz-blog-hub--ar .spcfz-bh-topic-name {
	line-height: 1.6;
}

@media (max-width: 767px) {
	.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-heading {
		font-size: 22px;
		line-height: 1.6;
	}

	.spcfz-blog-hub.spcfz-blog-hub--ar .spcfz-bh-hero h1 {
		font-size: 28px;
	}
}
