/* ========== RESET & BASE ========== */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:#faf9f6;color:#1f2937;
  line-height:1.6;font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:#1e3a5f;text-decoration:none;transition:color .18s}
a:hover{color:#b45309}
h1,h2,h3,h4{
  font-family:'Lora',Georgia,serif;font-weight:700;
  line-height:1.25;color:#0f172a;margin:0;
}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.vazio{text-align:center;color:#6b7280;padding:60px 0;font-size:16px}

/* ========== HEADER ========== */
.site-header{
  background:#fff;border-bottom:1px solid #e5e7eb;
  position:sticky;top:0;z-index:50;
}
.site-header-inner{
  display:flex;align-items:center;gap:24px;height:80px;
}
.brand h1{font-size:24px;letter-spacing:-.02em}
.brand h1 a{color:#0f172a}
.brand h1 a:hover{color:#1e3a5f}
.brand p{font-size:13px;color:#6b7280;margin:2px 0 0;font-style:italic;font-family:'Lora',serif}
.site-nav{display:flex;gap:4px;margin-left:auto}
.site-nav a{padding:8px 14px;border-radius:8px;font-size:14px;font-weight:500;color:#4b5563}
.site-nav a:hover{background:#f3f4f6;color:#1e3a5f}
.site-nav a.active{background:#1e3a5f;color:#fff}
.search-form{display:flex;align-items:center;background:#f3f4f6;border-radius:8px;padding:0 12px}
.search-form input{border:0;background:transparent;padding:10px 0;font-size:14px;outline:0;width:180px;font-family:inherit}
.search-form button{border:0;background:transparent;cursor:pointer;font-size:16px;color:#6b7280}

/* ========== HERO ========== */
.hero{padding:48px 0 40px;border-bottom:1px solid #e5e7eb;margin-bottom:24px}
.hero-post{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.hero-image{
  aspect-ratio:16/10;border-radius:16px;overflow:hidden;
  background:linear-gradient(135deg,#e5e7eb,#d1d5db);
}
.hero-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.hero-post:hover .hero-image img{transform:scale(1.03)}
.hero-content .categoria{
  display:inline-block;background:#fef3c7;color:#92400e;
  padding:4px 10px;border-radius:999px;font-size:12px;
  font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  margin-bottom:16px;
}
.hero-content h2{font-size:40px;margin-bottom:16px;line-height:1.15}
.hero-content h2 a{color:#0f172a}
.hero-content h2 a:hover{color:#1e3a5f}
.hero-content .resumo{font-size:17px;color:#4b5563;line-height:1.6;margin-bottom:20px;font-family:'Lora',serif}
.hero-meta{display:flex;gap:12px;color:#6b7280;font-size:14px;flex-wrap:wrap}

/* ========== SEÇÃO POSTS ========== */
.posts-section{padding:32px 0 48px}
.section-title{display:flex;align-items:baseline;gap:12px;margin-bottom:32px}
.section-title h2{font-size:28px}
.section-title span{color:#6b7280;font-size:14px}

/* ========== GRID & CARDS ========== */
.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px}
.card{
  background:#fff;border-radius:12px;overflow:hidden;
  border:1px solid #e5e7eb;display:flex;flex-direction:column;
  transition:transform .2s,box-shadow .2s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.card-image{aspect-ratio:16/10;overflow:hidden;background:#f3f4f6;display:block}
.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.card:hover .card-image img{transform:scale(1.05)}
.card-body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-categoria{
  display:inline-block;background:#fef3c7;color:#92400e;
  padding:3px 9px;border-radius:999px;font-size:11px;
  font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  align-self:flex-start;
}
.card h3{font-size:20px;line-height:1.3}
.card h3 a{color:#0f172a}
.card h3 a:hover{color:#1e3a5f}
.card-resumo{
  color:#6b7280;font-size:14px;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;font-family:'Lora',serif;
}
.card-meta{display:flex;gap:8px;color:#9ca3af;font-size:12px;margin-top:auto;padding-top:8px}

/* ========== PAGINAÇÃO ========== */
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:56px;flex-wrap:wrap}
.pagination a,.pagination span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;border-radius:8px;
  font-size:14px;font-weight:500;border:1px solid #e5e7eb;
  background:#fff;color:#4b5563;
}
.pagination a:hover{background:#f3f4f6;color:#1e3a5f}
.pagination .current{background:#1e3a5f;color:#fff;border-color:#1e3a5f}
.pagination .ellipsis{border:0;background:transparent}

/* ========== POST INDIVIDUAL ========== */
.post-hero{padding:40px 0 8px}
.post-categoria-top{
  display:inline-block;background:#fef3c7;color:#92400e;
  padding:4px 10px;border-radius:999px;font-size:12px;
  font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  margin-bottom:20px;
}
.post-title{font-size:48px;line-height:1.15;margin-bottom:24px}
.post-meta{display:flex;gap:12px;color:#6b7280;font-size:14px;flex-wrap:wrap}
.post-meta strong{color:#1f2937;font-weight:600}

.post-image{margin:32px 0;border-radius:16px;overflow:hidden}
.post-image img{width:100%;max-height:600px;object-fit:cover}

.post-content{
  max-width:720px;margin:0 auto;
  font-family:'Lora',Georgia,serif;font-size:19px;line-height:1.8;color:#1f2937;
}
.post-content p{margin:0 0 1.4em}
.post-content h2,.post-content h3{font-family:'Lora',serif;margin:2em 0 .8em;color:#0f172a}
.post-content h2{font-size:30px}
.post-content h3{font-size:24px}
.post-content blockquote{
  border-left:4px solid #b45309;padding:8px 0 8px 24px;
  margin:2em 0;font-style:italic;color:#4b5563;
}
.post-content img{margin:1.5em 0;border-radius:8px}
.post-content a{color:#b45309;text-decoration:underline}
.post-content ul,.post-content ol{margin:0 0 1.4em;padding-left:1.5em}
.post-content li{margin-bottom:.4em}

/* ========== COMENTÁRIOS ========== */
.comments-section{max-width:720px;margin:64px auto 0;padding-top:40px;border-top:1px solid #e5e7eb}
.comments-section h2{font-size:24px;margin-bottom:24px}
.comment{
  padding:16px 20px;background:#fff;border-radius:10px;
  border:1px solid #e5e7eb;margin-bottom:12px;
}
.comment-header{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13px;gap:12px;flex-wrap:wrap}
.comment-header strong{color:#0f172a}
.comment-header time{color:#9ca3af}
.comment p{margin:0;color:#4b5563}
.comment-form{
  background:#fff;border-radius:12px;
  border:1px solid #e5e7eb;padding:24px;margin-top:24px;
}
.comment-form h3{font-size:18px;margin-bottom:16px}
.comment-form input,.comment-form textarea{
  width:100%;padding:10px 14px;border:1px solid #e5e7eb;
  border-radius:8px;font-size:14px;font-family:inherit;
  margin-bottom:12px;background:#faf9f6;
}
.comment-form input:focus,.comment-form textarea:focus{
  outline:none;border-color:#1e3a5f;background:#fff;
}

/* ========== BOTÕES ========== */
.btn-primario{
  display:inline-block;background:#1e3a5f;color:#fff;
  padding:11px 22px;border-radius:8px;font-size:14px;
  font-weight:600;border:0;cursor:pointer;font-family:inherit;
  transition:background .18s;
}
.btn-primario:hover{background:#15294a;color:#fff}

/* ========== RELACIONADOS ========== */
.related-posts{max-width:1100px;margin:80px auto 0;padding-top:48px;border-top:1px solid #e5e7eb}
.related-posts h2{font-size:24px;margin-bottom:28px;text-align:center}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}

/* ========== FOOTER ========== */
.site-footer{background:#0f172a;color:#94a3b8;padding:48px 0 32px;margin-top:80px}
.site-footer .container{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.site-footer h4{color:#fff;font-size:15px;margin-bottom:16px;font-family:'Inter',sans-serif}
.site-footer p{font-size:14px;line-height:1.7}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer ul li{margin-bottom:8px}
.site-footer ul a{color:#94a3b8;font-size:14px}
.site-footer ul a:hover{color:#fff}
.site-footer .copyright{
  border-top:1px solid #1e293b;margin-top:40px;padding-top:24px;
  text-align:center;font-size:13px;grid-column:1/-1;
} 

/* ========== RESPONSIVO ========== */
@media (max-width:900px){
  .hero-post{grid-template-columns:1fr;gap:24px}
  .hero-content h2{font-size:32px}
  .post-title{font-size:36px}
  .post-content{font-size:17px}
  .site-footer .container{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .site-header-inner{height:64px;gap:12px;flex-wrap:wrap}
  .brand h1{font-size:20px}
  .brand p{display:none}
  .site-nav{display:none}
  .search-form input{width:120px}
  .hero-content h2{font-size:26px}
  .post-title{font-size:28px}
  .container{padding:0 16px}
  .site-footer .container{grid-template-columns:1fr}
}