/* Blog Post Styles */

/* Hero overrides for blog post pages */
.blog-post ~ .block--cta,
.blog-post ~ .block--related-posts {
  /* Ensure sections after blog-post inherit correctly */
}

/* Author byline — rendered inline next to the date label, inherits purple */
.blog-post__author-byline {
  font-weight: 600;
  color: inherit;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post__header {
  background-color: var(--vpm-purple-900, #341c4c);
  color: white;
  padding: 3rem 0;
}

.blog-post__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.blog-post__category {
  background-color: var(--vpm-orange-500, #ff8c32);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.blog-post__date,
.blog-post__author {
  color: rgba(255, 255, 255, 0.8);
}

.blog-post__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.blog-post__image {
  margin: 2rem 0;
  text-align: center;
}

.blog-post__featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-post__content {
  font-size: 1rem;
  line-height: 1.4;
  color: #212121;
}

.blog-post__content.block .blog-post__lead {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--vpm-purple-900, #341c4c);
  margin-bottom: 2rem;
}

/* Date label — works both in styled posts and JS-injected on standard posts */
p.blog-post__date-label,
.content-body.block p.blog-post__date-label,
.blog-post__content.block p.blog-post__date-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #95569e !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* WordPress author info — style in lilac */
.single_content-author {
  color: #95569e !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.single_content-authorInfo {
  margin-bottom: 1.5rem;
}

/* Hide WordPress share buttons (replaced by social-share.js) */
.single_content-share {
  display: none;
}

/* Hide WordPress sidebar / floating CTA block */
.single_content-sidebar,
.single_content-float_block,
.float_block {
  display: none !important;
}

/* Neutralize WordPress grid layout so content column matches standard blog width */
.blog-post .container--medium {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single_content-grid {
  display: block !important;
}

.single_content-grid .grid-8of12 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Hide duplicate WordPress title (hero already has the H1) */
.single_content-title {
  display: none !important;
}

.blog-post__press-header {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #666;
}

.blog-post__company-info {
  background-color: #F5F7FA;
  padding: 32px;
  border-radius: 12px;
  margin-top: 32px;
  margin-bottom: 0;
}

/* Blog post content heading hierarchy
   .blog-post__content/.content-body and .block are on the SAME element */
.blog-post__content.block h2,
.content-body.block h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--vpm-purple-900, #341c4c);
  margin: 36px 0 16px;
}

.blog-post__content.block h2 span,
.content-body.block h2 span,
.blog-post__content.block h2 b,
.content-body.block h2 b {
  font-size: inherit !important;
  font-weight: 700 !important;
  color: inherit !important;
}

.blog-post__content.block h3,
.content-body.block h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--vpm-purple-900, #341c4c);
  margin: 28px 0 12px;
}

.blog-post__content.block h3 span,
.content-body.block h3 span,
.blog-post__content.block h3 b,
.content-body.block h3 b {
  font-size: inherit !important;
  font-weight: 700 !important;
  color: inherit !important;
}

.blog-post__content.block p,
.content-body.block p {
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #212121;
  margin-bottom: 20px;
}

.blog-post__content.block h4,
.content-body.block h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--vpm-purple-900, #341c4c);
  margin: 24px 0 10px;
}

.blog-post__content.block h4 span,
.content-body.block h4 span,
.blog-post__content.block h4 b,
.content-body.block h4 b {
  font-size: inherit !important;
  font-weight: 700 !important;
  color: inherit !important;
}

.blog-post__content.block li,
.content-body.block li {
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #212121;
  margin-bottom: 8px;
}

.blog-post__content.block ul,
.content-body.block ul,
.blog-post__content.block ol,
.content-body.block ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-post__content.block a,
.content-body.block a {
  color: #95569e;
  text-decoration: underline;
}

.blog-post__content.block a:hover,
.content-body.block a:hover {
  color: var(--vpm-purple-900, #341c4c);
}

/* Inline images — generous breathing space */
.blog-post__content.block img,
.content-body.block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px 0;
  display: block;
}

.blog-post__content.block h2 + img,
.content-body.block h2 + img,
.blog-post__content.block h3 + img,
.content-body.block h3 + img {
  margin-top: 24px;
}

.blog-post__content.block img + h2,
.content-body.block img + h2,
.blog-post__content.block img + h3,
.content-body.block img + h3 {
  margin-top: 48px;
}

/* Blockquotes */
.blog-post__content.block blockquote,
.content-body.block blockquote {
  border-left: 3px solid #95569E;
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #6B7280;
}

.blog-post__company-info h3,
.blog-post__company-info h4,
.blog-post__company-info p b,
.blog-post__company-info p strong {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #341C4C;
  margin-bottom: 12px;
}

.blog-post__company-info p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #6B7280 !important;
  margin-bottom: 0.75rem !important;
}

.blog-post__company-info a {
  color: #95569e !important;
}

.blog-post__social-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.social-btn:hover {
  opacity: 0.8;
}

.social-btn--linkedin {
  background-color: #0077b5;
  color: white;
}

.social-btn--twitter {
  background-color: #1da1f2;
  color: white;
}

.social-btn--facebook {
  background-color: #4267b2;
  color: white;
}

/* Social Icon Buttons (shadcn-style) */
.social-icon-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  color: #95569E;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-icon-btn:hover {
  background-color: #F5F3F7;
  border-color: #E5E7EB;
  color: #95569E;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.related-post {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.related-post h4 {
  margin: 0;
}

.related-post a {
  color: var(--vpm-purple-900, #341c4c);
  text-decoration: none;
}

.related-post a:hover {
  color: var(--vpm-orange-500, #ff8c32);
}

/* ==========================================================================
   CTA Box — restyle existing blog markup to match faqs-page__cta
   ========================================================================== */

.block--cta {
  background: var(--vox-warm-white, #FAFAFA) !important;
  text-align: center;
  padding: 5rem 0 !important;
}

.cta-box {
  max-width: 52rem;
  margin: 0 auto;
}

.block--cta .cta-box h3 {
  margin: 0 0 16px !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #341C4C !important;
}

.block--cta .cta-box p {
  margin: 0 0 24px !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #6B7280 !important;
}

.block--cta .cta-box .btn.btn--orange,
.block--cta .cta-box .cta-buttons .btn.btn--orange {
  display: inline-block;
  background: #58B999 !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 30px;
  border: none !important;
  text-decoration: none;
  transition: background 0.2s ease;
}

.block--cta .cta-box .btn.btn--orange:hover,
.block--cta .cta-box .cta-buttons .btn.btn--orange:hover {
  background: #4aa383 !important;
  color: #fff !important;
}

.block--cta .cta-box .btn.btn--outline,
.block--cta .cta-box .cta-buttons .btn.btn--outline {
  display: inline-block;
  background: transparent !important;
  color: var(--vox-purple, #341C4C) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.block--cta .cta-box .btn.btn--outline:hover,
.block--cta .cta-box .cta-buttons .btn.btn--outline:hover {
  border-color: var(--vox-purple, #341C4C) !important;
  color: var(--vox-purple, #341C4C) !important;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   YARPP Related Posts — restyle WordPress markup to match content-card style
   ========================================================================== */

.yarpp-related {
  margin-top: 3rem;
  padding-top: 3rem;
}

.content-body.block .yarpp-related h3,
.blog-post__content.block .yarpp-related h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  margin: 0 0 1rem !important;
}

.yarpp-related ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.yarpp-related ol li {
  background: white !important;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.yarpp-related ol li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.yarpp-related ol li a {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  text-decoration: none !important;
}

.yarpp-related ol li a:hover {
  color: #95569E !important;
}

/* ==========================================================================
   Related Posts (JS-injected content-card style) — for pages without
   content-cards.css loaded
   ========================================================================== */

.block--related-posts {
  padding-top: 3rem;
}

.block--related-posts h3 {
  font-size: 24px;
  font-weight: 700;
  color: #341C4C;
  margin-bottom: 24px;
}

.content-cards--related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.content-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.content-card__body {
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-card__eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.08px;
  color: #95569E;
  margin-bottom: 10px;
}

.content-card__title,
.block .content-cards .content-card__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vpm-purple-900, #341c4c);
  margin: 0 0 10px 0;
}

.content-card__title a {
  color: inherit;
  text-decoration: none;
}

.content-card__title a:hover {
  text-decoration: underline;
}

.content-card__excerpt {
  font-family: 'Poppins', sans-serif;
  font-size: 15.75px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding: 16px 24px;
}

.content-card__date {
  font-family: 'Poppins', sans-serif;
  font-size: 14.625px;
  color: #6B7280;
}

.content-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #58B999;
  color: white;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.content-card__cta:hover {
  background-color: #4aa383;
  color: white;
}

.content-card__cta svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Inline CTA Banner — "Curious about Voxpopme?" (article posts only)
   ========================================================================== */

.blog-post__inline-cta {
  background: #F5F3F7;
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.blog-post__inline-cta-image {
  width: 200px;
  flex-shrink: 0;
}

.blog-post__inline-cta-image img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0;
}

.blog-post__inline-cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #341C4C;
  margin: 0 0 8px 0 !important;
}

.blog-post__inline-cta p {
  font-size: 14px !important;
  color: #6B7280 !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
}

.blog-post__inline-cta a.blog-post__inline-cta-btn {
  display: inline-block;
  background: #58B999;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-post__inline-cta a.blog-post__inline-cta-btn:hover {
  background: #4aa383;
  color: #FFFFFF;
}

/* ==========================================================================
   Share section — "Share this post:" label
   ========================================================================== */

.blog-post__social-share p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px !important;
  color: #212121 !important;
  margin-bottom: 12px !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .blog-post__title {
    font-size: 2rem;
  }

  .blog-post__meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-post__content.block h2,
  .content-body.block h2 {
    font-size: 20px !important;
  }

  .blog-post__content.block h3,
  .content-body.block h3 {
    font-size: 18px !important;
  }

  .social-buttons {
    flex-direction: column;
  }

  .block--cta {
    padding: 3rem 0 !important;
  }

  .block--cta .cta-box h3 {
    font-size: 24px !important;
  }

  .yarpp-related ol,
  .content-cards--related {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-post__inline-cta {
    flex-direction: column;
  }

  .blog-post__inline-cta-image {
    width: 100%;
  }
}