.news-home {
  background: var(--gray-soft);
}

.news-home.section {
  padding: 5rem 0;
}

.news-home .news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.news-home .section-heading {
  max-width: 48rem;
  margin: 0;
  text-align: left;
}

.news-home .section-heading .eyebrow {
  justify-content: flex-start;
}

.news-home .section-heading p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.news-home .news-all-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: .625rem 1.25rem;
  color: var(--navy);
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.news-home .news-all-link:hover {
  background: var(--navy);
  color: #fff;
}

.news-home .news-all-link svg {
  width: 1rem;
  height: 1rem;
}

.news-grid,
.news-loading-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.news-card {
  min-width: 0;
}

.news-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(7, 28, 74, .12), 0 2px 4px -2px rgba(7, 28, 74, .12);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1);
}

.news-card > a:hover {
  transform: translateY(-.25rem);
  box-shadow: 0 25px 50px -12px rgba(7, 28, 74, .25);
}

.news-media {
  position: relative;
  height: 13rem;
  overflow: hidden;
}

.news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.news-card > a:hover .news-media img {
  transform: scale(1.1);
}

.news-media .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1rem;
}

.category-noticias {
  background: #eff6ff;
  color: #1d4ed8;
}

.category-agenda {
  background: #f0fdf4;
  color: #15803d;
}

.category-projetos {
  background: #faf5ff;
  color: #7e22ce;
}

.category-comunidades {
  background: #fffbeb;
  color: #b45309;
}

.category-artigos {
  background: #eef2ff;
  color: #4338ca;
}

.category-imprensa {
  background: #fff1f2;
  color: #be123c;
}

.news-body {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1rem;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-width: 0;
}

.news-meta svg {
  width: .875rem;
  height: .875rem;
}

.news-body h3 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.38;
  transition: color .2s ease;
}

.news-card > a:hover .news-body h3 {
  color: var(--blue);
}

.news-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: gap .2s ease;
}

.news-card > a:hover .news-read-more {
  gap: .75rem;
}

.news-read-more svg {
  width: 1rem;
  height: 1rem;
}

.news-listing.section {
  padding: 4rem 0;
  background: #fff;
}

.news-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-list-grid .news-card:first-child {
  grid-column: span 2;
}

.news-list-grid .news-card:first-child > a {
  display: flex;
}

.news-list-grid .news-card:first-child .news-media {
  width: 50%;
  height: auto;
  min-height: 16rem;
}

.news-list-grid .news-card:first-child .news-body {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-grid .news-card:first-child .news-body h3 {
  font-size: 1.5rem;
}

.news-detail-meta {
  width: min(100% - 2rem, 80rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem auto 0;
  color: #bfdbfe;
  font-size: .875rem;
  line-height: 1.25rem;
}

.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.news-detail-meta svg {
  width: 1rem;
  height: 1rem;
}

.news-detail-wrap {
  max-width: 48rem;
}

.news-detail-content {
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.news-detail-content p {
  margin: 0 0 1rem;
}

.news-detail-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.news-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--blue);
  font-weight: 600;
  transition: gap .2s ease;
}

.news-detail-back a:hover {
  gap: .75rem;
}

.news-home .news-loading-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  animation: news-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.news-home .news-loading-media {
  height: 11rem;
  background: var(--muted);
}

.news-home .news-loading-body {
  display: grid;
  gap: .75rem;
  padding: 1.5rem;
}

.news-home .news-loading-line {
  height: 1rem;
  border-radius: .25rem;
  background: var(--muted);
}

.news-home .news-loading-line:first-child {
  width: 33.333%;
}

.news-home .news-loading-line:nth-child(2) {
  width: 75%;
  height: 1.25rem;
}

.news-home .news-empty {
  text-align: center;
  padding: 3rem 0;
}

.news-home .news-empty svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto .75rem;
  color: #64748b;
}

.news-home .news-empty p {
  color: var(--text-secondary);
  margin: 0;
}

.news-home .news-empty p:last-child {
  margin-top: .25rem;
  font-size: .875rem;
  line-height: 1.25rem;
}

@keyframes news-pulse {
  50% {
    opacity: .5;
  }
}

@media (max-width: 1023px) {
  .news-grid,
  .news-loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .news-home .news-head {
    align-items: flex-start;
  }

  .news-grid,
  .news-loading-grid {
    grid-template-columns: 1fr;
  }

  .news-list-grid .news-card:first-child {
    grid-column: auto;
  }

  .news-list-grid .news-card:first-child > a {
    display: block;
  }

  .news-list-grid .news-card:first-child .news-media,
  .news-list-grid .news-card:first-child .news-body {
    width: auto;
  }

  .news-list-grid .news-card:first-child .news-media {
    height: 13rem;
    min-height: 0;
  }

  .news-list-grid .news-card:first-child .news-body h3 {
    font-size: 1.125rem;
  }
}
