

.main .container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.main .card {
  color: #252a32;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.main .card-image {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 75%;
  background: #ffffff;
  border-bottom: 1px solid #f5f5f5;
}

.main .card-image img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}


.main .card-title {
  padding: 1.2rem;
  text-align: center;
  background: #fafafa;
  margin-top: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main .card-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.3rem;
  font-family: "Laila", sans-serif;
  line-height: 1.3;
}

.main .card-title p {
  font-size: 0.8rem;
  color: #666666;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Footer Overrides for Certification Page to match Homepage style */
.site-footer {
  background: rgb(234 251 231 / 42%) !important;
}

.footer-top, .footer-links a, .footer-top p, .footer-bottom, .footer-bottom a {
  color: black !important;
}

.newfooter {
  color: black !important;
}

.site-footer hr {
  border-color: #ddd !important;
}

.footer-bottom p {
  color: #555 !important;
}