/* ==========================================================================
   Cards Grid Component Styles (News & Quick Access)
   ========================================================================== */

/* Equal height for news cards */
body .news-grid ul.wp-block-post-template {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
}

body .news-grid .wp-block-post {
  display: flex;
  flex: 0 0 calc(33.333% - 1.34rem);
  max-width: calc(33.333% - 1.34rem);
}

@media (max-width: 992px) {
  body .news-grid .wp-block-post {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  body .news-grid .wp-block-post {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

body .news-grid .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

body .news-grid .news-card > .wp-block-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

body .search-results .wp-block-post-image img,
body .wp-block-query .wp-block-post-image img {
  height: 200px;
  object-fit: cover;
}

/* Quick Access gap fix */
body .acesso-rapido-section .wp-block-columns {
  gap: 2rem;
}

body .servico-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-left: 3px solid var(--gov-primary);
}

/* Container do ícone dentro do card */
.servico-card .icon-container {
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.servico-card:hover .icon-container {
    background-color: var(--gov-primary);
    color: #fff;
    transform: scale(1.08);
}
