/* ============================================================
   BLOG — Index & Article (main website)
   ============================================================ */

/* ── Page section ─────────────────────────────────────────── */
.hz-blog-section {
  padding: 40px 0 72px;
  background: #fff;
}

.hz-blog-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.75rem;
}

/* ── Blog card ────────────────────────────────────────────── */
.hz-card {
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  padding: 10px;
}
.hz-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}

.hz-card__media-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.hz-card__media {
  overflow: hidden;
  background: #f3f4f6;
  height: 210px;
  border-radius: 12px;
}
.hz-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hz-card:hover .hz-card__media img { transform: scale(1.04); }
.hz-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f2, #e4e4e6);
  color: #b0b0b8;
  font-size: 2.5rem;
  border-radius: 12px;
}

.hz-card__body {
  padding: 0.875rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hz-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.42;
  color: #111827;
  margin-bottom: 1rem;
  flex: 1;
}
.hz-card__title a {
  color: inherit;
  text-decoration: none;
}
.hz-card__title a:hover { color: #333; }

.hz-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1.125rem;
  border-radius: 999px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}
.hz-card__btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.hz-card__btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 1px;
}

/* ── Pagination ───────────────────────────────────────────── */
.hz-blog-pagination {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.hz-blog-pagination .pagination { gap: 0.25rem; }
.hz-blog-pagination .page-link {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  transition: all 0.15s ease;
}
.hz-blog-pagination .page-link:hover { background: #f9fafb; }
.hz-blog-pagination .page-item.active .page-link {
  background: #e53e3e;
  border-color: #e53e3e;
  color: #fff;
}

/* ── Empty state ──────────────────────────────────────────── */
.hz-blog-empty { text-align: center; padding: 80px 20px; }
.hz-blog-empty-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #9ca3af;
  margin: 0 auto 1.25rem;
}
.hz-blog-empty h5 { font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; }
.hz-blog-empty p { color: #6b7280; font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* ── Sidebar ──────────────────────────────────────────────── */
.hz-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hz-sidebar-cta {
  background: linear-gradient(145deg, #1e40af 0%, #1d4ed8 60%, #2563eb 100%);
  border-radius: 14px;
  padding: 1.5rem 1.375rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hz-sidebar-cta::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.hz-sidebar-cta__illustration {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
}
.hz-sidebar-cta__heading {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.75rem;
  order: -1;
}
.hz-sidebar-cta {
  display: flex;
  flex-direction: column;
}
.hz-sidebar-cta__heading { order: 0; margin-top: 0; margin-bottom: 0.5rem; }
.hz-sidebar-cta__illustration { order: 1; margin-top: 0.25rem; }
.hz-sidebar-cta__text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1rem;
  order: 2;
}
.hz-sidebar-cta__btn {
  order: 3;
  display: inline-block;
  background: #fff;
  color: #1e40af;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.5rem 1.375rem;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  margin: 0 auto;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hz-sidebar-cta__btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
}

.hz-sidebar-guides {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hz-sidebar-guides__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.875rem;
}
.hz-sidebar-guides__header .bi {
  color: #1d4ed8;
  font-size: 0.9rem;
}
.hz-sidebar-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hz-sidebar-guides__list li a {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.5;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f9fafb;
  transition: color 0.15s ease;
}
.hz-sidebar-guides__list li:last-child a { border-bottom: none; }
.hz-sidebar-guides__list li a:hover { color: #e53e3e; }
.hz-sidebar-guides__list li a .bi {
  flex-shrink: 0;
  font-size: 0.65rem;
  margin-top: 0.35rem;
  color: #9ca3af;
}

/* ============================================================
   ARTICLE SHOW PAGE
   ============================================================ */

.hz-article-page {
  background: #fff;
  padding: 40px 0 72px;
}

.hz-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}
.hz-article-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}
.hz-article-breadcrumb a:hover { color: #111827; }
.hz-article-breadcrumb .bi { font-size: 0.6rem; }

.hz-article-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1rem;
}

.hz-article-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
}
.hz-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hz-article-meta__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
}

.hz-article-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.hz-article-banner img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* ToC: hidden by default, shown by JS when headings exist */
.hz-toc {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.hz-toc--hidden {
  display: none !important;
}
.hz-toc__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hz-toc__list {
  margin: 0;
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hz-toc__list li a {
  font-size: 0.875rem;
  color: #1d4ed8;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
.hz-toc__list li a:hover { color: #1e3a8a; text-decoration: underline; }
.hz-toc__list li.hz-toc__sub {
  margin-left: 1rem;
  list-style-type: disc;
}
.hz-toc__list li.hz-toc__sub a { font-size: 0.8375rem; color: #3b82f6; }

.hz-article-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #1f2937;
}
.hz-article-content p { margin-bottom: 1.375rem; }

.hz-article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.28;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}
.hz-article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}
.hz-article-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.hz-article-content ul,
.hz-article-content ol {
  margin-bottom: 1.375rem;
  padding-left: 1.625rem;
}
.hz-article-content li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

.hz-article-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(29,78,216,0.3);
  transition: text-decoration-color 0.15s;
}
.hz-article-content a:hover { text-decoration-color: #1d4ed8; }

.hz-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hz-article-content blockquote {
  border-left: 4px solid #1d4ed8;
  background: #eff6ff;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #1e40af;
  line-height: 1.72;
}
.hz-article-content blockquote p { margin-bottom: 0; color: inherit; }

.hz-article-content code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.18em 0.45em;
  font-size: 0.875em;
  color: #374151;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}
.hz-article-content pre {
  background: #111827;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hz-article-content pre code {
  background: none; border: none; padding: 0;
  color: inherit; font-size: 0.875rem;
}

.hz-article-content table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.925rem;
}
.hz-article-content th {
  background: #f9fafb; border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem; font-weight: 700;
  text-align: left; color: #111827;
}
.hz-article-content td {
  border: 1px solid #e5e7eb; padding: 0.75rem 1rem; color: #374151;
}
.hz-article-content tr:nth-child(even) td { background: #f9fafb; }

.hz-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-wrap: wrap;
}
.hz-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px;
  background: #fff;
  transition: all 0.15s ease;
}
.hz-back-btn:hover { background: #111827; color: #fff; }
.hz-back-btn .bi { transition: transform 0.2s ease; }
.hz-back-btn:hover .bi { transform: translateX(-3px); }

.hz-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
}
.hz-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 0.9rem;
}
.hz-share a:hover { background: #111827; border-color: #111827; color: #fff; }

.hz-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid #f3f4f6;
}
.hz-related__heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}

@media (max-width: 767.98px) {
  .hz-article-page { padding: 24px 0 48px; }
  .hz-article-title { font-size: 1.5rem; }
  .hz-article-footer { flex-direction: column; align-items: flex-start; }
  .hz-related { margin-top: 2.5rem; }
}
