/* Certificate of Achievement page (client's Canva design). Everything is scoped under #certPage. */
#certPage {
    --ct-green: #004238;
    --ct-deep: #01372f;
    --ct-hero: #173f33;
    --ct-accent: #D5D52B;
    --ct-accent-soft: #DDE48A;
    --ct-cream: #F5F3EB;
    --ct-paper: #FDFCF7;
    --ct-sage: #E9EBE0;
    --ct-ink: #0c1f1a;
    --ct-muted: #5B6760;
    --ct-line: #E3E1D6;
    --ct-line-2: #D8D6CA;
    background: var(--ct-cream);
    color: var(--ct-ink);
    font-size: 16px;
    line-height: 1.5;
}
#certPage *, #certPage *::before, #certPage *::after { box-sizing: border-box; }
#certPage section { scroll-margin-top: var(--site-header-h, 76px); }
:where(#certPage) h1, :where(#certPage) h2, :where(#certPage) h3 { margin: 0; color: var(--ct-green); font-weight: 500; }
:where(#certPage) p { margin: 0; }
:where(#certPage) ul { margin: 0; padding: 0; list-style: none; }
#certPage a { text-decoration: none; }
#certPage svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ct-wrap { max-width: 1240px; margin: 0 auto; padding: 80px 32px; }
.ct-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-green); display: flex; align-items: center; gap: 10px; margin-bottom: 18px !important; }
.ct-eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.ct-h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.02em; }
.ct-muted { color: var(--ct-muted); font-size: 15px; line-height: 1.65; }
.ct-white { background: #fff; }
.ct-head-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; margin-bottom: 30px; }
.ct-head-row > p { justify-self: end; max-width: 34ch; padding-bottom: 6px; }

/* buttons */
.ct-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ct-btn { display: inline-flex; align-items: center; gap: 20px; font-weight: 600; font-size: 14px; padding: 13px 20px; border-radius: 6px; border: 1px solid transparent; transition: transform .1s ease-out, background-color .15s, border-color .15s; }
.ct-btn:active { transform: scale(.97); }
.ct-btn svg { width: 22px !important; height: 22px !important; stroke-width: 1.4 !important; }
.ct-btn-dark { background: var(--ct-hero); color: #fff !important; }
.ct-btn-dark:hover { background: var(--ct-deep); }
.ct-btn-line { background: var(--ct-cream); color: var(--ct-green) !important; border-color: var(--ct-line-2); }
.ct-btn-line:hover { border-color: var(--ct-green); }

/* hero */
.ct-hero .ct-wrap { padding-top: 18px; padding-bottom: 64px; }
.ct-crumbs { display: flex; gap: 10px; font-size: 12.5px; color: var(--ct-muted); margin-bottom: 52px; }
.ct-crumbs a { color: var(--ct-muted) !important; }
.ct-crumbs a:hover { color: var(--ct-green) !important; text-decoration: underline; }
.ct-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.ct-hero h1 { font-size: 60.72px; line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 28px; }
.ct-hero-kicker { font-size: 22px; line-height: 1.4; color: var(--ct-green); margin-bottom: 20px !important; max-width: 26ch; }
.ct-hero-lead { font-size: 16px; color: var(--ct-muted); line-height: 1.75; max-width: 48ch; margin-bottom: 26px !important; }
.ct-fine { font-size: 12px; color: var(--ct-muted); margin-top: 22px !important; }

/* sample certificate */
.ct-sample-wrap { position: relative; background: var(--ct-sage); border-radius: 6px 48px 6px 6px; padding: 16px; }
/* the hero shows page 1 of a real certificate PDF as an image, on the sage frame */
.ct-sample-pdf { position: relative; margin: 0; box-shadow: 0 24px 44px -28px rgba(12, 31, 26, .45); }
#certPage .ct-sample-pdf img { display: block; width: 100%; height: auto; max-width: none; background: #fff; }
.ct-sample-pdf .ct-tag { position: absolute; top: 14px; right: 14px; }
/* the transcript's score circle, centred in the blank band between the signatures and the footer text.
   Sized in % / cqw of the certificate image so it stays in that band at any width. */
.ct-sample-pdf { container-type: inline-size; }
.ct-score { position: absolute; left: 50%; top: 77.6%; transform: translateX(-50%); width: 15%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 2px solid var(--ct-hero); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 12px 24px -16px rgba(12, 31, 26, .5); }
.ct-score b { font-size: 3.2cqw; font-weight: 700; line-height: 1; color: var(--ct-hero); letter-spacing: -0.01em; }
.ct-score small { margin-top: .6cqw; font-size: 1.35cqw; font-weight: 600; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-muted); }
.ct-sample { background: var(--ct-paper); border-left: 5px solid var(--ct-hero); padding: 34px 28px 30px 26px; box-shadow: 0 24px 44px -28px rgba(12, 31, 26, .45); }
.ct-sample-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--ct-hero); margin-bottom: 22px; }
.ct-sample-top img { height: 38px; width: auto; }
.ct-tag { font-size: 12px; font-weight: 600; background: var(--ct-sage); color: var(--ct-green); padding: 7px 12px; border-radius: 2px; }
.ct-mini { display: block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-muted); }
.ct-sample h3 { font-size: 27px; line-height: 1.2; margin: 10px 0 14px; }
.ct-learner { font-family: 'Lora', Georgia, 'Times New Roman', serif; font-size: 33px; color: var(--ct-green); line-height: 1.2; }
.ct-sample-sub { font-size: 12.5px; color: var(--ct-muted); margin: 8px 0 14px !important; }
.ct-course { font-size: 19px; font-weight: 500; color: var(--ct-green); margin-bottom: 22px !important; }
.ct-sample-meta { display: grid; grid-template-columns: auto auto 1fr; gap: 12px 26px; border-top: 1px solid var(--ct-line-2); border-bottom: 1px solid var(--ct-line-2); padding: 14px 0; font-size: 12px; color: var(--ct-ink); }
.ct-sample-meta b { font-weight: 400; display: block; margin-top: 4px; }
.ct-sample-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 11.5px; color: var(--ct-muted); }
.ct-sample-foot span:last-child { font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }

/* requirements */
.ct-reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ct-req { background: var(--ct-cream); border-radius: 8px; padding: 26px 24px 28px; }
.ct-req b { display: block; font-size: 38px; font-weight: 500; color: var(--ct-green); line-height: 1.1; letter-spacing: -0.01em; }
.ct-req b.is-word { font-size: 31px; }
.ct-req i { display: block; width: 30px; height: 3px; border-radius: 2px; background: var(--ct-accent-soft); margin: 20px 0 16px; }
.ct-req h3 { font-size: 17px; margin-bottom: 12px; }
.ct-req p { color: var(--ct-muted); font-size: 13.5px; line-height: 1.6; }

/* transcript */
.ct-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.ct-detail .ct-h2 { margin-bottom: 20px; }
.ct-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 22px !important; }
.ct-checks li { display: flex; gap: 14px; align-items: center; font-size: 14.5px; }
.ct-checks svg { width: 16px; height: 16px; color: var(--ct-green); stroke-width: 2; }
.ct-transcript { background: #fff; border: 1px solid var(--ct-line-2); border-radius: 8px; padding: 26px 28px 22px; }
.ct-transcript-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--ct-green); }
.ct-transcript-head h3 { font-size: 21px; }
.ct-transcript-head span { font-size: 10px; letter-spacing: .04em; color: var(--ct-muted); }
.ct-transcript dl { margin: 0; }
.ct-transcript dl div { display: grid; grid-template-columns: 165px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ct-line); font-size: 13.5px; }
.ct-transcript dt { color: var(--ct-ink); }
.ct-transcript dd { margin: 0; color: var(--ct-muted); }
.ct-transcript p { font-size: 11px; color: var(--ct-muted); margin-top: 18px !important; }
.ct-uses-title { font-size: 20px; margin: 56px 0 22px !important; }
.ct-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ct-use { border-top: 1px solid var(--ct-line-2); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.ct-use svg { width: 24px; height: 24px; color: var(--ct-green); margin-bottom: 4px; }
.ct-use h3 { font-size: 21px; }
.ct-use p { color: var(--ct-muted); font-size: 14.5px; line-height: 1.6; }
.ct-note { font-size: 11.5px; color: var(--ct-muted); margin-top: 22px !important; }

/* share */
.ct-share { background: var(--ct-hero); color: #fff; }
.ct-share .ct-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ct-share .ct-eyebrow { color: var(--ct-accent-soft); }
.ct-share h2 { color: #fff !important; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 26px; }
.ct-share-lead { color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.65; margin-bottom: 24px !important; max-width: 50ch; }
.ct-share ul { display: flex; flex-direction: column; gap: 18px; max-width: 54ch; }
.ct-share li { display: flex; gap: 16px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.ct-share li svg { color: var(--ct-accent-soft); margin-top: 2px; }
.ct-portfolio { background: var(--ct-cream); color: var(--ct-ink); border-radius: 10px; padding: 28px 30px 26px; }
.ct-portfolio-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.ct-portfolio-head h3 { font-size: 20px; }
.ct-portfolio-head span { font-size: 10px; letter-spacing: .04em; color: var(--ct-muted); }
.ct-person { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ct-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ct-sage); color: var(--ct-green); display: inline-flex; align-items: center; justify-content: center; }
.ct-person b { display: block; font-weight: 500; font-size: 16px; color: var(--ct-green); }
.ct-person small { font-size: 12px; color: var(--ct-muted); }
.ct-cert-card { background: #fff; border: 1px solid var(--ct-line-2); border-radius: 6px; padding: 18px 20px 16px; }
.ct-cert-card > div:first-child { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-muted); }
.ct-cert-card > div:first-child span:first-child { color: var(--ct-green); font-weight: 700; }
.ct-cert-card b { display: block; font-weight: 500; font-size: 21px; color: var(--ct-green); margin: 10px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ct-line-2); }
.ct-cert-card p { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ct-muted); }
.ct-cert-card p svg { width: 16px; height: 16px; color: var(--ct-green); }
.ct-portfolio > p { font-size: 11px; color: var(--ct-muted); margin-top: 22px !important; }

/* formats */
.ct-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 34px; }
.ct-format { border-top: 1px solid var(--ct-line-2); padding-top: 24px; display: grid; grid-template-columns: 26px 1fr; gap: 12px 20px; }
.ct-format svg { width: 26px; height: 26px; color: var(--ct-green); }
.ct-format h3 { font-size: 23px; }
.ct-format p { grid-column: 2; color: var(--ct-muted); font-size: 15px; line-height: 1.7; }
.ct-format small { grid-column: 2; font-size: 12.5px; color: var(--ct-green); margin-top: 6px; }

/* FAQ */
.ct-faq .ct-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.ct-faq h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.ct-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 500; font-size: 14.5px; color: var(--ct-green) !important; }
.ct-mail svg { width: 18px; height: 18px; stroke-width: 1.4; }
.ct-mail:hover { text-decoration: underline; }
.ct-faq-list { border-top: 1px solid var(--ct-line-2); }
.ct-faq-list details { border-bottom: 1px solid var(--ct-line-2); padding: 24px 0; }
.ct-faq-list summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 16px; color: var(--ct-green); }
.ct-faq-list summary::-webkit-details-marker { display: none; }
.ct-faq-list p { color: var(--ct-muted); font-size: 14.5px; line-height: 1.65; margin-top: 12px !important; }

/* closing band */
.ct-closing { background: var(--ct-sage); }
.ct-closing .ct-wrap { padding-top: 60px; padding-bottom: 60px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ct-closing h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.015em; margin-bottom: 10px; }
.ct-closing .ct-btn-line { background: var(--ct-sage); }

@media (max-width: 991px) {
    .ct-wrap { padding: 60px 20px; }
    .ct-hero-grid, .ct-detail, .ct-share .ct-wrap, .ct-faq .ct-wrap, .ct-formats { grid-template-columns: 1fr; gap: 44px; }
    .ct-head-row { grid-template-columns: 1fr; gap: 10px; }
    .ct-head-row > p { justify-self: start; }
    .ct-reqs { grid-template-columns: 1fr 1fr; }
    .ct-grid-3 { grid-template-columns: 1fr; gap: 28px; }
    .ct-crumbs { margin-bottom: 32px; }
}
@media (max-width: 680px) {
    .ct-hero h1 { font-size: 44px; }
    .ct-wrap { padding: 48px 16px; }
    .ct-reqs { grid-template-columns: 1fr; }
    .ct-sample-wrap { padding: 10px; border-radius: 6px 32px 6px 6px; }
    .ct-sample { padding: 24px 18px 22px; }
    .ct-sample-meta { grid-template-columns: 1fr; }
    .ct-sample-foot { flex-direction: column; align-items: flex-start; }
    .ct-sample-sigs { gap: 16px; }
    .ct-transcript dl div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    #certPage * { transition: none !important; }
}

.ct-partner { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-muted); margin: 4px 0 18px !important; }
/* sample certificate: the two signatures, as on the issued PDF (educator, then InatUni Ltd) */
.ct-sample-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; }
.ct-sign { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ct-ink); }
.ct-sign i { font-family: 'Great Vibes', 'Brush Script MT', cursive; font-style: normal; font-size: 26px; color: var(--ct-green); line-height: 1.1; width: 100%; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--ct-line-2); }
.ct-sign b { font-size: 12px; font-weight: 700; }
.ct-sign small { font-size: 11px; color: var(--ct-muted); line-height: 1.4; }
@media (max-width: 680px) {
    .ct-sample h3 { font-size: 23px; }
    .ct-learner { font-size: 29px; }
    .ct-sample-sigs { grid-template-columns: 1fr 1fr; }
}
