/* ============================================================
   Blog - archive grid + single post, in the site's design language.
   ============================================================ */

/* ---------------- ARCHIVE HERO ---------------- */
.blghero { position: relative; overflow: hidden; }
.blghero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(85% 95% at 60% 40%, #F4F7FF 0%, #EDF2FF 100%);
	border-radius: 0 0 min(3.4vw, 66px) min(3.4vw, 66px);
}
.blghero__inner {
	width: min(1394px, 100% - 2 * var(--shell-pad)); margin-inline: auto;
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
	padding-top: min(9vw, 172px); padding-bottom: min(4vw, 76px);
}
.blghero__title { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 800; font-size: min(2.08vw, 40px); color: #0A2869; margin: 0; }
.blghero__sub { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: min(1.25vw, 24px); color: #626B96; margin: 0; }

/* ---------------- POSTS GRID ---------------- */
.blg { background: #fff; padding-block: 70px 90px; }
.blg__inner { width: min(1394px, 100% - 2 * var(--shell-pad)); margin-inline: auto; display: flex; flex-direction: column; gap: 56px; align-items: center; }
.blg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; }
.blg__card {
	background: #F6F8FF; border-radius: 24px; overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.blg__card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(140, 140, 254, .22); }
.blg__card-link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 30px 28px; }
.blg__thumb { margin: -30px -28px 4px; }
.blg__thumb img { display: block; width: 100%; height: 190px; object-fit: cover; }
.blg__meta {
	display: flex; align-items: center; gap: 10px;
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 500; font-size: 14px; color: #8A93BE;
}
.blg__dot { width: 4px; height: 4px; border-radius: 50%; background: #C1C9E8; }
.blg__card-title {
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.4; color: #0A2869; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blg__excerpt {
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; color: #626B96; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.blg__more {
	margin-top: auto; padding-top: 6px;
	display: inline-flex; align-items: center; gap: 8px;
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 700; font-size: 16px; color: #1582FF;
}
[dir="rtl"] .blg__more svg { transform: scaleX(-1); }
.blg__card:hover .blg__more { text-decoration: underline; }
.blg__empty { font-family: "Noto Sans Hebrew", sans-serif; font-size: 18px; color: #626B96; }

/* pagination */
.blg__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.blg__pages .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 16px; border-radius: 12px;
	background: #F6F8FF; color: #19235F;
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 600; font-size: 16px;
	transition: background .15s ease, color .15s ease;
}
.blg__pages .page-numbers:hover { background: #E4EBFF; }
.blg__pages .page-numbers.current { background: #1582FF; color: #fff; }
.blg__pages .page-numbers.dots { background: none; }

/* ---------------- SINGLE POST ---------------- */
.blgpost__hero { position: relative; overflow: hidden; }
.blgpost__hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(85% 95% at 60% 40%, #F4F7FF 0%, #EDF2FF 100%);
	border-radius: 0 0 min(3.4vw, 66px) min(3.4vw, 66px);
}
.blgpost__hero-inner {
	width: min(900px, 100% - 2 * var(--shell-pad)); margin-inline: auto;
	display: flex; flex-direction: column; gap: 18px;
	padding-top: min(9vw, 172px); padding-bottom: min(4vw, 76px);
}
.blgpost__back {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 600; font-size: 15px; color: #1582FF;
}
.blgpost__back:hover { text-decoration: underline; }
[dir="rtl"] .blgpost__back svg { transform: scaleX(-1); }
.blgpost__title { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 800; font-size: min(2vw, 38px); line-height: 1.3; color: #0A2869; margin: 0; }

.blgpost__figure { width: min(900px, 100% - 2 * var(--shell-pad)); margin: 42px auto 0; }
.blgpost__figure img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 18px 50px rgba(37, 58, 71, .14); }

.blgpost__figure { width: min(900px, 100% - 2 * var(--shell-pad)); margin: 42px auto 0; }
.blgpost__figure img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 18px 50px rgba(37, 58, 71, .14); }

.blgpost__body {
	width: min(900px, 100% - 2 * var(--shell-pad)); margin-inline: auto;
	padding-block: 56px 40px;
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 18px; line-height: 1.85; color: #3A4265;
}
.blgpost__body h2 { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 800; font-size: 27px; line-height: 1.35; color: #0A2869; margin: 1.6em 0 .6em; }
.blgpost__body h3 { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 700; font-size: 22px; line-height: 1.4; color: #0A2869; margin: 1.4em 0 .5em; }
.blgpost__body p { margin: 0 0 1.1em; }
.blgpost__body a { color: #1582FF; text-decoration: underline; text-underline-offset: 2px; }
.blgpost__body ul, .blgpost__body ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.blgpost__body li { margin-bottom: .45em; }
.blgpost__body blockquote {
	margin: 1.6em 0; padding: 22px 28px;
	background: #F6F8FF; border-inline-start: 4px solid #1582FF; border-radius: 12px;
	color: #19235F;
}
.blgpost__body blockquote p:last-child { margin-bottom: 0; }
.blgpost__body img { max-width: 100%; height: auto; border-radius: 16px; }
.blgpost__body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.blgpost__body th, .blgpost__body td { border: 1px solid #E1E7FA; padding: 10px 14px; text-align: start; }
.blgpost__body th { background: #F6F8FF; color: #0A2869; font-weight: 700; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.blg__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
	.blghero__title { font-size: 28px; }
	.blghero__sub { font-size: 17px; }
	.blg { padding-block: 44px 60px; }
	.blg__grid { grid-template-columns: 1fr; gap: 18px; }
	.blg__card-link { padding: 24px 20px; }
	.blgpost__title { font-size: 26px; }
	.blgpost__body { font-size: 17px; padding-block: 36px 24px; }
	.blgpost__body h2 { font-size: 23px; }
	.blgpost__body h3 { font-size: 19px; }
}


/* ---------------- LEGACY IN-CONTENT CTA (.ifal-cta) ----------------
   Old posts embed their own <style> with a teal gradient + orange button.
   Re-skin to the new brand (blue gradient banner, white pill button).
   !important needed - the legacy styles live in a later in-content <style>. */
.blgpost__body .ifal-cta {
	background:
		radial-gradient(36% 58% at 15% 24%, rgba(0, 84, 215, .90), transparent 74%),
		radial-gradient(40% 55% at 28% 100%, rgba(0, 166, 255, .60), transparent 72%),
		linear-gradient(115deg, #1582FF 0%, #0B5ED7 100%) !important;
	border-radius: 28px !important;
	padding: 40px 28px !important;
}
.blgpost__body .ifal-cta p { color: #fff !important; }
.blgpost__body .ifal-cta a {
	background: #fff !important; color: #0B5ED7 !important;
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 800 !important;
	border-radius: 999px !important; padding: 13px 36px !important;
	box-shadow: 0 8px 22px rgba(0, 30, 90, .25);
	transition: transform .2s ease;
}
.blgpost__body .ifal-cta a:hover { transform: translateY(-2px); text-decoration: none !important; }

/* legacy in-content style paints ALL <strong> teal - restore brand navy (white inside the CTA) */
.blgpost__body strong { color: #19235F !important; }
.blgpost__body .ifal-cta strong { color: #fff !important; }


/* ---- Related posts block (single post) ---- */
.blg-rel { padding: clamp(32px, 4vw, 56px) 24px 0; }
.blg-rel__in { max-width: 1180px; margin-inline: auto; }
.blg-rel__title {
	color: var(--c-heading, #19235F);
	font-size: clamp(1.3rem, 2.4vw, 1.6rem);
	margin: 0 0 20px;
	padding-inline-start: 14px;
	border-inline-start: 4px solid var(--c-primary, #1582FF);
}
.blg-rel .blg__card-title { font-size: 1.05rem; }


/* Legacy baked posts carry an in-content <style> declaring 'Heebo' (a font the
   new site never loads → renders as system Arial). Force the site font; font
   only - the color re-skins above must keep winning on their own rules. */
.blgpost__body .ifal-article,
.blgpost__body .ifal-article * {
	font-family: "Noto Sans Hebrew", Arial, sans-serif !important;
}
