/* =========================================================
   Velquanta – Article / Blog post styles
   ========================================================= */

/* ─── PAGE WRAPPER ─── */
.article-page { padding: 0 0 72px; }

/* ─── BREADCRUMB INSIDE ARTICLE ─── */
.article-page .breadcrumb { padding: 18px 0 0; margin-bottom: 0; background: transparent; border: none; }
.article-page .breadcrumb span { color: #94a3b8; }

/* ─── ARTICLE LAYOUT: 2-col grid ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}

/* ─── ARTICLE MAIN ─── */
.article-main { min-width: 0; }

/* ─── ARTICLE HEADER ─── */
.article-header { margin-bottom: 36px; }

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #64748b;
}

.blog-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.blog-cat--health { background: #ecfdf5; color: #059669; }
.blog-cat--tech   { background: #eff6ff; color: #2563eb; }
.blog-cat--guide  { background: #fef3c7; color: #d97706; }
.blog-cat--energy { background: #f0fdf4; color: #16a34a; }
.blog-cat--home   { background: #f5f3ff; color: #7c3aed; }
.blog-cat--eco    { background: #ecfdf5; color: #047857; }
.blog-cat--allergy{ background: #fef2f2; color: #dc2626; }
.blog-cat--office { background: #eff6ff; color: #1d4ed8; }

.article-header h1 {
  font-size: 2rem;
  line-height: 1.28;
  color: #0f172a;
  margin-bottom: 18px;
  font-weight: 700;
  text-wrap: balance;
}

.article-lead {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 28px;
  font-weight: 400;
}

.article-hero-img { margin: 0 0 8px; border-radius: 14px; overflow: hidden; }
.article-hero-img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.article-hero-img figcaption { font-size: 0.78rem; color: #94a3b8; margin-top: 8px; padding: 0 4px; }

/* ─── ARTICLE BODY ─── */
.article-body { color: #334155; line-height: 1.8; }

.article-body h2 {
  font-size: 1.45rem;
  color: #0f172a;
  margin: 44px 0 14px;
  font-weight: 700;
  padding-top: 4px;
  border-top: 2px solid #e2e8f0;
  padding-top: 20px;
}
.article-body h2:first-child { border-top: none; margin-top: 0; }

.article-body h3 {
  font-size: 1.12rem;
  color: #1e293b;
  margin: 28px 0 10px;
  font-weight: 600;
}

.article-body h4 {
  font-size: 0.95rem;
  color: #1e293b;
  margin: 20px 0 8px;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 18px;
  font-size: 0.97rem;
}

.article-body strong { color: #0f172a; font-weight: 600; }

.article-list {
  padding-left: 0;
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
}
.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: #0ea5e9;
  border-radius: 50%;
}

.article-body ol.article-list { counter-reset: art-ol; }
.article-body ol.article-list li { counter-increment: art-ol; }
.article-body ol.article-list li::before {
  content: counter(art-ol);
  background: none;
  color: #0ea5e9;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 0;
  top: 2px;
  width: auto;
  height: auto;
}

/* ─── CALLOUT BOXES ─── */
.article-box {
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
  position: relative;
}
.article-box h4 { margin: 0 0 10px; font-size: 0.92rem; font-weight: 700; }
.article-box p, .article-box li { font-size: 0.9rem; line-height: 1.65; }
.article-box ul { padding-left: 18px; margin: 8px 0 0; }
.article-box ul li { margin-bottom: 5px; }

.article-box--info {
  background: #eff6ff;
  border-left: 4px solid #0ea5e9;
}
.article-box--info h4 { color: #0369a1; }

.article-box--tip {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}
.article-box--tip h4 { color: #065f46; }

.article-box--warn {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}
.article-box--warn h4 { color: #92400e; }

.article-box--fact {
  background: #f5f3ff;
  border-left: 4px solid #7c3aed;
}
.article-box--fact h4 { color: #5b21b6; }

/* ─── TABLES ─── */
.article-table-wrap { overflow-x: auto; margin: 28px 0; }
.article-table-wrap h4 { font-size: 0.88rem; color: #64748b; margin-bottom: 10px; }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 480px; }
.article-table thead th { background: #0ea5e9; color: white; padding: 10px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.article-table tbody td { padding: 9px 16px; border-bottom: 1px solid #e2e8f0; color: #475569; vertical-align: top; }
.article-table tbody tr:nth-child(even) td { background: #f8fafc; }
.article-table tbody tr:hover td { background: #f1f5f9; }

/* ─── BLOCKQUOTE ─── */
.article-body blockquote {
  border-left: 4px solid #0ea5e9;
  background: #f8fafc;
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.98rem;
  color: #334155;
}
.article-body blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.8rem; color: #64748b; }

/* ─── ARTICLE FOOTER ─── */
.article-footer { margin-top: 52px; padding-top: 32px; border-top: 1px solid #e2e8f0; }

.article-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; font-size: 0.82rem; color: #64748b; }
.article-tags a { display: inline-block; padding: 4px 12px; background: #f1f5f9; border-radius: 40px; color: #334155; text-decoration: none; font-size: 0.8rem; transition: background 0.2s; }
.article-tags a:hover { background: #e2e8f0; }

.article-related h3 { font-size: 1.1rem; color: #0f172a; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: block; text-decoration: none; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; transition: box-shadow 0.2s, transform 0.2s; }
.related-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.related-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.related-card span { display: block; padding: 10px 12px; font-size: 0.82rem; color: #334155; line-height: 1.4; font-weight: 500; }

/* ─── ARTICLE SIDEBAR ─── */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
}
.sidebar-widget--sticky { top: 100px; }

.sidebar-widget h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  margin-bottom: 14px;
}

.rec-product { display: flex; gap: 12px; }
.rec-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.rec-product strong { display: block; font-size: 0.87rem; color: #0f172a; margin-bottom: 4px; line-height: 1.3; }
.rec-note { display: block; font-size: 0.78rem; color: #64748b; }

.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.cat-list li { border-bottom: 1px solid #e2e8f0; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { display: block; padding: 8px 0; font-size: 0.85rem; color: #0ea5e9; text-decoration: none; transition: color 0.2s; }
.cat-list li a:hover { color: #0369a1; }

/* ─── AUTHOR BOX ─── */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; margin: 36px 0; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.author-role { font-size: 0.78rem; color: #0ea5e9; font-weight: 500; margin-bottom: 8px; }
.author-bio { font-size: 0.83rem; color: #64748b; line-height: 1.6; }

/* ─── STAT BADGES ─── */
.article-stats { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0; }
.stat-badge { background: #f1f5f9; border-radius: 10px; padding: 14px 20px; text-align: center; flex: 1; min-width: 110px; }
.stat-badge-value { display: block; font-size: 1.5rem; font-weight: 700; color: #0ea5e9; line-height: 1; margin-bottom: 4px; }
.stat-badge-label { display: block; font-size: 0.72rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── TOC (Table of Contents) ─── */
.article-toc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; margin: 0 0 32px; }
.article-toc h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #334155; margin-bottom: 12px; }
.article-toc ol { padding-left: 18px; counter-reset: toc; margin: 0; }
.article-toc li { padding: 4px 0; font-size: 0.85rem; }
.article-toc a { color: #0ea5e9; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 280px; gap: 32px; }
}
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-header h1 { font-size: 1.55rem; }
  .article-hero-img img { height: 260px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-stats { flex-direction: column; }
}
