/* css/blog.bundle.css: generated ordered bundle. Section order is intentional. */

/* ===== BEGIN css/blog.css ===== */
/* ═══════════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Blog v3.0 CSS — "Engineering That Educates"
   Design System: Professional engineering journal, not a personal blog.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════ DESIGN TOKENS ═══════ */
:root, [data-theme="light"] {
  --bl-bg:               #F8FAFC;
  --bl-surface:          #FFFFFF;
  --bl-surface-alt:      #F1F5F9;
  --bl-text:             #0F172A;
  --bl-text-soft:        #475569;
  --bl-text-muted:       #94A3B8;
  --bl-border:           rgba(0,0,0,0.06);
  --bl-border-strong:    rgba(0,0,0,0.10);
  --bl-accent:           #0D7377;
  --bl-accent-light:     #14A3A8;
  --bl-accent-soft:      rgba(13,115,119,0.06);
  --bl-accent-glow:      rgba(13,115,119,0.15);
  --bl-hero-bg:          #0A1628;
  --bl-hero-gradient:    linear-gradient(160deg, #061220 0%, #0A1628 30%, #0D3840 70%, #0D7377 100%);
  --bl-card-bg:          #FFFFFF;
  --bl-card-border:      rgba(0,0,0,0.06);
  --bl-card-hover-border: rgba(13,115,119,0.25);
  --bl-card-shadow:      0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --bl-card-shadow-hover:0 10px 30px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --bl-card-radius:      14px;
  --bl-transition:       300ms cubic-bezier(0.4, 0, 0.2, 1);
  --bl-gold:             #D97706;
  --bl-code-bg:          #F1F5F9;
  --bl-code-text:        #0F172A;
  --bl-toc-bg:           rgba(13,115,119,0.04);
  --bl-toc-border:       rgba(13,115,119,0.15);
  --bl-tip-bg:           rgba(16,185,129,0.06);
  --bl-tip-border:       rgba(16,185,129,0.25);
  --bl-warning-bg:       rgba(239,68,68,0.06);
  --bl-warning-border:   rgba(239,68,68,0.25);
  --bl-highlight-bg:     rgba(245,158,11,0.08);
  --bl-highlight-border: rgba(245,158,11,0.25);
}

[data-theme="dark"] {
  --bl-bg:               #0F172A;
  --bl-surface:          #1E293B;
  --bl-surface-alt:      #162032;
  --bl-text:             #F1F5F9;
  --bl-text-soft:        #94A3B8;
  --bl-text-muted:       #64748B;
  --bl-border:           rgba(255,255,255,0.06);
  --bl-border-strong:    rgba(255,255,255,0.10);
  --bl-accent:           #5EEAD4;
  --bl-accent-light:     #14A3A8;
  --bl-accent-soft:      rgba(94,234,212,0.06);
  --bl-accent-glow:      rgba(94,234,212,0.12);
  --bl-hero-bg:          #060F1E;
  --bl-hero-gradient:    linear-gradient(160deg, #040B18 0%, #060F1E 30%, #0A2030 70%, #0D7377 100%);
  --bl-card-bg:          #1E293B;
  --bl-card-border:      rgba(255,255,255,0.06);
  --bl-card-hover-border: rgba(94,234,212,0.3);
  --bl-card-shadow:      0 1px 3px rgba(0,0,0,0.3);
  --bl-card-shadow-hover:0 12px 36px rgba(0,0,0,0.5);
  --bl-code-bg:          #0F172A;
  --bl-code-text:        #E2E8F0;
  --bl-toc-bg:           rgba(94,234,212,0.04);
  --bl-toc-border:       rgba(94,234,212,0.12);
  --bl-tip-bg:           rgba(16,185,129,0.08);
  --bl-tip-border:       rgba(16,185,129,0.2);
  --bl-warning-bg:       rgba(239,68,68,0.08);
  --bl-warning-border:   rgba(239,68,68,0.2);
  --bl-highlight-bg:     rgba(245,158,11,0.08);
  --bl-highlight-border: rgba(245,158,11,0.2);
}

/* ═══════ BASE ═══════ */
.bl-container { max-width: var(--za-container, 1140px); margin: 0 auto; padding: 0 var(--za-gutter, 24px); }

/* ═══════ SCROLL PROGRESS ═══════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--bl-accent); z-index: 9999; width: 0%;
  transition: width 100ms linear; pointer-events: none;
}

/* ═══════ BLOG HERO — Compact & Professional ═══════ */
.blog-header {
  padding: 72px 24px 56px; text-align: center;
  background: var(--bl-hero-gradient);
  position: relative; overflow: hidden; isolation: isolate;
}
.blog-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(13,115,119,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(94,234,212,0.08) 0%, transparent 60%);
}
.blog-header > * { position: relative; z-index: 1; }

.blog-header .section-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 4px 16px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.10);
}

.blog-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  color: #fff; margin: 0 0 14px; letter-spacing: -0.3px; line-height: 1.3;
}

.blog-header > p {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  max-width: 620px; margin: 0 auto 32px; line-height: 1.8;
  font-weight: 400;
}

/* ── Hero Stats Row ── */
.blog-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.bl-stat-capsule {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.bl-stat-capsule strong {
  color: #5EEAD4; font-weight: 700; font-size: 1.05rem;
}

/* ── Glass Search Capsule ── */
.hero-glass-search {
  display: flex; justify-content: center;
}
.glass-search-inner {
  position: relative; width: 100%; max-width: 500px;
}
.glass-search-icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.05rem; opacity: 0.6; pointer-events: none; z-index: 2;
}
.glass-search-input {
  width: 100%; padding: 14px 20px 14px 48px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: #fff;
  font-size: 0.95rem; font-family: inherit;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  outline: none; transition: var(--bl-transition);
}
.glass-search-input::placeholder { color: rgba(255,255,255,0.4); }
.glass-search-input:focus {
  border-color: rgba(94,234,212,0.5);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.1);
  background: rgba(255,255,255,0.12);
}
.glass-search-clear {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.9rem; padding: 4px 8px; border-radius: 50%;
  transition: var(--bl-transition); z-index: 2;
}
.glass-search-clear:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ═══════ TOOLBAR — Category Tabs ═══════ */
.blog-toolbar {
  background: var(--bl-surface);
  border-bottom: 1px solid var(--bl-border);
  position: sticky; top: 64px; z-index: 100;
  padding: 0; transition: box-shadow 0.3s;
}
.blog-toolbar.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.blog-toolbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 12px 0;
}

/* ── Category Tab Pills ── */
.categories {
  display: flex; gap: 8px; overflow-x: auto; flex: 1;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 2px;
}
.categories::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0; padding: 8px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--bl-text-soft);
  border: 1px solid transparent; transition: var(--bl-transition);
  white-space: nowrap; font-family: inherit;
}
.cat-btn:hover {
  color: var(--bl-accent); background: var(--bl-accent-soft);
  border-color: var(--bl-accent-glow);
}
.cat-btn.active {
  background: var(--bl-accent); color: #fff; border-color: var(--bl-accent);
  font-weight: 700; box-shadow: 0 4px 12px var(--bl-accent-glow);
}

/* ── Results Info + Sort ── */
.blog-meta-row {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  font-size: 0.82rem; color: var(--bl-text-soft);
}
.blog-meta-row strong { color: var(--bl-accent); font-weight: 700; }
.bl-sort-select {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--bl-border-strong);
  font-size: 0.82rem; background: var(--bl-surface); color: var(--bl-text);
  font-family: inherit; cursor: pointer; outline: none;
}
.bl-sort-select:focus { border-color: var(--bl-accent); }

/* ═══════ ARTICLES GRID ═══════ */
.container { max-width: var(--za-container, 1140px); margin: 0 auto; padding: 0 var(--za-gutter, 24px) 64px; }

/* ── Blog Layout — Grid + Sidebar ── */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding-top: 28px; }
.blog-main-col { min-width: 0; }
.blog-sidebar { position: sticky; top: 80px; align-self: start; }

.articles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* Featured card spans 2 columns */
.article-card.featured-card { grid-column: span 2; flex-direction: row; }
.article-card.featured-card .article-card-image { width: 50%; flex-shrink: 0; aspect-ratio: auto; min-height: 260px; }
.article-card.featured-card .article-card-body { flex: 1; padding: 24px; }

/* ── Article Card ── */
.article-card {
  background: var(--bl-card-bg); border-radius: var(--bl-card-radius);
  overflow: hidden; border: 1px solid var(--bl-card-border);
  box-shadow: var(--bl-card-shadow); transition: var(--bl-transition);
  display: flex; flex-direction: column; cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bl-card-shadow-hover);
  border-color: var(--bl-card-hover-border);
}

/* Card image */
.article-card-image {
  width: 100%; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden; position: relative;
  background: var(--bl-surface, #f1f5f9);
}
.article-card-image img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--bl-surface, #f1f5f9);
}
/* Card image badge */
.article-card-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(13,115,119,0.9); color: #fff;
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category gradients for placeholder cards */
.aci-1 { background: linear-gradient(135deg, #0A1628, #1E3A5F); }
.aci-2 { background: linear-gradient(135deg, #0D7377, #14A3A8); }
.aci-3 { background: linear-gradient(135deg, #B8860B, #E6C200); }
.aci-4 { background: linear-gradient(135deg, #0D4F8B, #1E90FF); }
.aci-5 { background: linear-gradient(135deg, #4B0082, #6A0DAD); }
.aci-6 { background: linear-gradient(135deg, #1E293B, #475569); }

/* Card body */
.article-card-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column;
}

/* Meta row: category + date */
.article-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.article-cat {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: var(--bl-accent-soft); color: var(--bl-accent);
  font-size: 0.72rem; font-weight: 700;
}
.article-date { color: var(--bl-text-muted); font-size: 0.78rem; font-weight: 500; }

/* Stats row: reading time + views */
.article-stats {
  display: flex; gap: 14px; font-size: 0.78rem; color: var(--bl-text-muted);
  margin-bottom: 8px;
}
.article-stat-item { display: flex; align-items: center; gap: 4px; }

/* Title */
.article-card-body h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--bl-text);
  margin: 0 0 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-body h3 a { color: inherit; text-decoration: none; }
.article-card-body h3 a:hover { color: var(--bl-accent); }

/* Excerpt */
.article-card-body > p {
  font-size: 0.84rem; color: var(--bl-text-soft); line-height: 1.7;
  margin: 0 0 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Authors line */
.article-authors {
  color: var(--bl-text-soft); font-size: 0.8rem; margin-top: 8px;
  padding-top: 10px; border-top: 1px solid var(--bl-border);
}

/* Read more link */
.article-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 12px;
  color: var(--bl-accent); font-weight: 700; font-size: 0.85rem;
  text-decoration: none; transition: var(--bl-transition);
}
.article-read-more:hover { gap: 10px; opacity: 0.8; }

/* ── Coming Soon Card ── */
.coming-soon {
  background: var(--bl-surface); border: 1.5px dashed var(--bl-border-strong);
  align-items: center; justify-content: center; text-align: center; padding: 16px 20px;
  min-height: auto;
}
.coming-soon .article-card-body {
  padding: 8px 12px !important;
}
.coming-soon h3 {
  color: var(--bl-text); font-size: 0.98rem; font-weight: 800; margin: 0 0 4px; line-height: 1.35;
}
.coming-soon p {
  color: var(--bl-text-soft); font-size: 0.82rem; margin: 0; line-height: 1.45;
}

/* ── No Results ── */
.blog-no-results {
  grid-column: 1 / -1; display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 64px 24px;
}
.blog-no-results h3 { color: var(--bl-text); font-size: 1.15rem; margin: 12px 0 8px; }
.blog-no-results p { color: var(--bl-text-soft); margin-bottom: 16px; }
.blog-no-results .btn-primary {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  background: var(--bl-accent); color: #fff; font-weight: 700;
  text-decoration: none; transition: var(--bl-transition); font-family: inherit;
}
.blog-no-results .btn-primary:hover { background: var(--bl-accent-light); }

/* ═══════ SIDEBAR ═══════ */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }

.bl-sidebar-card {
  background: var(--bl-surface); border-radius: var(--bl-card-radius);
  border: 1px solid var(--bl-border); padding: 20px;
  box-shadow: var(--bl-card-shadow);
}

/* ── Newsletter ── */
.bl-newsletter h3 {
  font-size: 1rem; font-weight: 700; color: var(--bl-text);
  margin: 0 0 6px;
}
.bl-newsletter p {
  font-size: 0.82rem; color: var(--bl-text-soft); line-height: 1.7; margin: 0 0 14px;
}
.bl-newsletter-form { display: flex; gap: 8px; }
.bl-newsletter-input {
  flex: 1; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--bl-border-strong); background: var(--bl-bg);
  color: var(--bl-text); font-size: 0.85rem; font-family: inherit; outline: none;
}
.bl-newsletter-input:focus { border-color: var(--bl-accent); }
.bl-newsletter-btn {
  padding: 10px 16px; border-radius: 8px; background: var(--bl-accent);
  color: #fff; font-weight: 700; font-size: 0.85rem; border: none;
  cursor: pointer; font-family: inherit; transition: var(--bl-transition);
  white-space: nowrap;
}
.bl-newsletter-btn:hover { background: var(--bl-accent-light); }
.bl-newsletter-note {
  font-size: 0.72rem; color: var(--bl-text-muted); margin-top: 8px;
}

/* ── Categories List ── */
.bl-sidebar-card h4 {
  font-size: 0.9rem; font-weight: 700; color: var(--bl-text);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--bl-border);
}
.bl-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.bl-cat-item { display: flex; }
.bl-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  color: var(--bl-text-soft); transition: var(--bl-transition);
}
.bl-cat-link:hover { background: var(--bl-accent-soft); color: var(--bl-accent); }
.bl-cat-link .bl-cat-icon { margin-left: 8px; font-size: 0.9rem; }
.bl-cat-count {
  background: var(--bl-accent-soft); color: var(--bl-accent);
  padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 700;
}

/* ── Popular Posts ── */
.bl-popular-list { display: flex; flex-direction: column; gap: 10px; }
.bl-popular-item {
  display: flex; gap: 10px; align-items: flex-start;
  text-decoration: none; padding: 8px; border-radius: 8px;
  transition: var(--bl-transition);
}
.bl-popular-item:hover { background: var(--bl-accent-soft); }
.bl-popular-num {
  font-size: 1rem; font-weight: 800; color: var(--bl-accent);
  min-width: 24px; text-align: center; flex-shrink: 0;
}
.bl-popular-title {
  font-size: 0.82rem; font-weight: 600; color: var(--bl-text);
  line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.bl-popular-views {
  font-size: 0.72rem; color: var(--bl-text-muted); margin-top: 2px;
}

/* ── Tag Cloud ── */
.bl-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--bl-accent-soft); color: var(--bl-text-soft);
  font-size: 0.75rem; font-weight: 500; text-decoration: none;
  transition: var(--bl-transition);
}
.bl-tag:hover { background: var(--bl-accent); color: #fff; }

/* ── CTA Card ── */
.bl-cta-card {
  background: linear-gradient(135deg, var(--bl-accent), #095A5F);
  border: none; color: #fff; text-align: center;
}
.bl-cta-card h4 { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.bl-cta-card p { font-size: 0.82rem; opacity: 0.9; line-height: 1.7; margin: 0 0 14px; }
.bl-cta-card .bl-cta-phone {
  display: block; color: #fff; font-size: 1.05rem; font-weight: 800;
  text-decoration: none; margin-bottom: 6px;
}
.bl-cta-card .bl-cta-sub { font-size: 0.75rem; opacity: 0.75; }

/* ═══════ PAGINATION ═══════ */
.blog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 32px; grid-column: 1 / -1;
  direction: ltr;
}
.pagination-btn, .pagination-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: var(--bl-transition);
  border: 1px solid var(--bl-border-strong);
  background: var(--bl-surface); color: var(--bl-text-soft);
  font-family: inherit;
}
.pagination-btn:hover, .pagination-num:hover {
  background: var(--bl-accent-soft); border-color: var(--bl-accent);
  color: var(--bl-accent);
}
.pagination-num.active {
  background: var(--bl-accent); color: #fff; border-color: var(--bl-accent);
}
.pagination-btn.disabled { opacity: 0.3; pointer-events: none; }
.pagination-dots { padding: 0 4px; color: var(--bl-text-muted); font-weight: 600; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1023px) {
  .blog-header { padding: 56px 20px 40px; }
  .blog-header h1 { font-size: 1.6rem; }
  .blog-header > p { font-size: 0.95rem; }
  .blog-layout { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-sidebar { position: static; }
  .article-card.featured-card { flex-direction: column; }
  .article-card.featured-card .article-card-image { width: 100%; min-height: 200px; aspect-ratio: 16/9; }
}

@media (max-width: 767px) {
  .blog-header { padding: 48px 16px 32px; }
  .blog-header h1 { font-size: 1.35rem; }
  .blog-header > p { font-size: 0.88rem; max-width: 100%; }
  .blog-hero-stats { gap: 8px; }
  .bl-stat-capsule { padding: 6px 14px; font-size: 0.78rem; }
  .blog-toolbar-inner { flex-direction: column; align-items: stretch; }
  .blog-meta-row { justify-content: space-between; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured-card { grid-column: span 1; }
  .article-card.featured-card .article-card-image { min-height: 180px; }
  .blog-pagination { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Blog Archive / Grid Typography & Contrast Enhancement (v4.0)
   ═══════════════════════════════════════════════════════════════════════ */

.blog-grid {
  gap: 24px !important;
}

.blog-card {
  background: var(--za-surface-card, rgba(15, 23, 42, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.28s ease !important;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(94, 234, 212, 0.4) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 14px rgba(94, 234, 212, 0.1) !important;
}

.blog-card-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  line-height: 1.45 !important;
}

.blog-card:hover .blog-card-title {
  color: var(--za-teal, #5EEAD4) !important;
}

.blog-card-summary {
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
}

.blog-card-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.82rem !important;
}

.blog-card-cat {
  background: rgba(13, 115, 119, 0.25) !important;
  color: var(--za-teal, #5EEAD4) !important;
  border: 1px solid rgba(94, 234, 212, 0.2) !important;
  font-weight: 750 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Critical Contrast & Hover Fix for Article Cards (رفع مشکل هاور و ناخوانایی متن کارت‌ها)
   ═══════════════════════════════════════════════════════════════════════ */

/* حفظ پس‌زمینه تیره و کنتراست بی‌نقص در حالت عادی و هاور */
.article-card,
.blog-card {
  background: var(--za-surface-card, #0F172A) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* هاور: پس‌زمینه همچنان تیره صنعتی باقی می‌ماند و روشن نمی‌شود */
.article-card:hover,
.blog-card:hover {
  background: #142036 !important;
  border-color: rgba(94, 234, 212, 0.45) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 14px rgba(94, 234, 212, 0.15) !important;
}

/* بدنه کارت و متون داخلی */
.article-card-body {
  background: transparent !important;
  color: #F1F5F9 !important;
}

/* تیتر مقاله در حالت عادی و هاور */
.article-card-body h3,
.article-card-body h3 a,
.blog-card-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  transition: color 0.2s ease !important;
}

.article-card:hover .article-card-body h3,
.article-card:hover .article-card-body h3 a,
.blog-card:hover .blog-card-title {
  color: var(--za-teal, #5EEAD4) !important;
}

/* متن خلاصه و توضیحات کارت */
.article-card-body p,
.article-card-body > p,
.blog-card-summary {
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.86rem !important;
  line-height: 1.75 !important;
}

.article-card:hover .article-card-body p,
.article-card:hover .article-card-body > p,
.blog-card:hover .blog-card-summary {
  color: #E2E8F0 !important; /* در هاور شفاف‌تر و خواناتر می‌شود */
}

/* متاداده‌ها (تاریخ، نویسنده، زمان مطالعه) */
.article-meta,
.article-meta span,
.blog-card-meta {
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.8rem !important;
}

.article-card:hover .article-meta,
.article-card:hover .article-meta span {
  color: #CBD5E1 !important;
}

.article-journal,
.article-card-badge,
.blog-card-cat {
  background: rgba(13, 115, 119, 0.3) !important;
  color: var(--za-teal, #5EEAD4) !important;
  border: 1px solid rgba(94, 234, 212, 0.3) !important;
  font-weight: 800 !important;
}

.article-read-more {
  color: var(--za-teal, #5EEAD4) !important;
  font-weight: 800 !important;
}

.article-card:hover .article-read-more {
  color: #FFFFFF !important;
}

.article-authors {
  color: var(--za-text-muted, #94A3B8) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.article-card:hover .article-authors {
  color: #CBD5E1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Universal Minimalist In-Content Banners (Shop & Consultation)
   بنرهای مدرن، ظریف، فشرده و با کنتراست عالی برای تمام مقالات و پروژه‌ها
   ═══════════════════════════════════════════════════════════════════════ */









/* ── ۱. بنر فروشگاه (پس‌زمینه سبز تیره و زمردی با کنتراست فونت عالی) ── */




/* ── ۲. بنر مشاوره (پس‌زمینه آبی آسمانی عمیق صنعتی با کنتراست فونت عالی) ── */








































/* FIX-M-01: removed a dangling [dir="ltr"] selector with no rule block (dropped by browsers as a parse error). */



/* ═══════════════════════════════════════════════════════════════════════
   Universal Standard: Hide CTA Logo/Cart/Bolt Icons on Mobile & Tablet
   در نسخه موبایل و تبلت (صفحات زیر ۸۶۰ پیکسل)، آیکون سمت راست CTA حذف شود
   تا فشرده‌سازی حداکثری و چیدمان استاندارد حاصل شود؛ دسکتاپ کاملاً دست‌نخورده باقی بماند.
   ═══════════════════════════════════════════════════════════════════════ */


/* ===== END {p} ===== */

/* ===== BEGIN css/blog-features.css ===== */
/* ══════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Blog Features v3.0 (Lazy Load / Enhancements)
   Non-critical enhancements loaded after core styles.
   Zero side effects on home / portfolio / shop pages.
   ══════════════════════════════════════════════════════════════ */

/* ── Blog Results Info ── */
.blog-results-info {
  grid-column: 1 / -1; padding: 12px 16px;
  background: var(--bl-accent-soft); border-radius: 8px;
  font-size: 0.88rem; color: var(--bl-text-soft);
  border-right: 3px solid var(--bl-accent);
}
[dir="ltr"] .blog-results-info { border-right: none; border-left: 3px solid var(--bl-accent); }

/* ── Show/Hide utility for filtered cards ── */
.article-show { display: flex; }
.article-hidden { display: none !important; }

/* ── Sticky Desktop TOC Sidebar (post page, wide screens) ── */
@media (min-width: 1200px) {
  .post-layout { display: flex; gap: 32px; align-items: flex-start; max-width: var(--za-container, 1140px); margin: 32px auto 0; padding: 0 var(--za-gutter, 24px); }
  .post-layout .post-page { flex: 1; max-width: 820px; }
  .post-sticky-toc { display: block; width: 260px; flex-shrink: 0; position: sticky; top: 100px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 1199px) {
  .post-sticky-toc { display: none; }
}
.post-sticky-toc {
  background: var(--bl-surface); border-radius: 16px;
  border: 1px solid var(--bl-border); box-shadow: var(--bl-card-shadow);
  padding: 16px 0; direction: rtl; font-family: 'Vazirmatn', sans-serif;
}
[dir="ltr"] .post-sticky-toc { direction: ltr; }
.post-sticky-toc .sticky-toc-header {
  padding: 0 16px 12px; font-weight: 800; font-size: 0.82rem;
  color: var(--bl-text); border-bottom: 1px solid var(--bl-border);
  margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.post-sticky-toc .sticky-toc-list { list-style: none; padding: 0; margin: 0; }
.post-sticky-toc .sticky-toc-link {
  display: block; padding: 6px 16px; font-size: 0.78rem;
  color: var(--bl-text-soft); text-decoration: none; transition: var(--bl-transition);
  border-right: 2px solid transparent; line-height: 1.6;
}
[dir="ltr"] .post-sticky-toc .sticky-toc-link { border-right: none; border-left: 2px solid transparent; }
.post-sticky-toc .sticky-toc-link:hover { color: var(--bl-accent); background: var(--bl-accent-soft); }
.post-sticky-toc .sticky-toc-link.toc-active { color: var(--bl-accent); font-weight: 700; background: var(--bl-accent-soft); border-right-color: var(--bl-accent); }
[dir="ltr"] .post-sticky-toc .sticky-toc-link.toc-active { border-right-color: transparent; border-left-color: var(--bl-accent); }
.post-sticky-toc .sticky-toc-link.toc-h3 { padding-right: 32px; }
[dir="ltr"] .post-sticky-toc .sticky-toc-link.toc-h3 { padding-right: 16px; padding-left: 32px; }

/* ── Back to Top ── */
#backToTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bl-accent); color: #fff; border: none;
  font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all 0.3s; box-shadow: 0 4px 16px rgba(13,115,119,0.3);
  display: flex; align-items: center; justify-content: center;
}
[dir="rtl"] #backToTop { right: auto; left: 24px; }
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-3px); }

/* ── Portfolio-related cards in blog posts ── */
.blog-portfolio-related { max-width: var(--za-content, 1092px); margin: 0 auto 48px; }
.blog-portfolio-related h3 { font-size: 1.1rem; font-weight: 800; color: var(--bl-text); text-align: center; margin-bottom: 16px; }
.blog-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.blog-portfolio-card {
  display: block; text-decoration: none; padding: 16px;
  background: var(--bl-surface); border-radius: 14px;
  border: 1px solid var(--bl-border); box-shadow: var(--bl-card-shadow);
  transition: var(--bl-transition);
}
.blog-portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--bl-card-shadow-hover); border-color: var(--bl-card-hover-border); }
.blog-portfolio-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.blog-portfolio-card .pf-title { font-weight: 700; color: var(--bl-text); font-size: 0.88rem; margin-bottom: 4px; }
.blog-portfolio-card .pf-summary { color: var(--bl-text-soft); font-size: 0.75rem; line-height: 1.6; }

/* ── Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Focus visible ── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--bl-accent); outline-offset: 2px; border-radius: 4px;
}

/* ── Print ── */
@media print {
  .sticky-share, .post-share, .post-toc, .post-sticky-toc, .post-cta,
  .scroll-progress, #backToTop, .mobile-dark-toggle, .blog-toolbar { display: none !important; }
  .post-content { font-size: 14px; line-height: 1.7; }
}

/* ===== END {p} ===== */

/* ===== BEGIN css/blog-hero.css ===== */
/* ═══════════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Blog Hero (v2.0) — harmonized with site design system
   ===================================================================
   This stylesheet keeps the provided template's *interactions* (word reveal,
   mouse glow, ripple, floating elements, grid, corner elements) but maps every
   visual token to the ZamaniAuto brand, so it feels native to zamaniauto.ir.

   Brand tokens (from --za-* / --bl-* in za-theme.css & blog.css):
     navy  #0A1628 / #0D3840       teal  #0D7377 / #14A3A8
     turquoise #40E0D0 / #5EEAD4   yellow #E6C200
     blog hero gradient: linear-gradient(160deg,#061220,#0A1628,#0D3840,#0D7377)
     font: Vazirmatn (fa) / Inter (en)
   ═══════════════════════════════════════════════════════════════════ */

.blog-hero {
  position: relative;
  margin-top: 0 !important;
  width: 100%;
  min-height: auto;
  /* site's own blog hero gradient (dark navy → teal) */
  background: linear-gradient(160deg, #061220 0%, #0A1628 30%, #0D3840 70%, #0D7377 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

/* subtle teal radial glows over the gradient (matches blog.css ::before) */
.blog-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(13,115,119,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(64,224,208,0.10) 0%, transparent 60%);
}

/* ── Grid (turquoise, brand-tinted) ── */
.blog-hero-grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.bh-grid-line {
  stroke: rgba(64,224,208,0.13); stroke-width: 0.5; stroke-dasharray: 4 6;
  opacity: 0; animation: bhGridDraw 2.6s ease-out forwards;
}
@keyframes bhGridDraw {
  from { opacity: 0; stroke-dashoffset: 800; }
  to   { opacity: 1; stroke-dashoffset: 0; }
}
.bh-dot {
  fill: #5EEAD4; opacity: 0;
  animation: bhDotIn 1.2s ease-out forwards;
}
@keyframes bhDotIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: .8; transform: scale(1); }
}

/* ── Corner elements (turquoise) ── */
.bh-corner {
  position: absolute; width: 8px; height: 8px; background: #5EEAD4;
  opacity: 0; transform: scale(.4) rotate(-45deg); z-index: 1;
  animation: bhCornerIn 1s ease-out forwards;
}
@keyframes bhCornerIn {
  from { opacity: 0; transform: scale(.4) rotate(-45deg); }
  to   { opacity: .4; transform: scale(1) rotate(0deg); }
}

/* ── Floating elements (turquoise) ── */
.bh-float {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #40E0D0; opacity: 0; filter: blur(0.4px); z-index: 1;
  animation: bhFloatUp 7s ease-in-out infinite;
  animation-play-state: paused;
}
@keyframes bhFloatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  15%  { opacity: .7; }
  85%  { opacity: .5; }
  100% { transform: translateY(-130px) translateX(18px); opacity: 0; }
}

/* ── Word reveal ── */
.bh-word { display: inline-block; opacity: 0; }
@keyframes bhWordIn {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(6px); letter-spacing: .08em; }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); letter-spacing: normal; }
}

/* ── Content layout ── */
.blog-hero-content {
  position: relative; z-index: 10; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 28px var(--za-gutter, 24px); gap: 24px;
}

/* ── Tagline / eyebrow — site's Vazirmatn, not mono ── */
.bh-tagline { text-align: center; }

/* ── State-space formula (beautiful math font, typewriter, single line) ── */
/* positioned bottom-left, ABOVE the cycling equation box (.bh-eq) */

/* ── 230V AC sine oscilloscope chart — above the formula, bottom-left ── */
.bh-voltsine {
  position: absolute; inset-inline-start: 24px; bottom: 168px; z-index: 2;
  width: 220px; height: 76px;
  opacity: 0; animation: bhTechIn 1.6s ease-out forwards; animation-delay: 4.6s;
}
.bh-volt-grid path { fill: none; stroke: rgba(94,234,212,.10); stroke-width: .8; }
.bh-volt-wave {
  fill: none; stroke: rgba(94,234,212,.45); stroke-width: 1.4; stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(94,234,212,.35));
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: bhVoltDraw 4s ease-out forwards;
}
@keyframes bhVoltDraw { to { stroke-dashoffset: 0; } }
.bh-volt-dot {
  fill: rgba(230,194,0,.75); filter: drop-shadow(0 0 2px rgba(230,194,0,.6));
  animation: bhVoltDot 4.5s ease-in-out infinite;
}
@keyframes bhVoltDot {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(160px); }
}
.bh-volt-label { fill: rgba(203,213,225,.45); font-family: 'SF Mono',Consolas,monospace; font-size: 10px; letter-spacing: .06em; }
.bh-volt-label-ac { fill: rgba(94,234,212,.6); font-family: 'SF Mono',Consolas,monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.bh-volt-peak { fill: rgba(230,194,0,.6); font-family: 'SF Mono',Consolas,monospace; font-size: 9px; letter-spacing: .08em; }

.bh-stateeq {
  position: absolute; inset-inline-start: 24px; bottom: 106px; z-index: 2;
  font-family: 'Cambria Math','STIX Two Math',Georgia,'Times New Roman',serif;
  font-size: clamp(10px, 2.2vw, 20px); font-weight: 400;
  color: rgba(203,213,225,.55); line-height: 1.45; letter-spacing: .01em;
  max-width: 380px; white-space: nowrap; overflow: hidden;
  text-align: start;
}
.bh-stateeq-line { white-space: nowrap; text-align: start; }
.bh-stateeq-text { font-style: italic; }
.bh-stateeq-caret {
  font-style: normal; color: #5EEAD4; font-weight: 400; margin-inline-start: 2px;
  animation: bhCaret .9s steps(1) infinite;
}
@keyframes bhCaret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.bh-eyebrow {
  font-family: 'Vazirmatn','IRANSans',Tahoma,Arial,sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: .08em;
  color: #5EEAD4; opacity: .85; margin: 0; line-height: 2;
}
.blog-hero[dir="ltr"] .bh-eyebrow { font-family: Inter,sans-serif; }
@media (min-width: 768px) { .bh-eyebrow { font-size: 15px; } }

.bh-divider {
  display: block; margin: 14px auto 0; width: 64px; height: 1px; opacity: .35;
  background: linear-gradient(to right, transparent, #5EEAD4, transparent);
}

/* ── Headline (Vazirmatn, brand weight) ── */
.bh-headline { position: relative; text-align: center; max-width: 64rem; margin: 0 auto; }
.bh-headline h1 {
  margin: 0; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; color: #fff;
  font-family: 'Vazirmatn','IRANSans',Tahoma,Arial,sans-serif;
}
.blog-hero[dir="ltr"] .bh-headline h1 { font-family: Inter,sans-serif; font-weight: 700; }
.bh-line { display: block; }
.bh-line-1 { font-size: clamp(28px, 5.5vw, 54px); }
.bh-line-2 {
  font-size: clamp(19px, 3.2vw, 32px); font-weight: 400; color: #5EEAD4; margin-top: 4px;
}

/* ── Flank decorative lines (turquoise) ── */
.bh-flank {
  position: absolute; top: 50%; width: 16px; height: 1px;
  background: #5EEAD4; opacity: 0;
  animation: bhWordIn 1s ease-out forwards;
}
.bh-flank-l { inset-inline-start: -32px; }
.bh-flank-r { inset-inline-end: -32px; }
@media (max-width: 480px) { .bh-flank { display: none; } }

/* ── Stats (glass capsules, teal accent — matches .bl-stat-capsule) ── */
.bh-stats {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px;
}
.bh-stat {
  font-family: 'Vazirmatn','IRANSans',Tahoma,Arial,sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 16px; border-radius: 10px; background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.blog-hero[dir="ltr"] .bh-stat { font-family: Inter,sans-serif; }
.bh-stat b { color: #5EEAD4; font-weight: 700; font-size: 1.08em; }
.bh-stat b.bh-count { font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.4em; text-align: center; }

/* ── Glass search (matches .hero-glass-search in style.css) ── */
.bh-search {
  position: relative; width: 100%; max-width: 500px; margin: 28px auto 0;
}
.bh-search-icon {
  position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.05rem; opacity: .6; pointer-events: none; z-index: 2;
}
.bh-search-input {
  width: 100%; padding: 14px 20px; text-align: start;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09); color: #fff; font-size: .95rem;
  font-family: 'Vazirmatn','IRANSans',Tahoma,Arial,sans-serif;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  outline: none; transition: all .3s cubic-bezier(.4,0,.2,1);
  padding-inline-end: 48px; padding-inline-start: 20px;
}
.bh-search-input::placeholder { color: rgba(255,255,255,.45); }
.bh-search-input:focus {
  border-color: rgba(94,234,212,.55);
  box-shadow: 0 0 0 3px rgba(94,234,212,.12);
  background: rgba(255,255,255,.14);
}
.bh-search-clear {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.5); text-decoration: none; font-size: .9rem;
  padding: 4px 8px; border-radius: 50%; transition: .3s; z-index: 2;
}
.bh-search-clear:hover { color: #fff; background: rgba(255,255,255,.12); }

/* ── Mouse glow (turquoise-tinted) ── */
.bh-mouse-glow {
  position: fixed; width: 384px; height: 384px; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 5;
  background: radial-gradient(circle, rgba(13,115,119,.20) 0%, transparent 70%);
  transition: opacity .5s ease-out, left .06s linear, top .06s linear; opacity: 0;
}

/* ── Bottom three dots ── */
.bh-dots {
  display: flex; justify-content: center; gap: 16px; margin-top: 24px;
  opacity: 0; animation: bhWordIn 1s ease-out forwards;
}
.bh-dots span { width: 5px; height: 5px; border-radius: 50%; background: #5EEAD4; }
.bh-dots .bh-dot-a { opacity: .4; }
.bh-dots .bh-dot-b { opacity: .65; }
.bh-dots .bh-dot-c { opacity: .4; }

/* ── Click ripple (teal) ── */
.bh-ripple {
  position: fixed; width: 4px; height: 4px; background: rgba(64,224,208,.6);
  border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 9999;
  animation: bhRipple 1s ease-out forwards;
}
@keyframes bhRipple {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(40); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .blog-hero { min-height: 70vh; }
  .blog-hero-content { padding: 40px 16px; }
  .bh-stats { gap: 8px; }
  .bh-stat { padding: 6px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-word, .bh-grid-line, .bh-dot, .bh-corner { animation: none !important; opacity: 1 !important; }
  .bh-float { animation: none !important; opacity: 0 !important; }
  .bh-mouse-glow { display: none; }
}

/* ── Dark-theme guard (hero is already dark on light theme) ── */
[data-theme="dark"] .blog-hero {
  background: linear-gradient(160deg, #040B18 0%, #060F1E 30%, #0A2030 70%, #0D7377 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   TECHNICAL ANIMATED ELEMENTS (subtle / in the margins)
   ===================================================================
   These reinforce the "engineering / control / academic research" feel:
   1. PLC ladder diagram (stepped rungs light up)
   2. live sine wave with a moving cursor (oscilloscope)
   3. typewriter control equation G(s) = K/(τs+1)
   4. HUD sensor readouts (RPM / TEMP / I)
   5. PID block with feedback loop
   All are low-opacity, positioned in the hero margins, hidden on small
   screens and reduced-motion, and never intercept pointer events.
   ═══════════════════════════════════════════════════════════════════ */

.bh-tech {
  position: absolute; z-index: 2; pointer-events: none;
  opacity: 0; animation: bhTechIn 1.6s ease-out forwards;
}
@keyframes bhTechIn { from { opacity: 0; } to { opacity: 1; } }

/* ── ۱) PLC ladder (mid-right) ── */
.bh-plc { inset-inline-end: 22px; top: 34%; width: 104px; height: 190px; animation-delay: 5s; opacity: 0; }
.bh-plc-rail line { stroke: rgba(94,234,212,.35); stroke-width: 1.4; }
.bh-plc-rail line:last-child { stroke: rgba(94,234,212,.35); }
.bh-plc-rung line { stroke: rgba(94,234,212,.5); stroke-width: 1.2; }
.bh-plc-rung circle { fill: none; stroke: rgba(64,224,208,.9); stroke-width: 1.6; }
.bh-plc-rung rect { fill: none; stroke: rgba(64,224,208,.9); stroke-width: 1.4; }
.bh-plc-rung {
  opacity: 0;
  animation: bhRungOn .9s ease-out forwards;
}
@keyframes bhRungOn {
  0%   { opacity: 0; }
  60%  { opacity: 1; filter: drop-shadow(0 0 4px rgba(94,234,212,.8)); }
  100% { opacity: .55; filter: none; }
}

/* ── ۲) 4-20mA current loop (sensor + regulator) — bottom-right ── */
.bh-maloop { inset-inline-start: 22px; top: 44%; width: 190px; height: 70px; animation-delay: 5.2s; opacity: 0; }
.bh-mal-path { fill: none; stroke: rgba(94,234,212,.4); stroke-width: 1.4; }
.bh-mal-box { fill: rgba(13,115,119,.14); stroke: rgba(94,234,212,.55); stroke-width: 1.3; }
.bh-mal-box-rx { fill: rgba(230,194,0,.10); stroke: rgba(230,194,0,.5); stroke-width: 1.3; }
.bh-mal-txt { fill: rgba(203,213,225,.75); font-family: 'SF Mono','JetBrains Mono',Consolas,monospace; font-size: 9px; letter-spacing: .08em; }
.bh-mal-dim { fill: rgba(203,213,225,.45); font-family: 'SF Mono',Consolas,monospace; font-size: 8px; letter-spacing: .08em; }
.bh-mal-rx { fill: none; stroke: rgba(230,194,0,.5); stroke-width: 1.1; }
.bh-mal-pulse { fill: #5EEAD4; filter: drop-shadow(0 0 4px rgba(94,234,212,.95)); }
.bh-mal-pulse2 { fill: #E6C200; filter: drop-shadow(0 0 3px rgba(230,194,0,.9)); }

/* ── ۳) Equation (typewriter) — bottom-left ── */
.bh-eq {
  inset-inline-start: 24px; bottom: 60px;
  font-family: 'SF Mono','JetBrains Mono',Consolas,monospace;
  font-size: 12px; letter-spacing: .05em; color: rgba(94,234,212,.75);
  animation-delay: 5.4s;
  max-width: 300px; white-space: nowrap; overflow: hidden;
}
.bh-eq-caret { color: #5EEAD4; animation: bhCaret 1s steps(1) infinite; }

/* ── ۴) HUD sensors (top-right corner) ── */
.bh-hud {
  inset-inline-end: 18px; top: 78px;
  font-family: 'SF Mono','JetBrains Mono',Consolas,monospace;
  font-size: 10px; letter-spacing: .08em; line-height: 1.9;
  color: rgba(94,234,212,.8); text-align: left; animation-delay: 4.6s;
  background: rgba(10,22,40,.3); border: 1px solid rgba(94,234,212,.12);
  padding: 8px 12px; border-radius: 8px;
}
.bh-hud-row { display: flex; gap: 12px; justify-content: space-between; }
.bh-hud-key { opacity: .55; }
.bh-hud-val { color: #5EEAD4; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── ۵) PID block + feedback (top-left) ── */
.bh-pid { inset-inline-start: 22px; top: 200px; width: 124px; height: 80px; animation-delay: 5.6s; opacity: 0; }.bh-pid-wire line { stroke: rgba(94,234,212,.4); stroke-width: 1.3; }
.bh-pid-fb { stroke: rgba(94,234,212,.55); stroke-width: 1.2; stroke-dasharray: 4 3;
  animation: bhFbFlow 2.4s linear infinite; }
@keyframes bhFbFlow { to { stroke-dashoffset: -28; } }
.bh-pid-box { fill: rgba(13,115,119,.12); stroke: rgba(94,234,212,.6); stroke-width: 1.5; }
.bh-pid-label { fill: #5EEAD4; font-family: 'SF Mono',Consolas,monospace; font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.bh-pid-node { fill: #5EEAD4; }

/* ── hide on small screens (avoid clutter) ── */
@media (max-width: 900px) { .bh-plc, .bh-pid { display: none; } }
@media (max-width: 640px) { .bh-maloop, .bh-eq, .bh-stateeq, .bh-voltsine, .bh-hud { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .bh-tech { animation: none !important; opacity: .5 !important; }
  .bh-mal-pulse, .bh-mal-pulse2, .bh-eq-caret { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   COMPLEMENTARY ELEMENTS — fill remaining empty margin/corner space
   ═══════════════════════════════════════════════════════════════════ */

/* ── ۶/۷) Gears (rotating) — silver tone ── */
.bh-gear { pointer-events: none; }
.bh-gear-tl { left: 24%; top: 12%; width: 60px; height: 60px; animation-delay: 5.4s; }
.bh-gear-br { right: 24%; bottom: 16%; width: 46px; height: 46px; animation-delay: 6.2s; }
.bh-gear-ring { stroke: rgba(203,213,225,.4); stroke-width: 2; }
.bh-gear-teeth line { stroke: rgba(203,213,225,.5); stroke-width: 2.2; }
.bh-gear-spin { transform-origin: 40px 40px; animation: bhSpin 14s linear infinite; }
.bh-gear-spin-rev { transform-origin: 30px 30px; animation: bhSpin 10s linear infinite reverse; }
@keyframes bhSpin { to { transform: rotate(360deg); } }

/* ── ۸) Blueprint frame + dimensions (silver outline) ── */
.bh-blueprint {
  inset-inline-start: 5%; top: 56%; width: 140px; height: 140px;
  animation-delay: 5.8s; opacity: 0;
}
.bh-bp-frame { fill: none; stroke: rgba(203,213,225,.2); stroke-width: 1; }
.bh-bp-ticks line { stroke: rgba(203,213,225,.28); stroke-width: 1; }
.bh-bp-dim { fill: rgba(203,213,225,.5); font-family: 'SF Mono',Consolas,monospace; font-size: 9px; letter-spacing: .05em; }

/* ── ۹) Scattered math symbols (gold + turquoise mix) ── */
.bh-math {
  font-family: 'SF Mono','JetBrains Mono',Consolas,monospace;
  font-size: 18px; color: rgba(94,234,212,.4);
  animation: bhMathFloat 6s ease-in-out infinite;
}
/* every other math symbol is gold */
.bh-math:nth-child(3n) { color: rgba(230,194,0,.45); }
.bh-math:nth-child(4n) { color: rgba(203,213,225,.4); }
@keyframes bhMathFloat {
  0%    { transform: translateY(0); opacity: 0; }
  20%   { opacity: .5; }
  50%   { transform: translateY(-10px); opacity: .6; }
  100%  { transform: translateY(0); opacity: .35; }
}

/* ── ۱۰) SCADA network (moved lower-right, gold hub accent) ── */
.bh-scada { inset-inline-start: 5%; top: 78%; width: 140px; height: 82px; animation-delay: 6.4s; opacity: 0; }
.bh-scada-links line { stroke: rgba(94,234,212,.3); stroke-width: 1; }
.bh-scada-node { fill: rgba(13,115,119,.5); stroke: #5EEAD4; stroke-width: 1.2; }
.bh-scada-hub { fill: rgba(230,194,0,.15); stroke: rgba(230,194,0,.7); }
.bh-scada-pulse {
  fill: none; stroke: #5EEAD4; stroke-width: 1.4;
  animation: bhScadaPulse 2.2s ease-out infinite;
  transform-origin: 90px 50px;
}
@keyframes bhScadaPulse {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ── ۱۱) Horizontal scan line (gold-tinted) ── */
.bh-scan {
  top: 50%; inset-inline-start: 0; width: 100%; height: 1px; overflow: hidden;
  animation-delay: 5.4s;
}
.bh-scan-bar {
  position: absolute; top: 0; left: 0; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(230,194,0,.4), transparent);
  animation: bhScan 4.5s linear infinite;
}
@keyframes bhScan {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(460%); }
}

/* ── ۱۲) IEEE citation badge (top-left, below PID) ── */
.bh-ieee {
  top: 186px; inset-inline-start: 22px;
  font-family: 'SF Mono',Consolas,monospace; font-size: 9px; letter-spacing: .08em;
  color: rgba(94,234,212,.6); text-align: left; line-height: 1.9;
  animation-delay: 5s;
}
.bh-ieee-vol { display: block; }
.bh-ieee-issn { display: block; opacity: .55; }

/* ── ۱۳) Secondary HUD sensors (left-mid, fixed width, single anchor) ── */
.bh-hud2 {
  inset-inline-start: 30px; top: 64%;
  inset-inline-end: auto;
  width: 132px;
  animation-delay: 5.6s;
}

/* ── ۱۴) Bode / gain curve (lower-right, below PLC) ── */
.bh-bode { inset-inline-start: 5%; top: 34%; width: 120px; height: 70px; animation-delay: 6.8s; opacity: 0; }
.bh-bode-path { fill: none; stroke: rgba(230,194,0,.4); stroke-width: 1.4; }
.bh-bode-dot { fill: #E6C200; }
.bh-bode-dim { fill: rgba(230,194,0,.5); font-family: 'SF Mono',Consolas,monospace; font-size: 9px; }

/* ── ۱۴ب) Root locus / s-plane (control theory) — right-middle empty zone ── */
.bh-rootlocus {
  right: 11%; top: 7%; width: 150px; height: 130px; opacity: 0;
  animation: bhTechIn 1.6s ease-out forwards; animation-delay: 6.0s;
}
.bh-rl-axis { stroke: rgba(94,234,212,.28); stroke-width: 1; }
.bh-rl-pole path { stroke: #E6C200; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.bh-rl-zero { fill: none; stroke: #5EEAD4; stroke-width: 1.6; }
.bh-rl-branch { fill: none; stroke: rgba(94,234,212,.55); stroke-width: 1.3; stroke-dasharray: 5 3;
  stroke-dashoffset: 60; animation: bhRlDraw 4.5s ease-out forwards; }
@keyframes bhRlDraw { to { stroke-dashoffset: 0; } }
.bh-rl-arrow { fill: rgba(94,234,212,.7); }
.bh-rl-dim { fill: rgba(203,213,225,.5); font-family: 'SF Mono',Consolas,monospace; font-size: 9px; letter-spacing: .04em; }

/* ── ۱۴ج) Second-order transfer function + step response — top-right ── */
.bh-secondorder {
  right: auto; left: 8%; top: 18%; width: 150px; height: 130px; opacity: 0;
  direction: ltr; unicode-bidi: isolate;
  animation: bhTechIn 1.6s ease-out forwards; animation-delay: 6.1s;
}
.bh-so-axis-x { stroke: rgba(203,213,225,.16); stroke-width: 1; }
.bh-so-axis-y { stroke: rgba(203,213,225,.16); stroke-width: 1; }
.bh-so-step { stroke: rgba(203,213,225,.20); stroke-width: 1; stroke-dasharray: 4 3; }
.bh-so-curve { fill: none; stroke: rgba(94,234,212,.40); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  filter: drop-shadow(0 0 2px rgba(94,234,212,.30));
  animation: bhSoDraw 4s ease-out forwards; }
@keyframes bhSoDraw { to { stroke-dashoffset: 0; } }
.bh-so-peak { fill: rgba(230,194,0,.55); filter: drop-shadow(0 0 2px rgba(230,194,0,.45)); }
.bh-so-settle { stroke: rgba(230,194,0,.22); stroke-width: 1; }
.bh-so-dim { fill: rgba(203,213,225,.38); font-family: 'SF Mono',Consolas,monospace; font-size: 7px; letter-spacing: .03em; }
.bh-so-tf { fill: rgba(94,234,212,.45); font-family: 'Cambria Math','STIX Two Math',Georgia,serif; font-size: 9px; font-style: italic; letter-spacing: .01em; }
.bh-so-sub { font-size: 6px; baseline-shift: sub; }
.bh-so-sup { font-size: 6px; baseline-shift: super; }
.bh-so-italic { fill: rgba(203,213,225,.40); font-family: 'SF Mono',Consolas,monospace; font-size: 8px; font-style: italic; letter-spacing: .04em; }

/* ── ۱۵ب) ترمومتر + گیج فشار فرآیند (HUD صنعتی) — پایین-راست ── */
.bh-pressgauge {
  right: 2%; bottom: 2%; width: 180px; height: 135px; opacity: 0;
  animation: bhTechIn 1.6s ease-out forwards; animation-delay: 5.8s;
}
.bh-thermo-tube { fill: none; stroke: rgba(203,213,225,.40); stroke-width: 1.4; }
.bh-thermo-bulb { fill: none; stroke: rgba(203,213,225,.40); stroke-width: 1.4; }
.bh-thermo-fill { fill: rgba(230,194,0,.75); }
.bh-thermo-ticks line { stroke: rgba(203,213,225,.35); stroke-width: 1; }
.bh-pg-ring { fill: none; stroke: rgba(94,234,212,.40); stroke-width: 1.4; }
.bh-pg-inner { fill: rgba(13,115,119,.08); stroke: rgba(94,234,212,.18); stroke-width: 1; }
.bh-pg-arc { fill: none; stroke: rgba(94,234,212,.55); stroke-width: 2; }
.bh-pg-arc-min { fill: none; stroke: rgba(230,194,0,.45); stroke-width: 2; }
.bh-pg-ticks line { stroke: rgba(203,213,225,.4); stroke-width: 1.1; }
.bh-pg-needle { stroke: #E6C200; stroke-width: 2; stroke-linecap: round; }
.bh-pg-hub { fill: #E6C200; }
.bh-pg-val { fill: #5EEAD4; font-family: 'SF Mono','JetBrains Mono',Consolas,monospace; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.bh-pg-key { fill: rgba(203,213,225,.6); font-family: 'SF Mono','JetBrains Mono',Consolas,monospace; font-size: 9px; letter-spacing: .12em; }

/* ── ۱۵) Binary data stream (mid-right edge) ── */
.bh-binary {
  inset-inline-end: 4%; top: 58%;
  font-family: 'SF Mono',Consolas,monospace; font-size: 11px; letter-spacing: .04em;
  color: rgba(94,234,212,.35); writing-mode: vertical-rl; text-orientation: upright;
  animation: bhBinary 5s linear infinite; animation-delay: 6s;
}
.bh-binary span { opacity: .5; }
@keyframes bhBinary {
  0%,100% { opacity: .3; }
  50%     { opacity: .7; }
}

/* ── ۱۶) Circuit trace (gold) — top-center ── */
.bh-trace { top: 6%; inset-inline-start: 50%; transform: translateX(-50%); width: 150px; height: 56px; animation-delay: 6.2s; opacity: 0; }
.bh-trace-gold { fill: none; stroke: rgba(230,194,0,.5); stroke-width: 1.6; }
.bh-trace-pad-gold { fill: #E6C200; opacity: .8; }
.bh-trace-pad { fill: none; stroke: rgba(203,213,225,.6); stroke-width: 1.3; }

/* ── ۱۷) Gauge dial (silver) — upper-left-mid ── */
.bh-gauge { top: 8%; inset-inline-start: 30%; width: 70px; height: 70px; animation-delay: 6.6s; opacity: 0; }
.bh-gauge-ring { fill: none; stroke: rgba(203,213,225,.35); stroke-width: 1.6; }
.bh-gauge-inner { fill: none; stroke: rgba(203,213,225,.15); stroke-width: 1; }
.bh-gauge-needle { stroke: rgba(230,194,0,.7); stroke-width: 2; stroke-linecap: round;
  transform-origin: 40px 40px; animation: bhNeedle 5s ease-in-out infinite; }
@keyframes bhNeedle { 0%,100% { transform: rotate(-45deg); } 50% { transform: rotate(45deg); } }
.bh-gauge-hub { fill: #E6C200; }
.bh-gauge-ticks line { stroke: rgba(203,213,225,.4); stroke-width: 1.2; }

/* ── ۱۸) Gold/silver scattered dots ── */
.bh-golddot { width: 5px; height: 5px; border-radius: 50%; background: #E6C200; opacity: 0;
  animation: bhDotPulse 3s ease-in-out infinite; }
.bh-silverdot { width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; opacity: 0;
  animation: bhDotPulse 3.6s ease-in-out infinite; }
@keyframes bhDotPulse { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: .7; transform: scale(1.15); } }

/* ── ۱۹) Square wave (silver) — bottom-center ── */
.bh-sqwave { bottom: 6%; inset-inline-start: 50%; transform: translateX(-50%); width: 200px; height: 52px; animation-delay: 7s; opacity: 0; }
.bh-sqwave-path { fill: none; stroke: rgba(203,213,225,.5); stroke-width: 1.6; }
.bh-pwm-level { stroke: rgba(94,234,212,.20); stroke-width: 0.8; stroke-dasharray: 3 4; }
.bh-pwm-tick { stroke: rgba(203,213,225,.5); stroke-width: 0.8; }
.bh-pwm-dim { stroke: rgba(203,213,225,.35); stroke-width: 0.8; }
.bh-pwm-label { fill: rgba(94,234,212,.65); font-family: 'SF Mono','JetBrains Mono',Consolas,monospace; font-size: 8px; letter-spacing: .06em; }

/* ── ۲۰) Year reference (silver) — bottom-center ── */
.bh-year {
  bottom: 3%; inset-inline-start: 50%; transform: translateX(-50%);
  font-family: 'SF Mono',Consolas,monospace; font-size: 10px; letter-spacing: .08em;
  color: rgba(203,213,225,.5); animation-delay: 7.4s;
}

/* ── responsive: hide overlapping elements on smaller widths ── */
@media (max-width: 1200px) { .bh-gear-tl, .bh-gear-br, .bh-scada, .bh-gauge, .bh-rootlocus, .bh-secondorder { display: none; } }
@media (max-width: 1560px) and (min-width: 1201px) { .bh-scada { display: none; } }
@media (max-width: 900px) {
  .bh-plc, .bh-pid, .bh-bode, .bh-binary, .bh-ieee, .bh-blueprint, .bh-math,
  .bh-trace, .bh-sqwave, .bh-golddot, .bh-silverdot, .bh-year, .bh-rootlocus, .bh-pressgauge, .bh-secondorder { display: none; }
}
@media (max-width: 640px) {
  .bh-maloop, .bh-eq, .bh-stateeq, .bh-voltsine, .bh-hud, .bh-hud2, .bh-scan { display: none; }
}

/* Height guards — prevent vertical compression overlaps on short/narrow screens.
   As the hero gets shorter, progressively hide the densest margin elements so
   none of them can ever collide. */
@media (max-height: 860px) {
  .bh-blueprint, .bh-scada, .bh-binary { display: none; }
}
@media (max-height: 900px) {
  .bh-hud2 { display: none; }
}

@media (max-height: 800px) {
  .bh-bode, .bh-pid, .bh-ieee { display: none; }
}
@media (max-height: 740px) {
  .bh-plc, .bh-hud2, .bh-math { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-gear-spin, .bh-gear-spin-rev, .bh-scan-bar,
  .bh-scada-pulse, .bh-binary, .bh-math, .bh-needle, .bh-golddot, .bh-silverdot { animation: none !important; }
  .bh-gauge-needle { animation: none !important; }
}


/* ── Align arrow with text baseline and middle alignment ── */
.bh-arrow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.12em;
  margin: 0 0.25em;
  line-height: 1;
}
.bh-arrow-svg {
  display: inline-block;
  vertical-align: middle;
  width: 0.9em;
  height: 0.9em;
  stroke: currentColor;
  fill: none;
}

/* ===== END {p} ===== */

/* ===== BEGIN css/blog-mobile-compact.css ===== */
/* ═══════════════════════════════════════════════════════════════════
   ZamaniAuto Blog — Mobile & Tablet Ultra-Compact Density Suite
   Optimizes /blog for viewports <= 1024px and <= 640px
   Reduces dead padding, tightens card layouts, and speeds up scanning
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* 1. Breadcrumb Anchor */
  .za-blog-breadcrumb-anchor {
    margin-top: 56px !important;
  }
  .za-blog-breadcrumb-anchor nav {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
  }

  /* 2. Blog Hero Compact Density */
  .blog-hero {
    min-height: auto !important;
    padding: 28px 0 20px !important;
  }
  .blog-hero-content {
    padding: 16px 14px !important;
    gap: 14px !important;
  }
  .bh-eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 4px !important;
  }
  .bh-title {
    font-size: clamp(1.2rem, 4.5vw, 1.85rem) !important;
    line-height: 1.35 !important;
  }
  .bh-sub {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    max-width: 92% !important;
    margin: 4px auto 0 !important;
  }
  .bh-search-box {
    margin-top: 6px !important;
    max-width: 480px !important;
  }
  .bh-search-box input {
    height: 42px !important;
    font-size: 0.82rem !important;
    padding-inline: 40px 14px !important;
  }
  .bh-search-btn {
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 0.78rem !important;
  }

  /* 3. Toolbar & Category Filter Pills (Fix overflow shown in screenshot) */
  .blog-toolbar {
    top: 64px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .blog-toolbar-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 6px 0 !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .categories {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .categories::-webkit-scrollbar {
    display: none !important;
  }
  .cat-btn {
    flex-shrink: 0 !important;
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  .blog-meta-row {
    flex-shrink: 0 !important;
    font-size: 0.74rem !important;
    padding-inline-start: 4px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 4. Container & Layout Grid */
  .container {
    padding-bottom: 32px !important;
  }
  .blog-layout {
    gap: 16px !important;
    padding-top: 14px !important;
  }
  .articles-grid {
    gap: 12px !important;
  }

  /* 5. Article Cards Compact Density */
  .article-card {
    border-radius: 12px !important;
  }
  .article-card-image {
    aspect-ratio: 16/9 !important;
  }
  .article-card.featured-card .article-card-image {
    min-height: 180px !important;
  }
  .article-card-body {
    padding: 12px 14px !important;
  }
  .article-meta {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  .article-cat {
    padding: 2px 6px !important;
    font-size: 0.68rem !important;
  }
  .article-date {
    font-size: 0.72rem !important;
  }
  .article-stats {
    gap: 8px !important;
    font-size: 0.72rem !important;
    margin-bottom: 6px !important;
  }
  .article-card-body h3 {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
  .article-card-body > p {
    font-size: 0.78rem !important;
    line-height: 1.55 !important;
    margin-bottom: 8px !important;
  }
  .article-read-more {
    font-size: 0.78rem !important;
    padding-top: 8px !important;
  }

  /* 6. Sidebar Widgets Compact */
  .blog-sidebar {
    gap: 14px !important;
    margin-top: 6px !important;
  }
  .bl-sidebar-card {
    padding: 14px !important;
    border-radius: 12px !important;
  }
  .bl-sidebar-card h4 {
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
  }
  .bl-cat-link {
    padding: 6px 8px !important;
    font-size: 0.78rem !important;
  }
  .bl-popular-list {
    gap: 8px !important;
  }
  .bl-popular-item {
    padding: 6px !important;
    gap: 8px !important;
  }
  .bl-popular-title {
    font-size: 0.76rem !important;
  }
  .bl-newsletter h3 {
    font-size: 0.9rem !important;
  }
  .bl-newsletter p {
    font-size: 0.75rem !important;
    margin-bottom: 10px !important;
  }
  .bl-newsletter-input,
  .bl-newsletter-btn {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }

  /* 7. Pagination */
  .blog-pagination {
    margin-top: 20px !important;
    gap: 4px !important;
  }
  .pagination-btn, .pagination-num {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }
}


@media (max-width: 1024px) {
  /* 8. Compact Coming Soon Card (Mobile & Tablet) */
  .coming-soon {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    min-height: auto !important;
  }
  .coming-soon .article-card-body {
    padding: 4px 6px !important;
  }
  .coming-soon h3 {
    font-size: 0.88rem !important;
    margin-bottom: 2px !important;
  }
  .coming-soon p {
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
  }
}

/* Extra Compact on Phones (<= 640px) */
@media (max-width: 640px) {
  .blog-hero-content {
    padding: 12px var(--za-gutter, 16px) !important;
    gap: 10px !important;
  }
  .bh-title {
    font-size: 1.22rem !important;
  }
  .bh-sub {
    font-size: 0.75rem !important;
  }
  .bh-search-box input {
    height: 38px !important;
    font-size: 0.78rem !important;
  }
  .bh-search-btn {
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 0.74rem !important;
  }
  .blog-toolbar-inner {
    padding: 4px 0 !important;
    gap: 6px !important;
  }
  .cat-btn {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
  }
  .coming-soon {
    padding: 12px 10px !important;
  }
  .coming-soon h3 {
    font-size: 0.82rem !important;
  }
  .coming-soon p {
    font-size: 0.7rem !important;
  }
  .article-card-body {
    padding: 10px 12px !important;
  }
  .article-card-body h3 {
    font-size: 0.88rem !important;
  }
  .article-card-body > p {
    font-size: 0.75rem !important;
    -webkit-line-clamp: 2 !important;
  }
  .bl-sidebar-card {
    padding: 12px !important;
  }
  .articles-grid {
    gap: 10px !important;
  }
}

/* ===== END {p} ===== */
