/* =========================================
   CERTIFICATION — matches outlets / contact
   ========================================= */
.cert-page-body {
  background: #ffffff !important;
}

.cert-page {
  --cert-ink: #12384c;
  --cert-green: #076d9e;
  --cert-green-dark: #054e73;
  --cert-paper: #fffdf8;
  --cert-muted: #6b6458;
  --cert-line: rgba(7, 109, 158, 0.14);
  position: relative;
  padding: calc(var(--sf-header-h, 138px) + 12px) 0 4.5rem;
  background: #ffffff;
  overflow: clip;
}

.cert-page,
.cert-page button,
.cert-page a,
.cert-page p,
.cert-page h1,
.cert-page h2,
.cert-page h3,
.cert-page span,
.cert-page strong,
.cert-page figcaption {
  font-family: 'Fraunces', Georgia, serif !important;
}

.cert-page .fa-solid,
.cert-page .fas,
.cert-lightbox .fa-solid {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  font-weight: 900 !important;
}

.cert-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.cert-head {
  max-width: none;
  margin: 4px 0 22px;
  text-align: center;
}

.cert-title,
.cert-head h2 {
  margin: 0 !important;
  font-size: clamp(2.1rem, 4vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  color: #12384c !important;
  text-align: center !important;
  text-transform: none !important;
}

.cert-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
}

.cert-lead,
.cert-head > p {
  margin: 12px auto 0;
  max-width: 40rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--cert-muted);
}

.cert-block {
  margin-top: 42px;
}

.cert-block .cert-head {
  margin-bottom: 18px;
}

.cert-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 10px;
  background: #f6f3ec;
  border: 1px solid rgba(18, 56, 76, 0.07);
  border-radius: 22px;
}

.cert-jumps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fffdf8;
  color: var(--cert-ink) !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cert-jumps a:hover {
  background: var(--cert-green);
  color: #ffffff !important;
}

.cert-year {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--sf-header-h, 138px) + 12px);
}

.cert-year__mark {
  position: sticky;
  top: calc(var(--sf-header-h, 138px) + 12px);
  padding: 8px 4px 0 0;
}

.cert-year__mark span {
  display: block;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cert-ink);
}

.cert-year__mark strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cert-green);
}

.cert-year__mark p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cert-muted);
}

.honour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.honour-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 14px;
  border: 1px solid var(--cert-line);
  border-radius: 26px;
  background: var(--cert-paper);
  box-shadow: 0 12px 28px rgba(47, 42, 28, 0.06);
}

.honour-card--single {
  grid-column: 1 / -1;
}

.honour-card__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 8px;
  min-width: 0;
}

.honour-card--single .honour-card__stage {
  grid-template-columns: minmax(0, 280px);
}

.honour-shot {
  position: relative;
  display: block;
  width: 100%;
  height: 320px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.honour-shot--trophy {
  background: #14120f;
}

.honour-shot--cert {
  background: #f3eee4;
}

.honour-shot img {
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

.honour-shot__tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--cert-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.honour-card__copy {
  padding: 12px 6px 0;
}

.honour-card__copy h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--cert-ink);
}

.honour-card__copy p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cert-muted);
}

.cert-journey__frame {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--cert-line);
  border-radius: 26px;
  background: var(--cert-paper);
  box-shadow: 0 12px 28px rgba(47, 42, 28, 0.06);
}

.cert-journey__frame img {
  width: 100%;
  height: auto !important;
  max-height: 720px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
}

.cert-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cert-step {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px 10px 16px;
  border: 1px solid var(--cert-line);
  border-radius: 26px;
  background: var(--cert-paper);
  box-shadow: 0 12px 28px rgba(47, 42, 28, 0.06);
}

.cert-step__visual {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #f3eee4;
}

.cert-step__visual img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.cert-step__copy {
  padding: 14px 8px 0;
}

.cert-step__num {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cert-green);
}

.cert-step h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--cert-ink);
}

.cert-step p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cert-muted);
}

.cert-trust__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 10px;
  background: #f6f3ec;
  border: 1px solid rgba(18, 56, 76, 0.07);
  border-radius: 22px;
}

.cert-trust__stats div {
  padding: 18px 12px;
  text-align: center;
  background: #fffdf8;
  border-radius: 16px;
}

.cert-trust__stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cert-ink);
}

.cert-trust__stats span {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--cert-muted);
}

.cert-cta__inner {
  padding: 28px 22px;
  text-align: center;
  background: var(--cert-paper);
  border: 1px solid var(--cert-line);
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(47, 42, 28, 0.06);
}

.cert-cta h2 {
  margin: 0 0 8px !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: var(--cert-ink) !important;
}

.cert-cta p {
  margin: 0 auto 18px;
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--cert-muted);
}

.cert-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cert-btn:hover {
  transform: translateY(-1px);
}

.cert-btn--solid {
  background: var(--cert-green);
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(7, 109, 158, 0.22);
}

.cert-btn--solid:hover {
  background: var(--cert-green-dark);
  color: #ffffff !important;
}

.cert-btn--ghost {
  background: #ffffff;
  color: var(--cert-ink) !important;
  border: 1px solid rgba(18, 56, 76, 0.12);
}

.cert-btn--ghost:hover {
  background: #f6f3ec;
  color: var(--cert-ink) !important;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 56, 76, 0.55);
}

.cert-lightbox[hidden] {
  display: none !important;
}

.cert-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #12384c;
  font-size: 1rem;
  cursor: pointer;
}

.cert-lightbox__nav--prev {
  left: 16px;
}

.cert-lightbox__nav--next {
  right: 16px;
}

.cert-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--cert-ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.cert-lightbox__figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  text-align: center;
}

.cert-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto !important;
  object-fit: contain;
  border-radius: 16px;
  background: #fffdf8;
}

.cert-lightbox__figure figcaption {
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .honour-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .cert-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .cert-page {
    padding: calc(var(--sf-header-h, 132px) + 8px) 0 3.5rem;
  }

  .cert-year {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cert-year__mark {
    position: static;
  }

  .cert-trust__stats {
    grid-template-columns: 1fr;
  }

  .honour-shot {
    height: 260px;
  }
}

@media (max-width: 767px) {
  .cert-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .cert-steps {
    grid-template-columns: 1fr;
  }

  .honour-card,
  .cert-step,
  .cert-cta__inner,
  .cert-journey__frame {
    border-radius: 20px;
  }

  .honour-shot {
    height: 210px;
  }

  .cert-lightbox__nav--prev {
    left: 8px;
  }

  .cert-lightbox__nav--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-btn {
    transition: none !important;
  }
}
