/* =========================================================
   Zoie — blog: the list (blog.html) and the articles (blog/*.html),
   content from zoie.ai/blog. Builds on styles.css, pricing.css (dark
   header) and compare.css (header sizes, closing card).
   ========================================================= */

.bl-wrap { width: 1180px; max-width: calc(100% - 64px); margin: 0 auto; }

/* ---------- Shared bits: topic, date line ---------- */
.bl-cat { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #16a34a; }
.bl-meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 18px; color: #8a9097; }
.bl-dot { opacity: .7; }
.bl-excerpt {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  font-size: 16px; line-height: 25px; color: #5b6168;
}

/* ---------- Topic filter ---------- */
.bl { padding: 80px 0 120px; }
.bl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-filters button {
  height: 40px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 500; color: #4a5054;
  background: #f1f2f4; box-shadow: inset 0 0 0 1px #e6e8ec; transition: background-color .2s, color .2s, box-shadow .2s;
}
.bl-filters button:hover { color: #0b0c0e; box-shadow: inset 0 0 0 1px #cfd3da; }
.bl-filters button.is-active { color: #fff; background: var(--charcoal); box-shadow: none; }

/* ---------- Newest post, large ---------- */
.bl-feature {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center;
  margin-top: 40px; padding: 16px; border-radius: 28px; background: #f6f7f9; box-shadow: inset 0 0 0 1px #eceef1;
  transition: box-shadow .35s var(--ease-out);
}
.bl-feature:hover { box-shadow: inset 0 0 0 1px #dfe2e7, 0 30px 60px -40px rgba(20, 24, 32, .45); }
.bl-feature-img, .bl-card-img { display: block; overflow: hidden; background: #0b0c0e; }
.bl-feature-img { border-radius: 18px; }
.bl-feature-img img, .bl-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .7s var(--ease-out); }
.bl-feature:hover img, .bl-card:hover img { transform: scale(1.03); }
.bl-feature-body { display: flex; flex-direction: column; align-items: flex-start; padding-inline-end: 32px; }
.bl-feature-title { margin-top: 14px; font-size: 32px; line-height: 39px; font-weight: 700; letter-spacing: -.02em; color: #0b0c0e; }
.bl-feature .bl-excerpt { margin-top: 14px; }
.bl-feature .bl-meta { margin-top: 18px; }
.bl-read {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; margin-top: 26px; padding: 0 22px; border-radius: 99px;
  font-size: 14.5px; font-weight: 600; color: #fff; background: var(--charcoal); transition: gap .3s var(--ease-out);
}
.bl-feature:hover .bl-read { gap: 14px; }

/* ---------- Cards ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.bl-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1px #e6e8ec, 0 20px 40px -34px rgba(20, 24, 32, .4);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.bl-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #d9dde3, 0 26px 50px -30px rgba(20, 24, 32, .45); }
.bl-card-img { border-radius: 22px 22px 0 0; }
.bl-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.bl-card-title { margin-top: 10px; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; color: #0b0c0e; }   /* bold, like the home page's blog cards */
.bl-card .bl-excerpt { margin-top: 8px; font-size: 14.5px; line-height: 22px; -webkit-line-clamp: 2; }
.bl-card .bl-meta { margin-top: auto; padding-top: 18px; }
.bl-card .bl-meta::after {   /* arrow at the end of the date line */
  content: ""; width: 16px; height: 16px; margin-inline-start: auto; opacity: .45;
  background: url("assets/icons/blog-arrow.svg") center / 16px no-repeat; transition: transform .3s var(--ease-out), opacity .3s;
}
.bl-card:hover .bl-meta::after { opacity: 1; transform: translateX(3px); }
[dir="rtl"] .bl-card .bl-meta::after, [dir="rtl"] .bl-read svg { scale: -1 1; }   /* arrows point the way Arabic reads */
.bl-card[hidden], .bl-feature[hidden] { display: none; }

/* ---------- Article header ---------- */
.bp-hero { padding-bottom: 190px; }   /* room for the cover picture to overlap */
.bp-pill { color: #4ade80; }
.bp-title { max-width: 940px; margin-inline: auto; padding-inline: 20px; font-size: 46px; line-height: 54px; letter-spacing: -.02em; }
.bp-sub { max-width: 720px; margin-inline: auto; padding-inline: 20px; }
.bp-meta { display: flex; justify-content: center; margin-top: 20px; }
.bp-meta .bl-meta { color: rgba(255, 255, 255, .6); }

/* ---------- Article ---------- */
.bp-cover {
  position: relative; z-index: 2; width: 1080px; max-width: calc(100% - 64px); margin: -150px auto 0; overflow: hidden;
  border-radius: 24px; background: #0b0c0e; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.bp-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.bp-layout {
  display: grid; grid-template-columns: minmax(0, 720px) 230px; justify-content: space-between; gap: 64px;
  width: 1080px; max-width: calc(100% - 64px); margin: 64px auto 0;
}

.bp-body { font-size: 17.5px; line-height: 1.75; color: #3d4349; }
.bp-body > * + * { margin-top: 20px; }
.bp-body h2 { margin-top: 56px; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; color: #0b0c0e; scroll-margin-top: 100px; }
.bp-body h3 { margin-top: 36px; font-size: 21px; line-height: 29px; font-weight: 600; letter-spacing: -.01em; color: #0b0c0e; }
.bp-body h4 { margin-top: 28px; font-size: 18px; line-height: 26px; font-weight: 600; color: #0b0c0e; }
.bp-body h2 + *, .bp-body h3 + *, .bp-body h4 + * { margin-top: 12px; }
.bp-body > :first-child { margin-top: 0; }
.bp-body strong, .bp-body b { font-weight: 600; color: #0b0c0e; }
.bp-body a { color: #0b0c0e; text-decoration: underline; text-decoration-color: rgba(11, 12, 14, .3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.bp-body a:hover { text-decoration-color: currentColor; }
.bp-body ul, .bp-body ol { padding-inline-start: 1.4em; }
.bp-body ul { list-style: disc; }
.bp-body ol { list-style: decimal; }
.bp-body li + li { margin-top: 8px; }
.bp-body li::marker { color: #9aa0a8; }
.bp-body li p + p { margin-top: 8px; }

/* "Quick answer" opening (articles are always English, left to right) */
.bp-answer { padding: 22px 26px; border-radius: 18px; font-size: 17px; background: #f6f7f9; box-shadow: inset 3px 0 0 var(--ink); }

/* comparison tables (zoie.ai writes them as "Column: value · Column: value" lists) */
.bp-table { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px #e6e8ec; }
.bp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.bp-table th, .bp-table td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid #eceef1; }
.bp-table thead th { font-size: 13.5px; font-weight: 600; color: #fff; background: #0b0c0e; }
.bp-table tbody th { font-weight: 600; color: #0b0c0e; background: #fafbfc; }
.bp-table tbody tr:last-child > * { border-bottom: 0; }
.bp-table caption { caption-side: bottom; padding: 12px 16px 14px; text-align: start; font-size: 14px; line-height: 21px; color: #8a9097; border-top: 1px solid #eceef1; }

/* FAQ questions fold open */
.bp-faq { border-radius: 16px; background: #f6f7f9; box-shadow: inset 0 0 0 1px #eceef1; }
.bp-faq + .bp-faq { margin-top: 10px; }
.bp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 17px; line-height: 25px; font-weight: 600; color: #0b0c0e;
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border: solid #6b7280; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg); transition: transform .25s var(--ease-out), margin .25s;
}
.bp-faq[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.bp-faq > div { padding: 0 22px 20px; font-size: 16px; line-height: 1.7; }
.bp-faq > div > * + * { margin-top: 10px; }

/* contents, pinned beside the article */
.bp-toc { position: sticky; top: 110px; align-self: start; }
.bp-toc-title { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a9097; }
.bp-toc ol { margin-top: 14px; list-style: none; border-inline-start: 1px solid #e6e8ec; }
.bp-toc a {
  display: block; margin-inline-start: -1px; padding-block: 7px; padding-inline: 16px 0; border-inline-start: 2px solid transparent;
  font-size: 13.5px; line-height: 19px; color: #6b7280; transition: color .2s, border-color .2s;
}
.bp-toc a:hover { color: #0b0c0e; }
.bp-toc a.is-on { font-weight: 500; color: #0b0c0e; border-color: var(--ink); }

/* ---------- Keep reading ---------- */
.bp-more { padding: 110px 0 120px; }
.bp-more .bl-grid { margin-top: 40px; }
.bp-more-cta { display: flex; justify-content: center; margin-top: 36px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1219px) {
  .bl-wrap { width: calc(min(760px, 100%) - 64px); max-width: none; }
  .bl-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 14px 14px 28px; }
  .bl-feature-body { padding-inline: 14px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-layout { width: calc(min(760px, 100%) - 64px); max-width: none; grid-template-columns: minmax(0, 1fr); }
  .bp-toc { display: none; }
  .bp-cover { width: calc(min(900px, 100%) - 64px); max-width: none; }
}

@media (max-width: 640px) {
  .bl { padding: 48px 0 84px; }
  .bl-wrap { width: calc(100% - 32px); }
  .bl-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .bl-filters::-webkit-scrollbar { display: none; }
  .bl-filters button { flex: none; height: 38px; padding: 0 16px; font-size: 13.5px; }
  .bl-feature { margin-top: 28px; border-radius: 22px; }
  .bl-feature-img { border-radius: 14px; }
  .bl-feature-title { margin-top: 10px; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }   /* phones: the featured post's title and excerpt the same as every other card's (user's request, 2026-11-02) */
  .bl-feature .bl-excerpt { margin-top: 8px; font-size: 14.5px; line-height: 22px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bp-hero { padding-bottom: 120px; }
  .bp-title { font-size: 30px; line-height: 37px; }
  .bp-cover { width: calc(100% - 32px); margin-top: -90px; border-radius: 16px; }
  .bp-layout { width: calc(100% - 32px); margin-top: 40px; }
  .bp-body { font-size: 16.5px; line-height: 1.72; }
  .bp-body h2 { margin-top: 44px; font-size: 24px; line-height: 31px; }
  .bp-body h3 { font-size: 19px; line-height: 26px; }
  .bp-answer { padding: 18px 20px; font-size: 16px; }
  .bp-faq summary { padding: 16px 18px; font-size: 16px; line-height: 23px; }
  .bp-faq > div { padding: 0 18px 18px; font-size: 15.5px; }
  .bp-more { padding: 80px 0 84px; }
}
