/* ===================================
   MILKY WAY WEB STUDIO
   Certificates page - certificates.css
   Loads AFTER var.css and styles.css
   =================================== */

/* No portfolio sidebar on this page, so release the 280px left margin
   that styles.css reserves for it. */
body.certs-page .main-content {
  margin-left: 0;
  max-width: 100%;
}

#certs-section {
  background-color: var(--bg-clr-section);
  padding: 3rem 1rem 2rem;
}

/* ── Grid of certificate cards ── */
.cert-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── One card: same look as the Services cards (light panel, navy left edge) ── */
.cert-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-light-gray);
  border: 1px solid var(--border-gray);
  border-left: 5px solid navy;
  border-radius: 8px;
}

/* Placeholders for certificates still to come. Fully empty and hidden. */
.cert-card--empty {
  display: none;
}

.cert-card .cert-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2436 / 1714;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow-light);
  cursor: zoom-in;
}

.cert-card .cert-image:focus-visible {
  outline: 3px solid var(--clr-prm-700);
  outline-offset: 3px;
}

/* ── Text under each certificate ── */
.cert-info h3 {
  color: var(--navy-blue);
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.cert-info p {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.cert-info .cert-date {
  color: hsla(0, 0%, 30%, 1);
  margin-bottom: 0.7rem;
}

.cert-verify {
  color: var(--clr-prm-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-verify:hover,
.cert-verify:focus-visible {
  color: var(--dark-blue);
}

/* ── Back link ── */
.cert-back {
  text-align: center;
  margin-top: 2.5rem;
}

.cert-back a {
  color: var(--navy-blue);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (width <= 768px) {
  #certs-section {
    padding: 2rem 0.6rem 1.5rem;
  }
  .cert-grid {
    gap: 1.2rem;
  }
}
