/* ==========================================================================
   Digihack — BlogPost
   Only for why-seo-is-important-for-every-business/
   ========================================================================== */


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font: 600 16px/1 "Poppins",sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.crumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.crumb a:hover {
  color: var(--accent);
}

.crumb b {
  color: var(--ink);
  font-weight: 500;
}

.feat {
  background: #faf7f5;
}

.faqs details p {
  padding: 0 0 20px;
  color: var(--muted);
}

@media (max-width:640px) {
  .sec {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
  }
}

.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more {
  font: 600 15px/1 "Poppins",sans-serif;
  color: var(--accent);
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-top: 24px;
}

.bc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.bc:hover {
  border-color: var(--accent);
  color: var(--text);
}

.bc:hover h3 {
  color: var(--accent);
}

.bc-img {
  aspect-ratio: 16/10;
  background: #f3eee9;
  position: relative;
  overflow: hidden;
}

.bc-img img {
  position: absolute;
  inset: 0;
}

.bc-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bc h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.bc p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.article {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  max-width: 720px;
}

.article h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 12px;
}

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

.article p {
  margin: 0 0 18px;
}

.article ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article li {
  margin-bottom: 8px;
}

.in-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  margin: 32px 0;
}

.in-cta b {
  display: block;
  font: 600 20px/1.3 "Poppins",sans-serif;
}

.in-cta span {
  color: var(--on-dark-muted);
  font-size: 15px;
}

.author-box {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-top: 40px;
  max-width: 720px;
}

.author-box .av {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 700 20px/56px "Poppins",sans-serif;
  text-align: center;
}

.author-box b {
  font: 600 17px/1.3 "Poppins",sans-serif;
  color: var(--ink);
}

.author-box p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width:1024px) {
  .bg-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .bg-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .article {
    font-size: 17px;
  }

  .article h2 {
    font-size: 23px;
  }

  .in-cta {
    padding: 20px;
  }
}

.bp-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: 3rem 0 0;
  overflow: hidden;
}

.bp-hero .crumb a,
.bp-hero .crumb {
  color: var(--on-dark-muted);
}

.bp-hero .crumb b {
  color: #fff;
}

.bp-top {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: 56px;
  align-items: center;
  margin-top: 28px;
  padding-bottom: 4rem;
}

.bp-top h1 {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.01em;
}

.bp-top .sub {
  font-size: 19px;
  color: var(--on-dark-muted);
  margin-top: 18px;
}

.bp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.bp-meta .who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 600 15px/1.2 "Poppins",sans-serif;
}

.bp-meta .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 700 15px/40px "Poppins",sans-serif;
  text-align: center;
}

.bp-meta span.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6a6370;
}

.cat-pill {
  display: inline-block;
  font: 600 12px/1 "Poppins",sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(238,95,37,.18);
  color: #ff9a6b;
}

.bp-img {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3.4;
  transform: rotate(1.5deg);
  box-shadow: none;
}

.bp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-body {
  display: grid;
  grid-template-columns: 72px minmax(0,720px) minmax(0,1fr);
  gap: 40px;
  justify-content: center;
  align-items: start;
}

.bp-share {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.bp-share small {
  font: 600 11px/1 "Poppins",sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 6px;
}

.bp-share a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
}

.bp-share a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.takeaways {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  background: #faf7f5;
  margin-bottom: 36px;
}

.takeaways b {
  display: block;
  font: 600 13px/1 "Poppins",sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaways li {
  display: flex;
  gap: 10px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
}

.takeaways li .fi {
  flex: none;
  margin-top: 4px;
  color: var(--wa);
}

.toc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.toc-inline a {
  font: 500 14px/1 "Poppins",sans-serif;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.toc-inline a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article h2 .n {
  display: inline-block;
  min-width: 42px;
  color: var(--accent);
}

.pull {
  font: 600 26px/1.4 "Poppins",sans-serif;
  color: var(--ink);
  border-left: 4px solid var(--brand);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
}

.steps-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
}

.steps-list li::before {
  content: counter(s);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent);
  font: 700 16px/36px "Poppins",sans-serif;
  text-align: center;
}

.steps-list b {
  display: block;
  font: 600 17px/1.35 "Poppins",sans-serif;
  color: var(--ink);
}

.steps-list span {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.bp-rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 300px;
}

.rail-cta {
  border-radius: 18px;
  padding: 24px;
  background: var(--dark);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-cta h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.rail-cta p {
  color: var(--on-dark-muted);
  font-size: 15px;
}

.rail-toc {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-toc b {
  font: 600 12px/1 "Poppins",sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.rail-toc a {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.rail-toc a:first-of-type {
  border-top: 0;
}

.rail-toc a.on {
  color: var(--accent);
  font-weight: 600;
}

.post-faq {
  margin-top: 36px;
}

.post-faq h2 {
  margin-top: 0;
}

.wa-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  border-radius: 18px;
  background: #e3f3ea;
  margin-top: 36px;
}

.wa-sub b {
  display: block;
  font: 600 19px/1.3 "Poppins",sans-serif;
  color: var(--ink);
}

.wa-sub span {
  font-size: 15px;
  color: var(--muted);
}

@media (max-width:1024px) {
  .bp-top,
  .bp-body {
    grid-template-columns: minmax(0,1fr);
  }

  .bp-share,
  .bp-rail {
    display: none;
  }

  .bp-img {
    transform: none;
  }
}

@media (max-width:640px) {
  .bp-hero {
    padding-top: 1.5rem;
  }

  .bp-top {
    gap: 28px;
    padding-bottom: 2.5rem;
    margin-top: 16px;
  }

  .bp-top h1 {
    font-size: 31px;
  }

  .bp-top .sub {
    font-size: 17px;
  }

  .takeaways {
    padding: 20px;
  }

  .pull {
    font-size: 21px;
  }
}

/* Phones: section headings fill the width (stack_pass.py) */
@media (max-width: 640px) {
  .sec-head {
    max-width: none;
  }

  h2,
  .h2 {
    text-wrap: pretty;
  }

  .h2,
  .cta h2,
  .cx-info h2,
  .sg-head h2,
  .cb-copy h2 {
    font-size: 23px;
    line-height: 1.25;
  }

  .sec-head .lead {
    font-size: 16px;
  }
}
