/* Latest blog: three cards, 400 x 472 Figma px, in a narrower container than the footer (66.4vw). */
.blog { padding-top: 6.6vw; }
.blog__head { text-align: center; }
.blog__title { margin-top: .8vw; font-size: clamp(1.9rem, 2.5vw, 3rem); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; color: #101828; }

.blog__grid {
  width: min(66.4vw, 1275px); margin: 3.4vw auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4vw;
}
.post-card {
  container-type: inline-size; background: #f5f5f5; border-radius: min(1.15vw, 22px); color: #101828;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-card:hover { transform: translateY(-.5rem); box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 24px -10px rgba(16,24,40,.18); }
.post-card__link { display: flex; flex-direction: column; height: 100%; padding: 3.5%; }

.post-card__photo { overflow: hidden; border-radius: 4.5cqw; flex: none; }
.post-card__photo img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.post-card:hover .post-card__photo img { transform: scale(1.05); }

.post-card__title { margin-top: 6cqw; padding-inline: 1.5cqw; font-size: 5.3cqw; line-height: 1.4; font-weight: 600; letter-spacing: -.005em; }
.post-card__more { margin-top: auto; padding: 5cqw 1.5cqw 2.5cqw; display: inline-flex; align-items: center; gap: 2cqw; font-size: 3.8cqw; font-weight: 500; }
.post-card__icon {
  width: 7.2cqw; height: 7.2cqw; border-radius: 50%; background: var(--c-primary);
  display: grid; place-items: center; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card__icon img { width: 60%; height: 60%; filter: brightness(0) invert(1); transition: transform .45s var(--ease); }
.post-card:hover .post-card__icon { transform: scale(1.1); box-shadow: 0 0 0 1.2cqw rgba(231,68,48,.16); }
.post-card:hover .post-card__icon img { transform: rotate(-45deg); }   /* arrow turns to point up-right */

@media (max-width: 1000px) {
  .blog { padding-top: 3rem; }
  .blog__title { margin-top: .6rem; }
  .blog__grid { width: calc(100% - 2 * var(--gutter)); margin-top: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .post-card { border-radius: 1.1rem; }
  .post-card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 600px) {
  .blog__grid { grid-template-columns: minmax(0, 1fr); max-width: 24rem; }
}
