.nestcv{max-width:900px;margin:0 auto;padding:30px 16px;font-family:inherit;color:#1c2a4a}
.nestcv [hidden]{display:none!important}
.nestcv-title{text-align:center;margin:0 0 6px;color:#14244b}
.nestcv-sub{text-align:center;margin:0 0 28px;color:#5b6477}
.nestcv-buttons{display:flex;gap:20px;flex-wrap:wrap;justify-content:center}
.nestcv-btn{flex:1 1 280px;max-width:400px;display:flex;flex-direction:column;gap:6px;padding:26px 24px;border-radius:12px;text-align:center;text-decoration:none;cursor:pointer;border:2px solid #14244b;font:inherit;transition:transform .15s,box-shadow .15s}
.nestcv-btn strong{font-size:20px}
.nestcv-btn span{font-size:14px;opacity:.85}
.nestcv-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,36,75,.18)}
.nestcv-btn--tvec{background:#fff;color:#14244b}
.nestcv-btn--academy{background:#14244b;color:#fff}
.nestcv-panel h3{text-align:center;color:#14244b;margin:10px 0 18px}
.nestcv-back{background:none;border:0;color:#14244b;cursor:pointer;padding:4px 0;font:inherit;text-decoration:underline}
.nestcv-form{display:flex;gap:10px;max-width:620px;margin:0 auto 24px}
.nestcv-form input{flex:1;min-width:0;padding:13px 14px;border:2px solid #c9d0e0;border-radius:8px;font-size:16px}
.nestcv-form input:focus{outline:0;border-color:#14244b}
.nestcv-form button{padding:13px 26px;border:0;border-radius:8px;background:#14244b;color:#fff;font-size:16px;cursor:pointer}
.nestcv-form button:hover{background:#1f3570}
.nestcv-msg{text-align:center;color:#5b6477}
.nestcv-none{max-width:620px;margin:0 auto;text-align:center;padding:22px;border:2px dashed #e0b4b4;border-radius:10px;background:#fff6f6;color:#8a2b2b}
.nestcv-none p{margin:6px 0 0}
.nestcv-list{list-style:none;margin:14px auto;padding:0;max-width:620px;display:grid;gap:8px}
.nestcv-pick{width:100%;text-align:left;display:flex;flex-direction:column;gap:2px;padding:12px 16px;border:1px solid #c9d0e0;border-radius:8px;background:#fff;cursor:pointer;font:inherit;color:#14244b}
.nestcv-pick:hover{border-color:#14244b;background:#f3f6fd}
.nestcv-pick span{font-size:13px;color:#5b6477}
.nestcv-verified{max-width:620px;margin:0 auto 16px;padding:10px 14px;border-radius:8px;background:#eaf7ee;color:#1d6b3a;text-align:center;font-weight:600}
.nestcv-actions{text-align:center;margin-top:16px}
.nestcv-print{padding:11px 24px;border:2px solid #14244b;border-radius:8px;background:#fff;color:#14244b;cursor:pointer;font:inherit}

/* Certificate (A4 portrait, scales with its container) */
.nestcv-certwrap{max-width:560px;margin:0 auto;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.nestcv-cert{position:relative;container-type:inline-size;width:100%;aspect-ratio:210/297;background:#f8f6ef;overflow:hidden;color:#14244b;font-family:Georgia,'Times New Roman',serif}
.nestcv-frame{position:absolute;inset:4.5%;border:.5cqw solid #4a6f7c;outline:.35cqw solid #4a6f7c;outline-offset:-1.6cqw}
.nestcv-wing{position:absolute;left:-8cqw;top:-4cqw;width:46cqw;height:60cqw;background:radial-gradient(ellipse at 30% 40%,rgba(120,130,170,.28),rgba(120,130,170,0) 68%);transform:rotate(-14deg);border-radius:50% 10% 60% 20%}
.nestcv-logo{position:absolute;left:50%;top:11cqw;width:17cqw;height:17cqw;transform:translateX(-50%);background:#14244b;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.nestcv-brand{position:absolute;left:0;right:0;top:30cqw;text-align:center;font-size:8cqw;letter-spacing:.9cqw;line-height:1;font-weight:400}
.nestcv-brand small{display:block;font-size:2.6cqw;letter-spacing:1.4cqw;color:#2b49a0;margin-top:1cqw;border-top:.3cqw solid #14244b;padding-top:.8cqw;width:36cqw;margin-left:auto;margin-right:auto}
.nestcv-brand em{display:block;font-style:normal;font-size:2.4cqw;letter-spacing:.8cqw;color:#2b49a0;margin-top:.6cqw}
.nestcv-body{position:absolute;left:12cqw;right:12cqw;top:48cqw;text-align:center}
.nestcv-h{font-size:5.4cqw;letter-spacing:1.2cqw;margin-bottom:4cqw}
.nestcv-t{font-size:2.9cqw;font-style:italic;color:#4a5570;margin:2.5cqw 0}
.nestcv-name{font-size:6.2cqw;font-weight:700;line-height:1.2;margin:3cqw 0;padding-bottom:1.6cqw;border-bottom:.25cqw dotted #14244b;word-break:break-word}
.nestcv-course{font-size:4.4cqw;font-weight:700;margin-top:2cqw;line-height:1.25}
.nestcv-batch{font-size:2.6cqw;color:#5b6477;margin-top:1.2cqw;letter-spacing:.3cqw}
.nestcv-sig{position:absolute;bottom:27cqw;font-size:2.8cqw;text-align:center;width:25cqw}
.nestcv-sig span{display:block;border-top:.3cqw dotted #14244b;margin-bottom:1cqw}
.nestcv-sig--l{left:11cqw}
.nestcv-sig--r{right:11cqw}
.nestcv-seal{position:absolute;left:50%;bottom:21cqw;width:19cqw;height:19cqw;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;color:#fff3c4;font-size:3.6cqw;font-weight:700;letter-spacing:.3cqw;background:radial-gradient(circle,#e2b73c 0 52%,#c9962a 53% 100%);clip-path:polygon(50% 0,56% 5%,63% 1%,67% 8%,75% 6%,77% 14%,85% 14%,85% 22%,93% 24%,91% 32%,98% 36%,94% 43%,100% 50%,94% 57%,98% 64%,91% 68%,93% 76%,85% 78%,85% 86%,77% 86%,75% 94%,67% 92%,63% 99%,56% 95%,50% 100%,44% 95%,37% 99%,33% 92%,25% 94%,23% 86%,15% 86%,15% 78%,7% 76%,9% 68%,2% 64%,6% 57%,0 50%,6% 43%,2% 36%,9% 32%,7% 24%,15% 22%,15% 14%,23% 14%,25% 6%,33% 8%,37% 1%,44% 5%)}
.nestcv-serial{position:absolute;left:10cqw;bottom:12.5cqw;font-size:2.3cqw;font-family:Arial,sans-serif}
.nestcv-serial b{font-size:3cqw;letter-spacing:.2cqw}
.nestcv-barcode{position:absolute;right:10cqw;bottom:12.5cqw;width:16cqw;height:4cqw;background:repeating-linear-gradient(90deg,#222 0 .4cqw,transparent .4cqw .9cqw,#222 .9cqw 1.1cqw,transparent 1.1cqw 1.8cqw)}
.nestcv-foot{position:absolute;left:0;right:0;bottom:8.4cqw;text-align:center;font-size:1.7cqw;letter-spacing:.1cqw}

@media (max-width:480px){.nestcv-form{flex-direction:column}.nestcv-btn{max-width:none}}
@media print{
	body *{visibility:hidden}
	.nestcv-certwrap,.nestcv-certwrap *{visibility:visible}
	.nestcv-certwrap{position:absolute;left:0;top:0;width:100%;max-width:none;box-shadow:none}
	@page{margin:0}
}

/* Beat theme heading/button colour overrides */
.nestcv .nestcv-btn--academy,.nestcv .nestcv-btn--academy strong,.nestcv .nestcv-btn--academy span{color:#fff!important}
.nestcv .nestcv-btn--tvec,.nestcv .nestcv-btn--tvec strong,.nestcv .nestcv-btn--tvec span{color:#14244b!important}
.nestcv .nestcv-btn--academy{background:#14244b!important}
.nestcv .nestcv-form button,.nestcv .nestcv-form button:hover{color:#fff!important}
.nestcv .nestcv-print,.nestcv .nestcv-back{color:#14244b!important}

/* Robust against theme typography */
.nestcv-cert,.nestcv-cert div{font-family:Georgia,'Times New Roman',serif!important;letter-spacing:normal;text-transform:none}
.nestcv-cert .nestcv-brand{letter-spacing:.9cqw}
.nestcv-cert .nestcv-brand small{letter-spacing:1.4cqw}
.nestcv-cert .nestcv-brand em{letter-spacing:.8cqw}
.nestcv-cert .nestcv-h{letter-spacing:1.2cqw}
.nestcv-cert .nestcv-batch{letter-spacing:.3cqw}
.nestcv-cert .nestcv-serial{font-family:Arial,sans-serif!important}
.nestcv-cert .nestcv-course{font-size:3.7cqw;line-height:1.25;margin-top:1.5cqw}
.nestcv-cert .nestcv-body{top:47cqw}
.nestcv-cert .nestcv-foot{font-size:1.5cqw;letter-spacing:0;white-space:nowrap}
.nestcv-cert .nestcv-seal{bottom:19cqw}
.nestcv-cert .nestcv-sig{bottom:25cqw}
