.credentials-history {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(82, 170, 164, 0.14), transparent 34%),
    linear-gradient(180deg, var(--cream) 0%, #fff 54%, #f8fbfb 100%);
}

.credentials-history::before {
  position: absolute;
  top: 0;
  right: clamp(18px, 5vw, 64px);
  left: clamp(18px, 5vw, 64px);
  height: 1px;
  background: rgba(23, 107, 103, 0.18);
  content: "";
}

.credentials-history__intro {
  margin-bottom: 38px;
}

.credentials-history__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
}

.credentials-history__card {
  overflow: hidden;
  border: 1px solid rgba(15, 42, 63, 0.1);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(15, 42, 63, 0.1);
}

.credentials-history__card figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
}

.credentials-history__document {
  display: grid;
  min-height: clamp(360px, 45vw, 560px);
  padding: clamp(18px, 3vw, 34px);
  place-items: center;
  background:
    linear-gradient(145deg, rgba(15, 42, 63, 0.97), rgba(23, 107, 103, 0.91)),
    var(--navy);
}

.credentials-history__document img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.credentials-history__document--plaque img {
  aspect-ratio: 3 / 4;
}

.credentials-history__document--flyer img {
  aspect-ratio: 3 / 4;
}

.credentials-history__card figcaption {
  padding: clamp(22px, 3vw, 32px);
}

.credentials-history__date {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credentials-history__card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.15;
}

.credentials-history__card figcaption > p:last-child {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

.credentials-history__status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 42, 63, 0.08);
}

.credentials-history__status strong {
  color: var(--navy);
  font-size: 16px;
}

.credentials-history__status p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .credentials-history__grid {
    grid-template-columns: 1fr;
  }

  .credentials-history__document {
    min-height: 0;
  }

  .credentials-history__document img {
    max-height: 520px;
  }
}

@media (max-width: 560px) {
  .credentials-history__document {
    padding: 16px;
  }

  .credentials-history__status {
    grid-template-columns: 1fr;
  }
}

/* RUN-12 (2026-10-30): education and license documents */
.credentials-docs {
  margin-top: clamp(40px, 5vw, 60px);
}

.credentials-docs > h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
}

.credentials-docs__note {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

.credentials-docs__group {
  margin: 28px 0 14px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credentials-docs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.credentials-docs__item {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 63, 0.1);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 42, 63, 0.08);
}

.credentials-docs__image {
  display: grid;
  height: 210px;
  padding: 14px;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(15, 42, 63, 0.97), rgba(23, 107, 103, 0.91)),
    var(--navy);
}

.credentials-docs__image img {
  display: block;
  max-width: 100%;
  max-height: 182px;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.credentials-docs__item figcaption {
  padding: 16px 18px 18px;
}

.credentials-docs__item .credentials-history__date {
  margin-bottom: 6px;
}

.credentials-docs__item h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.credentials-docs__item figcaption p:last-child {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}
