/* ===== Blog article (blog.php) — builds on events.css + blogs.css, site theme --rr-* ===== */
.bp {
  --ev-ink: var(--rr-red, #15171c);
  --ev-navy: var(--rr-navy, #1b2a5b);
  --ev-gray: var(--rr-gray, #5e6470);
  --ev-border: #d8dbe2;
  --ev-circle: var(--rr-circle, #eef0f6);
  color: var(--ev-ink);
}
.bp a { text-decoration: none; }

/* reading progress, sits on top of the fixed navbar */
.bp-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 3px; pointer-events: none; }
.bp-progress span { display: block; height: 100%; background: linear-gradient(90deg, #0c0b0b, #625651); transform: scaleX(0); transform-origin: 0 50%; }

/* ---- Title area ---- */
.bp-hero { position: relative; overflow: hidden; padding: 140px 0 48px; background: linear-gradient(135deg, #0c0b0b, #625651); color: #fff; }   /* same brown as the enquiry popups; padding clears the fixed navbar (~82px) */
.bp-hero::before,
.bp-hero::after {             /* soft rings for depth, as on the "Need Assistance?" banner */
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}
.bp-hero::before { width: 420px; height: 420px; right: -110px; top: -150px; }
.bp-hero::after  { width: 260px; height: 260px; right: 220px; bottom: -170px; }
.bp-hero > .container { position: relative; z-index: 1; }
.bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .65); }
.bp-crumbs a { color: rgba(255, 255, 255, .65); transition: color .2s; }
.bp-crumbs a:hover { color: #fff; }
.bp-crumbs i { font-size: .7rem; }
.bp-crumbs span { color: #fff; font-weight: 600; }
.bp-hero .bl-cat { background: #fff; color: var(--ev-ink); }
.bp-hero h1 { max-width: 920px; margin: 1rem 0 1.4rem; font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; color: #fff; }
.bp-hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.bp-hero .ev-meta { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.bp-hero .ev-meta i { color: #fff; }

.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-share > span { margin-right: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-gray); }
.bp-share a,
.bp-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ev-border);
  border-radius: 50%;
  background: #fff;
  color: var(--ev-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.bp-share a:hover,
.bp-share button:hover { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; transform: translateY(-2px); }
.bp-hero .bp-share > span { color: rgba(255, 255, 255, .65); }
.bp-hero .bp-share a,
.bp-hero .bp-share button { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.bp-hero .bp-share a:hover,
.bp-hero .bp-share button:hover { border-color: #fff; background: #fff; color: var(--ev-ink); }

/* ---- Article + sidebar ---- */
.bp-main { padding: 48px 0 80px; background: #fff; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.bp-article { min-width: 0; }
.bp-cover { margin: 0 0 2.4rem; overflow: hidden; border-radius: 24px; background: #f6f7fa; box-shadow: 0 20px 48px rgba(27, 42, 91, .1); }
.bp-cover img { display: block; width: 100%; height: auto; }

/* article text coming from the admin editor */
.bp-content { font-size: 1.06rem; line-height: 1.85; color: #3d414b; overflow-wrap: break-word; }
.bp-content > :first-child { margin-top: 0; }
.bp-content p { margin: 0 0 1.25rem; }
.bp-content h2,
.bp-content h3 { margin: 2.4rem 0 1rem; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.3; color: var(--ev-ink); scroll-margin-top: 110px; }
.bp-content h4 { margin: 1.8rem 0 .8rem; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--ev-ink); }
.bp-content h2 *,
.bp-content h3 *,
.bp-content h4 * { color: inherit !important; }
.bp-content ul,
.bp-content ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.bp-content li { margin-bottom: .55rem; padding-left: .2rem; }
.bp-content li::marker { color: var(--ev-navy); }
.bp-content a,
.bp-faq-a a { color: #0d6efd; font-weight: 600; text-decoration: none; transition: color .2s; }
.bp-content a:hover,
.bp-faq-a a:hover { color: #0a58ca; }
.bp-content a *,
.bp-faq-a a * { color: inherit !important; text-decoration: none !important; }   /* the editor wraps link text in coloured spans */
.bp-content strong,
.bp-content b { color: var(--ev-ink); }
.bp-content img { max-width: 100%; height: auto !important; border-radius: 16px; }
.bp-content figure { max-width: 100%; margin: 1.8rem 0; }
.bp-content blockquote { margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--ev-ink); border-radius: 0 16px 16px 0; background: #f6f7fa; font-size: 1.1rem; }
.bp-content table { display: block; width: 100% !important; max-width: 100%; margin: 1.8rem 0; overflow-x: auto; border-collapse: collapse; border: 1px solid var(--ev-border); border-radius: 16px; font-size: .95rem; line-height: 1.55; }
.bp-content th,
.bp-content td { min-width: 140px; padding: .85rem 1rem; border-bottom: 1px solid var(--ev-border); text-align: left; vertical-align: top; }
.bp-content th { background: var(--ev-ink); color: #fff; font-weight: 700; }
.bp-content th * { color: #fff !important; }
.bp-content tbody tr:nth-child(even) td { background: #f8f9fb; }

/* ---- FAQ ---- */
.bp-faq { margin: 3rem 0 0; padding: 2.2rem 2.2rem 1.6rem; background: #f6f7fa; border: 1px solid var(--rr-divider, #e3e6ef); border-radius: 24px; scroll-margin-top: 110px; }
.bp-faq h2 { margin: .5rem 0 1.4rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; }
.bp-faq details { margin: 0 0 12px; background: #fff; border: 1px solid var(--ev-border); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.bp-faq details[open] { border-color: var(--ev-ink); box-shadow: 0 12px 28px rgba(27, 42, 91, .08); }
.bp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 1.1rem 1.3rem; font-size: 1.02rem; font-weight: 700; line-height: 1.45; cursor: pointer; list-style: none; }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary i { flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ev-circle); color: var(--ev-navy); transition: transform .25s, background .25s, color .25s; }
.bp-faq details[open] summary i { transform: rotate(45deg); background: var(--ev-ink); color: #fff; }
.bp-faq-a { padding: 0 1.3rem 1.2rem; font-size: .98rem; line-height: 1.75; color: #3d414b; }
.bp-faq-a p { margin: 0 0 .7rem; }
.bp-faq-a > :last-child { margin-bottom: 0; }

/* ---- Share again + previous / next ---- */
.bp-endshare { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 2.6rem 0 0; padding: 1.4rem 0; border-top: 1px solid var(--rr-divider, #e3e6ef); border-bottom: 1px solid var(--rr-divider, #e3e6ef); }
.bp-endshare p { margin: 0; color: var(--ev-gray); }
.bp-endshare p b { color: var(--ev-ink); }
.bp-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2rem 0 0; }
.bp-pager a { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--ev-border); border-radius: 18px; color: var(--ev-ink); font-weight: 700; line-height: 1.4; transition: border-color .25s, box-shadow .25s, transform .25s; }
.bp-pager a:hover { border-color: var(--ev-navy); box-shadow: 0 14px 32px rgba(27, 42, 91, .1); transform: translateY(-3px); color: var(--ev-ink); }
.bp-pager img { flex: 0 0 84px; width: 84px; height: 64px !important; object-fit: cover; border-radius: 12px; }
.bp-pager small { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ev-gray); }
.bp-pager-next { flex-direction: row-reverse; text-align: right; }
.bp-pager a span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }

/* ---- Sidebar ---- */
.bp-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
.bp-card { padding: 1.5rem; background: #fff; border: 1px solid var(--ev-border); border-radius: 22px; box-shadow: 0 14px 36px rgba(27, 42, 91, .06); }
.bp-card h2 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; }
.bp-toc h2 i { margin-right: 6px; color: var(--ev-navy); }
.bp-toc ol { max-height: 300px; margin: 0; padding: 0; overflow-y: auto; list-style: none; counter-reset: toc; }
.bp-toc li a { display: block; padding: .5rem .8rem; border-left: 2px solid var(--rr-divider, #e3e6ef); color: var(--ev-gray); font-size: .92rem; line-height: 1.45; transition: color .2s, border-color .2s, background .2s; }
.bp-toc li a:hover { color: var(--ev-ink); }
.bp-toc li a.is-active { border-color: var(--ev-ink); background: #f6f7fa; color: var(--ev-ink); font-weight: 700; }

.bp-expert { padding: 0; overflow: hidden; }
.bp-expert-head { display: flex; align-items: center; gap: 14px; padding: 1.3rem 1.5rem; background: linear-gradient(135deg, #0c0b0b, #625651); color: #fff; }   /* same as the enquiry popups */
.bp-expert-head h2 { margin: 0 0 2px; color: #fff; }
.bp-expert-head p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .75); }
.bp-expert-ico { flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 1.25rem; }
.bp-expert form { padding: 1.4rem 1.5rem 1.5rem; }
.bp-expert .form-control { min-height: 46px; border-color: var(--ev-border); border-radius: 12px; }
.bp-expert .form-control:focus { border-color: var(--ev-ink); box-shadow: 0 0 0 4px rgba(21, 23, 28, .06); }
.bp-terms { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .88rem; color: var(--ev-gray); }
.bp-terms input { width: 16px; height: 16px; flex: 0 0 auto; }
.bp-terms label { margin: 0; }
.bp-terms a { color: var(--ev-navy); text-decoration: underline; }
.bp-expert .submit-btn { min-height: 48px; border-radius: 12px; }

.bp-follow { text-align: center; }
.bp-follow div { display: flex; justify-content: center; gap: 10px; }
.bp-follow a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ev-circle); color: var(--ev-navy); font-size: 1.1rem; transition: background .2s, color .2s, transform .2s; }
.bp-follow a:hover { background: var(--ev-ink); color: #fff; transform: translateY(-2px); }

/* ---- Related ---- */
.bp-related { padding: 72px 0 88px; }
.bp-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 32px; }
.bp-related-head .rr-title { margin-bottom: 0; }

@media (max-width: 1199.98px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 991.98px) {
  .bp-layout { grid-template-columns: 1fr; }
  .bp-side { position: static; }
  .bp-toc { display: none; }   /* the sidebar drops below the article here, so a contents list would come too late */
}
@media (max-width: 575.98px) {
  .bp-hero { padding: 116px 0 32px; }
  .bp-hero-foot { flex-direction: column; align-items: flex-start; }
  .bp-main { padding: 28px 0 56px; }
  .bp-cover { margin-bottom: 1.8rem; border-radius: 18px; }
  .bp-content { font-size: 1rem; line-height: 1.8; }
  .bp-faq { margin-top: 2.4rem; padding: 1.6rem 1.1rem 1rem; border-radius: 20px; }
  .bp-faq summary { padding: 1rem; font-size: .98rem; }
  .bp-faq-a { padding: 0 1rem 1rem; }
  .bp-pager { grid-template-columns: 1fr; }
  .bp-related { padding: 56px 0 64px; }
  .bp-related-head { flex-direction: column; align-items: flex-start; }
}
