/* =========================================================
   BLOG – LISTAGEM (THERMOSSEG) [PDO]
========================================================= */
.blog-page{ padding:40px 0 80px; background:#f8f9fb; }
.blog-page .container{ max-width:1180px; }

.blog-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.blog-head .title{ margin:0; font-weight:900; color:#111827; font-size:26px; }
.blog-head .subtitle{ margin:6px 0 0; color:#6b7280; line-height:1.6; max-width:560px; }

.blog-search{ width:420px; max-width:100%; }
.blog-search form{ display:flex; gap:10px; }
.blog-search input{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  padding:11px 12px;
}
.blog-search input:focus{
  border-color: rgba(31,111,67,.45);
  box-shadow: 0 0 0 .2rem rgba(31,111,67,.12);
}

.blog-chips{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 0; }
.blog-chip{
  display:inline-flex; align-items:center;
  padding:8px 12px; border-radius:999px;
  background: rgba(31,111,67,.10);
  color:#1f6f43;
  border:1px solid rgba(31,111,67,.14);
  font-weight:800; font-size:13px; text-decoration:none;
  transition: transform .2s ease, background .2s ease;
}
.blog-chip:hover{ transform: translateY(-2px); background: rgba(31,111,67,.14); }
.blog-chip.active{ background:#1f6f43; color:#fff; border-color: rgba(31,111,67,.30); }

.blog-grid{ display:grid; grid-template-columns: 1fr 320px; gap:22px; align-items:start; margin-top:18px; }
.posts-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }

.post-card{
  background:#fff; border:1px solid rgba(0,0,0,.06);
  border-radius:10px; overflow:hidden; position:relative;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor:pointer;
}
.post-card:hover{ transform: translateY(-10px); box-shadow: 0 25px 55px rgba(0,0,0,.18); }
.post-card::after{ content:''; position:absolute; left:0; bottom:0; width:100%; height:3px; background: var(--bs-primary); }

.post-thumb{ position:relative; height:180px; overflow:hidden; background:#0b1220; }
.post-thumb img{
  width:100%; height:100%;
  object-fit:cover; object-position:center 20%;
  transition: transform .6s ease; display:block;
}
.post-card:hover .post-thumb img{ transform: scale(1.08); }
.post-thumb::after{ content:''; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.40)); }

.post-badge{
  position:absolute; top:14px; left:14px; z-index:2;
  background: var(--bs-primary); color:#fff;
  font-size:.75rem; font-weight:800; letter-spacing:.6px;
  padding:6px 10px; border-radius:6px;
  border:1px solid rgba(255,255,255,.18);
}

.post-body{ padding:16px 16px 18px; }
.post-meta{ display:flex; gap:10px; align-items:center; color:#6b7280; font-size:12.5px; margin-bottom:8px; }
.post-title{ margin:0 0 8px; font-weight:900; font-size:1.02rem; line-height:1.25; color:#111827; }
.post-excerpt{ margin:0 0 12px; color:#6b7280; font-size:.92rem; line-height:1.6; }

.post-readmore{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:900; color: var(--bs-primary); text-decoration:none;
  transition: gap .25s ease;
}
.post-readmore i{ font-size:12px; transition: transform .25s ease; }
.post-card:hover .post-readmore{ gap:12px; }
.post-card:hover .post-readmore i{ transform: translateX(4px); }

.blog-sidebar{
  background:#fff; border:1px solid rgba(0,0,0,.06);
  border-radius:16px; padding:18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  position: sticky; top: 18px;
}
.side-title{ margin:0 0 10px; font-weight:900; font-size:16px; color:#111827; }
.side-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.side-list a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  text-decoration:none; color:#374151; font-weight:800;
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(31,111,67,.06);
  transition: transform .2s ease, background .2s ease;
}
.side-list a:hover{ transform: translateY(-2px); background: rgba(31,111,67,.10); }
.side-recent a{ background:#fff; }
.side-recent .date{ font-size:12px; color:#6b7280; font-weight:700; }

.blog-pagination{ display:flex; gap:8px; flex-wrap:wrap; margin-top:22px; }
.blog-page-link{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 12px;
  border-radius:10px; border:1px solid rgba(0,0,0,.10);
  background:#fff; color:#111827; text-decoration:none; font-weight:900;
}
.blog-page-link.active{ background: var(--bs-primary); color:#fff; border-color: rgba(31,111,67,.30); }
.blog-page-link:hover{ border-color: rgba(31,111,67,.35); }

@media (max-width: 991px){
  .blog-head{ flex-direction: column; }
  .blog-search{ width: 100%; }
  .blog-grid{ grid-template-columns: 1fr; }
  .posts-grid{ grid-template-columns: 1fr; }
  .blog-sidebar{ position: static; }
  .post-thumb{ height: 220px; }
}
	
/* =========================
   SIDEBAR RECENTES COM THUMB
========================= */

.recent-post-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  text-decoration:none;
  padding:8px;
  border-radius:12px;
  transition: background .25s ease, transform .25s ease;
}

.recent-post-item:hover{
  background: rgba(31,111,67,.06);
  transform: translateY(-2px);
}

/* Thumb */
.recent-thumb{
  width:68px;
  height:56px;
  flex-shrink:0;
  border-radius:10px;
  overflow:hidden;
  background:#0b1220;
}

.recent-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition: transform .4s ease;
}

.recent-post-item:hover .recent-thumb img{
  transform: scale(1.06);
}

/* Texto */
.recent-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.recent-title{
  font-size:13.5px;
  font-weight:800;
  color:#111827;
  line-height:1.3;
}

.recent-date{
  font-size:12px;
  color:#6b7280;
  font-weight:600;
}
/* =========================================================
   THUMB THERMOSSEG: auto resize + centro inteligente + blur lazy
========================================================= */

/* padrão de corte (igual seus cards): prioriza a parte de cima um pouco */
:root{
  --thumb-pos-x: 50%;
  --thumb-pos-y: 20%; /* 20% = puxa o foco para cima (rostos/placas) */
}

/* =========================
   THUMB DOS POSTS (CARDS)
========================= */

.post-thumb{
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #0b1220;
}

.post-thumb img{
  width: 100%;
  height: 100%;
  display: block;

  /* auto resize + crop */
  object-fit: cover;
  object-position: var(--thumb-pos-x) var(--thumb-pos-y);

  /* lazy blur */
  filter: blur(14px);
  transform: scale(1.05);
  transition: filter .35s ease, transform .6s ease;
  will-change: transform, filter;
}

/* quando carregou */
.post-thumb img.is-loaded{
  filter: blur(0);
  transform: scale(1);
}

/* zoom no hover igual Thermosseg */
.post-card:hover .post-thumb img.is-loaded{
  transform: scale(1.08);
}

/* overlay gradiente igual você já usa */
.post-thumb::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.40));
}

/* =========================
   THUMB DOS "RECENTES" (SIDEBAR)
========================= */

.recent-thumb{
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(0,0,0,.08);
}

.recent-thumb img{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: var(--thumb-pos-x) var(--thumb-pos-y);

  filter: blur(12px);
  transform: scale(1.06);
  transition: filter .3s ease, transform .45s ease;
}

.recent-thumb img.is-loaded{
  filter: blur(0);
  transform: scale(1);
}

.recent-post-item:hover .recent-thumb img.is-loaded{
  transform: scale(1.05);
}
/* FORM BUSCA BLOG */
.blog-search-form{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.blog-search-input{
  min-width:240px;
  flex:1;
}

/* BOTÃO LIMPAR MAIS SUAVE */
.blog-btn-clear{
  border:1px solid #e3e6ed;
  background:#f8f9fb;
  color:#495057;
  transition:.2s;
}

.blog-btn-clear:hover{
  background:#eef1f6;
  border-color:#d9dde5;
  color:#212529;
}
