/* R&D and Innovations view: project cards. */

/* Grid wrapper: let the cards breathe and stretch to equal height. */
.view-r-d-and-innovations .views-view-responsive-grid {
  align-items: stretch;
}
.view-r-d-and-innovations .views-view-responsive-grid__item-inner {
  height: 100%;
}

/* Card */
.rd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.75rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  color: #222;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.rd-card:hover,
a.rd-card:focus-visible {
  color: #222;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

/* Logo */
.rd-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  width: 100%;
  margin-bottom: 1.25rem;
}
.rd-card__logo img {
  max-height: 110px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Title and description */
.rd-card__title {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}
.rd-card__desc {
  margin: 0 0 1rem;
  font-size: .9rem;
  line-height: 1.4;
  color: #444;
}
.rd-card__desc p:last-child {
  margin-bottom: 0;
}

/* Status badge, pushed to the bottom of the card */
.rd-card__status {
  display: inline-block;
  margin-top: auto;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1.2;
  background: #ececec;
  color: #333;
}
.rd-card__status--completed,
.rd-card__status--completed-good-practice {
  background: #dcefe2;
  color: #1f5e3a;
}
