/* Completed delivery highlights, kept distinct from open course enrolment. */
.nmb-training-history {
  --history-navy: #000070;
  --history-orange: #d74900;
  box-sizing: border-box;
  width: 100%;
  margin: 36px 0;
  padding: 28px;
  color: #202639;
  background: #f3f5fa;
  border: 1px solid #dfe4ee;
  border-radius: 18px;
  scroll-margin-top: 24px;
}

.nmb-training-history--home {
  width: calc(100% - 48px);
  max-width: 1320px;
  margin: 36px auto 8px;
}

.nmb-training-history .nmb-training-history__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 36px;
  margin-bottom: 24px;
}

.nmb-training-history .nmb-training-history__eyebrow {
  margin: 0 0 8px;
  color: var(--history-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nmb-training-history h2 {
  display: block;
  margin: 0;
  color: var(--history-navy);
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 700;
}

.nmb-training-history__heading > p {
  max-width: 400px;
  margin: 0;
  color: #515b70;
  font-size: 14px;
  line-height: 1.65;
}

.nmb-training-history__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.nmb-training-history .nmb-training-history__event {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-top: 4px solid #f85800;
  border-radius: 4px 4px 12px 12px;
}

.nmb-training-history__figure {
  margin: 0;
}

.nmb-training-history__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf0f7;
}

.nmb-training-history__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nmb-training-history__media--poster img {
  box-sizing: border-box;
  padding: 10px;
  object-fit: contain;
}

.nmb-training-history__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.nmb-training-history .nmb-training-history__media:focus-visible {
  outline-offset: -4px;
}

.nmb-training-history__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #5d6678;
  font-size: 11px;
  line-height: 1.5;
}

.nmb-training-history__status {
  padding: 3px 8px;
  color: #165338;
  background: #eaf5ed;
  border-radius: 5px;
  font-weight: 700;
}

.nmb-training-history__date {
  display: block;
  margin: 20px 0 10px;
  color: var(--history-orange);
  font-size: 15px;
  font-weight: 700;
}

.nmb-training-history h3 {
  display: block;
  margin: 0 0 12px;
  color: var(--history-navy);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

.nmb-training-history .nmb-training-history__summary {
  margin: 0 0 20px;
  color: #515b70;
  font-size: 13px;
  line-height: 1.75;
}

.nmb-training-history__area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e6e9f0;
  color: var(--history-navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.nmb-training-history__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
}

.nmb-training-history__footer p {
  margin: 0;
  font-size: 13px;
}

.nmb-training-history__enquiry {
  color: var(--history-navy);
  font-size: 13px;
  font-weight: 700;
}

.nmb-training-history a:focus-visible {
  outline: 3px solid #f85800;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .nmb-training-history {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .nmb-training-history--home {
    width: calc(100% - 28px);
    margin: 24px auto 0;
  }

  .nmb-training-history__body {
    padding: 20px;
  }
}
