/* ============================================
   NutravimLab — blog.css
   ============================================ */

/* Blog hero */
.blog-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1e5c3c 60%, #256645 100%);
  padding: 52px 0 36px;
  position: relative;
}
.blog-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--gold); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }

/* Filter */
.blog-filter-wrap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.bfbtn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
  border-radius: 40px;
  padding: 6px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.bfbtn:hover { background: rgba(255,255,255,.18); color: #fff; }
.bfbtn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Grid */
.blog-grid-section { padding: 52px 0 72px; background: var(--bg); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Post card */
.bpc {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.bpc:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.bpc.hidden { display: none; }
.bpc-soon { opacity: .75; }
.bpc-soon:hover { opacity: 1; }
.bpc > a, .bpc-soon > div { display: block; color: inherit; text-decoration: none; }

.bpc-img { height: 180px; overflow: hidden; background: var(--green-pale); }
.bpc-img img { width: 100%; height: 180px; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.bpc:hover .bpc-img img { transform: scale(1.05); }
.bpc-img-soon { position: relative; }
.bpc-img-soon::after {
  content: 'Coming Soon';
  position: absolute;
  inset: 0;
  background: rgba(26,92,56,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
}

.bpc-body { padding: 16px 18px 20px; }
.bpc-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 7px;
}
.bpc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.4;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.bpc:hover .bpc-title { color: var(--green); }
.bpc-excerpt {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 12px;
}
.bpc-meta { display: flex; gap: 10px; font-size: .73rem; color: var(--text-light); }
.bpc-meta span:last-child { color: var(--green); font-weight: 600; background: var(--green-pale); padding: 1px 8px; border-radius: 10px; }

/* ── Individual post page ─────────────────── */
.post-main { padding: 40px 0 80px; background: var(--bg); }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.post-content { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 36px 40px; }
.post-header { margin-bottom: 24px; }
.post-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--green-dark); line-height: 1.25; margin: 10px 0 12px; }
.post-meta-bar { font-size: .82rem; color: var(--text-light); display: flex; gap: 10px; flex-wrap: wrap; }
.post-product-img { text-align: center; background: var(--green-pale); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.post-product-img img { max-height: 220px; margin: 0 auto; }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--green-dark); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--green-light); display: inline-block; }
.post-content p { font-size: .95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 14px; }
.post-list { list-style: none; margin-bottom: 14px; }
.post-list li { font-size: .92rem; color: var(--text-mid); line-height: 1.65; padding: 6px 0 6px 18px; position: relative; border-bottom: 1px solid rgba(0,0,0,.04); }
.post-list li::before { content: '→'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.post-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--green-pale); border: 1.5px solid rgba(42,125,79,.2); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; flex-wrap: wrap; }
.post-rating-box { display: flex; align-items: center; gap: 18px; background: var(--gold-light); border: 2px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.prb-score { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.post-sidebar { position: sticky; top: 86px; }
.sidebar-box { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.sidebar-title { font-size: .95rem; font-weight: 800; color: var(--green-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-light); display: inline-block; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links li a { font-size: .85rem; color: var(--green); transition: var(--transition); }
.sidebar-links li a:hover { color: var(--green-dark); text-decoration: underline; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .post-content { padding: 20px 16px; }
  .post-cta-box { flex-direction: column; }
  .bfbtn { font-size: .74rem; padding: 5px 12px; }
  .blog-hero { padding: 40px 0 28px; }
}