.template-hero {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.newsletter-hero img {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
}

.training-wrap {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 96px;
  width: 80%;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.post-card {
  background-color: #fafafa;
  border-radius: 8px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.post-card:hover {
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.03);
}

.post-card img {
  border-radius: 8px 8px 0 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media screen and (max-width: 960px) {
  .training-wrap {
    flex-direction: column;
    width: 90%;
    gap: 8px;
  }
  .post-card img {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: max-content;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}