﻿@charset "utf-8";
/* Blog hub — listagem (blog.php) */
body.blog-hub {
  font-family: 'Roboto', system-ui, sans-serif;
  background: linear-gradient(180deg, #f4f7fa 0%, #eef2f6 40%, #f8fafc 100%);
  color: #2c3e50;
}

.page-hero--blog .page-hero__bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(44, 124, 186, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(150, 195, 34, 0.14), transparent 50%),
    linear-gradient(135deg, #1a2a3a 0%, #243b4f 45%, #2c4a63 100%);
}

.blog-hub__breadcrumb {
  margin-bottom: 1rem;
}

.blog-hub__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.blog-hub__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.blog-hub__breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.blog-hub__breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.blog-hub__filters {
  position: sticky;
  top: calc(var(--site-header-height, 72px) + 0.25rem);
  z-index: 20;
  padding: 0.75rem 0 1rem;
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.98) 70%, rgba(244, 247, 250, 0));
  backdrop-filter: blur(8px);
}

.blog-hub__filters-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.15rem 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  cursor: grab;
}

.blog-hub__filters-inner.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.blog-hub__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 62, 80, 0.12);
  background: #fff;
  color: #3d5166;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.06);
}

.blog-hub__chip:hover {
  transform: translateY(-1px);
  border-color: rgba(44, 124, 186, 0.35);
  box-shadow: 0 6px 16px rgba(20, 40, 60, 0.1);
  color: #1f6fa8;
}

.blog-hub__chip.is-active {
  background: linear-gradient(135deg, #2c7cba 0%, #1f5f94 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 95, 148, 0.28);
}

.blog-hub__content {
  padding: 0.5rem 0 4rem;
}

.blog-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.blog-hub__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2c7cba;
  margin-bottom: 0.35rem;
}

.blog-hub__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1e2f3f;
  margin-bottom: 0.5rem;
}

.blog-hub__lead {
  color: #5a6b7d;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.blog-hub__featured {
  margin-bottom: 1.75rem;
}

.blog-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 62, 80, 0.08);
  box-shadow: 0 4px 18px rgba(20, 40, 60, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.blog-card:hover,
.blog-card.is-hovered {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 40, 60, 0.12);
}

.blog-card--featured {
  flex-direction: row;
  min-height: 280px;
}

.blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe8f0;
}

.blog-card--featured .blog-card__media {
  flex: 0 0 48%;
  aspect-ratio: auto;
  min-height: 280px;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 30, 45, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1;
}

.blog-card--featured .blog-card__body {
  justify-content: center;
  padding: 1.5rem 1.75rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: #7a8b9c;
  margin-bottom: 0.55rem;
}

.blog-card__title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.blog-card__title a {
  color: #1e2f3f;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #2c7cba;
}

.blog-card__excerpt {
  color: #5a6b7d;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.blog-card__author {
  font-size: 0.8rem;
  color: #7a8b9c;
}

.blog-card__author i {
  margin-right: 0.25rem;
  color: #96c322;
}

.blog-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c7cba;
  text-decoration: none;
  white-space: nowrap;
}

.blog-card__link i {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__link i {
  transform: translateX(3px);
}

.blog-hub__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed rgba(44, 62, 80, 0.15);
}

.blog-hub__empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(44, 124, 186, 0.1);
  color: #2c7cba;
  font-size: 1.25rem;
}

.blog-hub__empty h3 {
  margin-bottom: 0.35rem;
}

.blog-hub__empty p {
  color: #5a6b7d;
  margin-bottom: 1rem;
}

.blog-hub__empty-btn {
  display: inline-flex;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #2c7cba;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.blog-hub__pagination {
  margin-top: 2rem;
}

.blog-hub__pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-hub__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(44, 62, 80, 0.12);
  background: #fff;
  color: #3d5166;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-hub__page:hover {
  border-color: #2c7cba;
  color: #2c7cba;
}

.blog-hub__page.is-active {
  background: #2c7cba;
  border-color: #2c7cba;
  color: #fff;
}

.blog-hub__sidebar {
  position: sticky;
  top: calc(var(--site-header-height, 72px) + 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-hub__widget {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(44, 62, 80, 0.08);
  box-shadow: 0 4px 18px rgba(20, 40, 60, 0.06);
}

.blog-hub__widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #1e2f3f;
}

.blog-hub__widget-title i {
  color: #2c7cba;
  margin-right: 0.4rem;
}

.blog-hub__search {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(44, 62, 80, 0.14);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-hub__search.is-focused {
  border-color: #2c7cba;
  box-shadow: 0 0 0 3px rgba(44, 124, 186, 0.15);
}

.blog-hub__search input {
  flex: 1;
  border: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  outline: none;
  min-width: 0;
}

.blog-hub__search button {
  border: 0;
  background: #2c7cba;
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-hub__search button:hover {
  background: #1f5f94;
}

.blog-hub__categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-hub__categories li + li {
  margin-top: 0.35rem;
}

.blog-hub__categories a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: #3d5166;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.blog-hub__categories a:hover,
.blog-hub__categories a[aria-current="page"] {
  background: rgba(44, 124, 186, 0.08);
  color: #1f5f94;
  padding-left: 0.75rem;
}

.blog-hub__widget--cta {
  background: linear-gradient(145deg, #1f5f94 0%, #2c7cba 55%, #3a8fd4 100%);
  color: #fff;
  border: none;
}

.blog-hub__cta-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.blog-hub__cta-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog-hub__cta-text {
  font-size: 0.9rem;
  opacity: 0.92;
  margin-bottom: 1rem;
}

.blog-hub__cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-hub__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.blog-hub__cta-btn--primary {
  background: #fff;
  color: #1f5f94;
}

.blog-hub__cta-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.blog-hub__cta-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .blog-hub__layout {
    grid-template-columns: 1fr;
  }

  .blog-hub__sidebar {
    position: static;
    order: -1;
  }

  .blog-card--featured {
    flex-direction: column;
  }

  .blog-card--featured .blog-card__media {
    flex: none;
    min-height: 200px;
  }
}

@media (max-width: 767.98px) {
  .blog-hub__grid {
    grid-template-columns: 1fr;
  }

  .blog-hub__filters {
    top: calc(var(--site-header-height, 64px));
  }
}
