/**
 * SMARTDOCIFY BLOG STYLES
 */

.blog-hero {
  padding: 4rem 0 3rem 0;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, var(--primary-light) 0%, transparent 60%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.4);
}

.blog-card-img-box {
  height: 200px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
  padding: 1.5rem;
  text-align: center;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   SMARTDOCIFY BLOG POST READER (PROFESSIONAL EDITORIAL LAYOUT)
   ========================================================================== */

/* Main Page Container: wide 1180px envelope with responsive gutters */
.post-layout {
  max-width: 1180px;
  margin: 2rem auto 5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Breadcrumbs Navigation */
.post-breadcrumbs {
  max-width: 860px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.post-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-breadcrumbs a:hover {
  color: var(--primary);
}

.post-breadcrumbs .breadcrumb-separator {
  color: var(--border-subtle);
  user-select: none;
}

.post-breadcrumbs .breadcrumb-current {
  color: var(--primary);
  font-weight: 600;
}

/* Article Header */
.post-header {
  max-width: 860px;
  margin: 0 auto 2rem auto;
  text-align: left;
}

.post-header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin: 0.75rem 0 1.25rem 0;
}

.post-lead {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-subtle);
  font-size: 0.88rem;
  font-weight: 500;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.post-meta-dot {
  color: var(--border-subtle);
  user-select: none;
}

/* Featured Image */
.post-featured-image-container {
  max-width: 960px;
  margin: 0 auto 2.5rem auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt, #F8FAFC);
}

.post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Social Share Bar (Compact & Elegant) */
.social-share-box {
  max-width: 860px;
  margin: 0 auto 2.5rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.03));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-bar-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.share-btn-whatsapp { background: #25D366; }
.share-btn-facebook { background: #1877F2; }
.share-btn-twitter  { background: #0F1419; }
.share-btn-linkedin { background: #0A66C2; }
.share-btn-telegram { background: #229ED9; }
.share-btn-reddit   { background: #FF4500; }
.share-btn-quora    { background: #B92B27; }
.share-btn-email    { background: #475569; }
.share-btn-copy     { background: #2563EB; }
.share-btn-native   { background: #7C3AED; }

.share-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* In-Article Table of Contents */
.post-toc {
  max-width: 820px;
  margin: 2rem auto 2.5rem auto;
  background: var(--bg-surface-alt, #F8FAFC);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.post-toc-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-toc-list li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-toc-list li a:hover {
  color: var(--primary);
}

/* Article Reading Column (Strict 820px Max-Width for High Readability) */
.post-article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.82;
  color: var(--text-main);
}

.post-article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 3rem 0 1.25rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.post-article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem 0;
  color: var(--text-main);
}

.post-article-body p {
  margin-bottom: 1.6rem;
}

.post-article-body ul, .post-article-body ol {
  margin-bottom: 1.6rem;
  padding-left: 1.75rem;
}

.post-article-body li {
  margin-bottom: 0.6rem;
}

.post-article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.75rem;
  background: var(--bg-surface-alt, #F8FAFC);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   BLOG VIDEO / MEDIA SECTION (16:9 EMBED WITH REFINED CONTAINER)
   ========================================================================== */
.blog-video-section {
  max-width: 860px;
  margin: 3rem auto;
  width: 100%;
  box-sizing: border-box;
}

.blog-video-header {
  margin-bottom: 1rem;
}

.blog-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.blog-video-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.25rem 0 0 0;
}

.blog-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: #0F172A;
}

.blog-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-video-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
  font-style: italic;
}

.blog-media-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  transition: all var(--transition-fast);
}

.blog-media-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-md);
}

.blog-media-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-surface-alt, #F1F5F9);
  flex-shrink: 0;
}

.blog-media-card-info {
  flex: 1;
  min-width: 220px;
}

.blog-media-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.blog-media-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.blog-media-card-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.blog-media-btn {
  flex-shrink: 0;
}

/* ==========================================================================
   BLOG AFFILIATE PRODUCTS SECTION (MODERN MULTI-COLUMN RESPONSIVE GRID)
   ========================================================================== */
.blog-affiliate-section {
  max-width: 1080px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.blog-affiliate-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-affiliate-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.blog-affiliate-disclosure {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

.blog-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.blog-affiliate-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-alt, #F8FAFC);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.03));
  transition: all var(--transition-normal);
}

.blog-affiliate-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-affiliate-card-media {
  width: 100%;
  height: 180px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.blog-affiliate-img-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.blog-affiliate-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.blog-affiliate-card-media-placeholder {
  color: var(--text-subtle);
  background: var(--bg-surface-alt, #F1F5F9);
}

.blog-affiliate-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5rem;
}

.blog-affiliate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.blog-affiliate-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.blog-affiliate-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #059669;
}

.blog-affiliate-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-affiliate-name a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-affiliate-name a:hover {
  color: var(--primary);
}

.blog-affiliate-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-affiliate-action {
  margin-top: 0.75rem;
}

.blog-affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-sizing: border-box;
}

/* ==========================================================================
   RELATED TOOLS SECTION (1080px GRID ALIGNED)
   ========================================================================== */
#post-related-tools-section {
  max-width: 1080px;
  margin: 4rem auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.related-tools-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* ==========================================================================
   SCOPED SUPPORT SMARTDOCIFY WIDGET (COMPACT & SECONDARY)
   ========================================================================== */
#support-smartdocify-mount {
  max-width: 860px;
  margin: 3.5rem auto 1rem auto;
}

#support-smartdocify-mount .support-smartdocify-widget {
  max-width: 580px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#support-smartdocify-mount .support-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

#support-smartdocify-mount .support-text {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

#support-smartdocify-mount .support-qr-box {
  padding: 0.6rem;
}

#support-smartdocify-mount .support-qr-image {
  width: 80px;
  height: 80px;
}

#support-smartdocify-mount .support-upi-container {
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .post-layout {
    padding: 0 1rem;
    margin: 1.5rem auto 3.5rem auto;
  }
  .post-header {
    margin-bottom: 1.5rem;
  }
  .post-title {
    font-size: 1.85rem;
    margin: 0.5rem 0 1rem 0;
  }
  .post-lead {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }
  .post-meta-row {
    gap: 0.75rem;
    font-size: 0.82rem;
    padding-bottom: 1.25rem;
  }
  .social-share-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }
  .social-share-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  .post-article-body {
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .post-article-body h2 {
    font-size: 1.45rem;
    margin: 2.25rem 0 1rem 0;
  }
  .blog-affiliate-section {
    padding: 1.25rem;
  }
  .blog-affiliate-grid {
    grid-template-columns: 1fr;
  }
  #support-smartdocify-mount .support-smartdocify-widget {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .share-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   BLOG CMS: PREVIEW, STATUS & FEATURED MEDIA
   ========================================================================== */
.preview-mode-banner {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  color: #B45309;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[data-theme="dark"] .preview-mode-banner {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.post-unpublished-notice {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}

.post-unpublished-notice h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.post-unpublished-notice p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.post-featured-image-container {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.blog-card-img-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

