/* Blog list and single post. Uses the site's own colours: navy #2c4964, blue #2B7FAB, button #265e90. */
.bl {
  --bl-navy: #2c4964;
  --bl-blue: #2B7FAB;
  --bl-btn: #265e90;
  --bl-text: #3b4a5a;
  --bl-muted: #5f6f80;
  --bl-line: #e2e9f0;
  --bl-soft: #f3f9ff;
  --bl-ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--bl-text);
}
.bl h1, .bl h2, .bl h3 { color: var(--bl-navy); letter-spacing: -.015em; }

/* Shared bits */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--bl-muted); }
.bl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #fff; background: var(--bl-btn); transition: background-color .25s, transform .3s var(--bl-ease), box-shadow .3s; box-shadow: 0 12px 24px -14px rgba(38, 94, 144, .9); }
.bl-btn i { transition: transform .3s var(--bl-ease); }
.bl-btn:hover { color: #fff; background: var(--bl-blue); transform: translateY(-2px); }
.bl-btn:hover i { transform: translateX(4px); }
.bl-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bl-btn); }
.bl-link:hover { color: var(--bl-blue); }
.bl-section-title { margin: 0 0 24px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }

/* Blog hero */
.bl-hero { margin-top: 110px; padding: 72px 0 64px; text-align: center; background: radial-gradient(circle at 1px 1px, rgba(43, 127, 171, .12) 1px, transparent 0) 0 0 / 22px 22px, linear-gradient(180deg, var(--bl-soft), #fff); border-bottom: 1px solid var(--bl-line); }
.bl-hero-inner { max-width: 760px; }
.bl-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bl-btn); background: #fff; border: 1px solid var(--bl-line); }
.bl-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; line-height: 1.12; }
.bl-hero-lead { margin: 0 auto 30px; max-width: 600px; font-size: 18px; line-height: 1.65; color: var(--bl-muted); }
.bl-search { display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 0 auto; padding: 6px 6px 6px 18px; border: 1px solid var(--bl-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -26px rgba(44, 73, 100, .55); transition: border-color .2s, box-shadow .2s; }
.bl-search:focus-within { border-color: var(--bl-blue); box-shadow: 0 0 0 4px rgba(43, 127, 171, .15), 0 18px 40px -26px rgba(44, 73, 100, .55); }
.bl-search > i { color: var(--bl-muted); }
.bl-search input { flex: 1; min-width: 0; padding: 10px 4px; border: 0; outline: 0; font-size: 16px; color: var(--bl-navy); background: transparent; }
.bl-search button { flex: none; padding: 11px 20px; border: 0; border-radius: 10px; font-weight: 600; color: #fff; background: var(--bl-btn); transition: background-color .2s; }
.bl-search button:hover { background: var(--bl-blue); }

/* List */
.bl-list { padding: 56px 0 90px; }
.bl-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding: 14px 18px; border-radius: 12px; background: var(--bl-soft); }
.bl-results p { margin: 0; }
.bl-clear { font-size: 14px; font-weight: 600; color: var(--bl-btn); }

.bl-featured { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 44px; margin-bottom: 64px; padding: 18px; border: 1px solid var(--bl-line); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -44px rgba(44, 73, 100, .6); }
.bl-featured-media { display: block; overflow: hidden; border-radius: 16px; }
.bl-featured-media img, .bl-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--bl-ease); }
.bl-featured:hover .bl-featured-media img, .bl-card:hover .bl-card-media img { transform: scale(1.04); }
.bl-featured-body { padding: 10px 26px 10px 0; }
.bl-badge { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--bl-blue); }
.bl-featured h2 { margin: 10px 0 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.22; }
.bl-featured h2 a, .bl-card-title a { color: inherit; }
.bl-featured h2 a:hover, .bl-card-title a:hover { color: var(--bl-blue); }
.bl-featured-excerpt { margin: 0 0 24px; font-size: 16.5px; line-height: 1.7; color: var(--bl-muted); }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; transition: transform .35s var(--bl-ease), box-shadow .35s, border-color .35s; }
.bl-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 26px 50px -30px rgba(44, 73, 100, .55); }
.bl-card-media { display: block; overflow: hidden; }
.bl-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.bl-card-title { margin: 10px 0 10px; font-size: 18.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* The whole card is one link target */
.bl-card-title a::after { content: ""; position: absolute; inset: 0; }
.bl-card-excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--bl-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--bl-btn); }
.bl-more i { transition: transform .3s var(--bl-ease); }
.bl-card:hover .bl-more i { transform: translateX(4px); }

.bl-empty { max-width: 460px; margin: 20px auto; padding: 48px 24px; text-align: center; border: 1px dashed var(--bl-line); border-radius: 20px; }
.bl-empty > i { font-size: 34px; color: var(--bl-blue); }
.bl-empty h2 { margin: 12px 0 8px; font-size: 22px; }
.bl-empty p { margin-bottom: 22px; color: var(--bl-muted); }

/* Pagination (Laravel's Bootstrap 5 template) */
.bl-pager { margin-top: 56px; }
.bl-pager > nav { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bl-pager > nav > .d-sm-flex { flex-direction: column-reverse; align-items: center !important; gap: 14px; }
.bl-pager p.small { margin: 0; color: var(--bl-muted); }
.bl-pager .pagination { flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.bl-pager .page-link { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--bl-line); border-radius: 10px !important; font-weight: 600; color: var(--bl-navy); background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.bl-pager .page-link:hover { color: var(--bl-btn); border-color: var(--bl-blue); background: var(--bl-soft); }
.bl-pager .page-item.active .page-link { color: #fff; border-color: var(--bl-btn); background: var(--bl-btn); }
.bl-pager .page-item.disabled .page-link { color: #aab6c2; background: #fff; }
.bl-pager .page-link:focus { box-shadow: 0 0 0 4px rgba(43, 127, 171, .2); }

/* Single post */
.bl-progress { position: fixed; inset: 0 0 auto; z-index: 1100; height: 3px; pointer-events: none; }
.bl-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--bl-blue), var(--bl-btn)); transform: scaleX(0); transform-origin: left; }

.bl-post-head { margin-top: 110px; padding: 56px 0 36px; background: linear-gradient(180deg, var(--bl-soft), #fff); }
.bl-narrow { max-width: 860px; }
.bl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; }
.bl-crumbs a { color: var(--bl-muted); }
.bl-crumbs a:hover { color: var(--bl-blue); }
.bl-crumbs i { font-size: 11px; color: #aab6c2; }
.bl-post-head h1 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: 1.15; }
.bl-post-lead { margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--bl-muted); }
.bl-byline { display: flex; align-items: center; gap: 12px; }
.bl-byline strong { display: block; color: var(--bl-navy); font-size: 15px; }
.bl-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--bl-line); overflow: hidden; }
.bl-avatar img { width: 30px; height: 30px; }

.bl-cover { max-width: 1100px; margin-top: 8px; }
.bl-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 70px -50px rgba(44, 73, 100, .8); }

.bl-layout { display: grid; grid-template-columns: minmax(0, 740px) 300px; justify-content: center; gap: 64px; padding-top: 56px; padding-bottom: 80px; }
.bl-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 120px; align-self: start; }
.bl-card-box { padding: 22px; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; }
.bl-aside-title { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-muted); }

.bl-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.bl-toc li { counter-increment: toc; }
.bl-toc a { display: flex; gap: 10px; padding: 8px 10px; border-left: 2px solid var(--bl-line); font-size: 14px; line-height: 1.4; color: var(--bl-muted); transition: color .2s, border-color .2s, background-color .2s; }
.bl-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-size: 12px; font-weight: 600; color: #aab6c2; padding-top: 1px; }
.bl-toc a:hover { color: var(--bl-navy); background: var(--bl-soft); }
.bl-toc a.is-active { color: var(--bl-btn); border-left-color: var(--bl-btn); font-weight: 600; background: var(--bl-soft); }
.bl-toc a.is-active::before { color: var(--bl-btn); }
.bl-aside .bl-toc ol { max-height: 46vh; overflow-y: auto; }
.bl-toc-mobile { display: none; margin-bottom: 28px; border: 1px solid var(--bl-line); border-radius: 14px; background: var(--bl-soft); }
.bl-toc-mobile summary { padding: 14px 18px; font-weight: 600; color: var(--bl-navy); cursor: pointer; }
.bl-toc-mobile ol { padding: 0 12px 12px; }

.bl-cta { padding: 26px 24px; border-radius: 18px; color: rgba(255, 255, 255, .85); background: linear-gradient(150deg, #2c537a, var(--bl-navy)); box-shadow: 0 30px 50px -36px rgba(44, 73, 100, .9); }
.bl-cta-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fd0ea; }
.bl-cta-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; }
.bl-cta > p:not([class]) { margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; }
.bl-btn-light { width: 100%; justify-content: center; color: var(--bl-navy); background: #fff; box-shadow: none; }
.bl-btn-light:hover { color: var(--bl-navy); background: #e2e9ed; }
.bl-cta-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: #fff; }
.bl-cta-phone:hover { color: #9fd0ea; }

.bl-share-links { display: flex; gap: 8px; }
.bl-share-links a, .bl-share-links button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--bl-line); border-radius: 10px; font-size: 17px; color: var(--bl-navy); background: #fff; transition: color .2s, background-color .2s, border-color .2s, transform .25s var(--bl-ease); }
.bl-share-links a:hover, .bl-share-links button:hover { color: #fff; background: var(--bl-btn); border-color: var(--bl-btn); transform: translateY(-2px); }
.bl-copied { position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 4px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; color: #fff; background: var(--bl-navy); transform: translateX(-50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.bl-copied:not(:empty) { opacity: 1; }
.bl-share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 48px; padding: 20px 0 0; border-top: 1px solid var(--bl-line); font-weight: 600; color: var(--bl-navy); }

/* Article body: content comes from the editor, Word and chat tools, so stray inline fonts are overridden */
.bl-prose { font-size: 17.5px; line-height: 1.8; color: var(--bl-text); overflow-wrap: break-word; }
.bl-prose * { font-family: inherit !important; }
.bl-prose [style*="font-size"] { font-size: inherit !important; }
.bl-prose [style*="color"]:not(a) { color: inherit !important; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose p, .bl-prose ul, .bl-prose ol, .bl-prose blockquote, .bl-prose .bl-table { margin: 0 0 1.3em; }
.bl-prose h2, .bl-prose h3, .bl-prose h4 { color: var(--bl-navy); font-weight: 700; scroll-margin-top: 130px; }
.bl-prose h1, .bl-prose h2 { margin: 2em 0 .7em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; }
.bl-prose h3 { margin: 1.7em 0 .6em; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.4; }
.bl-prose h4 { margin: 1.5em 0 .5em; font-size: 18px; }
.bl-prose a { color: var(--bl-btn); text-decoration: underline; text-decoration-color: rgba(38, 94, 144, .35); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.bl-prose a:hover { color: var(--bl-blue); text-decoration-color: currentColor; }
.bl-prose strong, .bl-prose b { color: var(--bl-navy); font-weight: 600; }
.bl-prose ul, .bl-prose ol { padding-left: 1.4em; }
.bl-prose li { margin-bottom: .45em; padding-left: .2em; }
.bl-prose li::marker { color: var(--bl-blue); font-weight: 600; }
.bl-prose blockquote { padding: 20px 24px; border-left: 4px solid var(--bl-blue); border-radius: 0 14px 14px 0; font-size: 1.02em; color: var(--bl-navy); background: var(--bl-soft); }
.bl-prose blockquote p:last-child { margin-bottom: 0; }
.bl-prose hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--bl-line); opacity: 1; }
.bl-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.bl-prose .bl-table { overflow-x: auto; border: 1px solid var(--bl-line); border-radius: 14px; }
.bl-prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.bl-prose th, .bl-prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bl-line); }
.bl-prose th, .bl-prose thead td { font-weight: 600; color: var(--bl-navy); background: var(--bl-soft); }
.bl-prose tr:last-child td { border-bottom: 0; }

.bl-related { padding: 72px 0 90px; background: var(--bl-soft); }
.bl-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.bl-related-head .bl-section-title { margin: 0; }

@media (max-width: 1199px) {
  .bl-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; }
}
@media (max-width: 991px) {
  .bl-featured { grid-template-columns: 1fr; gap: 22px; }
  .bl-featured-body { padding: 0 8px 8px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .bl-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; }
  .bl-article { max-width: 740px; margin: 0 auto; width: 100%; }
  .bl-aside { position: static; max-width: 740px; width: 100%; margin: 40px auto 0; }
  .bl-aside .bl-toc { display: none !important; }
  .bl-toc-mobile:not([hidden]) { display: block; }
}
@media (max-width: 575px) {
  .bl-hero { padding: 48px 0 44px; }
  .bl-hero-lead { font-size: 16.5px; }
  .bl-search { padding-left: 14px; }
  .bl-search button { padding: 11px 14px; }
  .bl-list { padding: 36px 0 64px; }
  .bl-featured { padding: 12px; border-radius: 18px; margin-bottom: 44px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-post-head { padding: 36px 0 26px; }
  .bl-cover img { border-radius: 14px; }
  .bl-prose { font-size: 17px; }
  .bl-related-head { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl *, .bl *::before, .bl *::after { transition: none !important; }
}
