body{background:#f5f7fb;color:#172033;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.pba-nav{background:linear-gradient(110deg,#272d78,#154e9c)}.navbar-brand span{color:#ffd83d}
.hero{background:linear-gradient(120deg,#252c7d,#1565a8);color:#fff;border-radius:24px;padding:4rem}
.card{border:0;border-radius:16px;box-shadow:0 8px 30px rgba(20,38,75,.08)}
.section-title{font-weight:800;color:#293487}.stat{font-size:1.8rem;font-weight:800;color:#293487}
.footer{background:#111b3b;color:#dce3ff}.form-label{font-weight:600}
.certificate-page{background:#e9edf5;min-height:100vh;padding:20px}
.certificate-wrap{width:min(100%,720px);margin:auto;background:#fff;box-shadow:0 12px 40px rgba(0,0,0,.18);position:relative;container-type:inline-size}
.certificate-wrap img.bg{width:100%;height:auto;display:block}
.cert-field{position:absolute;font-family:"Times New Roman",Times,serif;color:#111;text-align:left;line-height:1;white-space:nowrap;margin:0;padding:0}
.cert-data{font-size:2.15cqw;max-width:54%;overflow:hidden}
.cert-study{left:43.0%;top:41.65%;width:53%}
.cert-faculty{left:43.0%;top:44.82%;width:53%}
.cert-university{left:43.0%;top:48.48%;width:53%}
.cert-period{left:10%;top:60.15%;width:80%;font-size:2.15cqw;text-align:center;font-weight:400}
.cert-period .period-value,.cert-period .member-value{font-weight:bold}
.no-print{margin-bottom:16px}.print-help{font-size:.85rem;color:#667085}
@media print{
html,body{margin:0!important;padding:0!important;background:#fff!important}
.no-print,nav,footer{display:none!important}
.certificate-page{padding:0!important;background:#fff!important;min-height:0!important}
.certificate-wrap{width:100%!important;max-width:none!important;box-shadow:none!important}
.certificate-wrap img.bg{width:100%!important}
@page{size:A4 portrait;margin:0}
}
