/* Blog post page — articles (transcribed clinical summaries) and event recaps */
.bp-hero { position: relative; overflow: hidden; padding: 120px 0 56px; color: #fff; background: linear-gradient(135deg, #192335 0%, #07285A 55%, #2f57ef 100%); }
.bp-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: var(--bp-photo) center / cover no-repeat; opacity: .45; filter: saturate(1.05); }
.bp-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 36, .55) 0%, rgba(10, 18, 36, .82) 70%, rgba(10, 18, 36, .95) 100%); }
.bp-hero.is-article::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.bp-hero .container { position: relative; z-index: 1; max-width: 1080px; }
.bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.bp-crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 600; }
.bp-crumbs a:hover { color: #fff; text-decoration: underline; }
.bp-crumbs i { font-size: 9px; opacity: .6; }
.bp-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 50px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
.bp-chip:first-child { background: linear-gradient(135deg, #ff8a3d, #f26a21); border-color: transparent; }
.bp-hero h1 { color: #fff !important; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; line-height: 1.18; letter-spacing: -.015em; margin: 0 0 14px; max-width: 900px; }
.bp-lead { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 820px; margin: 0 0 20px; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.bp-meta i { margin-right: 6px; opacity: .8; }
.bp-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.bp-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid rgba(255, 255, 255, .5); }

.bp-wrap { padding: 36px 0 90px; background: var(--modern-light-bg, #f8f9fc); }
.bp-wrap .container { max-width: 1180px; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.bp-main { display: grid; gap: 22px; min-width: 0; }
.bp-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.bp-card { background: #fff; border-radius: 18px; border: 1px solid rgba(47, 87, 239, .08); box-shadow: 0 10px 40px rgba(25, 35, 53, .06); padding: 26px 28px; }
.bp-section-title { display: flex; align-items: center; gap: 10px; font-size: 19px !important; font-weight: 700; color: var(--modern-dark, #192335); margin: 0 0 16px; }
.bp-section-title i { color: var(--modern-primary, #2f57ef); }
.bp-section-title span { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 50px; background: rgba(47, 87, 239, .1); color: var(--modern-primary, #2f57ef); }
.bp-muted { color: var(--modern-text, #6b7385); margin: 0; }

/* article typography */
.bp-body { font-size: 16.5px; line-height: 1.8; color: #3b4456; overflow-wrap: anywhere; }
.bp-body > :first-child { margin-top: 0; }
.bp-body h2 { font-size: 23px !important; font-weight: 700; color: var(--modern-dark, #192335); margin: 34px 0 12px; padding-top: 8px; scroll-margin-top: 110px; position: relative; }
.bp-body h2::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ff8a3d, #f26a21); margin-bottom: 12px; }
.bp-body h3 { font-size: 18px !important; font-weight: 700; color: var(--modern-dark, #192335); margin: 24px 0 8px; }
.bp-body p { margin: 0 0 14px; }
.bp-body ul, .bp-body ol { padding-left: 22px; margin: 0 0 16px; }
.bp-body li { margin-bottom: 6px; }
.bp-body li::marker { color: var(--modern-primary, #2f57ef); }
.bp-body strong { color: var(--modern-dark, #192335); }
.bp-body blockquote { margin: 18px 0; padding: 16px 20px; border-left: 4px solid var(--modern-primary, #2f57ef); background: rgba(47, 87, 239, .05); border-radius: 0 12px 12px 0; font-style: italic; color: #2c3547; }
.bp-body img { max-width: 100%; height: auto; border-radius: 12px; }
.bp-table { overflow-x: auto; margin: 16px 0 20px; border-radius: 12px; border: 1px solid rgba(47, 87, 239, .12); }
.bp-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 520px; }
.bp-body th, .bp-body td { padding: 11px 14px; border-bottom: 1px solid rgba(47, 87, 239, .1); text-align: left; vertical-align: top; }
.bp-body tr:last-child td, .bp-body tr:last-child th { border-bottom: 0; }
.bp-body thead th, .bp-body tr:first-child th:only-child, .bp-body table > tbody > tr:first-child > th { background: #07285A; color: #fff; font-weight: 600; }
.bp-body tbody th { background: rgba(47, 87, 239, .05); color: var(--modern-dark, #192335); font-weight: 600; }
.bp-body tbody tr:nth-child(even) td { background: rgba(47, 87, 239, .025); }

/* event */
.bp-feature { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #0b1220; cursor: zoom-in; box-shadow: 0 16px 50px rgba(25, 35, 53, .18); }
.bp-feature img { display: block; width: 100%; max-height: 640px; object-fit: contain; transition: transform .5s ease; }
.bp-feature:hover img { transform: scale(1.02); }
.bp-zoom-hint { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.bp-video { padding: 0; overflow: hidden; }
.bp-video video { display: block; width: 100%; max-height: 640px; background: #000; }
.bp-caption { display: flex; gap: 18px; align-items: flex-start; }
.bp-caption-mark { width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px; display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3d, #f26a21); color: #fff; font-size: 18px; }
.bp-caption .bp-body { font-size: 18px; color: var(--modern-dark, #192335); }
.bp-caption .bp-body p:last-child { margin-bottom: 0; }
.bp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.bp-thumb { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: #e9edf5; }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bp-thumb:hover img { transform: scale(1.06); }

/* infographic */
.bp-infographic { margin: 0; }
.bp-infographic figcaption { font-size: 14px; font-weight: 700; color: var(--modern-dark, #192335); margin-bottom: 12px; }
.bp-infographic figcaption i { color: var(--modern-orange, #f26a21); margin-right: 6px; }
.bp-zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.bp-zoom img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid rgba(47, 87, 239, .1); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

/* actions */
.bp-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 24px; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tags span { padding: 5px 12px; border-radius: 50px; background: rgba(47, 87, 239, .07); color: var(--modern-primary, #2f57ef); font-size: 13px; font-weight: 600; }
.bp-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bp-share-label { font-size: 13px; font-weight: 600; color: var(--modern-text, #6b7385); margin: 0 4px 0 8px; }
.bp-share-btn, .bp-like { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(25, 35, 53, .1); background: #fff; color: var(--modern-dark, #192335); text-decoration: none; cursor: pointer; transition: .25s; }
.bp-like { width: auto; padding: 0 14px; border-radius: 50px; display: inline-flex; gap: 7px; font-weight: 600; }
.bp-like.active { background: var(--modern-primary, #2f57ef); color: #fff; border-color: transparent; }
.bp-share-btn:hover, .bp-like:hover { transform: translateY(-2px); border-color: var(--modern-primary, #2f57ef); color: var(--modern-primary, #2f57ef); }
.bp-share-btn.wa:hover { color: #25d366; border-color: #25d366; }
.bp-share-btn.in:hover { color: #0a66c2; border-color: #0a66c2; }
.bp-share-btn.fb:hover { color: #1877f2; border-color: #1877f2; }

/* comments */
.bp-comment-form { display: grid; gap: 10px; margin-bottom: 18px; }
.bp-comment-form textarea { border-radius: 12px; }
.bp-btn { justify-self: start; padding: 10px 22px; border: 0; border-radius: 50px; background: var(--modern-gradient, linear-gradient(135deg, #2f57ef, #07285A)); color: #fff; font-weight: 600; cursor: pointer; }
.bp-comments .comment-wrap { margin: 0; padding: 0; }

/* sidebar */
.bp-side .bp-card { padding: 20px 22px; }
.bp-side h3 { font-size: 15px !important; font-weight: 700; color: var(--modern-dark, #192335); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.bp-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.bp-toc a { color: var(--modern-text, #6b7385); text-decoration: none; }
.bp-toc a:hover { color: var(--modern-primary, #2f57ef); }
.bp-facts dl { margin: 0; display: grid; gap: 12px; }
.bp-facts dl > div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed rgba(47, 87, 239, .14); }
.bp-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-facts dt { font-size: 13px; font-weight: 500; color: var(--modern-text, #6b7385); }
.bp-facts dt i { width: 18px; color: var(--modern-primary, #2f57ef); }
.bp-facts dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--modern-dark, #192335); text-align: right; }
.bp-author-card { display: flex; align-items: center; gap: 12px; }
.bp-author-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(25, 35, 53, .1); background: #fff; }
.bp-author-card small { display: block; font-size: 12px; color: var(--modern-text, #6b7385); }
.bp-author-card strong { color: var(--modern-dark, #192335); }
.bp-related-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(47, 87, 239, .08); text-decoration: none; color: var(--modern-dark, #192335); font-size: 14px; font-weight: 600; line-height: 1.35; }
.bp-related-item small { display: block; font-size: 11px; font-weight: 700; color: var(--modern-orange, #f26a21); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.bp-related-item:hover { color: var(--modern-primary, #2f57ef); }
.bp-related-img { width: 64px; height: 56px; border-radius: 10px; flex: 0 0 64px; background: linear-gradient(135deg, #2f57ef, #07285A) center / cover; }
.bp-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--modern-primary, #2f57ef); text-decoration: none; }

/* lightbox */
.bp-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 10, 20, .92); display: flex; align-items: center; justify-content: center; padding: 30px 70px; }
.bp-lightbox[hidden] { display: none; }
.bp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.bp-lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.bp-lightbox button:hover { background: rgba(255, 255, 255, .24); }
.bp-lb-close { top: 20px; right: 20px; }
.bp-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.bp-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.bp-lightbox button[hidden] { display: none; }

@media (max-width: 991px) {
    .bp-grid { grid-template-columns: 1fr; }
    .bp-side { position: static; }
    .bp-grid.article .bp-toc { order: -1; }
}
@media (max-width: 575px) {
    .bp-hero { padding: 100px 0 40px; }
    .bp-card { padding: 20px 18px; border-radius: 16px; }
    .bp-body { font-size: 15.5px; }
    .bp-caption { flex-direction: column; }
    .bp-lightbox { padding: 60px 10px; }
    .bp-share { margin-left: 0; }
}

/* dark mode */
html.oa-dark .bp-wrap { background: var(--oa-d-bg); }
html.oa-dark .bp-card, html.oa-dark .bp-share-btn, html.oa-dark .bp-like:not(.active) { background: var(--oa-d-card); border-color: var(--oa-d-line); }
html.oa-dark .bp-body { color: var(--oa-d-text); }
html.oa-dark .bp-body blockquote { color: var(--oa-d-ink); background: rgba(47, 87, 239, .12); }
html.oa-dark .bp-body tbody th { background: rgba(47, 87, 239, .14); }
html.oa-dark .bp-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
html.oa-dark .bp-body th, html.oa-dark .bp-body td, html.oa-dark .bp-table { border-color: var(--oa-d-line) !important; }
html.oa-dark .bp-thumb { background: var(--oa-d-raise); }
html.oa-dark .bp-tags span, html.oa-dark .bp-section-title span { background: rgba(47, 87, 239, .2); color: #9fb4ff; }
html.oa-dark .bp-zoom img { border-color: var(--oa-d-line); }

/* mixed Arabic / English posts: each paragraph takes its own direction */
.bp-body p, .bp-body li, .bp-body h2, .bp-body h3, .bp-body td, .bp-body th, .bp-hero h1, .bp-lead { unicode-bidi: plaintext; text-align: start; }
