<style>
    .exam-card-potret {
        position: relative;
        width: 86mm;
        min-height: 135mm;
        margin: 0 auto;
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
        border: 1px solid #bae6fd;
        font-family: Arial, sans-serif;
        color: #0f172a;
    }

    .exam-card-potret::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 18px;
        background: linear-gradient(90deg, #0284c7, #38bdf8, #facc15);
        z-index: 1;
    }

    .exam-card-potret::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 12px;
        background: #0284c7;
        z-index: 1;
    }

    .potret-inner {
        position: relative;
        z-index: 2;
        padding: 28px 18px 18px;
        text-align: center;
    }

    .potret-logo-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        align-items: center;
    }

    .potret-logo-box {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #fff;
        padding: 4px;
        border: 2px solid #7dd3fc;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .potret-logo {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .potret-title h2 {
        margin: 8px 0 2px;
        font-size: 22px;
        color: #0f3d91;
        letter-spacing: 1px;
        font-weight: 900;
    }

    .potret-title h1 {
        margin: 0;
        font-size: 16px;
        color: #111827;
        text-transform: uppercase;
        line-height: 1.15;
        font-weight: 800;
    }

    .potret-title p {
        margin: 4px auto 7px;
        font-size: 8.5px;
        color: #334155;
        line-height: 1.25;
        max-width: 250px;
    }

    .potret-line {
        height: 2px;
        width: 260px;
        max-width: 100%;
        margin: 0 auto 7px;
        background: #38bdf8;
        border-radius: 999px;
    }

    .potret-year {
        display: inline-block;
        background: #facc15;
        color: #111827;
        font-weight: 800;
        padding: 4px 14px;
        border-radius: 5px;
        font-size: 10px;
    }

    .potret-photo {
        width: 42mm;
        height: 52mm;
        object-fit: cover;
        background: #fff;
        border-radius: 8px;
        border: 3px solid #0ea5e9;
        display: block;
        margin: 12px auto 10px;
    }

    .potret-info {
        margin-top: 8px;
        text-align: left;
    }

    .potret-row {
        display: grid;
        grid-template-columns: 86px 8px 1fr;
        gap: 4px;
        padding: 4px 0;
        border-bottom: 1px solid #bae6fd;
        font-size: 11.5px;
        line-height: 1.15;
    }

    .potret-row label { font-weight: 700; }
    .potret-row b { font-weight: 600; }

    .potret-signature {
        margin-top: 11px;
        text-align: center;
        font-size: 10px;
    }

    .potret-signature p { margin: 0; }
    .potret-sign-space { height: 26px; }
    .potret-signature strong {
        display: block;
        text-decoration: underline;
        font-size: 10px;
    }
    .potret-signature small { font-size: 8px; }

    .potret-warning {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 15px;
        background: #0f3d91;
        color: white;
        text-align: center;
        padding: 7px 8px;
        font-size: 8px;
        font-weight: bold;
        letter-spacing: .2px;
        z-index: 3;
    }
</style>
<?php include 'template_kartu_potret_body.php'; ?>
