/* ════════════════════════════════════════════════════════════════
   Blog — the list (/blog/, blog.php) and one post (/blog/<slug>/, blog-post.php).
   Headings here use Poppins on purpose: the site rule puts Georgia on every
   heading, and the blog cards / overlay title read better in a plain sans.
   ════════════════════════════════════════════════════════════════ */

/* ── shared hero band ── */
.bl-hero { text-align: center; padding: 44px 0 52px; }
.bl-hero .bl-hero-title { zoom: 1; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: #fff; margin: 0; line-height: 1.2; }
.bl-hero .bl-hero-sub { zoom: 1; color: rgba(255,255,255,.84); max-width: 560px; margin: 12px auto 0; line-height: 1.7; font-size: .96rem; }

/* ── cards (list page and "similar articles") ── */
.bl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.bl-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.bl-card:hover, .bl-card:focus-visible { color: inherit; }
.bl-card-img { aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden; background: #EEF3FC; margin-bottom: 18px; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bl-card:hover .bl-card-img img { transform: scale(1.04); }
.bl-grid .bl-card .bl-title { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; font-size: 1rem; line-height: 1.45; color: #101828; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.bl-card:hover .bl-title { color: #2E66B8 !important; }
.bl-card .bl-sum { zoom: 1; font-size: .84rem; line-height: 1.6; color: #667085; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-by { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #475467; }
.bl-by img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #EAECF0; padding: 2px; }
.bl-by strong { font-weight: 600; color: #101828; }

/* ── list page ── */
.bl-main { padding: 48px 0 70px; background: #fff; }
.bl-main h2.bl-head, .bp-similar h2.bl-head { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; font-size: 1.15rem !important; color: #101828; margin: 0 0 22px; }
.bl-more-wrap { text-align: center; margin-top: 44px; }
.bl-more { border: 0; border-radius: 8px; background: #101828; color: #fff; font-weight: 600; font-size: .88rem; padding: 10px 22px; }
.bl-more:hover { background: #2E66B8; }

/* ── one post ── */
.bp-main { background: #fff; padding: 26px 0 56px; }
.bp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: #667085; margin-bottom: 18px; }
.bp-crumbs a { color: #667085; }
.bp-crumbs a:hover { color: #2E66B8; }
.bp-crumbs i { font-size: .6rem; }
.bp-crumbs span { color: #101828; font-weight: 600; }

/* the photo with the title on it */
.bp-cover { position: relative; border-radius: 18px; overflow: hidden; margin: 0; background: #0D1F3C; }
.bp-cover img { width: 100%; height: auto; aspect-ratio: 21 / 9; min-height: 320px; object-fit: cover; display: block; }
.bp-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,31,60,0) 35%, rgba(13,31,60,.82) 100%); }
.bp-cover figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 32px; }
.bp-main .bp-cover h1 { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; color: #fff; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.3; margin: 0; max-width: 900px; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.25); }

/* author · date | topic · read time | share */
.bp-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 2px; border-bottom: 1px solid #EAECF0; margin-bottom: 34px; }
.bp-author { display: flex; align-items: center; gap: 10px; }
.bp-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #EAECF0; padding: 4px; }
.bp-author strong { display: block; font-size: .9rem; color: #101828; line-height: 1.2; }
.bp-author small { display: block; font-size: .78rem; color: #667085; }
.bp-tags { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: #667085; }
.bp-tags span:first-child { padding: 4px 12px; border-radius: 50px; background: #EEF3FC; color: #2E66B8; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.bp-share { display: flex; align-items: center; gap: 8px; }
.bp-share small { font-size: .78rem; color: #475467; font-weight: 600; margin-right: 2px; }
.bp-share a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F2F4F7; color: #475467; font-size: .8rem; transition: background .2s, color .2s; }
.bp-share a:hover { background: #2E66B8; color: #fff; }

/* the article */
.bp-body { color: #475467; font-size: .93rem; line-height: 1.8; }
.bp-main .bp-body p { zoom: 1; margin: 0 0 16px; }                /* no site-wide 12% paragraph zoom here */
.bp-body > p:first-child { color: #344054; font-size: .98rem; }
.bp-main .bp-body h2 { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; font-size: 1.12rem; color: #101828; margin: 34px 0 10px; line-height: 1.4; }
.bp-body ul { margin: 4px 0 20px; padding-left: 1.2rem; }
.bp-body ul li { margin-bottom: 8px; }
.bp-body a { color: #2E66B8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bp-cta { margin: 32px 0 4px; padding: 20px 22px; border-radius: 12px; background: #E8F1FC; border: 1px solid #CFE0F6; }
.bp-cta::before { content: 'Next step'; display: block; font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 700; color: #0D275D; margin-bottom: 6px; }
.bp-cta p { margin: 0 0 14px !important; color: #1F3B6E; font-size: .93rem; line-height: 1.65; }
.bp-cta .bp-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 8px; background: #2E66B8; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; }
.bp-cta .bp-cta-btn:hover { background: #0D275D; color: #fff; }

/* "Popular posts" column */
.bp-side { position: sticky; top: 100px; }
.bp-main .bp-side h2 { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; font-size: 1.2rem; color: #101828; margin: 0 0 18px; }
.bp-pop { display: block; color: inherit; text-decoration: none; margin-bottom: 26px; }
.bp-pop:hover { color: inherit; }
.bp-pop-img { aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #EEF3FC; }
.bp-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bp-pop:hover .bp-pop-img img { transform: scale(1.04); }
.bp-pop-date { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #667085; margin-bottom: 6px; }
.bp-main .bp-pop h3 { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; font-size: .95rem; line-height: 1.45; color: #101828; margin: 0 0 6px; transition: color .2s; }
.bp-pop:hover h3 { color: #2E66B8; }
.bp-pop p { zoom: 1; font-size: .82rem; color: #667085; line-height: 1.6; margin: 0 0 8px; }
.bp-pop-more { font-size: .82rem; font-weight: 700; color: #2E66B8; display: inline-flex; align-items: center; gap: 6px; }

/* "Similar articles for you" */
.bp-similar { background: #F5F8FD; padding: 54px 0 64px; }

@media (max-width: 1199px) { .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .bp-side { position: static; margin-top: 10px; padding-top: 30px; border-top: 1px solid #EAECF0; }
  .bp-side .bp-pops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .bp-side .bp-pop { margin: 0; }
}
@media (max-width: 575px)  {
  .bl-grid { grid-template-columns: 1fr; gap: 30px; }
  .bl-main { padding: 30px 0 48px; }
  .bl-hero { padding: 32px 0 38px; }
  .bp-cover { border-radius: 14px; }
  .bp-cover img { aspect-ratio: 4 / 3; min-height: 0; }
  .bp-cover figcaption { padding: 18px 18px; }
  .bp-info { gap: 12px; }
  .bp-body { font-size: .9rem; }
  .bp-side .bp-pops { grid-template-columns: 1fr; }
}
