*{box-sizing:border-box}body{margin:0;background:#f3f6fb;color:#172033;font:15px/1.55 Arial,sans-serif}.top{background:linear-gradient(110deg,#102a56,#164e83);color:#fff;padding:18px max(20px,calc((100% - 1160px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.top b{display:block;font-size:19px;letter-spacing:.5px}.top small{opacity:.85}.top a{color:#fff;text-decoration:none;margin-left:14px}.wrap{max-width:1160px;margin:26px auto;padding:0 16px;min-height:70vh}.hero{background:linear-gradient(120deg,#fff,#e8f2ff);border:1px solid #d8e6f7;border-radius:18px;padding:32px;margin-bottom:20px}.hero h1{margin:0 0 10px;color:#143c70;font-size:30px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.card{background:#fff;border:1px solid #e0e7f0;border-radius:14px;padding:20px;box-shadow:0 5px 20px #1720330a;margin-bottom:16px}.card h2,.card h3{margin-top:0;color:#173e6e}.btn,button{display:inline-block;background:#174d83;color:#fff;border:0;border-radius:8px;padding:11px 17px;text-decoration:none;cursor:pointer;font-weight:600}.btn.secondary{background:#475569}.btn.green{background:#13834c}.btn.red{background:#b42318}label{display:block;font-weight:600;margin:10px 0 5px}input,select,textarea{width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}textarea{min-height:95px}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px 16px}.notice{padding:12px;border-radius:9px;background:#eff6ff;border:1px solid #bfdbfe;margin:12px 0}.error{background:#fff1f2;border-color:#fecdd3;color:#9f1239}.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;background:#fff}th,td{padding:10px;border:1px solid #dbe2ea;text-align:left;white-space:nowrap}th{background:#eaf1f8}.actions{display:flex;gap:7px;flex-wrap:wrap}.muted{color:#64748b;font-size:13px}footer{text-align:center;padding:22px;color:#64748b}.adminnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.adminnav a{background:#fff;padding:9px 12px;border:1px solid #dbe2ea;border-radius:8px;text-decoration:none;color:#174d83}.printhead{text-align:center;border-bottom:2px solid #222;padding-bottom:12px;margin-bottom:15px}.printhead h2{margin:5px}.receipt{border:1px dashed #555;padding:12px;margin-top:18px}.slip{border:1px solid #333;padding:15px;max-width:680px;margin:12px auto;position:relative;min-height:280px}.student-photo{width:105px;height:125px;object-fit:cover;border:1px solid #777;float:right}.pagebreak{page-break-after:always}.pill{padding:3px 8px;border-radius:30px;background:#e2e8f0;font-size:12px}.uploadhint{font-size:12px;color:#64748b}.brandline{height:5px;background:linear-gradient(90deg,#f59e0b,#fff,#16a34a);margin:12px 0}@media print{.noprint,.top,footer{display:none!important}body{background:#fff}.wrap{max-width:none;margin:0;padding:0}.card{box-shadow:none;border:0}.pagebreak{page-break-after:always}.printarea{padding:8mm}.slip{break-inside:avoid}}@media(max-width:700px){.top{display:block}.top nav{margin-top:12px}.top a{margin:0 10px 0 0}}
@page{size:A4;margin:10mm}

.brandhead{display:flex;align-items:center;gap:12px}.brandhead img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}.org-contact{font-size:13px;color:#475569;line-height:1.6}.instruction-list{padding-left:22px}.instruction-list li{margin:6px 0}.print-logo{width:78px;height:78px;object-fit:contain;display:block;margin:0 auto 6px}.print-photo{width:30mm;height:36mm;object-fit:cover;border:1px solid #64748b;float:right;margin:0 0 8px 12px}.printarea{font-size:12px}.printarea .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px}.printarea p{margin:7px 0}.printhead h2{font-size:19px}.printhead p{margin:3px}.termsbox{background:#f8fafc;border:1px solid #dbe2ea;border-radius:10px;padding:14px;margin:16px 0}.pay-info{background:#f8fafc;border:1px solid #dbe2ea;border-radius:10px;padding:14px;margin:14px 0}.pay-info h3{margin:0 0 8px}@media print{.printarea{width:190mm;min-height:0;padding:0;margin:0 auto;font-size:11px}.print-photo{width:27mm;height:32mm}.print-logo{width:22mm;height:22mm}.receipt{margin-top:12px;padding:8px}.printhead{padding-bottom:6px;margin-bottom:8px}.printarea .formgrid{gap:3px 10px}}

.topbrand{display:flex;align-items:center;gap:12px}.topbrand img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}.hero-brand{display:flex;align-items:center;gap:18px}.hero-brand img{width:92px;height:92px;object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:4px}.hero-brand h1{margin:0 0 5px}.paymentcard{max-width:820px;margin:0 auto}.amountdue{font-size:30px;font-weight:800;color:#123e70;margin:8px 0}.print-logo{display:block;width:72px;height:72px;object-fit:contain;margin:0 auto 6px}.printarea{max-width:900px;margin:0 auto}.printarea .student-photo{width:72px;height:88px;object-fit:cover;float:right;margin:0 0 8px 12px}.printarea .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}.printarea p{margin:7px 0}.printarea .receipt{margin-top:12px;padding:9px}.printarea .receipt p{margin:5px 0}.printhead h2{font-size:19px}.printhead{padding-bottom:8px;margin-bottom:10px}.hero{padding:24px}.hero h1{font-size:26px}footer{line-height:1.8;background:#edf2f8;margin-top:25px}
@media print{ @page{size:A4 portrait;margin:9mm} body{font-size:10.5pt;line-height:1.35}.wrap{width:100%;max-width:none;margin:0;padding:0}.printarea{padding:0!important}.printarea .student-photo{width:62px;height:76px}.printarea .formgrid{gap:4px 10px}.printarea .receipt{break-inside:avoid}.print-logo{width:58px;height:58px}.printhead h2{font-size:16px}.noprint{display:none!important} }
@media(max-width:700px){.topbrand img{width:48px;height:48px}.hero-brand{align-items:flex-start}.hero-brand img{width:65px;height:65px}.printarea .formgrid{grid-template-columns:1fr}}

/* Refined A4 print photo dimensions */
.printarea .print-photo{width:19mm;height:24mm;object-fit:cover;border:1px solid #64748b;float:right;margin:0 0 6px 10px}
@media print{.printarea .print-photo{width:17mm;height:21mm}.printarea{font-size:10.5px}.printarea .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt{break-inside:avoid}}

.topbrand{display:flex;align-items:center;gap:12px}.topbrand img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}.hero-brand{display:flex;align-items:center;gap:16px}.hero-brand img{width:88px;height:88px;object-fit:contain;background:#fff;border-radius:10px}.org-contact{font-size:11px;color:#475569;line-height:1.5;border-top:1px solid #dbe2ea;padding-top:8px;margin-top:12px}.instruction-list{padding-left:22px}.instruction-list li{margin:5px 0}.pay-info{background:#f8fafc;border:1px solid #dbe2ea;border-radius:10px;padding:14px;margin:14px 0}.pay-info h3{margin-top:0}.print-logo{width:23mm;height:23mm;object-fit:contain;display:block;margin:0 auto 5px}.print-photo{width:27mm;height:32mm;object-fit:cover;border:1px solid #64748b;float:right;margin:0 0 8px 12px}.printarea{font-size:11px}.printarea .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}.printarea p{margin:6px 0}@media print{.printarea{width:190mm;padding:0;margin:0 auto;font-size:10.5px}.print-photo{width:25mm;height:30mm}.printhead{padding-bottom:6px;margin-bottom:8px}.receipt{margin-top:10px;padding:8px}}

.desk-slip{border:2px solid #174d83;border-radius:10px;padding:10px;margin:8px;display:inline-block;vertical-align:top;width:85mm;min-height:48mm}.desk-slip h2{font-size:13px;margin:2px}.desk-slip h3{font-size:12px;margin:3px}.desk-slip h1{font-size:26px;margin:4px;color:#174d83}@media print{.desk-slip{break-inside:avoid;page-break-inside:avoid;width:85mm;min-height:45mm;margin:4mm}}

/* Professional navigation and A4 preview */
.top-pro{background:linear-gradient(110deg,#10254f 0%,#174d83 55%,#087e8b 100%);padding:12px max(16px,calc((100% - 1220px)/2));box-shadow:0 5px 18px #10254f30;flex-wrap:wrap}.top-pro .topbrand{color:#fff;text-decoration:none;min-width:245px}.top-pro .topbrand img{width:48px;height:48px;border-radius:9px;padding:3px}.top-pro .topbrand b{font-size:16px;letter-spacing:.4px}.top-pro nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.top-pro nav a{margin:0;padding:8px 10px;border-radius:8px;font-size:13px;font-weight:700;background:#ffffff16;border:1px solid #ffffff2a}.top-pro nav a:hover{background:#ffffff30}.top-pro nav .nav-pay{background:linear-gradient(90deg,#ffb02e,#ff7a18);color:#172033;border:0}.preview-trigger{margin:8px 8px 8px 0;background:#0b8278}.final-submit-trigger{margin-top:8px;background:#174d83}.preview-modal{position:fixed;inset:0;z-index:9999;background:#101827e8;overflow:auto;padding:18px}.preview-toolbar,.preview-actions{max-width:210mm;margin:0 auto 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#fff}.preview-toolbar button,.preview-actions button{padding:10px 18px}.a4-preview{background:#fff;color:#172033;width:210mm;min-height:297mm;margin:0 auto 15px;padding:12mm 13mm;box-shadow:0 10px 35px #0005;font:11pt/1.45 Arial,sans-serif}.a4-head{display:flex;align-items:center;gap:14px;border-bottom:3px solid #174d83;padding-bottom:10px}.a4-head img{width:25mm;height:25mm;object-fit:contain}.a4-head h1{font-size:19px;color:#173e6e;margin:0}.a4-head p{font-size:9px;margin:2px 0;color:#526174}.a4-ribbon{background:linear-gradient(90deg,#174d83,#087e8b);color:#fff;text-align:center;padding:10px;font-weight:800;letter-spacing:.4px;margin:14px 0}.preview-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.preview-field{border-bottom:1px solid #dbe2ea;padding:9px 5px;min-height:42px;display:flex;flex-direction:column;overflow-wrap:anywhere}.preview-field b{font-size:9px;color:#64748b;text-transform:uppercase}.preview-field span{font-weight:600}.preview-terms{margin-top:24px;padding:14px;background:#f3f7fb;border:1px solid #d7e2ef;border-radius:7px;font-size:10px}.preview-sign{margin-top:28px;text-align:right}.a4-foot{border-top:1px solid #cbd5e1;margin-top:25px;padding-top:8px;color:#64748b;font-size:9px}.pay-lookup{max-width:650px;margin:35px auto}.pay-lookup-head{background:linear-gradient(120deg,#143b70,#087e8b);color:#fff;padding:22px;border-radius:12px;margin:-20px -20px 18px}.pay-lookup-head span{font-size:11px;letter-spacing:1.2px;font-weight:800;color:#ffcf75}.pay-lookup-head h1{color:#fff;margin:5px 0}.pay-lookup-head p{margin:0;color:#e5f3ff}@media(max-width:700px){.top-pro{display:block}.top-pro nav{justify-content:flex-start;margin-top:10px}.top-pro nav a{font-size:12px;padding:7px}.a4-preview{width:100%;min-height:auto;padding:18px}.a4-head img{width:60px;height:60px}.preview-fields{grid-template-columns:1fr}.preview-modal{padding:8px}.preview-toolbar,.preview-actions{flex-wrap:wrap}}
@media print{.a4-preview{width:190mm;min-height:277mm;margin:0;padding:0;box-shadow:none}.preview-modal{position:static;background:#fff;padding:0}.preview-toolbar,.preview-actions{display:none!important}}

/* Result, certificate, duty verification and notice board */
.certificate-sheet{max-width:1120px;margin:24px auto;padding:12px;background:#f8fafc}.cert-border{padding:8px;background:linear-gradient(135deg,#d6a84f,#fff1bd,#b88932);border-radius:8px}.cert-inner{min-height:650px;background:#fffdf6;border:5px double #174d83;padding:38px 48px;text-align:center;position:relative;overflow:hidden}.cert-inner:before{content:"";position:absolute;inset:12px;border:1px solid #d6a84f;pointer-events:none}.cert-top{display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative}.cert-top img{width:86px;height:86px;object-fit:contain}.cert-top>div{flex:1}.cert-top small{letter-spacing:3px;color:#174d83;font-weight:800}.cert-top h1{font-family:Georgia,serif;font-size:48px;letter-spacing:5px;color:#173e6e;margin:4px}.cert-top b{letter-spacing:2px;color:#9b6c18}.cert-top .cert-qr{width:78px;height:78px}.cert-rule{height:4px;background:linear-gradient(90deg,#b88932,#174d83,#b88932);margin:25px 0}.cert-kicker{letter-spacing:3px;color:#64748b;font-weight:700;margin-top:35px}.cert-name{font-family:Georgia,serif;font-size:38px;color:#9a6a18;border-bottom:2px solid #d6a84f;display:inline-block;padding:8px 28px;margin:12px 0}.cert-copy{font-size:17px;line-height:1.8;margin:24px 0}.cert-detail{font-size:15px}.cert-award{display:inline-block;padding:10px 28px;background:#173e6e;color:#fff;border-radius:30px;font-weight:800;letter-spacing:1px;margin:14px}.cert-number{font-size:11px;color:#64748b;margin-top:20px}.cert-signatures{display:flex;justify-content:space-between;gap:50px;margin:60px 15px 20px;position:relative}.cert-signatures>div{width:40%;border-top:1px solid #334155;padding-top:7px;display:flex;flex-direction:column;align-items:center}.cert-signatures img{height:48px;max-width:140px;object-fit:contain;margin-top:-52px;margin-bottom:4px}.cert-signatures small{color:#64748b}.cert-footer{border-top:1px solid #d6a84f;padding-top:10px;font-size:10px;color:#64748b;margin-top:24px}.idcard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.exam-idcard{border:2px solid #174d83;border-radius:12px;overflow:hidden;min-height:260px;background:#fff;break-inside:avoid}.idcard-top{display:flex;align-items:center;gap:10px;background:linear-gradient(110deg,#10254f,#087e8b);color:#fff;padding:12px}.idcard-top img{width:48px;height:48px;background:#fff;border-radius:7px;padding:3px}.idcard-top b{font-size:14px}.idcard-top small{display:block;font-size:10px}.idcard-body{padding:16px;min-height:155px}.idphoto{float:right;width:78px;height:94px;object-fit:cover;border:2px solid #d6a84f;border-radius:5px}.id-placeholder{display:grid;place-items:center;color:#64748b;background:#f1f5f9}.idcard-body h2{margin:5px 0;color:#173e6e}.id-role{color:#a36b0a}.idcard-body p{margin:6px 0;font-size:12px}.idcard-foot{text-align:center;background:#edf3f8;padding:8px;font-size:10px;color:#475569}.small{padding:5px 9px;font-size:12px}.danger{background:#b42318!important}.secondary{background:#64748b!important}
@media print{.certificate-sheet{max-width:none;margin:0;padding:0;background:#fff}.cert-inner{min-height:260mm;padding:25mm 18mm}.cert-top img{width:24mm;height:24mm}.cert-top h1{font-size:40pt}.cert-name{font-size:32pt}.cert-copy{font-size:14pt}.idcard-grid{grid-template-columns:repeat(2,1fr);gap:8mm}.exam-idcard{min-height:75mm}.noprint,.top,footer{display:none!important}}
@media(max-width:700px){.cert-inner{padding:24px 16px;min-height:600px}.cert-top img{width:55px;height:55px}.cert-top h1{font-size:26px}.cert-name{font-size:25px}.cert-signatures{gap:18px}.idcard-grid{grid-template-columns:1fr}}

/* Talent Search Examination campaign banner and subtle academic background */
.campaign-banner{width:calc(100% - 32px);max-width:900px;margin:12px auto 16px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 7px 20px rgba(15,35,75,.10);border:1px solid rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center}
.campaign-banner img{display:block;width:100%;height:220px;max-height:24vw;min-height:150px;object-fit:contain;object-position:center;background:#fff}
body{background-color:#f3f7fc;background-image:radial-gradient(circle at 12% 18%,rgba(14,116,144,.055) 0 2px,transparent 3px),radial-gradient(circle at 88% 34%,rgba(217,119,6,.055) 0 3px,transparent 4px),linear-gradient(135deg,rgba(255,255,255,.88),rgba(239,246,255,.92));background-size:34px 34px,46px 46px,auto;}
.wrap{position:relative;}
.wrap:before{content:"✦  ◈  ✎";position:fixed;right:2.5%;bottom:9%;z-index:-1;font-size:clamp(42px,7vw,100px);font-weight:900;letter-spacing:14px;color:rgba(23,62,110,.035);transform:rotate(-12deg);pointer-events:none;white-space:nowrap;}
.hero{border:1px solid rgba(255,255,255,.8);box-shadow:0 12px 28px rgba(16,37,79,.09);}
@media(max-width:700px){.campaign-banner{width:calc(100% - 20px);max-width:520px;margin:10px auto 13px;border-radius:9px}.campaign-banner img{height:130px;max-height:none;min-height:0;width:100%;object-fit:contain}.wrap:before{right:0;bottom:4%;font-size:44px;}}
@media print{.campaign-banner{width:100%;max-width:180mm;box-shadow:none;border:0;margin:0 auto 5mm;border-radius:0}.campaign-banner img{height:38mm;max-height:38mm;min-height:0;object-fit:contain}body{background:#fff!important;background-image:none!important}.wrap:before{display:none}}


/* Certificate image templates: A4 landscape, dynamic student details and five signatories */
.signer-config{padding:12px;border:1px solid #dbe2ea;border-radius:10px;background:#f8fafc}
.signer-config h3{margin:0 0 8px;color:#174d83}
.image-certificate{position:relative;width:min(100%,1120px);aspect-ratio:1536/1024;margin:20px auto;background-size:100% 100%;background-repeat:no-repeat;background-position:center;overflow:hidden;color:#101d55;box-shadow:0 8px 28px #10254f20}
.image-cert-qr{position:absolute;right:2.7%;top:2.8%;width:5.7%;height:auto;background:#fff;padding:3px;border:1px solid #c99b35}
.image-cert-photo{position:absolute;right:4.2%;top:29.5%;width:9.2%;height:17.5%;object-fit:contain;object-position:center;background:#fff;border:2px solid #fff;outline:2px solid #c99b35;border-radius:6px;box-shadow:0 2px 8px #0004;box-sizing:border-box;padding:2px}
.image-cert-name{position:absolute;left:22%;top:38.2%;width:59%;min-height:4.5%;text-align:center;font:bold clamp(14px,2vw,28px)/1.15 Georgia,serif;color:#101d55;text-shadow:0 1px #fff;white-space:normal;overflow-wrap:anywhere;overflow:visible;padding:0 3px;box-sizing:border-box}
.image-cert-parent{position:absolute;left:30%;top:45.8%;width:43%;text-align:center;font:bold clamp(10px,1.15vw,16px)/1.1 Georgia,serif;color:#101d55;white-space:normal;overflow-wrap:anywhere;overflow:visible}
.image-cert-class{position:absolute;left:74%;top:45.8%;width:10%;text-align:center;font:bold clamp(10px,1.1vw,16px)/1.1 Georgia,serif;color:#101d55;white-space:normal;overflow-wrap:anywhere;overflow:visible}
.image-cert-school{position:absolute;left:21%;top:51.5%;width:64%;text-align:center;font:bold clamp(9px,1.1vw,16px)/1.1 Georgia,serif;color:#101d55;white-space:normal;overflow-wrap:anywhere;overflow:visible}
.image-cert-rank{position:absolute;left:25%;top:59.5%;width:58%;text-align:center;font:bold clamp(12px,1.55vw,22px)/1.1 Georgia,serif;color:#a10f1a;text-shadow:0 1px #fff;white-space:normal}
.image-cert-role{left:30%;top:45.8%;width:48%}
.image-cert-number{position:absolute;left:2.5%;top:88.2%;font:700 clamp(7px,.7vw,10px) Arial,sans-serif;color:#172554;background:#ffffffc9;padding:2px 6px;border-radius:4px}
.image-cert-signers{position:absolute;left:7%;right:7%;top:70.5%;height:10.8%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;align-items:end;padding:3px 5px;background:rgba(255,255,255,.88);border-top:1px solid #c99b35;border-bottom:1px solid #c99b35}
.image-cert-signer{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-align:center;min-width:0;border-right:1px solid #c99b35;padding:0 3px;font:700 clamp(7px,.8vw,11px)/1.1 Arial,sans-serif;color:#10265a;overflow:hidden}
.image-cert-signer:last-child{border-right:0}
.image-cert-signer img{height:42%;max-width:90%;object-fit:contain;margin:0 auto 2px}
.image-cert-signer b,.image-cert-signer small{display:block;max-width:100%;overflow-wrap:anywhere}
.image-cert-signer small{font-size:clamp(6px,.65vw,9px);color:#a01820}
.cert-actions{display:flex;justify-content:center;gap:12px;align-items:center;margin:14px auto}
.cert-default-photo{width:25mm;height:30mm;object-fit:cover;border:2px solid #d6a84f;border-radius:5px;float:right;margin:0 10px 8px 15px}
.result-actions,.report-actions{text-align:center;margin:16px}
@media print{
 @page{size:A4 portrait;margin:8mm}@page certpage{size:A4 landscape;margin:0}@page reportpage{size:A4 landscape;margin:5mm}
 body:has(.image-certificate){background:#fff!important}
 body:has(.image-certificate) .wrap{width:297mm;max-width:297mm;margin:0;padding:0}
 .image-certificate{page:certpage;width:285mm;height:190mm;aspect-ratio:auto;margin:10mm auto;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .image-cert-name{font-size:19pt}.image-cert-parent,.image-cert-class,.image-cert-school{font-size:10pt}.image-cert-rank{font-size:15pt}
 .image-cert-number{font-size:7pt}.image-cert-signer{font-size:7pt}.image-cert-signer small{font-size:6pt}
 .image-cert-qr{width:17mm}.image-cert-photo{width:26mm;height:34mm;right:4.2%;top:29.5%;object-fit:contain}
 body:has(.print-report) .wrap{max-width:none;width:100%;margin:0;padding:0}
 .print-report{page:reportpage;width:100%;max-width:none;padding:0!important;margin:0!important;font-size:7pt!important}
 .print-report table{width:100%;table-layout:fixed;font-size:6.5pt;border-collapse:collapse}
 .print-report th,.print-report td{padding:2px 3px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
 .print-report thead{display:table-header-group}
 .print-report tr{break-inside:avoid}
 .print-report .printhead{margin-bottom:4mm;padding-bottom:2mm}
 .print-report .printhead h2{font-size:13pt}
 .print-report .print-logo{width:14mm;height:14mm}
 .print-report .slip{max-width:100%;width:100%;margin:0 0 5mm;break-inside:avoid}
 .result-print{width:190mm;max-width:190mm;margin:0 auto;padding:5mm!important;font-size:9pt!important}
 .result-print table{table-layout:fixed;width:100%}
 .result-print th,.result-print td{white-space:normal;padding:4px}
 .noprint,.top,footer{display:none!important}
}
@media(max-width:700px){.image-certificate{width:100%;}.image-cert-name{font-size:13px}.image-cert-parent,.image-cert-class,.image-cert-school{font-size:8px}.image-cert-signer{font-size:6px}}
/* Banner is constrained by its natural ratio and never cropped */
.campaign-banner{width:calc(100% - 32px);max-width:1000px;margin:12px auto 16px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 7px 20px rgba(15,35,75,.10);border:1px solid rgba(255,255,255,.9);display:block}
.campaign-banner img{display:block;width:100%;height:auto;max-height:230px;min-height:0;aspect-ratio:3/1;object-fit:contain;object-position:center;background:#fff}
@media(max-width:700px){.campaign-banner{width:calc(100% - 20px);max-width:520px}.campaign-banner img{max-height:125px;aspect-ratio:3/1;object-fit:contain}}

@media print{
 .certificate-sheet{page:certpage;width:297mm;height:210mm;max-width:none;margin:0;padding:0}
 .certificate-sheet .cert-inner{width:297mm;height:198mm;min-height:198mm;padding:16mm 18mm;overflow:hidden}
 .certificate-sheet .cert-signatures{margin:35mm 10mm 8mm;gap:8mm}
}

/* Campaign home page: side posters, centre watermark, syllabus and animated registration */
.home-campaign{display:grid;grid-template-columns:minmax(105px,190px) minmax(0,1fr) minmax(105px,190px);gap:14px;align-items:start;max-width:1500px;margin:20px auto}.campaign-side img{width:100%;height:auto;max-height:760px;object-fit:contain;display:block;border-radius:14px;box-shadow:0 8px 24px #10254f20}.home-main{position:relative;min-width:0}.home-watermark{position:absolute;inset:30px 0 auto;height:480px;background:url('campaign-watermark.webp') center 35%/contain no-repeat;opacity:.10;pointer-events:none;z-index:0}.home-main>.card,.home-main>.hero{position:relative;z-index:1}.home-hero{text-align:center;padding:24px 18px;border:2px solid #f1c66c;background:linear-gradient(135deg,#fff,#f5f9ff);box-shadow:0 8px 28px #173e6e18}.home-logo{width:78px;height:78px;object-fit:contain;border-radius:50%;background:#fff}.home-hero h1{font-size:clamp(22px,3vw,34px)}.register-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:22px 0 14px}.register-glow{display:inline-block;padding:15px 22px;border-radius:50px;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.3px;background:linear-gradient(110deg,#b5122b,#ed6a16,#b5122b);background-size:200% 100%;box-shadow:0 5px 0 #7c1021,0 0 18px #e85b3c75;animation:registerPulse 1.8s ease-in-out infinite}.register-glow.college{background:linear-gradient(110deg,#0755a5,#087f87,#0755a5);box-shadow:0 5px 0 #06366d,0 0 18px #087f8775}@keyframes registerPulse{0%,100%{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.035);filter:brightness(1.13)}}.home-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.syllabus-card{background:#fffdf8;border-color:#f1d7a0}.syllabus-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.syllabus-grid>div{padding:12px;border-radius:10px;background:#f2f7ff;border:1px solid #d9e7f8}.group-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.group-pills span{padding:8px 12px;border-radius:20px;background:#fff4dc;border:1px solid #f2d18a;font-weight:700;font-size:13px}.notice-ticker{display:flex;align-items:center;gap:14px;overflow:hidden;background:#8c1025;color:#fff;padding:9px 16px;margin:12px auto;max-width:1500px;border-radius:8px}.notice-ticker>b{white-space:nowrap;color:#ffdf78}.ticker-track{display:flex;white-space:nowrap;gap:25px;animation:noticeScroll 24s linear infinite}.ticker-track a{color:#ffe28a;font-weight:bold}@keyframes noticeScroll{0%{transform:translateX(0)}100%{transform:translateX(-45%)}}.code-gate{max-width:650px;margin:24px auto;padding:28px;border:1px solid #c8d9ee;border-radius:18px;background:linear-gradient(135deg,#fff,#edf5ff);box-shadow:0 10px 28px #173e6e16;text-align:center}.code-gate-icon{font-size:44px}.code-gate h2{color:#173e6e}.code-gate form{text-align:left}.btn-glow{display:inline-block;margin-top:12px;padding:13px 22px;border:0;border-radius:30px;color:#fff;font-weight:800;background:linear-gradient(100deg,#ad1230,#ef6a17);box-shadow:0 4px 0 #7c1021,0 0 14px #ed6b3670;cursor:pointer}.school-name-field{grid-column:span 2}.school-col{min-width:190px}.school-input{min-width:190px}.coupon-entry{max-width:420px;padding:12px;background:#f8fafc;border:1px dashed #9db4d0;border-radius:10px;margin:15px 0}.coupon-entry small{color:#64748b}@media(max-width:900px){.home-campaign{grid-template-columns:100px minmax(0,1fr) 100px;gap:8px}.campaign-side img{position:sticky;top:10px}.home-hero{padding:18px 10px}}@media(max-width:650px){.home-campaign{grid-template-columns:1fr}.campaign-side{display:none}.home-watermark{height:260px}.school-name-field{grid-column:span 1}.notice-ticker{font-size:12px}.register-glow{width:100%}}


/* v10 HOME PAGE: fixed side poster rails + centered campaign watermark */
.home-campaign{
  width:100%;max-width:1600px;margin:18px auto 30px;padding:0 14px;
  display:grid;grid-template-columns:clamp(150px,15vw,220px) minmax(0,1fr) clamp(150px,15vw,220px);
  gap:18px;align-items:start;box-sizing:border-box;
}
.home-campaign>.campaign-side{
  display:block;min-width:0;position:sticky;top:14px;align-self:start;
  z-index:2;padding:0;margin:0;
}
.home-campaign>.campaign-side img{
  display:block;width:100%;height:auto;max-height:calc(100vh - 28px);
  object-fit:contain;object-position:top center;border-radius:12px;
  border:1px solid rgba(205,160,65,.55);background:#fff;
  box-shadow:0 8px 24px rgba(16,37,79,.16);
}
.home-campaign>.home-main{
  min-width:0;position:relative;isolation:isolate;z-index:1;
  padding:12px;border-radius:18px;overflow:hidden;
  background:rgba(255,255,255,.72);
}
.home-campaign>.home-main>.home-watermark{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  display:block;opacity:1;
  background-image:url('campaign-watermark.webp');
  background-repeat:no-repeat;background-position:center center;
  background-size:min(100%,900px) auto;
}
.home-campaign>.home-main>.home-watermark:after{
  content:"";position:absolute;inset:0;
  background:rgba(255,255,255,.82);
}
.home-campaign>.home-main>.hero,
.home-campaign>.home-main>.card{
  position:relative;z-index:1;background:rgba(255,255,255,.91);
  backdrop-filter:blur(1px);
}
.home-campaign .home-hero{text-align:center;padding:22px 18px}
.home-campaign .home-hero h1{font-size:clamp(23px,2.3vw,34px);line-height:1.2}
.home-campaign .home-logo{width:66px;height:66px;object-fit:contain;margin:0 auto 8px;display:block}
.home-campaign .register-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.home-campaign .register-glow{display:inline-flex;align-items:center;justify-content:center;text-align:center;
  padding:13px 18px;border-radius:999px;color:#fff;text-decoration:none;font-weight:900;
  background:linear-gradient(110deg,#b50922,#f04438,#9d071e);border:2px solid #ffd66b;
  box-shadow:0 5px 0 #7f1020,0 8px 18px rgba(120,10,30,.22);animation:hafRegisterPulse 2s ease-in-out infinite}
.home-campaign .register-glow.college{background:linear-gradient(110deg,#073b83,#087dc2,#123e70)}
@keyframes hafRegisterPulse{0%,100%{transform:translateY(0);filter:saturate(1)}50%{transform:translateY(-2px);filter:saturate(1.18)}}
.home-campaign .syllabus-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}
.home-campaign .syllabus-grid>div{padding:10px 12px;border:1px solid #d8e5f2;border-radius:10px;background:rgba(245,249,255,.94)}
.home-campaign .group-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.home-campaign .group-pills span{padding:7px 10px;border-radius:20px;background:#edf4ff;border:1px solid #cbdcf2;font-weight:700;font-size:13px}
@media(max-width:1050px){
 .home-campaign{grid-template-columns:clamp(118px,16vw,160px) minmax(0,1fr) clamp(118px,16vw,160px);gap:10px;padding:0 8px}
 .home-campaign>.home-main{padding:8px}
}
@media(max-width:760px){
 .home-campaign{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px auto;padding:0 10px}
 .home-campaign>.home-main{grid-column:1/-1;grid-row:1;padding:8px}
 .home-campaign>.campaign-side{position:static;grid-row:2}
 .home-campaign>.campaign-side img{max-height:none;width:100%;border-radius:9px}
 .home-campaign .home-hero{padding:18px 12px}
 .home-campaign .register-glow{width:100%;font-size:13px;padding:11px 10px}
 .home-campaign .home-links{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}
 .home-campaign .home-links .btn{font-size:12px;padding:9px 10px}
}
@media(prefers-reduced-motion:reduce){.home-campaign .register-glow{animation:none}}

/* Watermark stacking correction: keep the background image above the center panel background, below content. */
.home-campaign>.home-main{background:rgba(255,255,255,.18)}
.home-campaign>.home-main>.home-watermark{z-index:0}
.home-campaign>.home-main>.home-watermark:after{background:rgba(255,255,255,.78)}
.home-campaign>.home-main>.hero,.home-campaign>.home-main>.card{position:relative;z-index:1}


/* v11 definitive homepage layout + cache refresh */
.home-campaign{
  display:grid !important;
  grid-template-columns:minmax(145px, 18vw) minmax(0, 1fr) minmax(145px, 18vw) !important;
  gap:16px !important;
  width:100% !important;
  max-width:1700px !important;
  margin:18px auto 30px !important;
  padding:0 14px !important;
  align-items:start !important;
}
.home-campaign > .campaign-side{
  display:block !important;
  position:sticky !important;
  top:12px !important;
  min-width:0 !important;
  z-index:3 !important;
  align-self:start !important;
}
.home-campaign > .campaign-side img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:calc(100vh - 24px) !important;
  object-fit:contain !important;
  object-position:top center !important;
  border-radius:12px !important;
  border:1px solid #d7b66b !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(16,37,79,.18) !important;
}
.home-campaign > .home-main{
  position:relative !important;
  isolation:isolate !important;
  min-width:0 !important;
  padding:12px !important;
  border-radius:16px !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.20) !important;
}
/* The campaign artwork itself is faded; no opaque white overlay covers it. */
.home-campaign > .home-main::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  background-image:url('campaign-watermark.webp?v=11') !important;
  background-repeat:no-repeat !important;
  background-position:center 45% !important;
  background-size: min(100%, 950px) auto !important;
  opacity:.13 !important;
}
.home-campaign > .home-main > .home-watermark{display:none !important;}
.home-campaign > .home-main > .hero,
.home-campaign > .home-main > .card{
  position:relative !important;
  z-index:1 !important;
  background:rgba(255,255,255,.78) !important;
  backdrop-filter:blur(0) !important;
}
.home-campaign > .home-main > .home-hero{
  background:rgba(255,255,255,.82) !important;
}
@media(max-width:760px){
 .home-campaign{
   grid-template-columns:repeat(2,minmax(0,1fr)) !important;
   gap:10px !important;
   padding:0 10px !important;
 }
 .home-campaign > .home-main{grid-column:1/-1 !important;grid-row:1 !important;padding:8px !important;}
 .home-campaign > .campaign-side{position:static !important;display:block !important;grid-row:2 !important;}
 .home-campaign > .campaign-side img{max-height:none !important;width:100% !important;}
}
@media(max-width:420px){
 .home-campaign{gap:7px !important;padding:0 7px !important;}
 .home-campaign > .campaign-side img{border-radius:7px !important;}
}


/* v18: unified data alignment for every image-based certificate template */
.image-certificate{position:relative;overflow:hidden}
.image-cert-name{
 left:19.5%!important;top:41.2%!important;width:46%!important;min-height:4.2%;
 text-align:center!important;display:flex;align-items:center;justify-content:center;
 padding:0 5px!important;font-size:clamp(13px,1.75vw,25px)!important;
 line-height:1.05!important;max-height:5.2%;overflow:hidden!important;
}
.image-cert-parent{
 left:19.5%!important;top:50.1%!important;width:45%!important;
 text-align:left!important;padding-left:1.5%!important;box-sizing:border-box;
 font-size:clamp(9px,1.05vw,15px)!important;line-height:1.05!important;
 max-height:3.8%;overflow:hidden!important;
}
.image-cert-class{
 left:72.8%!important;top:50.1%!important;width:12%!important;
 text-align:center!important;font-size:clamp(9px,1.0vw,14px)!important;
 line-height:1.05!important;max-height:3.8%;overflow:hidden!important;
}
.image-cert-school{
 left:19.5%!important;top:58.3%!important;width:65%!important;
 text-align:left!important;padding-left:1.5%!important;box-sizing:border-box;
 font-size:clamp(8px,1.0vw,14px)!important;line-height:1.05!important;
 max-height:3.8%;overflow:hidden!important;
}
.image-cert-rank{
 left:31%!important;top:61.2%!important;width:23%!important;
 text-align:center!important;font-size:clamp(10px,1.25vw,18px)!important;
 line-height:1!important;max-height:3.5%;overflow:hidden!important;
}
.image-cert-role{left:20%!important;top:50.1%!important;width:55%!important;text-align:center!important}
.image-cert-number{left:2.5%!important;top:87.3%!important;max-width:30%;white-space:normal;overflow-wrap:anywhere}
.image-cert-photo{right:4.2%!important;top:29.5%!important;width:9.2%!important;height:17.5%!important}
.image-cert-qr{right:2.7%!important;top:2.8%!important;width:5.7%!important}
.image-cert-signers{display:none!important}
/* The uploaded artwork already contains the authorized signatory names and signatures.
   Avoid printing a second, misaligned dynamic signatory row over the artwork. */
@media print{
 .image-certificate{width:285mm!important;height:190mm!important;margin:10mm auto!important}
 .image-cert-name{font-size:18pt!important}
 .image-cert-parent,.image-cert-class,.image-cert-school{font-size:9pt!important}
 .image-cert-rank{font-size:12pt!important}
 .image-cert-number{font-size:7pt!important}
}

/* v34: automatically populate the open centre of certificate artwork */
.image-cert-details{position:absolute;left:23%;right:22%;top:32%;height:29%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:5px 12px;box-sizing:border-box;color:#101d55;z-index:2}
.image-cert-intro{font:700 clamp(10px,1.15vw,16px)/1.15 Arial,sans-serif;letter-spacing:.35px;color:#9b1724}
.image-cert-details .image-cert-name{position:static;width:100%;min-height:0;font:bold clamp(17px,2.2vw,31px)/1.12 Georgia,serif;color:#101d55;text-shadow:0 1px 1px #fff;padding:0 4px}
.image-cert-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 18px;font:700 clamp(10px,1.05vw,15px)/1.2 Arial,sans-serif;color:#18275f}
.image-cert-school{position:static;width:100%;font:700 clamp(10px,1.05vw,15px)/1.2 Arial,sans-serif;color:#18275f}
.image-cert-achievement{width:100%;font:600 clamp(10px,1.05vw,15px)/1.3 Georgia,serif;color:#24315e}
.image-cert-achievement b{color:#a10f1a}
@media print{.image-cert-details{print-color-adjust:exact;-webkit-print-color-adjust:exact}.image-cert-intro{font-size:12pt}.image-cert-details .image-cert-name{font-size:22pt}.image-cert-meta,.image-cert-school,.image-cert-achievement{font-size:10pt}}

/* v34 certificate wording: complete automatically populated student declaration */
.image-cert-details{top:30.5%;height:33%;gap:5px}
.image-cert-intro{font-size:clamp(12px,1.2vw,17px);text-transform:none}
.image-cert-details .image-cert-name{font-size:clamp(17px,2vw,29px)}
.image-cert-meta,.image-cert-school,.image-cert-achievement{font-size:clamp(10px,1vw,14px);line-height:1.25}
@media print{
 .image-cert-details{top:30.5%;height:33%;gap:4px}
 .image-cert-intro{font-size:12pt}
 .image-cert-details .image-cert-name{font-size:19pt}
 .image-cert-meta,.image-cert-school,.image-cert-achievement{font-size:9pt;line-height:1.2}
}

/* v34.1: certificate text stack spacing and photo position correction */
.image-cert-details{gap:5px!important}
.image-cert-details>*{position:static!important;flex:0 0 auto!important;max-width:100%;box-sizing:border-box}
.image-cert-details .image-cert-name{font-size:clamp(16px,1.8vw,24px)!important;line-height:1.15!important}
.image-cert-details .image-cert-achievement{line-height:1.22!important;overflow-wrap:anywhere}
.image-cert-details .image-cert-school{line-height:1.2!important;max-height:none!important;overflow:visible!important}
.image-cert-photo{top:31%!important}
@media print{
 .image-cert-details{top:29.5%!important;height:34%!important;gap:4px!important}
 .image-cert-details .image-cert-name{font-size:18pt!important;line-height:1.12!important}
 .image-cert-details .image-cert-meta-line,.image-cert-details .image-cert-school{font-size:9pt!important;line-height:1.18!important}
 .image-cert-details .image-cert-intro{font-size:11pt!important}
 .image-cert-details .image-cert-achievement{font-size:9pt!important;line-height:1.18!important}
 .image-cert-photo{top:31%!important}
}

/* v34 name visibility and line-spacing correction */
.image-cert-details{
 top:28.5%!important;height:40%!important;justify-content:flex-start!important;
 gap:9px!important;padding:8px 12px!important;overflow:visible!important;
}
.image-cert-details .image-cert-name{
 display:block!important;position:static!important;flex:0 0 auto!important;
 width:100%!important;height:auto!important;min-height:1.45em!important;
 line-height:1.45!important;font-size:21px!important;
 padding:3px 0 5px!important;margin:2px 0!important;
 white-space:normal!important;overflow:visible!important;
}
.image-cert-details .image-cert-intro,
.image-cert-details .image-cert-meta-line,
.image-cert-details .image-cert-school,
.image-cert-details .image-cert-achievement{
 display:block!important;position:static!important;flex:0 0 auto!important;
 height:auto!important;min-height:0!important;line-height:1.4!important;
 margin:0!important;padding:2px 0!important;overflow:visible!important;
}
.image-cert-photo{top:34%!important}
@media print{
 .image-cert-details{top:28.5%!important;height:40%!important;gap:8px!important}
 .image-cert-details .image-cert-name{font-size:16pt!important;line-height:1.45!important;min-height:1.45em!important}
 .image-cert-details .image-cert-intro{font-size:11pt!important}
 .image-cert-details .image-cert-meta-line,.image-cert-details .image-cert-school,.image-cert-details .image-cert-achievement{font-size:9pt!important;line-height:1.35!important}
 .image-cert-photo{top:34%!important}
}

/* v34 final: move certificate text below ribbon and enlarge all lines */
.image-cert-details{
 top:36%!important;height:34%!important;justify-content:flex-start!important;
 gap:10px!important;padding:10px 12px!important;overflow:visible!important;
}
.image-cert-details .image-cert-intro{
 font-size:18px!important;line-height:1.35!important;font-weight:700!important;
 margin:0!important;padding:2px 0!important;
}
.image-cert-details .image-cert-name{
 font-size:25px!important;line-height:1.4!important;min-height:1.4em!important;
 padding:4px 0 6px!important;margin:2px 0!important;
}
.image-cert-details .image-cert-meta-line,
.image-cert-details .image-cert-school{
 font-size:15px!important;line-height:1.4!important;padding:3px 0!important;
}
.image-cert-details .image-cert-achievement{
 font-size:15px!important;line-height:1.4!important;padding:4px 0!important;
}
.image-cert-photo{top:38%!important}
@media print{
 .image-cert-details{top:36%!important;height:34%!important;gap:8px!important;padding:8px 10px!important}
 .image-cert-details .image-cert-intro{font-size:14pt!important;line-height:1.3!important}
 .image-cert-details .image-cert-name{font-size:19pt!important;line-height:1.35!important}
 .image-cert-details .image-cert-meta-line,.image-cert-details .image-cert-school,.image-cert-details .image-cert-achievement{font-size:11pt!important;line-height:1.35!important}
 .image-cert-photo{top:38%!important}
}

/* v34 stable certificate line flow: prevent school and achievement text collision */
.image-cert-details{
  top:29%!important;height:43%!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:flex-start!important;gap:6px!important;
  padding:7px 12px!important;overflow:visible!important;
}
.image-cert-details > *{
  position:static!important;display:block!important;flex:0 0 auto!important;width:100%!important;
  max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;
  box-sizing:border-box!important;text-align:center!important;white-space:normal!important;overflow:visible!important;
}
.image-cert-details .image-cert-intro{font-size:17px!important;line-height:1.25!important;padding:1px 0!important}
.image-cert-details .image-cert-name{font-size:22px!important;line-height:1.25!important;padding:2px 0!important}
.image-cert-details .image-cert-meta-line{font-size:13px!important;line-height:1.3!important;padding:2px 0!important}
.image-cert-details .image-cert-school{
  font-size:9px!important;line-height:1.4!important;padding:3px 8px!important;
  white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
}
.image-cert-details .image-cert-achievement{
  font-size:11px!important;line-height:1.35!important;padding:2px 0!important;
  white-space:normal!important;overflow-wrap:break-word!important;
}
@media print{
  .image-cert-details{top:29%!important;height:43%!important;gap:5px!important;padding:6px 10px!important}
  .image-cert-details .image-cert-intro{font-size:12pt!important;line-height:1.2!important}
  .image-cert-details .image-cert-name{font-size:17pt!important;line-height:1.2!important}
  .image-cert-details .image-cert-meta-line{font-size:9pt!important;line-height:1.25!important}
  .image-cert-details .image-cert-school{font-size:7.5pt!important;line-height:1.3!important}
  .image-cert-details .image-cert-achievement{font-size:8.5pt!important;line-height:1.3!important}
}

/* Final v34: keep certificate wording fully below the title ribbon */
.image-cert-details{
  top:34%!important;
  height:43%!important;
  gap:8px!important;
  padding:8px 12px!important;
}
.image-cert-details .image-cert-intro{
  font-size:18px!important;
  line-height:1.25!important;
}
@media print{
  .image-cert-details{top:34%!important;height:43%!important;gap:7px!important;padding:7px 10px!important}
  .image-cert-details .image-cert-intro{font-size:13pt!important;line-height:1.2!important}
}

/* School/institution row: reserve real vertical height so descenders are never clipped */
.image-cert-details .image-cert-school{
  display:block!important;
  position:static!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:24px!important;
  padding:3px 10px!important;
  margin:0!important;
  font-family:Georgia,serif!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:18px!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
@media print{
  .image-cert-details .image-cert-school{
    min-height:22px!important;
    font-size:8pt!important;
    line-height:15px!important;
    padding:3px 8px!important;
  }
}

/* Slightly larger school name font */
.image-cert-details .image-cert-school{
  font-size:11px!important;
  line-height:19px!important;
  min-height:26px!important;
}
@media print{
  .image-cert-details .image-cert-school{
    font-size:8.5pt!important;
    line-height:16px!important;
    min-height:24px!important;
  }
}

/* Larger school/institution name */
.image-cert-details .image-cert-school{
  font-size:13px!important;
  line-height:22px!important;
  min-height:30px!important;
  padding:4px 10px!important;
}
@media print{
  .image-cert-details .image-cert-school{
    font-size:10pt!important;
    line-height:18px!important;
    min-height:28px!important;
  }
}

/* Slightly larger participation / achievement statement */
.image-cert-details .image-cert-achievement{
  font-size:13px!important;
  line-height:1.45!important;
  padding:3px 0!important;
}
@media print{
  .image-cert-details .image-cert-achievement{
    font-size:10pt!important;
    line-height:1.4!important;
    padding:2px 0!important;
  }
}
