/* ==========================================================================
   iCore Digital — blog-post.css
   Reusable layout for every single blog post (/blog/your-post.html)

   Load order in <head> (this file goes LAST, after your global CSS):
   mymain.css → header.css → footer.css → lead-form.css → blog-post.css

   Why this file exists: mymain.css starts with a global reset
   (* { margin:0; padding:0 }), so lists, paragraphs and headings lose their
   spacing. Everything below re-adds spacing only inside .bp-article.
   ========================================================================== */

:root {
  --bp-navy: #0b1a30;
  --bp-ink: #334155;
  --bp-muted: #64748b;
  --bp-red: #e50914;       /* matches .service-arrow-btn on the homepage */
  --bp-red-dark: #b91c1c;  /* matches .read-more-lbl (readable on white) */
  --bp-soft: #f5f5f5;      /* matches the About Us band on the homepage */
  --bp-line: #e2e8f0;
  --bp-font: "Poppins", "Segoe UI", sans-serif;
}

.bp-page {
  font-family: var(--bp-font);
  color: var(--bp-ink);
  background: #ffffff;
}

/* ===================== LAYOUT CONTAINERS ===================== */
.bp-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Reading column: Poppins is a wide face, so ~720px keeps lines near 70 characters */
.bp-narrow {
  max-width: 820px;
}

/* ===================== POST HEADER BAND ===================== */
.bp-hero {
  background: var(--bp-soft);
  border-bottom: 1px solid var(--bp-line);
  padding: 32px 0 110px; /* extra bottom space: the featured image overlaps this band */
}

.bp-hero .bp-container {
  max-width: 820px;
}

.bp-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.85rem;
  color: var(--bp-muted);
}

.bp-breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #94a3b8;
}

.bp-breadcrumb a {
  color: var(--bp-muted);
  text-decoration: none;
}

.bp-breadcrumb a:hover,
.bp-breadcrumb a:focus-visible {
  color: var(--bp-red-dark);
  text-decoration: underline;
}

.bp-tag {
  display: inline-block;
  margin-top: 28px;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bp-navy);
}

.bp-hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--bp-navy);
}

.bp-lead {
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--bp-ink);
}

.bp-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--bp-muted);
}

.bp-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bp-meta i {
  color: var(--bp-red);
}

/* ===================== FEATURED IMAGE ===================== */
.bp-featured {
  position: relative;
  z-index: 2;
  margin: -70px auto 0; /* pulls the image up into the header band, like the homepage cards */
}

.bp-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--bp-navy); /* holds the space while the image loads */
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(11, 26, 48, 0.18);
}

/* ===================== ARTICLE BODY ===================== */
.bp-content {
  padding: 48px 0 8px;
}

.bp-content h2 {
  margin: 48px 0 16px;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--bp-navy);
}

.bp-content h2:first-child {
  margin-top: 0;
}

.bp-content p {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.bp-content a {
  color: var(--bp-red-dark);
  text-underline-offset: 3px;
}

.bp-content a:hover {
  color: var(--bp-navy);
}

/* Reused button from mymain.css: keep its white text and remove the underline */
.bp-content a.btn-profile2,
.bp-content a.btn-profile2:hover {
  color: #ffffff;
  text-decoration: none;
}

.bp-content a.btn-profile2:hover {
  background-color: #1f2937;
}

.bp-content ul.bp-list {
  margin: 0 0 24px;
  padding-left: 1.4em;
}

.bp-content ul.bp-list li {
  margin-bottom: 12px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.bp-content ul.bp-list li::marker {
  color: var(--bp-red);
}

.bp-content strong {
  color: var(--bp-navy);
  font-weight: 600;
}

/* Keyboard keys: F12, Ctrl, etc. */
.bp-content kbd {
  display: inline-block;
  padding: 1px 8px;
  font: 600 0.85em var(--bp-font);
  color: var(--bp-navy);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ===================== QUICK-ANSWER BOX ===================== */
.bp-quickfix {
  margin: 0 0 40px;
  padding: 22px 26px;
  background: #fff7f7;
  border-left: 4px solid var(--bp-red);
  border-radius: 0 10px 10px 0;
}

.bp-quickfix p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

.bp-quickfix strong:first-child {
  color: var(--bp-red-dark);
}

/* ===================== NUMBERED STEPS (a real sequence) ===================== */
.bp-steps {
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
  counter-reset: bp-step;
}

.bp-steps li {
  position: relative;
  margin: 0 0 24px;
  padding-left: 60px;
  counter-increment: bp-step;
}

.bp-steps li::before {
  content: counter(bp-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bp-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.bp-steps li:last-child::before {
  background: var(--bp-red);
}

.bp-steps .bp-step-title {
  display: block;
  margin-bottom: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bp-navy);
}

.bp-steps .bp-step-text {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* ===================== CHROME MENU ILLUSTRATION ===================== */
.bp-figure {
  margin: 8px 0 36px;
}

.bp-menu-mock {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--bp-soft);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
}

.bp-refresh-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--bp-navy);
  font-size: 1.05rem;
}

.bp-menu {
  flex: 1 1 auto;
  max-width: 340px;
  list-style: none;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11, 26, 48, 0.12);
}

.bp-menu li {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--bp-ink);
}

.bp-menu li.is-target {
  background: var(--bp-navy);
  color: #ffffff;
  font-weight: 600;
}

.bp-figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--bp-muted);
}

/* ===================== LEAD FORM BAND ===================== */
.bp-leadband {
  margin: 48px 0 0;
  padding: 52px 0 56px;
  background: var(--bp-soft);
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
}

.bp-leadband-intro {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}

.bp-leadband-intro h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--bp-navy);
}

.bp-leadband-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bp-ink);
}

/* ===================== TAGS ===================== */
.bp-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.bp-tags li {
  padding: 6px 14px;
  background: var(--bp-soft);
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bp-navy);
}

/* ===================== AUTHOR BOX ===================== */
.bp-author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 44px 0 0;
  padding: 22px 24px;
  background: var(--bp-soft);
  border-radius: 12px;
}

.bp-author img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bp-line);
}

.bp-content .bp-author p.bp-author-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bp-navy);
}

.bp-content .bp-author p.bp-author-bio {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bp-muted);
}

.bp-content p.bp-back {
  margin: 36px 0 0;
  padding-bottom: 64px;
}

/* ===================== KEYBOARD FOCUS ===================== */
.bp-article a:focus-visible {
  outline: 3px solid var(--bp-navy);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .bp-hero {
    padding: 24px 0 70px;
  }

  .bp-featured {
    margin-top: -40px;
  }

  .bp-featured img {
    border-radius: 10px;
  }

  .bp-content {
    padding-top: 36px;
  }

  .bp-content h2 {
    margin-top: 40px;
    font-size: 1.4rem;
  }

  .bp-quickfix {
    padding: 18px 20px;
  }

  .bp-steps li {
    padding-left: 52px;
  }

  .bp-steps li::before {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .bp-menu-mock {
    padding: 16px;
    gap: 12px;
  }

  .bp-leadband {
    padding: 40px 0 44px;
  }

  .bp-author {
    align-items: flex-start;
  }
}

/* ==========================================================================
   COMPONENT: PROJECT FACTS CARD (website launches / case studies)
   Usage:
   <dl class="bp-facts">
     <div><dt>Client</dt><dd>Client name</dd></div>
     <div><dt>Location</dt><dd>Lagos, Nigeria</dd></div>
   </dl>
   ========================================================================== */
.bp-facts {
  margin: 0 0 40px;
  padding: 6px 26px;
  background: #ffffff;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11, 26, 48, 0.05);
}

.bp-facts > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bp-line);
}

.bp-facts > div:last-child {
  border-bottom: 0;
}

.bp-facts dt {
  flex: 0 0 120px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bp-navy);
}

.bp-facts dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .bp-facts {
    padding: 4px 18px;
  }

  .bp-facts > div {
    flex-direction: column;
    gap: 2px;
  }

  .bp-facts dt {
    flex: none;
  }
}
