/* =========================================================
   CERTIFICATES.CSS
   Styles only for certificates.html.
   Includes certificate grid, images, badges and body layout.
   ========================================================= */

.certificate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.certificate-body .button {
  width: fit-content;
  min-width: auto;
  align-self: flex-start;
  padding-inline: 1rem;
}

.certificate-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.certificate-image {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid var(--line);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificate-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.certificate-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  margin-bottom: 0.65rem;
}

.certificate-body p { margin-bottom: 0.75rem; }

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(242, 211, 123, 0.34);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: rgba(242, 211, 123, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .certificate-grid { gap: 1.8rem; }
  .certificate-card { padding: 1.8rem; }
}

@media (max-width: 680px) {
  .certificate-card { grid-template-columns: 1fr; }

  .certificate-image {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}


/* Subpage hero sizing */
.page-hero {
  padding-top: 3rem;
}

.page-hero h1 {
  max-width: 26ch;
}

/* Image wrappers for WebP sources and large screens */
.certificate-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Left-align subpage hero content with the main page container */
.page-hero-inner {
  max-width: var(--container);
  text-align: left;
  justify-items: start;
}

/* Keep the small eyebrow title aligned left */
.page-hero .eyebrow {
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

/* Keep hero text aligned left too */
.page-hero h1,
.page-hero .lead {
  margin-left: 0;
  margin-right: auto;
}