/* Blog list and article pages (front/blog/*), in the colours of the new home (home-new.css).
   Loaded by the blog views only; versioned by file time. */
.blog-page{--navy:#2B2766;--deep:#110E36;--ink:#0A0826;--teal:#1BBDC9;--teal-d:#0d7480;--gold:#FFC93C;--muted:#B9B6E6;--text:#26245a;--text2:#5b5a7a;--line:#e1e3ef;--soft:#f6f7fb;
  background:var(--soft);color:var(--text);font-family:Cairo,sans-serif;padding-bottom:64px}
.blog-page h1,.blog-page h2,.blog-page h3{font-family:Cairo,sans-serif}
.blog-page a{text-decoration:none}

/* ---- navy band under the header ---- */
.blog-hero,.post-head{background:radial-gradient(120% 140% at 50% 0%,#2B2766 0%,#110E36 60%,#0A0826 100%);color:#fff;padding:36px 0 40px}
.blog-crumbs{font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.blog-crumbs a{color:#dcdaf5!important}.blog-crumbs a:hover{color:#6FE6EE!important}
.blog-hero h1,.post-head h1{color:#fff!important;font-weight:900;font-size:clamp(28px,4vw,44px);line-height:1.35;margin:0 0 10px}
.blog-hero p{color:#dcdaf5;font-size:17px;margin:0 0 22px;max-width:640px}
.post-head .meta{color:var(--muted);font-size:15px;margin:0}
.blog-search{display:flex;max-width:520px;background:#fff;border-radius:999px;padding:5px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.blog-search input{flex:1;border:0;outline:0;background:transparent;padding:8px 18px;font:600 16px Cairo,sans-serif;color:var(--text);min-width:0}
.blog-search button{border:0;background:var(--gold);color:var(--ink);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;cursor:pointer;flex:none}
.blog-search button svg{width:20px;height:20px}

.blog-body{padding-top:26px}
.blog-cats{display:flex;gap:8px;overflow-x:auto;padding:4px 0 18px;scrollbar-width:none}
.blog-cats::-webkit-scrollbar{display:none}
.blog-cats a{flex:none;padding:8px 18px;border-radius:999px;background:#fff;border:1.5px solid var(--line);color:var(--text)!important;font-weight:700;font-size:15px;white-space:nowrap}
.blog-cats a:hover{border-color:var(--teal)}
.blog-cats a.on{background:var(--navy);border-color:var(--navy);color:#fff!important}
.blog-result{color:var(--text2);font-weight:700;margin:0 0 16px}

/* ---- cards ---- */
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.blog-card,.blog-featured{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;color:var(--text)!important;transition:transform .2s,box-shadow .2s}
.blog-card:hover,.blog-featured:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(38,32,90,.12)}
.blog-card img,.blog-featured img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;background:var(--deep)}
.blog-card .body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.blog-page .cat{align-self:flex-start;font-size:13px;font-weight:800;color:var(--teal-d);background:rgba(27,189,201,.12);padding:3px 12px;border-radius:999px}
.blog-card h3{font-size:19px;font-weight:800;line-height:1.55;margin:0;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.blog-card p{font-size:15px;line-height:1.8;color:var(--text2);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.blog-page .meta{font-size:13px;color:#8a89a6;margin-top:auto}
.blog-featured{display:grid;grid-template-columns:1.25fr 1fr;margin-bottom:26px}
.blog-featured .txt{padding:28px 30px;display:flex;flex-direction:column;gap:12px;justify-content:center}
.blog-featured h2{font-size:clamp(22px,2.4vw,30px);font-weight:900;line-height:1.5;margin:0;color:var(--text)}
.blog-featured p{color:var(--text2);font-size:16px;line-height:1.9;margin:0}
.blog-featured .meta{margin-top:0}
.blog-featured .more{color:var(--teal-d);font-weight:800}
.blog-empty{background:#fff;border:1px dashed var(--line);border-radius:18px;padding:28px;text-align:center;color:var(--text2)}
.blog-empty a{color:var(--teal-d)!important;font-weight:800}

/* pagination (the site's bootstrap links) */
.blog-pages{margin-top:30px;display:flex;justify-content:center}
.blog-pages .pagination{margin:0;gap:6px;flex-wrap:wrap}
.blog-pages .page-link{border-radius:12px!important;border:1.5px solid var(--line);color:var(--text);font-weight:800;min-width:42px;text-align:center}
.blog-pages .page-item.active .page-link{background:var(--navy);border-color:var(--navy);color:#fff}

/* ---- call to action ---- */
.blog-cta{margin-top:40px;background:radial-gradient(120% 160% at 100% 0%,#2B2766 0%,#110E36 70%);color:#fff;border-radius:22px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.blog-cta h2{color:#fff!important;font-size:24px;font-weight:900;margin:0 0 6px}
.blog-cta p{color:#dcdaf5;margin:0;font-size:16px}
.blog-cta .btns{display:flex;gap:10px;flex-wrap:wrap}
.blog-page .b{display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;border-radius:999px;font-weight:800;font-size:16px;white-space:nowrap}
.blog-page .b.gold{background:var(--gold);color:var(--ink)!important}
.blog-page .b.ghost{border:1.5px solid rgba(255,255,255,.45);color:#fff!important}
.blog-page .b:hover{filter:brightness(1.06)}

/* ---- article ---- */
.post-wrap{max-width:820px}
.post-main{margin-top:-6px}
.post-cover{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-radius:20px;margin-top:26px;box-shadow:0 14px 34px rgba(38,32,90,.16);background:var(--deep)}
.post-toc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 20px;margin:26px 0 6px}
.post-toc summary{cursor:pointer;font-weight:900;font-size:17px;color:var(--navy)}
.post-toc ol{margin:12px 0 4px;padding-inline-start:22px}
.post-toc li{margin:6px 0;line-height:1.7}
.post-toc a{color:var(--teal-d)!important;font-weight:700}
.post-body{font-size:18px;line-height:2;color:#33324f;margin-top:22px;overflow-wrap:anywhere}
.post-body *{font-family:inherit!important;max-width:100%}
.post-body h2{font-size:clamp(22px,2.6vw,27px);font-weight:900;color:var(--navy);line-height:1.55;margin:36px 0 12px;scroll-margin-top:120px}
.post-body h3{font-size:20px;font-weight:800;color:var(--text);line-height:1.6;margin:26px 0 8px}
.post-body p{margin:0 0 16px}
.post-body ul,.post-body ol{margin:0 0 18px;padding-inline-start:26px}
.post-body li{margin:6px 0}
.post-body li::marker{color:var(--teal-d);font-weight:800}
.post-body strong,.post-body b,.post-body .fw{font-weight:800;color:var(--text)}
.post-body a{color:var(--teal-d)!important;font-weight:700;text-decoration:underline!important;text-decoration-thickness:1.5px!important;text-underline-offset:5px}
.post-body img{height:auto;border-radius:14px}
.post-body .note{background:#fff7e6;border:1px solid #ffe2a6;border-inline-start:5px solid var(--gold);border-radius:14px;padding:14px 18px;margin:20px 0;font-size:17px}
.post-body table{width:100%;border-collapse:collapse;margin:8px 0 22px;font-size:16px;background:#fff;border-radius:14px;overflow:hidden;display:block;overflow-x:auto}
.post-body th,.post-body td{border:1px solid var(--line);padding:10px 14px;text-align:start;vertical-align:top;line-height:1.7}
.post-body thead th{background:var(--navy);color:#fff;font-weight:800}
.post-body tbody tr:nth-child(even) td{background:var(--soft)}
.post-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}
.post-share span{font-weight:800;margin-inline-end:6px}
.post-share a,.post-share button{border:1.5px solid var(--line);background:#fff;color:var(--text)!important;border-radius:999px;padding:6px 16px;font:700 14px Cairo,sans-serif;cursor:pointer}
.post-share a:hover,.post-share button:hover{border-color:var(--teal)}
.post-related{margin-top:44px}
.post-related>h2{font-size:26px;font-weight:900;color:var(--navy);margin:0 0 18px}

@media(max-width:991.98px){
  .blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .blog-featured{grid-template-columns:1fr}
}
@media(max-width:575.98px){
  .blog-hero,.post-head{padding:24px 0 28px}
  .blog-grid{grid-template-columns:1fr;gap:16px}
  .blog-featured .txt{padding:18px 18px 20px}
  .post-body{font-size:17px;line-height:1.95}
  .post-cover{border-radius:14px;margin-top:18px}
  .blog-cta{padding:22px 20px}
  .blog-cta .btns,.blog-cta .b{width:100%}
}

/* typography.css and theme-variables.css set every p and heading size, weight and colour with !important:
   the blog states its own with more specific selectors */
.blog-page .blog-hero h1,.blog-page .post-head h1{font-size:clamp(28px,4vw,44px)!important;font-weight:900!important;line-height:1.35!important;color:#fff!important}
.blog-page .blog-hero p{font-size:17px!important;line-height:1.8!important}
.blog-page .post-head .meta{font-size:15px!important}
.blog-page .blog-featured h2{font-size:clamp(22px,2.4vw,30px)!important;font-weight:900!important;line-height:1.5!important;color:var(--text)!important}
.blog-page .blog-featured p{font-size:16px!important;line-height:1.9!important}
.blog-page .blog-card h3{font-size:19px!important;font-weight:800!important;line-height:1.55!important;color:var(--text)!important}
.blog-page .blog-card p{font-size:15px!important;line-height:1.8!important}
.blog-page .blog-cta h2{font-size:24px!important;font-weight:900!important;line-height:1.5!important;color:#fff!important}
.blog-page .blog-cta p{font-size:16px!important;line-height:1.8!important}
.blog-page .post-body p,.blog-page .post-body li{font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important}
.blog-page .post-body h2{font-size:clamp(22px,2.6vw,27px)!important;font-weight:900!important;line-height:1.55!important;color:var(--navy)!important}
.blog-page .post-body h3,.blog-page .post-body h4{font-size:20px!important;font-weight:800!important;line-height:1.6!important;color:var(--text)!important}
.blog-page .post-related>h2{font-size:26px!important;font-weight:900!important;color:var(--navy)!important}
.blog-page .post-toc summary{font-size:17px!important}
