/* ==========================================================================
   About page
   ========================================================================== */
.team-grid {
  display: grid;
  /* Columns will fit as many as possible, but won't get smaller than 220px before wrapping */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
/* Certifications Grid & Layout */
.certs-header {
  text-align: center;
}

.certs-header .eyebrow {
  justify-content: center;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

/* Card Container */
.cert-card {
  flex: 0 1 260px; /* Fixed base width, prevents over-stretching */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
}

/* Exact A4 Ratio Frame (1 : 1.414) */
.cert-frame {
  width: 115%;
  aspect-ratio: 1 / 1.4142;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(23, 53, 38, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption Details */
.cert-info {
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

.cert-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #173526;
  margin: 0 0 0.25rem 0;
}

.cert-info span {
  font-size: 0.85rem;
  color: #556960;
  font-weight: 500;
}

/* Responsiveness */
@media (max-width: 768px) {
  .cert-grid {
    gap: 1.5rem;
  }

  .cert-card {
    flex: 0 1 calc(50% - 1.5rem);
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .cert-card {
    flex: 0 1 100%;
    max-width: 280px;
  }
}