/* ==========================================================================
   Blog listing + detail styles (bl-* listing, bp-* post)
   Aligned with the site's csi-* (case-studies) language.
   ========================================================================== */

/* ---------- Listing hero (compact editorial intro) ---------- */
.bl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #fff5ec 0%, #fffbf8 70%, #ffffff 100%);
  padding: 6.25rem 0 3rem;
}
@media (min-width: 768px) { .bl-hero { padding: 8.5rem 0 3.5rem; } }
.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 50% 0%,  rgba(242, 103, 57, 0.10) 0%, transparent 60%),
    radial-gradient(35% 25% at 85% 10%, rgba(255, 138, 76, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.bl-hero__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.bl-hero__title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  color: #111928;
  letter-spacing: -0.02em;
  margin: 0 auto 0.75rem !important;
  max-width: 720px;
}
@media (min-width: 768px)  { .bl-hero__title { font-size: 2.4rem; } }
@media (min-width: 1280px) { .bl-hero__title { font-size: 2.75rem; } }

.bl-hero .bl-hero__desc {
  font-size: 0.975rem;
  line-height: 1.6;
  color: #4a5568;
  max-width: 620px;
  margin: 0 auto 1.5rem !important;
}
@media (min-width: 768px) { .bl-hero .bl-hero__desc { font-size: 1.05rem; } }

.bl-hero__search {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}
.bl-hero__search i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.2rem;
  pointer-events: none;
}
.bl-hero__search input {
  width: 100%;
  padding: 13px 20px 13px 50px;
  border: 1px solid #ececec;
  border-radius: 999px;
  font-size: 0.925rem;
  background: #fff;
  color: #111928;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04), 0 10px 24px rgba(17,24,39,0.05);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}
.bl-hero__search input::placeholder { color: #9ca3af; }
.bl-hero__search input:focus {
  border-color: #f26739;
  box-shadow: 0 0 0 4px rgba(242, 103, 57, 0.12), 0 10px 24px rgba(17,24,39,0.08);
}

/* ---------- Main: sidebar + content ---------- */
/* Section sits flush against the bottom of the hero (no separator gap), so
   the editorial intro and the article listing feel like one continuous page. */
.bl-main {
  padding: 1.5rem 0 3rem;
  background: #fff;
}
@media (min-width: 768px) { .bl-main { padding: 2rem 0 4rem; } }

/* ---------- Filter sidebar ---------- */
.bl-sidebar {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px rgba(17,24,39,0.04);
}
@media (min-width: 992px) {
  .bl-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
  }
  .bl-sidebar::-webkit-scrollbar      { width: 6px; }
  .bl-sidebar::-webkit-scrollbar-track{ background: transparent; }
  .bl-sidebar::-webkit-scrollbar-thumb{ background: #e5e7eb; border-radius: 3px; }
}

.bl-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 0.875rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #f3f4f6;
}
.bl-sidebar__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111928;
}
.bl-sidebar__title i { color: #f26739; font-size: 1.05rem; }
.bl-sidebar__clear {
  font-size: 0.8rem;
  color: #f26739;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: auto;
  transition: background 0.15s;
}
.bl-sidebar__clear:hover { background: #fff7ed; color: #c2410c; }
.bl-sidebar__close {
  display: none;
  background: none;
  border: 0;
  color: #6b7280;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.bl-sidebar__close:hover { background: #f3f4f6; color: #111928; }

/* Mobile: sidebar becomes a slide-in drawer */
@media (max-width: 991.98px) {
  .bl-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 88vw;
    z-index: 1050;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .bl-sidebar.is-open { transform: translateX(0); }
  .bl-sidebar__close  { display: inline-flex; }
}
.bl-sidebar__overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  z-index: 1040;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.bl-sidebar__overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Filter accordion ---------- */
.bl-accordion + .bl-accordion { border-top: 1px solid #f3f4f6; }
.bl-accordion__btn {
  width: 100%;
  background: none;
  border: 0;
  padding: 0.875rem 0 0.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
}
.bl-accordion__btn:hover { color: #f26739; }
.bl-accordion__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bl-accordion__label i { color: #f26739; font-size: 1rem; }
.bl-accordion__btn:hover .bl-accordion__label i { color: #c2410c; }
.bl-accordion__meta { display: inline-flex; align-items: center; gap: 8px; }
.bl-accordion__count {
  background: #f26739;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.bl-accordion__chevron {
  font-size: 1.2rem;
  color: #6b7280;
  transition: transform 0.2s ease;
}
.bl-accordion.is-open .bl-accordion__chevron { transform: rotate(180deg); }

.bl-accordion__panel { display: none; padding-bottom: 0.5rem; }
.bl-accordion.is-open .bl-accordion__panel { display: block; }

/* ---------- Checklist (filter checkboxes) ---------- */
/* No inner scroll: the sidebar wrapper is the single scroll container so the
   filter never shows a nested scrollbar inside its outer scrollbar. */
.bl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bl-checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.35;
  transition: background 0.15s;
}
.bl-checklist__item:hover { background: #fff7ed; }
.bl-checklist__item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bl-checklist__box {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.bl-checklist__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s;
}
.bl-checklist__item input:checked + .bl-checklist__box {
  background: #f26739;
  border-color: #f26739;
}
.bl-checklist__item input:checked + .bl-checklist__box::after { opacity: 1; }
.bl-checklist__item input:focus-visible + .bl-checklist__box {
  box-shadow: 0 0 0 3px rgba(242, 103, 57, 0.18);
}
.bl-checklist__item input:checked ~ .bl-checklist__label {
  color: #111928;
  font-weight: 600;
}
.bl-checklist__label { flex: 1; }
.bl-checklist__count {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 600;
}

/* ---------- Results column header (count + mobile filter toggle) ---------- */
.bl-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.bl-results__count {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0 !important;
}
.bl-results__count strong { color: #111928; font-weight: 700; }
.bl-results__count-q { color: #6b7280; }

.bl-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.bl-filter-toggle:hover { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.bl-filter-toggle i { font-size: 1rem; color: #f26739; }
.bl-filter-toggle__count {
  background: #f26739;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
@media (max-width: 991.98px) { .bl-filter-toggle { display: inline-flex; } }

/* ---------- Active filter chips ---------- */
.bl-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 1.25rem;
}
.bl-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #c2410c;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.bl-active__chip:hover { background: #ffedd5; border-color: #fdba74; color: #9a3412; }
.bl-active__chip i {
  font-size: 1rem;
  background: rgba(194,65,12,0.12);
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bl-active__chip:hover i { background: rgba(154,52,18,0.18); }
.bl-active__clear {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 4px;
  margin-left: 4px;
}
.bl-active__clear:hover { color: #f26739; text-decoration: underline; }

/* ---------- Featured article (now lives inside the results column) ---------- */
.bl-featured__card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0eeec;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 36px rgba(17,24,39,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin: 0 0 1.75rem;
}
@media (min-width: 768px)  { .bl-featured__card { grid-template-columns: 1.05fr 1fr; } }
.bl-featured__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 24px 48px rgba(17,24,39,0.12);
}
.bl-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f2f6;
}
@media (min-width: 768px) { .bl-featured__media { aspect-ratio: auto; height: 100%; } }
.bl-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bl-featured__card:hover .bl-featured__media img { transform: scale(1.04); }
.bl-featured__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(17,24,39,0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.bl-featured__body {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .bl-featured__body { padding: 1.875rem; } }
/* Topic pill — same bordered tag style as the regular cards. */
.bl-featured__topic {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 24px;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #b43403;
  background: #feecdc;
  border: 1px solid #fcd9bd;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.875rem;
}
.bl-featured__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111928;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem !important;
}
@media (min-width: 768px)  { .bl-featured__title { font-size: 1.45rem; } }
@media (min-width: 1200px) { .bl-featured__title { font-size: 1.6rem; } }
.bl-featured__excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 1rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Meta — author left, date right, pushed to bottom of the column. */
.bl-featured__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}
.bl-featured__meta-author {
  color: #374151;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bl-featured__meta-date {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #6b7280;
}
/* Top-right hover arrow — appears on featured and regular cards. Idle: faint
   gray, hidden by default; on card hover: orange and visible. Position-absolute
   inside the body, which is position: relative. */
.bl-featured__body .cs-card-arrow,
.bl-card__body     .cs-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #d1d5db;
  opacity: 0;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.bl-featured__body .cs-card-arrow svg,
.bl-card__body     .cs-card-arrow svg {
  display: block;
  transition: transform 0.2s ease;
}
.bl-featured__card:hover .cs-card-arrow,
.bl-card:hover           .cs-card-arrow {
  opacity: 1;
  color: #f26739;
}
.bl-featured__card:hover .cs-card-arrow svg,
.bl-card:hover           .cs-card-arrow svg {
  transform: translate(2px, -2px);
}

/* ---------- Results grid ---------- */
.bl-results { padding-bottom: 0; }
/* Cards now live inside col-lg-9 — 2 columns on tablet/desktop, 3 on xl */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}
@media (min-width: 1280px) { .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .bl-grid { grid-template-columns: 1fr; } }

.bl-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  color: inherit;
}
.bl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(17,24,39,0.08);
}
.bl-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: bottom center;
  transition: transform 0.3s ease;
  background: #f6f6f6;
}
.bl-card:hover .bl-card__img {
  transform: scale(1.04);
}
/* Topic-keyed gradient placeholder used when a post has no unique hero image */
.bl-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.bl-card__placeholder--pki         { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); }
.bl-card__placeholder--iam         { background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%); }
.bl-card__placeholder--mfa         { background: linear-gradient(135deg, #be185d 0%, #ec4899 100%); }
.bl-card__placeholder--pam         { background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%); }
.bl-card__placeholder--clm         { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); }
.bl-card__placeholder--enc         { background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%); }
.bl-card__placeholder--ssl         { background: linear-gradient(135deg, #166534 0%, #22c55e 100%); }
.bl-card__placeholder--esign       { background: linear-gradient(135deg, #c2410c 0%, #f97316 100%); }
.bl-card__placeholder--remote      { background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%); }
.bl-card__placeholder--server      { background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%); }
.bl-card__placeholder--trust       { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.bl-card__placeholder__topic {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.bl-card__placeholder__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card__body { position: relative; padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }

/* Topic pill — bordered tag styling aligned with the case-studies .csi-card__tag
   visual language. Normal case (no uppercase), small radius, soft orange. */
.bl-card__topic {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 24px;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #b43403;
  background: #feecdc;
  border: 1px solid #fcd9bd;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

/* Title — clamp to 3 lines for consistent card heights. */
.bl-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111928;
  margin: 0 0 10px;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card__title:hover { color: #f26739; }

/* Excerpt — clamp to 2 lines so meta row aligns across cards. */
.bl-card__excerpt {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta — author left, date right, single row (no wrapping, no separator). */
.bl-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: #6b7280;
}
.bl-card__meta-author {
  color: #374151;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bl-card__meta-date {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #6b7280;
}

/* Pagination */
.bl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 36px 0 0;
  list-style: none;
  padding: 0;
}
.bl-pagination a, .bl-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  background: #fff;
}
.bl-pagination a:hover { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.bl-pagination .is-active {
  background: #f26739;
  color: #fff;
  border-color: #f26739;
}
.bl-pagination .is-disabled {
  color: #d1d5db;
  border-color: #f3f4f6;
  pointer-events: none;
  background: #fafafa;
}

/* Empty state */
.bl-empty {
  text-align: center;
  padding: 3.5rem 1.25rem;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
}
.bl-empty > i {
  font-size: 2.5rem;
  color: #d1d5db;
  display: block;
  margin-bottom: 0.5rem;
}
.bl-empty__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.375rem !important;
}
.bl-empty__desc {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 1rem !important;
}
.bl-empty__reset {
  display: inline-block;
  padding: 8px 18px;
  background: #f26739;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.bl-empty__reset:hover { background: #c2410c; color: #fff; }

/* ==========================================================================
   Detail page
   ========================================================================== */

.bp-banner {
  background: linear-gradient(180deg, #f8f1ff 0%, #FFFBF8 77.6%, rgba(255, 255, 255, 0));
  padding: 7rem 0 1.25rem;
}
@media (min-width: 768px) {
  .bp-banner { padding: 9rem 0 1.75rem; }
}
.bp-breadcrumbs {
  font-size: 0.825rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.bp-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bp-breadcrumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: #cbd5e0;
}
.bp-breadcrumbs a { color: #f26739; text-decoration: none; }
.bp-breadcrumbs a:hover { text-decoration: underline; }

/* Topic pill above the title */
.bp-banner__topic-pill {
  display: inline-block;
  padding: 5px 14px;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1rem;
}
.bp-banner__topic-pill:hover { background: #ffe6d3; color: #9a3412; }

.bp-banner__title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2rem;
  color: #111928;
  max-width: 1080px;
}
@media (min-width: 768px) { .bp-banner__title { font-size: 2.5rem; } }

/* Single byline row: avatar+name+meta on left, share on right */
.bp-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 0.75rem;
}
.bp-byline__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bp-byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
  border: 1px solid #ececec;
}
.bp-byline__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111928;
  line-height: 1.3;
}
.bp-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.825rem;
  color: #6b7280;
  margin-top: 2px;
}
.bp-byline__meta span + span::before {
  content: '·';
  margin-right: 14px;
  color: #cbd5e0;
}

/* Share buttons row */
.bp-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-share__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-right: 4px;
}
.bp-share__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
  text-decoration: none;
}
.bp-share__btn:hover {
  background: #fff7ed;
  border-color: #f26739;
  color: #f26739;
  transform: translateY(-1px);
}
.bp-share__btn.is-copied {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
}
.bp-share__btn.is-copied::after {
  content: 'Copied!';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  background: #111928;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}

/* 2-col layout — uses Bootstrap row/col (col-lg-8 main + col-lg-4 sidebar),
   matching the case-study detail page so the form column has room to breathe
   and the gap stays tight via the standard Bootstrap gutter. */
.bp-content { padding: 2rem 0 5rem; }
@media (min-width: 768px) { .bp-content { padding: 2.5rem 0 6rem; } }

/* Article body — let it fill the lg-8 column instead of capping at 760px,
   which previously fought with the column width and looked off-balance. */
.bp-article {
  max-width: 100%;
}
/* Hero banner intentionally hidden — blog moved to a clean,
   content-focused experience without article banner images. */
.bp-article__hero { display: none !important; }

.bp-article__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1f2937;
}
/* Headings here use !important because Bootstrap's site-wide heading
   reset wins specificity-wise on h2/h3 and otherwise zeros out our margins. */
.bp-article__body h2 {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 3rem 0 1.25rem !important;
  color: #111928 !important;
  scroll-margin-top: 110px;
}
.bp-article__body h3 {
  font-size: 1.225rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 2.5rem 0 1rem !important;
  color: #111928 !important;
  scroll-margin-top: 110px;
}
.bp-article__body p { margin: 0 0 1.5rem !important; }
.bp-article__body a { color: #f26739; text-decoration: underline; }
.bp-article__body a:hover { color: #c2410c; }
/* Bold/strong text inside a link should inherit the link color (otherwise
   the .bp-article__body strong rule below paints it dark and the link ends
   up with a coloured underline + dark text). */
.bp-article__body a strong,
.bp-article__body a b { color: inherit; }
/* Lists — custom Boxicons bullets for a polished, readable look.
   Unordered lists get an orange bx-check (\ea0f), ordered lists keep
   numbered markers (rendered via counter) with the same orange accent. */
.bp-article__body ul,
.bp-article__body ol {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.bp-article__body ul li,
.bp-article__body ol li {
  position: relative;
  padding-left: 1.875rem;
  margin-bottom: 0.625rem;
  line-height: 1.7;
}
.bp-article__body ul li::before {
  font-family: 'boxicons' !important;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\ea0f"; /* bx-check */
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #f26739;
  background: #fff1ea;
  border-radius: 999px;
}
.bp-article__body ol {
  counter-reset: bp-li;
}
.bp-article__body ol li {
  counter-increment: bp-li;
}
.bp-article__body ol li::before {
  content: counter(bp-li);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.375rem;
  height: 1.375rem;
  line-height: 1.375rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #f26739;
  border-radius: 999px;
}
.bp-article__body li > ul,
.bp-article__body li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.bp-article__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}
.bp-article__body strong { color: #111928; }
.bp-article__body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}
.bp-article__body th, .bp-article__body td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
}
.bp-article__body th { background: #f9fafb; font-weight: 600; }
.bp-article__body blockquote {
  border-left: 3px solid #f26739;
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
  background: #fff7ed;
  border-radius: 0 8px 8px 0;
}

/* Tags + author box */
.bp-tags {
  margin: 3rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid #ececec;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-tags__label {
  font-size: 0.825rem;
  color: #6b7280;
  margin-right: 4px;
}
.bp-tags__link {
  display: inline-block;
  padding: 5px 14px;
  background: #fff7ed;
  color: #f26739;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}
.bp-tags__link:hover { background: #ffe6d3; }

.bp-author-box {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafbfc;
  display: flex;
  gap: 22px;
}
.bp-author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}
.bp-author-box__heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 4px;
}
.bp-author-box__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #111928;
}
.bp-author-box__bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}
.bp-author-box__social { margin-top: 8px; }
.bp-author-box__social a {
  color: #0077b5;
  font-size: 1.25rem;
  text-decoration: none;
}

/* Breathing room between the article column and the sidebar/form column on
   the blog post page. Scoped to .bp-content so it doesn't change case-study
   pages that reuse the same .csd-sidebar widget. Only at lg+ — at mobile
   widths the two columns stack and the inset would create unwanted indent. */
@media (min-width: 992px) {
  .bp-content .csd-sidebar { padding-left: 1.5rem; }
}

/* TOC — scrolls naturally with the article (sidebar wrapper is .csd-sidebar
   from case-study.css). */
.bp-toc {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
}
.bp-toc__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: #111928;
  margin: 0 0 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f1f3f5;
}
.bp-toc__list { list-style: none; padding: 0; margin: 0; }
.bp-toc__item { margin-bottom: 0.75rem; }
.bp-toc__item:last-child { margin-bottom: 0; }
.bp-toc__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.45;
  display: inline-block;
}
.bp-toc__link:hover { color: #f26739; }

/* Sidebar contact form uses the shared .csd-* classes defined in
   /css/common/case-study.css so the blog and case-study forms stay in sync. */

/* Related posts */
/* Related articles — full-width section, sibling of .bp-content so it can
   break out of the col-lg-8 article column for a stronger visual break. */
.bp-related {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid #ececec;
}
@media (min-width: 768px) {
  .bp-related { padding: 5rem 0 5.5rem; }
}
.bp-related__title {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 0.5rem !important;
  color: #111928;
  text-align: center;
}
@media (min-width: 768px) {
  .bp-related__title { font-size: 2rem; }
}
.bp-related__sub {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  margin: 0 auto 2.5rem !important;
  max-width: 560px;
  line-height: 1.6;
}
.bp-related .bl-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bp-related .bl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .bp-related .bl-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Bottom CTA strip (Ready to Try?) — site-wide pattern
   ========================================================================== */
.bl-cta {
  background: linear-gradient(135deg, #f8f1ff 0%, #fff7ed 100%);
  padding: 5.5rem 0;
  text-align: center;
}
@media (min-width: 768px) { .bl-cta { padding: 6.5rem 0; } }
.bl-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111928;
  margin: 0 0 1rem;
}
@media (min-width: 768px) { .bl-cta__title { font-size: 2.25rem; } }
.bl-cta .bl-cta__desc {
  font-size: 1rem;
  color: #4a5568;
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}
.bl-cta__btn {
  display: inline-block;
  padding: 12px 28px;
  background: #1c64f2;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.bl-cta__btn:hover { background: #1a56db; color: #fff; }
