/* Blog pages (listing + detail). Scoped with .bl- */
.bl-page { background: #f6f3fb; font-family: 'Plus Jakarta Sans', sans-serif; color: #1b1530; padding: 20px 0 56px; overflow-x: hidden; }
.bl-page *, .bl-page *::before, .bl-page *::after { box-sizing: border-box; }
.bl-page a { color: var(--brand, #692c91); text-decoration: none; }
.bl-page a:hover { color: var(--brand-dark, #4f216e); }
.bl-page a:focus-visible, .bl-page input:focus-visible, .bl-page button:focus-visible { outline: 2px solid var(--brand, #692c91); outline-offset: 2px; }

.bl-cover { width: 100%; aspect-ratio: 21 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(105, 44, 145, .14); margin-bottom: 28px; background: #ece5f6; }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-cover--empty { display: flex; align-items: center; justify-content: center; color: var(--brand, #692c91); font-size: 3rem; }

.bl-grid { display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 36px; align-items: start; }
.bl-card { background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 4px 18px rgba(27, 21, 48, .06); }
.bl-side { display: grid; gap: 20px; position: sticky; top: 90px; }
.bl-side .bl-card { padding: 20px; }

.bl-pill { display: inline-block; background: #efe7f8; color: var(--brand, #692c91); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.bl-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: #1b1530; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: #6b6b7a; margin-bottom: 22px; }

.bl-body { font-size: 1.05rem; line-height: 1.8; color: #1b1530; max-width: 70ch; word-break: normal; overflow-wrap: break-word; hyphens: manual; }
.bl-body * { word-break: normal !important; overflow-wrap: break-word; hyphens: manual; max-width: 100%; font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; background: transparent !important; white-space: normal !important; }
.bl-body p { margin: 0 0 1.1em; }
.bl-body h1, .bl-body h2, .bl-body h3, .bl-body h4 { margin: 1.6em 0 .6em; line-height: 1.3; font-weight: 700; }
.bl-body h2 { font-size: 1.5rem !important; }
.bl-body h3 { font-size: 1.25rem !important; }
.bl-body ul, .bl-body ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.bl-body li { margin-bottom: .4em; }
.bl-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.bl-body a { color: var(--brand, #692c91) !important; text-decoration: underline; }
.bl-body table { max-width: 100%; display: block; overflow-x: auto; }

.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(105, 44, 145, .12); font-weight: 600; font-size: .9rem; }
.bl-share a { border: 1px solid rgba(105, 44, 145, .25); border-radius: 20px; padding: 6px 14px; font-size: .85rem; }
.bl-share a:hover { background: #f6f3fb; }
.bl-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.bl-nav a { display: block; background: #f6f3fb; border-radius: 10px; padding: 12px 14px; font-size: .9rem; font-weight: 600; overflow-wrap: break-word; }
.bl-nav a small { display: block; color: #6b6b7a; font-weight: 500; margin-bottom: 2px; }
.bl-nav .bl-next { text-align: right; grid-column: 2; }

.bl-side h3 { font-size: 1rem; font-weight: 700; margin: 0 0 14px; color: #1b1530; }
.bl-search { display: flex; gap: 8px; }
.bl-search input { flex: 1; min-width: 0; border: 1px solid rgba(105, 44, 145, .25); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .9rem; }
.bl-search button { background: var(--brand, #692c91); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.bl-search button:hover { background: var(--brand-dark, #4f216e); }

.bl-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bl-recent a { display: flex; gap: 12px; align-items: center; }
.bl-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; object-fit: cover; background: #ece5f6; }
.bl-rtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; font-weight: 600; line-height: 1.35; color: #1b1530; }
.bl-rdate { display: block; font-size: .78rem; color: #6b6b7a; margin-top: 3px; }

/* listing */
.bl-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bl-post { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(27, 21, 48, .06); display: flex; flex-direction: column; }
.bl-post-img { aspect-ratio: 16 / 9; background: #ece5f6; display: block; }
.bl-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-post-body { padding: 18px 20px 22px; }
.bl-post-body h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.bl-post-body h2 a { color: #1b1530; }
.bl-excerpt { color: #4a4a55; font-size: .92rem; line-height: 1.6; margin: 10px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.bl-more { font-weight: 700; font-size: .9rem; }
.bl-pager { margin-top: 24px; }
.bl-empty { background: #fff; border-radius: 14px; padding: 30px; }

@media (max-width: 991.98px) {
    .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .bl-side { position: static; }
    .bl-cover { aspect-ratio: 16 / 9; margin-bottom: 20px; }
    .bl-card { padding: 20px; }
    .bl-title { font-size: 1.6rem; }
}
@media (max-width: 575.98px) {
    .bl-posts { grid-template-columns: minmax(0, 1fr); }
}
