.av-latest-posts {
  background: linear-gradient(180deg, var(--av-white) 0%, #fbfef8 100%);
}

.av-latest-posts__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.av-latest-posts__card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--av-line);
  border-radius: var(--av-radius);
  background: var(--av-white);
  box-shadow: 0 14px 30px rgba(21, 45, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.av-latest-posts__card:hover {
  border-color: rgba(13, 79, 44, 0.22);
  box-shadow: 0 18px 38px rgba(21, 45, 31, 0.12);
  transform: translateY(-3px);
}

.av-latest-posts__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--av-green-3);
}

.av-latest-posts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av-latest-posts__thumb.is-placeholder {
  display: grid;
  place-items: center;
  padding: 28px;
}

.av-latest-posts__thumb.is-placeholder img {
  width: min(92px, 70%);
  height: auto;
  object-fit: contain;
}

.av-latest-posts__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.av-latest-posts__title {
  margin: 0;
  color: var(--av-ink);
  font-size: 17px;
  line-height: 1.34;
}

.av-latest-posts__title a {
  color: inherit;
}

.av-latest-posts__title a:hover {
  color: var(--av-green);
}

.av-latest-posts__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  color: var(--av-orange);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.av-latest-posts__read-more:hover {
  color: var(--av-green);
}

.av-latest-posts__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.av-latest-posts__read-more:hover .av-latest-posts__icon {
  transform: translateX(2px);
}

@media (max-width: 1180px) {
  .av-latest-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .av-latest-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .av-latest-posts__body {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .av-latest-posts__grid {
    grid-template-columns: 1fr;
  }
}
