/*
|--------------------------------------------------------------------------
| GLOBAL.CSS (REMOVER "VER TUDO →" DO CABEÇALHO)
|--------------------------------------------------------------------------
*/

/* ARQUIVO: /public_html/wp-content/themes/jornal-pp/assets/css/global.css */

/* ------------------------
   BASE / RESET + MANROPE
------------------------ */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Manrope",sans-serif;
  background:#f4f6f9;
  color:#111827;
  line-height:1.45;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
table{width:100%;border-collapse:collapse}

/* ------------------------
   LAYOUT
------------------------ */
main,.j-wrap{max-width:1100px;margin:24px auto;padding:0 16px}
.j-wrap>h1{margin:0 0 16px;font-size:24px;font-weight:800;letter-spacing:-.02em}

/* ------------------------
   CARD / ALERTA
------------------------ */
.j-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:16px;
  padding:18px;margin:16px 0;box-shadow:0 6px 18px rgba(17,24,39,.06)
}
.j-card h2{margin:0 0 14px;font-size:16px;font-weight:700;letter-spacing:-.01em}

.j-success,.j-error{
  padding:10px 12px;border-radius:12px;margin:0 0 12px;
  font-size:13px;font-weight:700
}
.j-success{background:#ecfdf5;border:1px solid #34d399;color:#065f46}
.j-error{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b}

/* ------------------------
   LISTAGEM (FRONT / TAXONOMIA / INDEX)
   - home-page, home-below, news-row
------------------------ */
.home-page{background:transparent;width:100%;max-width:1200px}

/* ======================================
   HOME — BLOCO ABAIXO DO HERO
====================================== */
.home-below{padding:35px 0 24px}

.home-below-grid{
  width:100%;
  max-width:none;
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,2fr) 355px;
  gap:69px;
  align-items:start;
  padding:0 12px;
  box-sizing:border-box;
}

.home-left-col{min-width:0}

.home-right-col{
  min-width:0;
  border-left:1.5px solid #8F8F8F;
  padding-left:26px;
}

.home-section-head{
  border-top:1.5px solid #1E293B;
  padding-top:10px;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.autor-materia{
display:flex;
align-items:center;
gap:10px;
margin-top:30px;
}

.autor-avatar{
display:flex;
align-items:center;
}

.autor-avatar img{
border-radius:50%;
border:2px solid var(--ed-color);
width:42px;
height:42px;
}

.autor-info{
display:flex;
align-items:center;
}

.autor-nome{
font-weight:700;
font-size:16px;
color:#333;
line-height:1;
}

.home-section-head h2{
  margin:0;
  font-size:14px;
  line-height:1.2;
  color:#111;
  font-weight:500;
}

.home-section-link{
  color:#666;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.home-section-link:hover{color:#111}

.home-list{display:flex;flex-direction:column}

.news-row{border-bottom:1px solid #dcdcdc;padding:16px 0}
.news-row:first-child{padding-top:10px}
.news-row:last-child{border-bottom:0}

.news-row-link{
  display:grid;
  grid-template-columns:305px minmax(0,1fr);
  gap:14px;
  text-decoration:none;
  color:inherit;
  align-items:start;
}

.news-row-thumb{
  width:100%;
  height:170px;
  overflow:hidden;
  background:#ddd;
  border-radius:0;
}

.news-row-thumb img,
.thumb-placeholder{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.thumb-placeholder{background:linear-gradient(135deg,#ececec,#d8d8d8)}

.news-row-content{min-width:0;padding-top:2px}

.news-row-tag{
  color:var(--tag-color,#0f766e);
  font-size:10px;
  line-height:1;
  text-transform:uppercase;
  font-weight:600;
  margin-bottom:8px;
  letter-spacing:.2px;
}

.news-row-content h3{
  margin:0 0 8px 0;
  color:#111;
  font-size:22px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:-.2px;
  display:-webkit-box;
  -webkit-line-clamp:4;
  line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.news-row-content p{
  margin:0 0 8px 0;
  color:#6b6b6b;
  font-size:12px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:4;
  line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.news-row-time{
  display:inline-block;
  color:#7d7d7d;
  font-size:11px;
  line-height:1;
}

/* RESPONSIVO — LISTAGEM */
@media (max-width:1100px){
  .news-row-link{grid-template-columns:250px minmax(0,1fr)}
  .news-row-thumb{height:145px}
  .news-row-content h3{font-size:18px}
}

/* HOVER ZOOM NAS IMAGENS */
.news-row-thumb,
.hero-image,
.side-card-image,
.single-ranking-item .img,
.single-mais-card .img{overflow:hidden}

.news-row-thumb img,
.hero-image img,
.side-card-image img,
.single-ranking-item .img img,
.single-mais-card .img img{
  transform:scale(1);
  transition:transform .35s ease;
}

.news-row-link:hover .news-row-thumb img,
.hero-link:hover .hero-image img,
.side-card-link:hover .side-card-image img,
.single-ranking-item:hover .img img,
.single-mais-card:hover .img img{transform:scale(1.08)}

/*
|--------------------------------------------------------------------------
| VER-TUDO FILTRO (AJUSTE TAMANHO + MAIS RESPIRO)
|--------------------------------------------------------------------------
*/
.ver-tudo-filtros{
  --p:#01216E;--a:#87D800;
  padding:16px;
  border:1px solid rgba(1,33,110,.14);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 24px rgba(1,33,110,.06);
  font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.ver-tudo-filtros .vt-row{display:flex;gap:12px;margin:0 0 12px;flex-wrap:wrap}
.ver-tudo-filtros input[type="search"],
.ver-tudo-filtros input[type="date"],
.ver-tudo-filtros select{
  height:36px;padding:0 12px;min-width:180px;flex:1 1 240px;
  border:1px solid rgba(1,33,110,.18);
  border-radius:12px;
  background:#f8fafc;color:#0b1220;outline:0;
  font-size:14px;transition:.18s;
}
.ver-tudo-filtros input[type="date"]{flex:0 1 190px}
.ver-tudo-filtros select{
  appearance:none;padding-right:34px;
  background:
    linear-gradient(45deg,transparent 50%,rgba(1,33,110,.65) 50%) calc(100% - 18px) 14px/6px 6px no-repeat,
    linear-gradient(135deg,rgba(1,33,110,.65) 50%,transparent 50%) calc(100% - 12px) 14px/6px 6px no-repeat,
    #f8fafc;
}
.ver-tudo-filtros input:focus,
.ver-tudo-filtros select:focus{
  background:#fff;border-color:rgba(135,216,0,.95);
  box-shadow:0 0 0 3px rgba(135,216,0,.18);
}
.ver-tudo-filtros .vt-actions{display:flex;gap:12px;margin-top:2px}
.ver-tudo-filtros .vt-actions button,
.ver-tudo-filtros .vt-actions a{
  height:36px;padding:0 14px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:13px;text-decoration:none;cursor:pointer;
  border:2px solid transparent;transition:.18s;
}
.ver-tudo-filtros .vt-actions button{background:var(--p);color:#fff}
.ver-tudo-filtros .vt-actions a{background:rgba(1,33,110,.06);color:var(--p)}
.ver-tudo-filtros .vt-actions button:hover,
.ver-tudo-filtros .vt-actions a:hover{
  transform:scale(1.03);
  background:transparent;border-color:var(--a);color:var(--p);
  box-shadow:0 10px 18px rgba(1,33,110,.12);
}
@media (max-width:640px){
  .ver-tudo-filtros .vt-actions{flex-wrap:wrap}
  .ver-tudo-filtros .vt-actions button,
  .ver-tudo-filtros .vt-actions a{width:100%}
}

/*
|--------------------------------------------------------------------------
| PAGINAÇÃO (J-PAGINATION) MESMAS CORES
|--------------------------------------------------------------------------
*/
.j-pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:20px;
  font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.j-pagination a,
.j-pagination span{
  min-width:40px;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
  border:2px solid transparent;
  transition:transform .18s,background .18s,border-color .18s,color .18s,box-shadow .18s;
}
.j-pagination a{background:rgba(1,33,110,.06);color:#01216E}
.j-pagination a:hover{
  transform:scale(1.03);
  background:transparent;
  border-color:#87D800;
  color:#01216E;
  box-shadow:0 10px 18px rgba(1,33,110,.12);
}
.j-pagination .current{background:#01216E;color:#fff}
.j-pagination .dots{
  background:transparent;
  color:rgba(1,33,110,.55);
  padding:0 8px;
  min-width:auto;
}
@media (max-width:640px){
  .j-pagination a,
  .j-pagination span{height:38px;min-width:38px;padding:0 12px}
}

/*
|--------------------------------------------------------------------------
| INDEX UI (BOTÕES + ESTADO VAZIO + GRID SINGLE)
|--------------------------------------------------------------------------
*/
.home-below-grid--single{grid-template-columns:minmax(0,1fr);gap:0}
.home-below--tight{padding-top:8px}

.j-btn{
  --p:#01216E;--a:#87D800;
  height:40px;padding:0 18px;border-radius:999px;gap:8px;
  display:inline-flex;align-items:center;justify-content:center;
  font:800 13px/1 Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  text-decoration:none;border:2px solid transparent;transition:.18s;cursor:pointer;
}
.j-btn-primary{background:var(--p);color:#fff}
.j-btn-secondary{background:rgba(1,33,110,.06);color:var(--p)}
.j-btn:hover{
  transform:scale(1.03);
  background:transparent;border-color:var(--a);color:var(--p);
  box-shadow:0 10px 18px rgba(1,33,110,.12);
}
.j-btn:active{transform:scale(1.01)}
.j-btn:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(135,216,0,.22)}

.j-empty{padding:82px 12px 18px;text-align:center}
.j-empty-inner{max-width:860px;margin:0 auto}
.j-empty-title{margin:0;font-size:34px;line-height:1.15;font-weight:900;color:#0b1220}
.j-empty-text{margin:14px auto 0;max-width:760px;color:#475569;font-size:15px;line-height:1.5}
.j-empty-cta{margin-top:22px}

/*
|--------------------------------------------------------------------------
| BOTÃO "VER MAIS NOTÍCIAS" (FORMATAÇÃO PADRÃO)
|--------------------------------------------------------------------------
*/
.home-more-wrap{
  display:flex;
  justify-content:center;
  margin:24px 0 8px;
}

.home-more-btn{
  --p:#01216E;--a:#87D800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border:2px solid transparent;
  background:var(--p);
  color:#fff;
  font:800 13px/1 Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  text-decoration:none;
  transition:transform .18s,background .18s,border-color .18s,color .18s,box-shadow .18s;
}

.home-more-btn:hover{
  transform:scale(1.03);
  background:transparent;
  border-color:var(--a);
  color:var(--p);
  box-shadow:0 10px 18px rgba(1,33,110,.12);
}

.home-more-btn:active{transform:scale(1.01)}
.home-more-btn:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(135,216,0,.22)}

.j-muted{color:#64748b;margin:12px 0 0}

/*
|--------------------------------------------------------------------------
| REMOVER "VER TUDO →" DO CABEÇALHO (FINAL)
|--------------------------------------------------------------------------
*/
.home-section-head .home-section-link,
.home-section-head a[href*="ver-tudo"]{
  display:none!important;
}