/* ============================================================
   Sublime Print & Konveksi — blog.css
   Gaya tambahan khusus halaman blog & artikel.
   Memakai variabel & komponen dasar dari style.css.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 1.2rem;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: "›"; color: var(--accent); font-weight: 700; }
.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--blue-dark); font-weight: 500; }

/* ---------- Hero blog ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue) 100%);
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}
.blog-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.blog-hero p { color: var(--blue-pale); max-width: 640px; margin-inline: auto; font-weight: 300; }
.blog-hero .eyebrow { color: var(--accent-light); }

/* ---------- Grid & kartu artikel ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(10, 31, 68, 0.14); color: inherit; }
.post-card h2, .post-card h3 { font-size: 1.18rem; }
.post-card h2 a, .post-card h3 a { color: var(--blue-dark); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--blue); }
.post-card p { color: var(--gray-text); font-size: 0.94rem; font-weight: 300; flex: 1; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--gray-text);
}
.post-meta time { font-weight: 500; color: var(--blue-mid); }

.chip {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip-accent { background: rgba(240, 165, 0, 0.16); color: #a56d00; }

/* ---------- Header artikel ---------- */
.post-header {
  padding: 2.6rem 0 2.2rem;
  border-bottom: 1px solid var(--blue-pale);
  background: var(--gray-soft);
}
.post-header h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); margin: 0.7rem 0 0.9rem; max-width: 820px; }
.post-header .lede { color: var(--gray-text); font-size: 1.06rem; font-weight: 300; max-width: 760px; }
.post-header .post-meta { margin-top: 1rem; font-size: 0.88rem; }

/* ---------- Isi artikel ---------- */
.article-body { max-width: 780px; margin-inline: auto; padding: 2.6rem 0 3rem; }
.article-body h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin: 2.4rem 0 0.9rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
}
.article-body h3 { font-size: 1.12rem; margin: 1.6rem 0 0.6rem; }
.article-body p { margin-bottom: 1.05rem; color: #2a3a58; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body strong { color: var(--blue-dark); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 1.8rem;
  font-size: 0.92rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-body th {
  background: var(--blue-dark);
  color: var(--white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
}
.article-body td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--blue-pale); vertical-align: top; }
.article-body tbody tr:nth-child(even) { background: var(--gray-soft); }
.article-body tbody tr:last-child td { border-bottom: 0; }

/* Kotak info / tips */
.callout {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}
.callout-accent { background: rgba(240, 165, 0, 0.12); border-left-color: var(--accent); }

/* Kotak CTA WhatsApp di akhir artikel */
.cta-box {
  margin-top: 2.6rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-box h2 { border: 0; padding: 0; margin: 0 0 0.5rem; color: var(--white); font-size: 1.3rem; }
.cta-box p { color: var(--blue-pale); margin-bottom: 1.2rem; }

/* Navigasi antar artikel */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}
.post-nav a {
  display: block;
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow);
  background: var(--white);
}
.post-nav a:hover { color: var(--blue); border-color: var(--blue-light); }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; }
.post-nav .label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }

/* ---------- Responsif ---------- */
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .article-body table { display: block; overflow-x: auto; }
}
