/* Lab Certificates – cleaned card styles based on Elementor design */

.lab-certificates {
  display: grid;
  gap: 28px;
  width: 100%;
}

.lab-cert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  background: #fff;
  border: 2px solid #ece8e1;
  border-style: groove;
  border-radius: 10px;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.56);
}

.lab-cert-card__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.lab-cert-card__header {
  display: flex;
  flex-direction: column;
  align-items: start;

}

.lab-cert-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #a79d80;
  border: 1px solid #a79d80;
  border-radius: 8px;
  padding : 0 10px;
}

.lab-cert-card__badge-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.lab-cert-card__badge-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lab-cert-card__badge-text {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  color: #a79d80;
  letter-spacing: 1px;
}

.lab-cert-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.lab-cert-card__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  color: #1c1917;
}

.lab-cert-card__title a {
  color: inherit;
  text-decoration: none;
}

.lab-cert-card__title a:hover {
  color: #44403c;
}

.lab-cert-card__ln {
  margin: 0;
  position: relative;
  padding-left: 18px;
  font-weight: 600;
  font-size: 28px;
  color: #d4ab05;
  line-height: 35px;
}

.lab-cert-card__ln::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 1px;
  background: #d6d3d1;
}

.lab-cert-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px groove #C7C7C7;
}

.lab-cert-card__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px 10px;
  min-width: 0;
  padding: 0 12px;
  padding-right: 12px;
  border-right: 1px groove #C7C7C7;
}

.lab-cert-card__stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.lab-cert-card__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #FFF4CB;
  color: #facc15;
  font-size: 22px;
  border-radius: 50%;
  fill: #fff;
  padding: .5em;
}

.lab-cert-card__stat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.lab-cert-card__stat-icon svg [stroke] {
  fill: none;
}

.lab-cert-card__stat-value,
.lab-cert-card__stat-label {
  margin: 0;
}

.lab-cert-card__stat-value {
  color: #000000;
  word-break: break-word; 
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
}

.lab-cert-card__stat--is-pass .lab-cert-card__stat-value,
.lab-cert-card__stat--is-pass .lab-cert-card__stat-icon {
  color: #16a34a;
}

.lab-cert-card__stat--is-pass .lab-cert-card__stat-icon {
  background: rgba(22, 163, 74, 0.12);
}

.lab-cert-card__stat-label {
  font-weight: 600;
  font-size: 13px;
  color: #414141;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
}

.lab-cert-card__actions {
  margin-top: auto;
}

.lab-cert-card__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  background: #000000;
  color: #fff!important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transition: all .3s;
}

.lab-cert-card__button:hover {
  color: #fff;
}

.lab-cert-card__button-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.lab-cert-card__button-icon svg {
  width: 100%;
  height: 100%;
}

.lab-cert-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
}

.lab-cert-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .lab-cert-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .lab-cert-card__media {
    order: -1;
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .lab-cert-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-cert-card__stat:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .lab-cert-card__stat:nth-child(-n + 2) {
    padding-bottom: 12px;
    border-bottom: 1px solid #ece8e1;
  }
}

@media (max-width: 480px) {
  .lab-cert-card__stats {
    grid-template-columns: 1fr;
  }

  .lab-cert-card__header {
    align-items: center;
  }

  .lab-cert-card__heading {
    flex-direction: column;
    flex-wrap: unset;
    text-align: center;
  }

  .lab-cert-card__stat {
    border-right: 0;
    border-bottom: 1px solid #ece8e1;
    padding: 0 0 12px;
  }

  .lab-cert-card__stat:nth-child(-n + 2),
  .lab-cert-card__stat:last-child {
    border-bottom: 1px solid #ece8e1;
    padding-bottom: 12px;
  }

  .lab-cert-card__stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .lab-cert-card__ln {
    padding-left: 0;
  }

  .lab-cert-card__ln::before {
    display: none;
  }
}
