/* ─── BLOG PAGE ─── */
.blog-page {
  min-height: 100vh;
  background: #ffffff;
}

/* ─── HERO ─── */
.blog-hero {
  background: #172444;
  padding: 120px 0 48px;
}

.blog-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0A9CD6;
  margin-bottom: 14px;
}

.blog-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 14px;
}

.blog-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 560px;
}

/* ─── FILTROS ─── */
.blog-filters {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.blog-filters-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-search-form {
  flex-shrink: 0;
}

.blog-search-input {
  background: #f4f6fa;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 18px;
  color: #1E2D50;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}

.blog-search-input::placeholder {
  color: rgba(30, 45, 80, 0.4);
}

.blog-search-input:focus {
  border-color: #0A9CD6;
}

.blog-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: rgba(30, 45, 80, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.cat-pill:hover,
.cat-pill.active {
  border-color: #0A9CD6;
  color: #0A9CD6;
}

/* ─── GRID DE POSTS ─── */
.blog-grid-section {
  padding: 48px 0 80px;
  background: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── CARD ─── */
.post-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-thumb-img {
  transform: scale(1.04);
}

.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(10, 156, 214, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 156, 214, 0.4);
}

/* Corpo do card */
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-cat-pill {
  display: inline-block;
  background: rgba(10, 156, 214, 0.1);
  color: #0A9CD6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 10px;
  width: max-content;
}

.post-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1E2D50;
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #0A9CD6;
}

.post-card-excerpt {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(30, 45, 80, 0.6);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Rodapé do card */
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.post-card-date {
  font-size: 12px;
  color: rgba(30, 45, 80, 0.4);
}

.post-card-readmore {
  font-size: 13px;
  font-weight: 700;
  color: #0A9CD6;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-readmore:hover {
  color: #0882b3;
}

/* ─── PAGINAÇÃO ─── */
.blog-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 600;
  color: rgba(30, 45, 80, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.blog-pagination a.page-numbers:hover {
  border-color: #0A9CD6;
  color: #0A9CD6;
}

.blog-pagination .page-numbers.current {
  background: #DAFE08;
  border-color: #DAFE08;
  color: #222222;
}

.blog-pagination .page-numbers.dots {
  border: none;
  color: rgba(30, 45, 80, 0.3);
  pointer-events: none;
}

/* ─── SEM POSTS ─── */
.blog-no-posts {
  text-align: center;
  padding: 80px 0;
}

.blog-no-posts p {
  font-size: 16px;
  color: rgba(30, 45, 80, 0.5);
  margin-bottom: 24px;
}

/* ─── RESPONSIVO ─── */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-filters-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-search-form {
    width: 100%;
  }

  .blog-search-input {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    padding: 100px 0 36px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    gap: 6px;
  }

  .blog-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }
}
