/**
 * Certificate shortcode — [arshia_certificate]
 * ---------------------------------------------------------------------------
 * Extracted from the inline <style> block that shipped inside the shortcode
 * (Constitution IV — no inline style blobs in PHP). Previously ~133 lines of
 * CSS were printed mid-<body> on every render.
 *
 * NOTE: the old block opened with
 *   @import url('https://fonts.googleapis.com/...Vazirmatn...')
 * which was a render-blocking third-party request on a local page (NFR-001)
 * and contradicted Principle I (self-hosted fonts). Vazirmatn is already
 * loaded site-wide by css/font-vazirmatn.css, so no font import is needed
 * here; the font-family declarations simply inherit it.
 */

.arshia-cert {
    width: 800px;
    height: 566px;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: 20px auto;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.arshia-cert .border-outer {
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 3px solid #352070;
}

.arshia-cert .border-inner {
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid #EEBB66;
}

.arshia-cert .corner {
    position: absolute;
    width: 80px;
    height: 80px;
}

.arshia-cert .corner-tl { top: 25px; left: 25px; border-top: 4px solid #352070; border-left: 4px solid #352070; }
.arshia-cert .corner-tr { top: 25px; right: 25px; border-top: 4px solid #352070; border-right: 4px solid #352070; }
.arshia-cert .corner-bl { bottom: 25px; left: 25px; border-bottom: 4px solid #352070; border-left: 4px solid #352070; }
.arshia-cert .corner-br { bottom: 25px; right: 25px; border-bottom: 4px solid #352070; border-right: 4px solid #352070; }

.arshia-cert .cert-content {
    position: absolute;
    inset: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.arshia-cert .cert-org {
    font-size: 16px;
    color: #352070;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.arshia-cert .cert-title {
    font-size: 34px;
    font-weight: 800;
    color: #352070;
    margin-bottom: 20px;
}

.arshia-cert .cert-statement {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.arshia-cert .cert-name {
    font-size: 40px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 12px 0;
    border-bottom: 2px solid #EEBB66;
    padding-bottom: 6px;
}

.arshia-cert .course-info {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
}

.arshia-cert .completion-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.arshia-cert .signatures {
    display: flex;
    gap: 100px;
    margin-top: 10px;
}

.arshia-cert .signature {
    text-align: center;
}

.arshia-cert .signature-line {
    width: 140px;
    border-top: 1px solid #352070;
    margin-bottom: 6px;
}

.arshia-cert .signature-name {
    font-size: 13px;
    font-weight: 700;
    color: #352070;
}

.arshia-cert .signature-title {
    font-size: 11px;
    color: var(--text-muted);
}

.arshia-cert .certificate-number {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
}

@media (max-width: 860px) {
    .arshia-cert { width: 100%; height: auto; aspect-ratio: 800/566; }
    .arshia-cert .cert-title { font-size: 22px; }
    .arshia-cert .cert-name { font-size: 26px; }
    .arshia-cert .signatures { gap: 40px; }
}
