/* ═══════════════════════════════════════════════════════════
   JellyFil — Blog Styles
   ═══════════════════════════════════════════════════════════ */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--royal);
  width: 0%;
  z-index: 200;
  transition: width 0.1s;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--royal); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; color: var(--text-light); }

/* Blog listing page */
.blog-hero {
  background: var(--soft-bg);
  padding: 70px 0 60px;
  text-align: center;
}
.blog-hero h1 { margin-bottom: 14px; }
.blog-hero p { color: var(--text-mid); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--royal); box-shadow: var(--shadow-md); }
.blog-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--soft-bg); }
.blog-card-body { padding: 24px; }
.blog-card .cat { color: var(--royal); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.blog-card h2 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { color: var(--text-mid); font-size: 15px; line-height: 1.6; }
.blog-card .read-more { color: var(--royal); font-weight: 700; font-size: 14px; margin-top: 14px; display: inline-block; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin: 40px auto 0; } }

/* Blog post page */
.post-hero {
  background: var(--soft-bg);
  padding: 50px 0;
}
.post-hero .cat { color: var(--royal); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }
.post-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.post-hero .meta { color: var(--text-mid); font-size: 14px; font-weight: 600; }
.post-hero .meta span { margin: 0 8px; color: var(--text-light); }

.post-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding: 60px 0;
  align-items: start;
}
@media (max-width: 880px) { .post-layout { grid-template-columns: 1fr; gap: 30px; } }

/* Table of contents */
.toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.toc-title { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin-bottom: 14px; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--text-mid); font-size: 14px; font-weight: 500; line-height: 1.5; transition: color 0.2s; }
.toc a:hover { color: var(--royal); }
.toc a.active { color: var(--royal); font-weight: 700; }
@media (max-width: 880px) { .toc { position: static; } }

/* Post content */
.post-content { max-width: 720px; }
.post-content > img { width: 100%; border-radius: var(--radius-lg); margin: 30px 0; }
.post-content h2 { font-size: 1.7rem; margin: 40px 0 18px; scroll-margin-top: 100px; }
.post-content h3 { font-size: 1.3rem; margin: 30px 0 14px; scroll-margin-top: 100px; }
.post-content p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.85; margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 22px 22px; }
.post-content li { color: var(--text-mid); font-size: 1.05rem; line-height: 1.75; margin-bottom: 10px; }
.post-content strong { color: var(--navy); }
.post-content blockquote {
  border-left: 4px solid var(--royal);
  padding: 16px 24px;
  background: var(--soft-bg);
  border-radius: 8px;
  font-style: italic;
  color: var(--navy);
  margin: 26px 0;
  font-size: 1.1rem;
}

/* Post CTA block */
.post-cta {
  background-image: var(--hero-gradient);
  background-color: var(--royal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
  text-align: center;
}
.post-cta h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.post-cta p { color: rgba(255,255,255,0.85); margin-bottom: 22px; font-size: 1rem; }
.post-cta img { max-width: 200px; margin: 0 auto 20px; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3)); }
.post-cta .cta-primary { background: var(--white); color: var(--royal); }

/* Post FAQ */
.post-faq { margin: 40px 0; }
.post-faq h2 { margin-bottom: 20px; }

/* Post nav (prev/next) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-nav a {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
  display: block;
}
.post-nav a:hover { border-color: var(--royal); background: var(--soft-bg); }
.post-nav .lbl { color: var(--royal); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.post-nav .title { color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.4; }
.post-nav .next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }
