/* Balanced certificate gallery for the home-page documentation section. */
.nutriform-oem-theme .certificates-section {
  padding: clamp(76px, 7vw, 112px) clamp(24px, 5vw, 88px) !important;
  background: linear-gradient(180deg, #f8f5fa 0%, #f4f0f6 100%) !important;
}

.nutriform-oem-theme .certificates-heading {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin: 0 auto 42px !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr) !important;
  gap: clamp(40px, 7vw, 110px) !important;
  align-items: end !important;
}

.nutriform-oem-theme .certificates-heading h2 { max-width: 720px !important; }
.nutriform-oem-theme .certificates-heading > p {
  max-width: 510px !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.nutriform-oem-theme .certificate-grid,
.nutriform-oem-theme .certificates-compact .certificate-grid {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  gap: 18px !important;
}

.nutriform-oem-theme .certificate-card {
  min-width: 0 !important;
  border-color: #ddd6e2 !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 18px rgba(61, 28, 74, .055) !important;
}
.nutriform-oem-theme .certificate-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 34px rgba(61, 28, 74, .12) !important;
}
.nutriform-oem-theme .certificate-card > img {
  height: 245px !important;
  padding: 20px !important;
  background: #faf8fb !important;
}
.nutriform-oem-theme .certificate-card > span { top: 12px !important; left: 12px !important; }
.nutriform-oem-theme .certificate-card > div {
  min-height: 126px !important;
  align-content: start !important;
  padding: 17px 17px 18px !important;
  gap: 7px !important;
}
.nutriform-oem-theme .certificate-card b { font-size: 18px !important; line-height: 1.18 !important; }
.nutriform-oem-theme .certificate-card small { font-size: 10px !important; line-height: 1.45 !important; }
.nutriform-oem-theme .certificate-card em {
  margin-top: auto !important;
  padding-top: 6px !important;
  font-size: 10px !important;
}

@media (max-width: 1240px) {
  .nutriform-oem-theme .certificate-grid,
  .nutriform-oem-theme .certificates-compact .certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .nutriform-oem-theme .certificates-heading {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  .nutriform-oem-theme .certificate-grid,
  .nutriform-oem-theme .certificates-compact .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 560px) {
  .nutriform-oem-theme .certificates-section { padding: 60px 18px !important; }
  .nutriform-oem-theme .certificate-grid,
  .nutriform-oem-theme .certificates-compact .certificate-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .nutriform-oem-theme .certificate-card > img { height: 300px !important; }
}
