/* ==========================================================================
   Perspiq Blog — Reusable Content Design System
   Typography and layout aligned with perspiq-blogs/fashion-ecommerce-discovery-gap
   ========================================================================== */

:root {
  --pb-fg: var(--ink, #1a1d26);
  --pb-fg-soft: var(--ink-soft, #5a5f6a);
  --pb-heading: var(--ink, #1a1d26);
  --pb-accent: var(--primary, #c06f98);
  --pb-pink: var(--primary, #c06f98);
  --pb-pink-dark: color-mix(in oklab, var(--primary, #c06f98) 85%, #000);
  --pb-muted: var(--ink-soft, #5a5f6a);
  --pb-border: var(--border, #e8e4dc);
  --pb-surface: var(--background, #fff);
  --pb-surface-alt: var(--cream, #faf8f5);

  --pb-container: 48rem;
  --pb-radius: 0.5rem;

  --pb-space-1: 8px;
  --pb-space-2: 16px;
  --pb-space-3: 24px;
  --pb-space-4: 32px;
  --pb-space-5: 48px;
  --pb-space-6: 72px;
}

/* --------------------------------------------------------------------------
   Banner meta
   -------------------------------------------------------------------------- */
.perspiq-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.perspiq-blog-meta .pb-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.perspiq-blog-meta .pb-meta-item + .pb-meta-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin-right: 18px;
  margin-left: -10px;
}
.perspiq-blog-meta .pb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Article body — width must match the banner h1 column exactly.
   Banner uses: .elementor-section-boxed → container 1140px + column padding 0 24px.
   We replicate that here, AND reset the negative-margin/wider-max-width that
   .elementor-container.elementor-column-gap-default injects, which is what caused
   the section-number line to "leak" beyond the content edge on sections 2+.
   -------------------------------------------------------------------------- */
.perspiq-blog-body {
  background: var(--pb-surface);
  padding: var(--pb-space-6) 0 var(--pb-space-5);
}

.perspiq-blog-content {
  width: 100%;
  max-width: var(--pb-container);
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  color: var(--pb-fg-soft);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.1px;
  text-align: left;
  box-sizing: border-box;
}

.perspiq-blog-content.mkt-resource-narrow {
  padding: 0 1.5rem;
}

/* Paragraphs — 18px base rich text */
.perspiq-blog-content p {
  margin: 0 0 var(--pb-space-3);
  font-size: 18px;
  line-height: 1.75;
}

/* Emphasis lines — same 18px, bold */
.perspiq-blog-content .pb-emphasis {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--pb-heading);
  margin: var(--pb-space-3) 0;
}

/* Process / stack flow line */
.perspiq-blog-content .pb-flow {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pb-heading);
  text-align: center;
  padding: var(--pb-space-3) var(--pb-space-2);
  margin: var(--pb-space-4) 0;
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: var(--pb-radius);
}

/* Section divider — horizontal rule before new numbered sections */
.perspiq-blog-content hr.pb-section-divider {
  border: 0;
  height: 1px;
  background: var(--pb-border);
  margin: var(--pb-space-5) 0 var(--pb-space-3);
}

/* Line before opening lede/prose (no invented section number) */
.perspiq-blog-content hr.pb-lede-rule {
  margin: 0 0 var(--pb-space-3);
}

/* Opening bold thesis — larger than body, not a section heading */
.perspiq-blog-content .pb-lede {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--pb-heading);
  margin: 0 0 var(--pb-space-3);
}

/* Section number + rule on one line.
   Grid: [number-badge] [1fr line] — the 1fr cell fills exactly the remaining
   width inside the container, so the line NEVER bleeds past the right edge.
   This is the only reliable cross-browser fix for the "leaking line" issue. */
.perspiq-blog-content .pb-section-num {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  margin: 0 0 12px;
  width: 100%;
}
.perspiq-blog-content .pb-text-number {
  color: var(--pb-pink);
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
/* The ::after pseudo-element becomes a grid item and fills the 1fr column */
.perspiq-blog-content .pb-section-num::after {
  content: "";
  display: block;
  height: 1px;
  background: #ccc;
  width: 100%;
  align-self: center;
}

/* Section headings — reference h2_blogs: Poppins 28px / 600 */
.perspiq-blog-content h2.pb-section-heading,
.perspiq-blog-content h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pb-heading);
  margin: 0 0 var(--pb-space-3);
  letter-spacing: 0;
  scroll-margin-top: 96px;
}

.perspiq-blog-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--pb-heading);
  margin: var(--pb-space-4) 0 var(--pb-space-2);
}

.perspiq-blog-content h4 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--pb-heading);
  margin: var(--pb-space-3) 0 var(--pb-space-1);
}

/* Links */
.perspiq-blog-content a {
  color: var(--pb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.perspiq-blog-content a:hover {
  color: #004a99;
}

.perspiq-blog-content strong {
  font-weight: 700;
  color: var(--pb-fg);
}

/* Lists — Perspiq pink markers (reference: trendy-vocubulary-list) */
.perspiq-blog-content ul.pb-list,
.perspiq-blog-content ol.pb-list {
  margin: 0 0 var(--pb-space-3);
  padding: 0;
  list-style: none;
}

.perspiq-blog-content ul.pb-list li {
  position: relative;
  padding: 2px 0 18px 35px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--pb-border);
  font-size: 18px;
  line-height: 1.75;
}
.perspiq-blog-content ul.pb-list li:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}
.perspiq-blog-content ul.pb-list li::before {
  content: "\2192";
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pb-pink);
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  transform: none;
}

/* Numbered lists — pink counters */
.perspiq-blog-content ol.pb-list-ol {
  counter-reset: pb-counter;
}
.perspiq-blog-content ol.pb-list-ol li {
  position: relative;
  padding: 2px 0 18px 40px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--pb-border);
  counter-increment: pb-counter;
  font-size: 18px;
  line-height: 1.75;
}
.perspiq-blog-content ol.pb-list-ol li::before {
  content: counter(pb-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--pb-pink);
  color: var(--pb-pink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Comparison card grid (reference screenshot aesthetic) */
.perspiq-blog-content .pb-compare-card {
  display: flex;
  flex-wrap: nowrap;
  margin: var(--pb-space-4) 0;
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  overflow: hidden;
}
.perspiq-blog-content .pb-compare-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 28px 28px 24px;
}
.perspiq-blog-content .pb-compare-col + .pb-compare-col {
  border-left: 1px solid #e0dcd6;
}
.perspiq-blog-content .pb-compare-col-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pb-heading);
  margin: 0 0 20px;
}
/* Each row: [number badge] [text] side by side, top-aligned */
.perspiq-blog-content .pb-compare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.perspiq-blog-content .pb-compare-item:last-child {
  margin-bottom: 0;
}
/* Number badge: flex-shrink:0 keeps it from collapsing; inline so it sits beside text */
.perspiq-blog-content .pb-compare-num {
  flex: 0 0 auto;
  color: var(--pb-pink);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  min-width: 24px;
}
.perspiq-blog-content .pb-compare-item-text,
.perspiq-blog-content .pb-compare-body {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--pb-fg-soft);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.perspiq-blog-content .pb-compare-card--single .pb-compare-body {
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Internal "Read more" CTA links
   These render editorial LINK annotations as a prominent, unmistakably
   clickable card — left accent border + arrow + hover lift + cursor pointer.
   -------------------------------------------------------------------------- */
.perspiq-blog-content .pb-read-more-cta {
  margin: var(--pb-space-4) 0;
}
.perspiq-blog-content .pb-read-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fdf6fa;
  border: 1px solid #e8d4e0;
  border-left: 4px solid var(--pb-pink);
  border-radius: var(--pb-radius);
  color: var(--pb-heading);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}
.perspiq-blog-content .pb-read-more-link:hover,
.perspiq-blog-content .pb-read-more-link:focus-visible {
  background: #faeef5;
  border-color: #e8d4e0;
  border-left-color: var(--pb-pink-dark);
  box-shadow: 0 4px 16px rgba(192, 111, 152, 0.14);
  transform: translateY(-2px);
  color: var(--pb-heading);
  text-decoration: none;
}
.perspiq-blog-content .pb-read-more-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--pb-pink);
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}
.perspiq-blog-content .pb-read-more-link:hover .pb-read-more-arrow,
.perspiq-blog-content .pb-read-more-link:focus-visible .pb-read-more-arrow {
  transform: translateX(4px);
  color: var(--pb-pink-dark);
}

/* Blockquote */
.perspiq-blog-content blockquote {
  margin: var(--pb-space-4) 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--pb-pink);
  color: var(--pb-heading);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
}
.perspiq-blog-content blockquote p {
  margin: 0;
}

/* Images */
.perspiq-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pb-radius);
  margin: var(--pb-space-4) 0;
}

/* --------------------------------------------------------------------------
   Author card
   -------------------------------------------------------------------------- */
.perspiq-blog-author {
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  height: auto !important;
  min-height: 0;
  max-height: none;
  margin: var(--pb-space-5) 0 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  background: var(--pb-surface-alt);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  font-family: "Inter", sans-serif;
  overflow: hidden;
}
.perspiq-blog-author > div {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.perspiq-blog-author .pb-author-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  background: var(--pb-heading);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.perspiq-blog-author .pb-author-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pb-muted);
  margin: 0 0 4px;
  line-height: 1.3;
}
.perspiq-blog-author .pb-author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--pb-heading);
  margin: 0;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Related articles
   -------------------------------------------------------------------------- */
.perspiq-blog-related {
  background: var(--pb-surface-alt);
  padding: var(--pb-space-6) 20px;
  border-top: 1px solid var(--pb-border);
}
.perspiq-blog-related .pb-related-inner {
  max-width: var(--pb-container);
  margin: 0 auto;
}
.perspiq-blog-related h2 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--pb-heading);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 var(--pb-space-4);
  text-align: center;
}
.perspiq-blog-related .pb-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pb-space-3);
}
.perspiq-blog-related .pb-related-card {
  background: var(--pb-surface);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.perspiq-blog-related .pb-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 46, 91, 0.12);
}
.perspiq-blog-related .pb-related-thumb {
  aspect-ratio: 16 / 10;
  background: #e8edf3 center / cover no-repeat;
}
.perspiq-blog-related .pb-related-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8edf3;
}
.perspiq-blog-related .pb-related-body {
  padding: 18px;
}
.perspiq-blog-related .pb-related-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--pb-heading);
  margin: 0;
}
.perspiq-blog-related .pb-related-readmore {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .perspiq-blog-related .pb-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .perspiq-blog-body {
    padding: var(--pb-space-5) 0 var(--pb-space-4);
  }
  .perspiq-blog-body > .elementor-container.elementor-column-gap-default {
    padding: 0 !important;
  }
  .perspiq-blog-inner {
    padding: 0 18px !important;
  }
  .perspiq-blog-content,
  .perspiq-blog-content p,
  .perspiq-blog-content .pb-emphasis,
  .perspiq-blog-content .pb-flow,
  .perspiq-blog-content .pb-compare-item-text,
  .perspiq-blog-content .pb-compare-body,
  .perspiq-blog-content .pb-compare-col-title {
    font-size: 18px;
  }
  .perspiq-blog-content h2,
  .perspiq-blog-content h2.pb-section-heading {
    font-size: 24px;
  }
  .perspiq-blog-content .pb-compare-card {
    flex-direction: column;
  }
  .perspiq-blog-content .pb-compare-col + .pb-compare-col {
    border-left: 0;
    border-top: 1px solid #e0dcd6;
  }
  .perspiq-blog-related .pb-related-grid {
    grid-template-columns: 1fr;
  }
  .perspiq-blog-author {
    flex-direction: column;
    text-align: center;
    padding: 18px 20px;
  }
  .perspiq-blog-author .pb-author-avatar {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .perspiq-blog-related .pb-related-card,
  .perspiq-blog-content .pb-read-more-link {
    transition: none;
  }
  .perspiq-blog-content .pb-read-more-link:hover,
  .perspiq-blog-content .pb-read-more-link:focus-visible {
    transform: none;
  }
}

@media (max-width: 768px) {
  .perspiq-blog-content .pb-read-more-link {
    font-size: 16px;
    padding: 15px 18px;
  }
}
