/* ==========================================================================
   Page: news (/news/) — loaded after site.css by site/news/index.html only
   ========================================================================== */

/* Post cards */
.news-list { margin-top: 75px; }

.post-cards {
  display: grid;
  gap: 35px 30px;
}

.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: var(--c-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.post-card__thumb {
  position: relative;
  display: block;
  padding-bottom: 50%;
  overflow: hidden;
}
.post-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  margin: 5px;
  padding: 7.2px 14.4px;
  border-radius: 7px;
  background: var(--c-purple);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  text-transform: uppercase;
  color: var(--c-green);
}

.post-card__body { padding: 40px 30px 20px; }

.post-card__title {
  margin-bottom: 25px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 25.2px;
}
.post-card__title a,
.post-card__title a:hover { color: var(--c-purple); }

.post-card__excerpt {
  margin: 0 0 34px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #777;
}

.post-card__more {
  display: block;
  width: fit-content;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--c-purple);
}
.post-card__more:hover { color: var(--c-purple); text-decoration: underline; }

/* "Get in touch" panel (shared .contact-panel) */
.contact-panel { margin-top: 75px; }

@media (min-width: 768px) {
  .news-list { padding: 10px 0; }
  .post-cards { grid-template-columns: repeat(2, 1fr); }
  .post-card__thumb { padding-bottom: 49%; }
}

@media (min-width: 1025px) {
  .post-cards { grid-template-columns: repeat(4, 1fr); }
}
