/* Halaman sertifikat: tampilan layar dan cetak A4 mendatar.
   Desain: kertas putih, isi rata kiri, segel predikat, dan kolom hiasan geometris berwarna
   perpaduan Macaboo (hijau neon, biru) dan Anu Basa (teal, pink koral, charcoal). Ukuran huruf
   memakai cqw supaya proporsinya sama di layar dan saat dicetak. */
.cert-page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }
.cert-check { max-width: 520px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.cert-check form { flex-wrap: nowrap; }
.cert-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.cert-valid { color: var(--accent-2); font-weight: 600; margin: 0 0 14px; }

.certificate {
  --c-teal: #009E94; --c-lime: #D8FD00; --c-blue: #007DFF; --c-pink: #F2668B; --c-ink: #1E2725; --c-muted: #5C6E6A;
  --text: var(--c-ink); --muted: var(--c-muted);
  container-type: inline-size;
  position: relative; overflow: hidden; aspect-ratio: 297 / 210;
  color: var(--c-ink); text-align: left; border-radius: 10px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .018) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(180deg, #FFFFFF, #FBFCFA);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-family: 'Plus Jakarta Sans', var(--font, system-ui), sans-serif;
}

/* Hiasan */
.cert-decor { position: absolute; top: 0; right: 0; height: 100%; width: 27%; }
.cert-corner { position: absolute; left: -6.5cqw; top: -6.5cqw; width: 12cqw; height: 12cqw; border-radius: 50%; background: var(--c-blue); }
.cert-corner::after { content: ''; position: absolute; right: 1.6cqw; bottom: 1.6cqw; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--c-lime); }
.cert-tris { position: absolute; left: 30%; bottom: 0; display: flex; gap: .6cqw; }
.cert-tris i { width: 0; height: 0; border-left: 2.4cqw solid transparent; border-right: 2.4cqw solid transparent; border-bottom: 3.4cqw solid var(--c-pink); }
.cert-tris i:nth-child(2) { border-bottom-color: var(--c-ink); }
.cert-tris i:nth-child(3) { border-bottom-color: var(--c-lime); }
.cert-dots { display: flex; gap: .7cqw; margin: 2.2cqw 0 1.2cqw; }
.cert-dots i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--c-teal); }
.cert-dots i:nth-child(2) { background: var(--c-lime); }
.cert-dots i:nth-child(3) { background: var(--c-pink); }

/* Isi */
.cert-main { position: absolute; inset: 6.2cqw 31% 4.4cqw 8.5cqw; display: flex; flex-direction: column; }
.cert-brand .lockup { --logo-h: 3.4cqw; gap: .5cqw; }
.cert-brand .lockup-sub { font-size: 1.05cqw; color: var(--c-muted); }
.cert-heading { margin: 0; font-size: 7.4cqw; line-height: .95; font-weight: 800; letter-spacing: -.02em; color: var(--c-teal); }
.cert-kicker { margin: .9cqw 0 2cqw; font-size: 1.18cqw; font-weight: 700; letter-spacing: .2em; white-space: nowrap; text-transform: uppercase; color: var(--c-ink); }
.cert-small { display: block; font-size: 1.08cqw; color: var(--c-muted); }
.cert-small em, .cert-body em { font-style: italic; }
.cert-name { margin: .8cqw 0 1.2cqw; padding-bottom: .7cqw; max-width: 90%; font-size: 4.3cqw; line-height: 1.1; font-weight: 800; color: var(--c-ink); border-bottom: .22cqw solid var(--c-ink); }
.cert-body { margin: 0 0 1.8cqw; max-width: 92%; font-size: 1.34cqw; line-height: 1.55; color: #3A4744; }
.cert-scores { display: flex; gap: 1cqw; flex-wrap: nowrap; }
.cert-scores div { display: flex; flex-direction: column; justify-content: center; gap: .2cqw; padding: .9cqw 1.3cqw; border-radius: 1cqw; background: #F1F8F6; border: .1cqw solid #DCEDE7; }
.cert-scores strong { font-size: 2.2cqw; line-height: 1; font-weight: 800; color: var(--c-ink); }
.cert-scores strong small { font-size: 1.1cqw; font-weight: 700; color: var(--c-muted); margin-left: .2cqw; }
.cert-scores span { font-size: .98cqw; color: var(--c-muted); white-space: nowrap; }
.cert-scores .main { background: var(--c-ink); border-color: var(--c-ink); }
.cert-scores .main strong { color: var(--c-lime); }
.cert-scores .main strong small, .cert-scores .main span { color: #CFE3DC; }
.cert-breakdown { margin: 1cqw 0 0; font-size: .95cqw; line-height: 1.5; color: var(--c-muted); max-width: 95%; }
.cert-breakdown b { color: var(--c-ink); }

.certificate footer { margin-top: auto; display: grid; grid-template-columns: 1.3fr .8fr 1.25fr; gap: 3cqw; align-items: end; font-size: 1.15cqw; }
.certificate footer > div { display: flex; flex-direction: column; gap: .25cqw; min-width: 0; }
.certificate footer .line { display: block; height: .12cqw; background: var(--c-ink); margin-bottom: .5cqw; }
.cert-code strong { letter-spacing: .06em; }
.verify { word-break: break-all; font-size: .88cqw; }

/* Tanda tangan penanggung jawab dan stempel eBasa (menumpuk sebagian tanda tangan, seperti cap basah). */
.cert-sign { position: relative; }
.cert-sign-art { position: relative; display: block; height: 6.4cqw; margin-bottom: -.6cqw; }
.cert-signature { position: absolute; left: 2.2cqw; bottom: 0; max-width: calc(100% - 2.2cqw); max-height: 6.4cqw; object-fit: contain; mix-blend-mode: multiply; z-index: 1; }
.cert-date { align-self: end; }
.cert-stamp { position: absolute; left: -1.2cqw; bottom: -2.2cqw; width: 9cqw; height: 9cqw; transform: rotate(-14deg); opacity: .9; mix-blend-mode: multiply; z-index: 2; pointer-events: none; }
.cert-seal { position: absolute; right: 30%; top: 5cqw; width: 9.4cqw; height: auto; filter: drop-shadow(0 .5cqw .8cqw rgba(30, 39, 37, .18)); }
.cert-seal text { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

.certificate.revoked { filter: grayscale(1); opacity: .75; }
.cert-void { position: absolute; top: 45%; left: 40%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 9cqw; font-weight: 900; color: rgba(200, 30, 30, .35); border: .6cqw solid rgba(200, 30, 30, .35); padding: 0 3cqw; }

@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .cert-page { max-width: none; padding: 0; }
  .certificate { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Teks bahasa kedua (bahasa kursus) di bawah teks Indonesia. */
.cert-heading-2 { display: block; margin-top: .4cqw; font-size: 2.3cqw; font-weight: 700; letter-spacing: 0; color: var(--c-ink); }
.cert-body-2 { margin-top: -1.2cqw; font-style: italic; color: var(--c-muted); font-size: 1.2cqw; }
.cert-tr { display: block; font-style: italic; font-size: .9em; opacity: .85; }
.cert-scores .main .cert-tr { color: #CFE3DC; }
