/* ALFARiD blog (list, article, home "Latest Insights"). Red #e74c3c, dark #1c1c1c, Nexa / Almarai. */
.bl { --red: #e74c3c; --ink: #1c1c1c; --text: #33363b; --muted: #7b7f86; --line: #ececec; --soft: #f6f6f7; }
.bl img { max-width: 100%; }
.bl [hidden] { display: none !important; }

/* ---------- hero band (list) ---------- */
.bl-hero { background: #161616 radial-gradient(1200px 400px at 50% -10%, rgba(231,76,60,.22), transparent 70%); color: #fff; text-align: center; padding: 150px 0 70px; }
.bl-hero h1 { color: #fff; font-size: 54px; line-height: 1.05; margin: 6px 0 14px; letter-spacing: 1px; }
.bl-eyebrow { color: var(--red); font-size: 13px; letter-spacing: 4px; font-weight: 700; margin: 22px 0 0; }
.bl-sub { color: #bdbdc3; font-size: 17px; max-width: 620px; margin: 0 auto; line-height: 1.7; }
.bl-hero .lang-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.bl-hero .lang-toggle a { color: #ddd; }
.bl-wrap { padding: 60px 0 90px; background: #fff; }
.bl-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- featured article ---------- */
.bl-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: 18px; overflow: hidden; background: var(--soft); color: inherit; text-decoration: none;
    margin-top: -110px; box-shadow: 0 24px 60px rgba(0,0,0,.18); transition: transform .3s ease, box-shadow .3s ease; position: relative; z-index: 2; }
.bl-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,.22); color: inherit; text-decoration: none; }
.bl-feature-img { display: block; min-height: 360px; overflow: hidden; }
.bl-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bl-feature:hover .bl-feature-img img { transform: scale(1.04); }
.bl-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 44px 42px; background: #fff; }
.bl-feature-title { font-size: 30px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.bl-feature .bl-card-excerpt { -webkit-line-clamp: 4; font-size: 16px; }

/* ---------- filters ---------- */
.bl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 30px; }
.bl-filters .blog-filter { border: 1px solid #ddd; background: #fff; color: #555; border-radius: 999px; padding: 8px 18px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; transition: all .2s; }
.bl-filters .blog-filter b { font-weight: 400; opacity: .5; margin-left: 3px; }
.bl-filters .blog-filter:hover { border-color: var(--red); color: var(--red); }
.bl-filters .blog-filter.active { background: var(--red); border-color: var(--red); color: #fff; }
.bl-filters .blog-filter.active b { opacity: .85; }

/* ---------- cards ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bl-wrap .bl-grid { margin-top: 0; }
.bl-feature + .bl-grid { margin-top: 36px; }
.bl-card { min-width: 0; }
.bl-card-link { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
    color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.bl-card-link:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.10); border-color: transparent; color: inherit; text-decoration: none; }
.bl-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-card-link:hover .bl-card-img img { transform: scale(1.05); }
.bl-card-img .bl-pill { position: absolute; top: 14px; left: 14px; }
.bl-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.bl-card-title { font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.bl-card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-meta { color: #9a9ca2; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.bl-more { margin-top: auto; color: #c0392b; font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.bl-pill { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.bl-pill-solid { background: rgba(231,76,60,.1); color: #c0392b; box-shadow: none; }

/* ---------- article ---------- */
.bl-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; background: transparent; }
.bl-progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .1s linear; }
.bl-post { background: #fff; }
.bl-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.bl-post-hero { padding: 140px 0 34px; text-align: left; }
.bl-post-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.bl-back { color: var(--muted); font-size: 13px; letter-spacing: .5px; }
.bl-back:hover { color: var(--red); text-decoration: none; }
.bl-post-title { font-size: 46px; line-height: 1.15; color: var(--ink); margin: 16px 0 16px; text-transform: none; letter-spacing: 0; }
.bl-post-lead { font-size: 20px; line-height: 1.65; color: #55595f; margin: 0 0 26px; }
.bl-byline { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.bl-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--red); padding: 6px; }
.bl-byline b { display: block; color: var(--ink); font-size: 15px; }
.bl-byline small { display: block; color: var(--muted); font-size: 13px; }
.bl-cover { max-width: 1120px; margin: 10px auto 0; padding: 0 20px; }
.bl-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 18px; display: block; }
.bl-layout { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; gap: 40px; padding: 56px 20px 40px; }
.bl-rail { grid-column: 1; justify-self: end; position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bl-rail > span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bl-rail a, .bl-rail button, .bl-share-row a, .bl-share-row button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #444;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: all .2s; padding: 0; }
.bl-rail a:hover, .bl-rail button:hover, .bl-share-row a:hover, .bl-share-row button:hover { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }
.bl-copy.is-done { background: #2e9d58 !important; border-color: #2e9d58 !important; color: #fff !important; }
.bl-content { grid-column: 2; min-width: 0; }
.bl-toc { background: var(--soft); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; padding: 20px 24px; margin-bottom: 36px; }
.bl-toc b { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.bl-toc ol { margin: 0; padding-left: 20px; }
.bl-toc li { margin: 4px 0; font-size: 15px; }
.bl-toc a { color: var(--text); }
.bl-toc a:hover { color: var(--red); }
.bl-body { font-size: 18px; line-height: 1.85; color: var(--text); }
.bl-body p { margin: 0 0 1.25em; }
.bl-body h2 { font-size: 27px; line-height: 1.3; color: var(--ink); margin: 1.8em 0 .6em; text-transform: none; letter-spacing: 0; scroll-margin-top: 100px; }
.bl-body h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--red); border-radius: 3px; margin-bottom: 14px; }
.bl-body h3 { font-size: 21px; color: var(--ink); margin: 1.5em 0 .5em; text-transform: none; }
.bl-body ul, .bl-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.bl-body li { margin: .45em 0; }
.bl-body ul li::marker { color: var(--red); }
.bl-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.bl-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); font-size: 21px; line-height: 1.6; color: var(--ink); font-style: italic; }
.bl-body img { border-radius: 12px; margin: 1em 0; }
.bl-body em { color: var(--ink); }
.bl-share-row { display: none; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.bl-share-row > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-right: 6px; }

/* ---------- CTA + related ---------- */
.bl-cta { padding: 10px 20px 70px; background: #fff; }
.bl-cta-box { max-width: 1080px; margin: 0 auto; border-radius: 20px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
    background: #161616 radial-gradient(600px 220px at 100% 0, rgba(231,76,60,.35), transparent 70%); color: #fff; }
.bl-cta-box h2 { color: #fff; font-size: 28px; margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.bl-cta-box p { color: #c4c4ca; margin: 0; font-size: 16px; }
.bl-cta-box .btn { white-space: nowrap; }
.bl-related { padding: 30px 0 90px; background: var(--soft); }
.bl-related { padding-top: 70px; }
.bl-h2 { font-size: 30px; color: var(--ink); text-align: center; margin: 0 0 34px; }

/* ---------- home "Latest Insights" ---------- */
#blog .bl-grid { margin-top: 10px; }
/* slider: cards the same height, room for the hover lift and shadow, arrows like "What we do" */
#blog .bl-slider { margin-top: 10px; }
#blog .bl-slider .owl-wrapper { display: flex !important; }
#blog .bl-slider .owl-item { display: flex; padding: 8px 14px 26px; }
#blog .bl-slider .owl-item > * { width: 100%; }
#blog .bl-slider .bl-card-link { height: 100%; }
#blog .bl-slider .owl-controls { margin-top: 6px; text-align: center; }
#blog .bl-slider .owl-buttons { display: inline-flex; gap: 12px; vertical-align: middle; }
#blog .bl-slider .owl-buttons div { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d9d9d9; background: #fff; color: #1c1c1c;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
#blog .bl-slider .owl-buttons div:hover, #blog .bl-slider .owl-buttons div:focus-visible { background: #e74c3c; border-color: #e74c3c; color: #fff; outline: none; }
#blog .bl-slider .owl-buttons .disabled { opacity: .35; cursor: default; }
#blog .bl-slider .owl-pagination { margin-top: 14px; }
#blog .bl-slider .owl-page span { width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: #cfcfcf; display: block; }
#blog .bl-slider .owl-page.active span { background: #e74c3c; width: 22px; border-radius: 5px; }
#blog .blog-home-actions { margin-top: 26px; }
@media (max-width: 767px) { #blog .bl-slider .owl-item { padding: 6px 4px 22px; } }

/* ---------- Arabic ---------- */
.blog-rtl, .blog-rtl .bl-card-title, .blog-rtl .bl-feature-title, .blog-rtl .bl-post-title, .blog-rtl .bl-body h2, .blog-rtl .bl-body h3, .blog-rtl h1, .blog-rtl h2 { font-family: 'Almarai', 'Nexa', sans-serif !important; }
.blog-rtl .bl-post-hero { text-align: right; }
.blog-rtl .bl-body { font-size: 19px; line-height: 2; }
.blog-rtl .bl-body ul, .blog-rtl .bl-body ol, .blog-rtl .bl-toc ol { padding-left: 0; padding-right: 1.3em; }
.blog-rtl .bl-toc { border-left: 0; border-right: 3px solid var(--red); border-radius: 12px 0 0 12px; }
.blog-rtl .bl-body blockquote { border-left: 0; border-right: 3px solid var(--red); padding: 4px 22px 4px 0; }
.blog-rtl .bl-card-img .bl-pill { left: auto; right: 14px; }
/* right-to-left already mirrors the grid: the share rail stays in column 1 (on the right side) */
.blog-rtl .bl-meta, .blog-rtl .bl-pill, .blog-rtl .bl-filters .blog-filter { letter-spacing: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) { .bl-layout { grid-template-columns: 70px minmax(0, 1fr); gap: 24px; } .bl-content { grid-column: 2; } }
@media (max-width: 991px) {
    .bl-feature { grid-template-columns: 1fr; margin-top: -80px; }
    .bl-feature-img { min-height: 0; aspect-ratio: 16 / 9; }
    .bl-feature-body { padding: 28px 26px; }
    .bl-feature-title { font-size: 24px; }
    .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .bl-post-title { font-size: 36px; }
    .bl-cta-box { flex-direction: column; align-items: flex-start; padding: 34px 30px; }
}
@media (max-width: 767px) {
    .bl-hero { padding: 120px 0 100px; }
    .bl-hero h1 { font-size: 40px; }
    .bl-grid { grid-template-columns: 1fr; }
    .bl-layout { grid-template-columns: minmax(0, 1fr); padding: 34px 20px 20px; }
    .bl-rail { display: none; }
    .bl-content { grid-column: 1; }
    .bl-share-row { display: flex; }
    .bl-post-hero { padding: 110px 0 24px; }
    .bl-post-title { font-size: 30px; }
    .bl-post-lead { font-size: 17px; }
    .bl-body { font-size: 17px; }
    .bl-body h2 { font-size: 23px; }
    .bl-cover img { border-radius: 12px; }
    .bl-cta-box h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .bl-card-link, .bl-card-img img, .bl-feature, .bl-feature-img img { transition: none; } }

/* review fixes: contents list without double numbers, darker reading text, centred short rows */
.bl-toc ul { list-style: none; margin: 0; padding: 0; }
.bl-toc li { padding: 3px 0; }
.bl-toc li a::before { content: "\2192"; color: var(--red); margin-right: 8px; }
.blog-rtl .bl-toc li a::before { content: "\2190"; margin-right: 0; margin-left: 8px; }
.bl-body, .bl-post-lead { color: #26292e; }
.bl-card-excerpt { color: #6a6e75; }
.bl-related .bl-grid, #blog .bl-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; }

/* 26 Nov 2026: article blocks from the dashboard editor (picture with a line under it, pictures side by side, note box, quote button) */
.bl-body figure { margin: 28px 0; }
.bl-body figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.bl-body figure.bl-img-small img { width: 62%; margin: 0 auto; }
.bl-body figcaption { margin-top: 8px; font-size: .9rem; color: #777; text-align: center; }
.bl-body .bl-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.bl-body .bl-gallery.bl-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-body .bl-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; margin: 0; }
.bl-body .bl-note { margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: rgba(231, 76, 60, .07); border-inline-start: 4px solid #e74c3c; font-weight: 500; }
.bl-body .bl-cta-line { margin: 28px 0; text-align: center; }
.bl-body .bl-cta-btn { display: inline-block; padding: 12px 28px; border-radius: 40px; background: #e74c3c; color: #fff !important; font-weight: 700; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.bl-body .bl-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(231, 76, 60, .3); }
@media (max-width: 575.98px) { .bl-body figure.bl-img-small img { width: 100%; } .bl-body .bl-gallery.bl-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
