.ybo-wrap{max-width:850px;margin:40px auto;padding:20px}.ybo-card,.ybo-success{background:#fff;padding:35px;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.08)}.ybo-card h1,.ybo-success h1{text-align:center}.ybo-intro{text-align:center;margin-bottom:28px}.ybo-card label{display:block;font-weight:600;margin:16px 0 7px}.ybo-card input[type=text],.ybo-card input[type=number],.ybo-card input[type=email],.ybo-card input[type=tel],.ybo-card select,.ybo-success input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #ccd2d8;border-radius:8px;min-height:46px}.ybo-oath{margin:28px 0;padding:22px;background:#f5f7fa;border-left:5px solid #1f6feb;border-radius:8px}.ybo-consent{display:flex!important;gap:10px;align-items:flex-start}.ybo-consent input{margin-top:4px}.ybo-card button,.ybo-button{display:inline-block;width:100%;box-sizing:border-box;border:0;border-radius:8px;padding:15px;margin-top:20px;font-size:17px;font-weight:700;cursor:pointer;text-align:center;text-decoration:none}.ybo-error{padding:12px;margin-bottom:20px;background:#fff0f0;border:1px solid #e0a0a0;border-radius:8px}.ybo-success{text-align:center;max-width:700px;margin:50px auto}.ybo-success-icon{font-size:50px;font-weight:700}.ybo-certificate-id{display:inline-block;padding:12px 18px;margin:10px 0;font-size:20px;font-weight:700;letter-spacing:1px;background:#f5f7fa;border-radius:8px}.ybo-note{font-size:14px;opacity:.75}@media(max-width:600px){.ybo-card{padding:20px}.ybo-wrap{margin:20px auto;padding:10px}}

.ybo-certificate-wrap{max-width:1100px;margin:30px auto;padding:15px}
.ybo-certificate{position:relative;background:#fff;border:10px solid #d7b46a;outline:2px solid #222;outline-offset:-20px;padding:70px 80px;min-height:680px;box-sizing:border-box;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.12)}
.ybo-cert-top{display:flex;justify-content:space-between;align-items:center;gap:20px;text-transform:uppercase;letter-spacing:1px}
.ybo-cert-logo{font-size:20px;font-weight:800}
.ybo-cert-label{font-size:13px}
.ybo-cert-kicker{margin-top:55px;font-size:15px;letter-spacing:4px;font-weight:700}
.ybo-certificate h1{font-size:38px;margin:12px 0 25px}
.ybo-cert-text{max-width:760px;margin:14px auto;font-size:17px;line-height:1.8}
.ybo-cert-name{font-size:34px;font-weight:800;margin:20px 0;border-bottom:2px solid #222;display:inline-block;padding:0 35px 8px}
.ybo-cert-meta{display:flex;justify-content:center;gap:55px;margin:35px 0 45px}
.ybo-cert-meta div{min-width:150px}
.ybo-cert-meta span,.ybo-cert-bottom small{display:block;font-size:12px;opacity:.7;text-transform:uppercase;letter-spacing:1px}
.ybo-cert-meta strong{display:block;margin-top:5px}
.ybo-cert-bottom{display:flex;justify-content:space-between;align-items:end;gap:35px;margin-top:25px}
.ybo-cert-sign,.ybo-cert-status{min-width:180px}
.ybo-sign-line{width:180px;border-top:1px solid #222;margin:0 auto 8px}
.ybo-cert-qr img{width:130px;height:130px;display:block;margin:auto}
.ybo-cert-actions{display:flex;gap:12px;justify-content:center;margin:25px 0 8px}
.ybo-cert-actions button,.ybo-cert-actions a{border:0;border-radius:8px;padding:13px 20px;font-weight:700;text-decoration:none;cursor:pointer}
.ybo-button-secondary{margin-top:10px!important}
.ybo-cert-help{text-align:center;font-size:13px;opacity:.7}
.ybo-cert-error{text-align:center;padding:30px;background:#fff0f0;border-radius:10px}
@media(max-width:700px){
 .ybo-certificate{padding:45px 25px;min-height:auto}
 .ybo-cert-top,.ybo-cert-bottom,.ybo-cert-meta{flex-direction:column;align-items:center;gap:22px}
 .ybo-certificate h1{font-size:28px}
 .ybo-cert-name{font-size:25px;padding:0 10px 6px}
 .ybo-cert-actions{flex-direction:column}
}
@media print{
 body *{visibility:hidden!important}
 #ybo-certificate,#ybo-certificate *{visibility:visible!important}
 #ybo-certificate{position:absolute;left:0;top:0;width:100%;margin:0;box-shadow:none}
 .ybo-cert-actions,.ybo-cert-help{display:none!important}
 @page{size:A4 landscape;margin:0}
}

.ybo-cert-actions .ybo-pdf-button{font-weight:800}

/* =========================================================
   YBO v6 PORTAL DESIGN + RESPONSIVE SYSTEM
   ========================================================= */
.ybo-portal{font-family:Arial,"Noto Sans",sans-serif;color:#333;line-height:1.65;background:#fff;overflow:hidden}
.ybo-portal *{box-sizing:border-box}
.ybo-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.ybo-topbar{background:#f4f4f4;border-bottom:1px solid #ddd;color:#444;font-size:13px}
.ybo-topbar-inner{display:flex;justify-content:space-between;gap:15px;padding:8px 0}
.ybo-top-links{display:flex;gap:8px;align-items:center}.ybo-top-links a{color:#333;text-decoration:none}.ybo-top-links a:hover{text-decoration:underline}
.ybo-tricolor{height:5px;display:flex}.ybo-tricolor i{flex:1}.ybo-tricolor i:nth-child(1){background:#ff9933}.ybo-tricolor i:nth-child(2){background:#fff}.ybo-tricolor i:nth-child(3){background:#138808}
.ybo-home-header{background:#fff;border-bottom:1px solid #d7d7d7}.ybo-header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:16px 0}
.ybo-brand{display:flex;align-items:center;gap:13px;min-width:260px}.ybo-brand-mark{width:54px;height:54px;border:2px solid #1a237e;color:#1a237e;display:grid;place-items:center;font-weight:800;font-size:20px;border-radius:2px}.ybo-brand strong{display:block;color:#1a237e;font-size:22px;line-height:1.15}.ybo-brand span{display:block;color:#666;font-size:13px;margin-top:4px}
.ybo-home-nav{display:flex;align-items:center;justify-content:flex-end;gap:0;flex-wrap:wrap}.ybo-home-nav a{padding:10px 12px;color:#333;text-decoration:none;font-size:14px;border-bottom:3px solid transparent}.ybo-home-nav a:hover,.ybo-home-nav a.is-active{color:#005a9c;border-bottom-color:#ff9933}
.ybo-hero{background:#f6f8fa;border-bottom:1px solid #ddd;padding:72px 0}.ybo-hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:60px;align-items:center}.ybo-eyebrow{color:#005a9c;font-weight:700;font-size:14px;letter-spacing:1px;margin:0 0 12px}.ybo-hero h1{font-size:50px;line-height:1.12;color:#1a237e;margin:0 0 10px}.ybo-hero h2{font-size:27px;color:#333;margin:0 0 18px}.ybo-lead{font-size:18px;color:#555;max-width:720px}.ybo-hero-actions,.ybo-actions-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.ybo-primary-btn,.ybo-secondary-btn,.ybo-link-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 22px;border-radius:3px;text-decoration:none;font-weight:700;font-size:14px}.ybo-primary-btn{background:#005a9c;color:#fff;border:1px solid #005a9c}.ybo-primary-btn:hover{background:#00477a;color:#fff}.ybo-secondary-btn{background:#fff;color:#005a9c;border:1px solid #005a9c}.ybo-secondary-btn:hover{background:#eef6fb;color:#005a9c}.ybo-link-btn{background:#1a237e;color:#fff;margin-top:10px}.ybo-hero-panel{background:#fff;border:1px solid #d7d7d7;padding:28px;box-shadow:0 4px 16px rgba(0,0,0,.05)}.ybo-panel-accent{height:4px;background:linear-gradient(90deg,#ff9933 33%,#fff 33%,#fff 66%,#138808 66%);margin:-28px -28px 22px}.ybo-hero-panel h3{color:#1a237e;margin:0 0 8px}.ybo-hero-panel ul{padding-left:20px;margin-bottom:0}.ybo-hero-panel li{margin:6px 0}
.ybo-section{padding:68px 0}.ybo-grey{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.ybo-section-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.ybo-section-heading.centered{justify-content:center}.ybo-section-heading span{width:5px;height:38px;background:#ff9933;display:block;flex:0 0 5px}.ybo-section-heading h2{color:#1a237e;font-size:34px;line-height:1.25;margin:0}.ybo-section p{font-size:17px;color:#4d4d4d;max-width:950px}.ybo-center{text-align:center;margin-left:auto;margin-right:auto}.ybo-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:36px}.ybo-steps article{background:#fff;border:1px solid #ddd;border-top:4px solid #005a9c;padding:25px 20px;text-align:center}.ybo-steps article:nth-child(1){border-top-color:#ff9933}.ybo-steps article:nth-child(3){border-top-color:#138808}.ybo-steps b{display:block;color:#1a237e;font-size:30px}.ybo-steps h3{color:#1a237e;margin:8px 0}.ybo-steps p{font-size:15px;margin:0}.ybo-commitment{text-align:center;padding:65px 0;border-top:5px solid #ff9933;border-bottom:5px solid #138808}.ybo-commitment h2{font-size:38px;color:#1a237e;margin:0 0 10px}.ybo-commitment h3{font-size:25px;color:#333;margin:0 0 10px}.ybo-commitment p{margin:0 auto;color:#555}.ybo-commitment .ybo-primary-btn{margin-top:22px}.ybo-home-footer{background:#263238;color:#ddd}.ybo-footer-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:50px;padding:45px 0}.ybo-home-footer h3{color:#fff;font-size:19px;margin:0 0 10px}.ybo-home-footer p{font-size:14px;margin:5px 0}.ybo-home-footer a{color:#ddd;text-decoration:none}.ybo-home-footer a:hover{text-decoration:underline}.ybo-footer-bottom{border-top:1px solid #555;text-align:center;padding:18px 20px;font-size:13px;color:#ccc}

/* Global plugin mobile responsiveness */
.ybo-wrap{width:min(850px,calc(100% - 30px));padding:15px;margin:30px auto}.ybo-card,.ybo-success{width:100%;max-width:100%;overflow:hidden}.ybo-card input,.ybo-card select,.ybo-card textarea{font-size:16px}.ybo-oath{overflow-wrap:anywhere;word-break:normal}.ybo-certificate-wrap{width:min(1100px,calc(100% - 20px));overflow:visible}.ybo-certificate{overflow:hidden}.ybo-cert-name,.ybo-cert-text,.ybo-certificate strong{overflow-wrap:anywhere}
@media(max-width:980px){.ybo-header-inner{align-items:flex-start;flex-direction:column}.ybo-home-nav{width:100%;justify-content:flex-start}.ybo-hero-grid{grid-template-columns:1fr;gap:35px}.ybo-hero-panel{max-width:700px}.ybo-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.ybo-container{width:min(100% - 28px,1180px)}.ybo-topbar-inner{display:block;text-align:center;line-height:1.8}.ybo-top-links{justify-content:center;flex-wrap:wrap}.ybo-header-inner{padding:13px 0}.ybo-brand strong{font-size:19px}.ybo-brand-mark{width:46px;height:46px;font-size:17px}.ybo-home-nav{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ybo-home-nav a{text-align:center;border:1px solid #ddd;margin:2px;padding:9px 6px}.ybo-home-nav a.is-active{border-color:#005a9c;background:#f3f8fc}.ybo-hero{padding:45px 0}.ybo-hero h1{font-size:clamp(32px,9vw,45px)}.ybo-hero h2{font-size:23px}.ybo-lead{font-size:16px}.ybo-hero-actions,.ybo-actions-row{flex-direction:column}.ybo-primary-btn,.ybo-secondary-btn,.ybo-link-btn{width:100%}.ybo-section{padding:48px 0}.ybo-section-heading h2{font-size:27px}.ybo-steps{grid-template-columns:1fr}.ybo-steps article{padding:22px 18px}.ybo-commitment{padding:50px 0}.ybo-commitment h2{font-size:30px}.ybo-commitment h3{font-size:22px}.ybo-footer-grid{grid-template-columns:1fr;gap:28px;padding:35px 0}.ybo-card{padding:22px!important;border-radius:8px!important}.ybo-certificate{padding:40px 18px!important;border-width:6px!important;outline-offset:-12px!important;min-height:auto!important}.ybo-cert-top,.ybo-cert-bottom,.ybo-cert-meta{flex-direction:column;align-items:center;gap:18px}.ybo-certificate h1{font-size:26px!important}.ybo-cert-name{font-size:24px}.ybo-cert-actions{flex-direction:column;width:100%}.ybo-cert-actions a,.ybo-cert-actions button{width:100%}}
@media(max-width:420px){.ybo-container{width:calc(100% - 22px)}.ybo-home-nav{grid-template-columns:1fr}.ybo-top-links span{font-size:12px}.ybo-brand{min-width:0}.ybo-hero-panel{padding:21px}.ybo-panel-accent{margin:-21px -21px 18px}.ybo-card{padding:18px!important}.ybo-card input,.ybo-card select,.ybo-card textarea{min-height:48px}.ybo-certificate-wrap{width:calc(100% - 10px);padding:2px}.ybo-certificate{padding:32px 14px!important}.ybo-cert-qr img{width:105px!important;height:105px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ybo-portal *{transition:none!important;animation:none!important}}

/* =========================================================
   v7 FULL-PAGE PORTAL MODE
   The dedicated Home page uses the plugin portal chrome instead
   of the active WordPress theme header/footer.
   ========================================================= */
body.ybo-portal-page .wp-site-blocks > header,
body.ybo-portal-page .wp-site-blocks > footer {
    display: none !important;
}
body.ybo-portal-page .wp-site-blocks {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.ybo-portal-page main.wp-block-group,
body.ybo-portal-page .entry-content,
body.ybo-portal-page .wp-block-post-content {
    margin-top: 0 !important;
}
body.ybo-portal-page .ybo-portal {
    width: 100%;
    max-width: none;
    margin: 0;
}
body.ybo-portal-page .ybo-home-nav a {
    white-space: nowrap;
}
@media (max-width: 700px) {
    body.ybo-portal-page .ybo-home-nav a {
        white-space: normal;
    }
}

/* =========================================================
   v7.2 PREMIUM OATH REGISTRATION FORM
   Government-inspired Indian palette + subtle background art
   ========================================================= */
.ybo-form-page{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    min-height:100vh;
    padding:54px 18px 80px;
    background:#eef5f8 url('./oath-bg.svg') center/cover no-repeat;
}
.ybo-form-page::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    background:rgba(255,255,255,.78);
}
.ybo-form-page::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(180deg,rgba(255,153,51,.045),rgba(255,255,255,0) 35%,rgba(19,136,8,.04));
    pointer-events:none;
}
.ybo-form-backdrop{display:none}
.ybo-form-shell{position:relative;z-index:1;width:min(980px,100%);margin:0 auto}
.ybo-form-hero{text-align:center;margin:0 auto 24px;max-width:850px}
.ybo-form-hero-badge{
    display:inline-flex;align-items:center;justify-content:center;
    padding:7px 14px;border:1px solid #cbdde7;border-radius:999px;
    background:rgba(255,255,255,.82);color:#005a9c;font-size:12px;font-weight:800;letter-spacing:1.2px;
    box-shadow:0 4px 14px rgba(0,42,70,.05)
}
.ybo-form-hero h1{margin:15px 0 8px;color:#172b4d;font-size:clamp(32px,4.5vw,48px);line-height:1.12;letter-spacing:-.5px}
.ybo-form-hero p{margin:0 auto;color:#536579;font-size:17px;max-width:760px;line-height:1.65}
.ybo-form-hero-rule{height:5px;display:flex;width:180px;margin:20px auto 0;border-radius:4px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.ybo-form-hero-rule span{flex:1;background:#ff9933}.ybo-form-hero-rule i{flex:1;background:#fff}.ybo-form-hero-rule b{flex:1;background:#138808}
.ybo-form-card{
    background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(201,215,224,.95);
    border-radius:14px!important;
    padding:38px!important;
    box-shadow:0 18px 55px rgba(20,54,75,.12)!important;
    backdrop-filter:blur(7px);
}
.ybo-form-card::before{content:"";display:block;height:4px;margin:-38px -38px 30px;border-radius:14px 14px 0 0;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%);border-bottom:1px solid #dbe5eb}
.ybo-form-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid #e2e9ee}
.ybo-form-card-head h2{margin:0;color:#172b4d;font-size:27px;line-height:1.25}.ybo-form-card-head p{margin:6px 0 0;color:#66788a;font-size:14px}.ybo-language-badge{white-space:nowrap;padding:8px 12px;border:1px solid #d7e2e9;border-radius:5px;background:#f7fafc;color:#31536d;font-size:12px;font-weight:700}
.ybo-registration-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.ybo-form-section-title{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:10px 0 5px;padding:13px 0 10px;border-bottom:1px solid #e5ebef}
.ybo-form-section-title span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf2f8;color:#005a9c;font-size:12px;font-weight:800}
.ybo-form-section-title strong{display:block;color:#173b5c;font-size:15px}.ybo-form-section-title small{display:block;color:#7a8997;font-size:12px;margin-top:2px}.ybo-form-section-location{margin-top:24px}.ybo-form-section-oath{margin-top:28px}
.ybo-field{min-width:0;margin-top:18px}.ybo-field-full{grid-column:1/-1}
.ybo-field label{display:block;margin:0 0 7px;color:#263b4f;font-size:14px;font-weight:700}.ybo-field label em{color:#d04a32;font-style:normal}
.ybo-form-card input[type=text],.ybo-form-card input[type=number],.ybo-form-card input[type=email],.ybo-form-card input[type=tel],.ybo-form-card input[type=date],.ybo-form-card select{
    width:100%;min-height:48px;box-sizing:border-box;padding:12px 13px;border:1px solid #c8d5df;border-radius:6px;background:#fff;color:#263b4f;font-size:16px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease
}
.ybo-form-card input:hover,.ybo-form-card select:hover{border-color:#9fb4c3}.ybo-form-card input:focus,.ybo-form-card select:focus{border-color:#005a9c;box-shadow:0 0 0 3px rgba(0,90,156,.10);background:#fcfeff}
.ybo-form-card input[readonly]{background:#f3f7fa;color:#31536d;font-weight:700;cursor:not-allowed}
.ybo-field-help{display:block;margin-top:5px;color:#778896;font-size:11px;line-height:1.45}
.ybo-oath{grid-column:1/-1;margin:22px 0 5px!important;padding:0!important;background:#f7fafc!important;border:1px solid #d7e3ea!important;border-left:5px solid #005a9c!important;border-radius:8px!important;box-shadow:none!important;overflow:hidden}
.ybo-oath-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;background:linear-gradient(90deg,#f2f7fb,#fff);border-bottom:1px solid #dce6ec}
.ybo-oath-kicker{display:block;color:#005a9c;font-size:10px;font-weight:800;letter-spacing:1.5px;margin-bottom:3px}.ybo-oath-header h2{margin:0;color:#173b5c;font-size:20px}.ybo-oath-dot{width:12px;height:12px;border-radius:50%;background:#138808;box-shadow:0 0 0 5px rgba(19,136,8,.09)}
#ybo-oath-text-en,#ybo-oath-text-hi{padding:19px 20px}.ybo-oath p{margin:0;color:#3e5264;font-size:15px;line-height:1.85}
.ybo-consent{grid-column:1/-1;display:flex!important;gap:11px;align-items:flex-start;margin:22px 0 0!important;padding:15px 16px;border:1px solid #dce6ec;border-radius:7px;background:#fbfcfd;color:#43586a;font-size:13px!important;line-height:1.55}.ybo-consent input{flex:0 0 auto;width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;accent-color:#005a9c}.ybo-consent span{display:block}
.ybo-submit-area{margin-top:24px;padding-top:22px;border-top:1px solid #e1e8ed;text-align:center}.ybo-submit-area button{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:auto;min-width:245px;margin:0!important;padding:14px 24px!important;border:1px solid #005a9c!important;border-radius:5px!important;background:#005a9c!important;color:#fff!important;font-size:15px!important;font-weight:800!important;box-shadow:0 7px 18px rgba(0,90,156,.16);transition:transform .15s ease,background .15s ease,box-shadow .15s ease}.ybo-submit-area button:hover{background:#00477a!important;box-shadow:0 9px 22px rgba(0,90,156,.2);transform:translateY(-1px)}.ybo-submit-area button b{font-size:20px;font-weight:400}.ybo-submit-area p{margin:9px 0 0;color:#7b8995;font-size:11px}
.ybo-error{color:#8a2418!important;background:#fff3f1!important;border:1px solid #efc0b8!important;border-left:4px solid #c0392b!important;border-radius:6px!important}
@media(max-width:760px){
 .ybo-form-page{padding:34px 12px 55px;background-position:center top}
 .ybo-form-hero{margin-bottom:17px}.ybo-form-hero-badge{font-size:10px;letter-spacing:.9px}.ybo-form-hero h1{font-size:32px}.ybo-form-hero p{font-size:15px}.ybo-form-card{padding:24px!important;border-radius:10px!important}.ybo-form-card::before{margin:-24px -24px 22px;border-radius:10px 10px 0 0}
 .ybo-form-card-head{display:block}.ybo-form-card-head h2{font-size:23px}.ybo-language-badge{display:inline-flex;margin-top:10px}.ybo-registration-form{grid-template-columns:1fr;gap:0}.ybo-field-full{grid-column:1}.ybo-form-section-title{grid-column:1}.ybo-oath{grid-column:1}.ybo-consent{grid-column:1}.ybo-submit-area{grid-column:1}.ybo-submit-area button{width:100%;min-width:0}.ybo-oath-header{padding:15px}.ybo-oath p{font-size:14px;line-height:1.75}.ybo-form-page::before{background:rgba(255,255,255,.84)}
}
@media(max-width:420px){.ybo-form-page{padding:25px 8px 45px}.ybo-form-hero h1{font-size:28px}.ybo-form-hero p{font-size:14px}.ybo-form-card{padding:19px!important}.ybo-form-card::before{margin:-19px -19px 19px}.ybo-form-card-head h2{font-size:21px}.ybo-field{margin-top:15px}.ybo-field label{font-size:13px}.ybo-form-card input[type=text],.ybo-form-card input[type=number],.ybo-form-card input[type=email],.ybo-form-card input[type=tel],.ybo-form-card input[type=date],.ybo-form-card select{min-height:49px}.ybo-consent{font-size:12px!important;padding:12px}.ybo-submit-area p{font-size:10px}}

/* =========================================================
   v7.3 FIXES: FULL-WIDTH DESKTOP FORM + REAL YOUTH BOARD LOGO
   ========================================================= */
.ybo-form-page{
    width:100vw;
    max-width:none;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    min-height:100vh;
}
.ybo-form-shell{
    width:min(1120px,calc(100vw - 64px));
}
.ybo-form-logo{
    display:block;
    width:min(373px,70vw);
    height:auto;
    max-height:74px;
    object-fit:contain;
    object-position:center;
    margin:0 auto 18px;
}
.ybo-form-card-head{min-width:0}
.ybo-form-card-head > div:first-child{min-width:0}
.ybo-language-badge{flex:0 0 auto}
.ybo-registration-form{width:100%;min-width:0}
.ybo-field{min-width:0}
.ybo-form-card input,.ybo-form-card select{max-width:100%}

/* Real Youth Board logo in portal header */
.ybo-brand-logo{
    display:block;
    width:230px;
    height:auto;
    max-height:55px;
    object-fit:contain;
    object-position:left center;
}
.ybo-brand > div:last-child{display:none}

/* Certificate logo */
.ybo-cert-logo img{
    display:block;
    width:min(270px,100%);
    height:auto;
    max-height:58px;
    object-fit:contain;
    object-position:left center;
}
.ybo-cert-top{align-items:center}

/* Better certificate layout on desktop */
@media(min-width:701px){
    .ybo-certificate-wrap{width:min(1180px,calc(100% - 40px))}
    .ybo-certificate{padding-left:85px;padding-right:85px}
}

/* Full-width form desktop breakpoints */
@media(min-width:761px){
    .ybo-form-page{padding-left:32px;padding-right:32px}
    .ybo-form-card{width:100%}
}

/* Mobile logo/header */
@media(max-width:760px){
    .ybo-form-page{
        width:100vw;
        margin-left:calc(50% - 50vw);
        margin-right:calc(50% - 50vw);
        padding-left:12px;
        padding-right:12px;
    }
    .ybo-form-shell{width:100%;max-width:100%}
    .ybo-form-logo{width:min(300px,82vw);max-height:60px;margin-bottom:14px}
    .ybo-form-card-head{gap:8px}
    .ybo-language-badge{max-width:100%;white-space:normal}
    .ybo-brand-logo{width:min(230px,78vw);max-height:52px}
    .ybo-cert-logo img{width:min(245px,85vw);max-height:55px;margin:0 auto}
}

@media(max-width:420px){
    .ybo-form-logo{width:86vw;max-height:52px}
    .ybo-brand-logo{width:210px}
    .ybo-cert-logo img{width:220px}
}


/* v7.4: hide WordPress theme page titles so plugin pages control their own headings */
body .wp-block-post-title,
body .entry-title,
body .page-title {
    display: none !important;
}

/* v7.4: native Devanagari typography for the fully Hindi form */
.ybo-form-page.ybo-hindi,
.ybo-form-page.ybo-hindi input,
.ybo-form-page.ybo-hindi select,
.ybo-form-page.ybo-hindi button,
.ybo-form-page.ybo-hindi textarea {
    font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
}
.ybo-form-page.ybo-hindi .ybo-form-card-head p,
.ybo-form-page.ybo-hindi .ybo-field-help,
.ybo-form-page.ybo-hindi .ybo-submit-area p {
    line-height: 1.7;
}


/* =========================================================
   v7.5 LANGUAGE SWITCHER + SUCCESS CERTIFICATE
   ========================================================= */
.ybo-language-switcher{
    display:inline-flex;
    align-items:center;
    gap:0;
    border:1px solid #cfdde6;
    border-radius:6px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 2px 8px rgba(20,54,75,.04);
}
.ybo-lang-btn{
    appearance:none;
    border:0!important;
    border-right:1px solid #dbe5eb!important;
    background:#fff!important;
    color:#31536d!important;
    min-height:36px!important;
    padding:7px 12px!important;
    margin:0!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.2!important;
    cursor:pointer!important;
    box-shadow:none!important;
}
.ybo-lang-btn:last-child{border-right:0!important}
.ybo-lang-btn:hover{background:#f2f7fa!important;color:#005a9c!important}
.ybo-lang-btn.is-active{background:#005a9c!important;color:#fff!important}

.ybo-success-page{
    width:min(1100px,calc(100vw - 40px));
    margin:40px auto 70px;
    color:#173b5c;
}
.ybo-success-banner{
    display:flex;
    align-items:center;
    gap:18px;
    padding:22px 26px;
    margin-bottom:24px;
    border:1px solid #d5e3ea;
    border-top:4px solid #138808;
    background:#f7fafc;
    border-radius:8px;
}
.ybo-success-banner h1{margin:0 0 5px;color:#173b5c;font-size:30px;line-height:1.2}
.ybo-success-banner p{margin:3px 0;color:#5d7182;font-size:15px}
.ybo-success-id-label strong{color:#005a9c}
.ybo-success-icon{
    display:grid;place-items:center;
    width:54px;height:54px;flex:0 0 54px;
    border-radius:50%;
    background:#138808;color:#fff;
    font-size:30px;font-weight:800;
    box-shadow:0 0 0 6px rgba(19,136,8,.10)
}
.ybo-success-certificate{
    position:relative;
    background:#fff;
    border:7px solid #005a9c;
    outline:2px solid #d9e4ea;
    outline-offset:-14px;
    padding:58px 72px 48px;
    box-shadow:0 18px 55px rgba(20,54,75,.12);
    overflow:hidden;
}
.ybo-success-certificate::before{
    content:"";
    position:absolute;left:0;right:0;top:0;height:6px;
    background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%);
}
.ybo-success-certificate h2{margin:10px 0 18px;text-align:center;color:#172b4d;font-size:31px}
.ybo-success-actions{
    display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;
    margin:24px 0 10px;
}
.ybo-success-actions .ybo-button{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:46px;padding:12px 20px;
    border:1px solid #005a9c;border-radius:5px;
    background:#005a9c;color:#fff!important;text-decoration:none!important;
    font-size:14px;font-weight:800;cursor:pointer;
}
.ybo-success-actions .ybo-button:hover{background:#00477a}
.ybo-success-actions .ybo-button-secondary{background:#173b5c!important;border-color:#173b5c!important}
.ybo-success-actions .ybo-button-outline{background:#fff!important;color:#005a9c!important}
.ybo-success-note{text-align:center;color:#71818e;font-size:12px;margin:12px auto;max-width:800px}

@media(max-width:760px){
    .ybo-language-switcher{margin-top:10px}
    .ybo-lang-btn{min-height:40px!important;padding:8px 14px!important}
    .ybo-success-page{width:calc(100vw - 24px);margin:22px auto 45px}
    .ybo-success-banner{align-items:flex-start;padding:18px;gap:13px}
    .ybo-success-banner h1{font-size:24px}
    .ybo-success-banner p{font-size:13px}
    .ybo-success-icon{width:44px;height:44px;flex-basis:44px;font-size:24px}
    .ybo-success-certificate{padding:42px 18px 34px;border-width:5px;outline-offset:-10px}
    .ybo-success-certificate h2{font-size:24px}
    .ybo-success-actions{flex-direction:column;align-items:stretch}
    .ybo-success-actions .ybo-button{width:100%}
}

@media print{
    body *{visibility:hidden!important}
    .ybo-success-certificate,.ybo-success-certificate *{visibility:visible!important}
    .ybo-success-certificate{position:absolute;left:0;top:0;width:100%;margin:0;box-shadow:none!important}
    .ybo-success-banner,.ybo-success-actions,.ybo-success-note{display:none!important}
}

/* =========================================================
   v7.6 RELIABILITY + PAGE TITLE + PDF SUCCESS ACTIONS
   ========================================================= */
body.ybo-plugin-page .entry-title,
body.ybo-plugin-page .wp-block-post-title,
body.ybo-plugin-page .page-title,
body.ybo-plugin-page header.wp-block-template-part + .wp-block-post-title{
    display:none !important;
}
.ybo-language-switcher{position:relative;z-index:20;pointer-events:auto}
.ybo-lang-btn{position:relative;z-index:21;pointer-events:auto !important;user-select:none;-webkit-tap-highlight-color:transparent}
.ybo-form-page button.ybo-lang-btn:focus-visible{outline:3px solid #ff9933;outline-offset:2px}
.ybo-success-page .ybo-pdf-button{background:#005a9c!important;color:#fff!important}
.ybo-success-page .ybo-pdf-button::before{content:'↓';margin-right:8px;font-size:16px}
.ybo-success-certificate{width:100%;box-sizing:border-box}
@media(max-width:760px){
  .ybo-success-certificate{padding-left:18px;padding-right:18px}
}

/* =========================================================
   v7.7 SUCCESS + BILINGUAL CERTIFICATE + PRINT/PDF UX
   ========================================================= */
body.ybo-plugin-page .wp-site-blocks > header,
body.ybo-plugin-page .wp-site-blocks > footer {
    display:none !important;
}
body.ybo-plugin-page .wp-site-blocks{padding-top:0!important;padding-bottom:0!important}
body.ybo-plugin-page .wp-block-post-content,
body.ybo-plugin-page .entry-content{margin-top:0!important}

.ybo-certificate-page{width:100%;max-width:1180px;margin:0 auto;padding:34px 20px 70px;box-sizing:border-box}
.ybo-registration-success-banner{display:flex;align-items:center;gap:16px;max-width:1100px;margin:0 auto 24px;padding:18px 22px;border:1px solid #d5e3ea;border-top:4px solid #138808;background:#f7fafc;border-radius:8px}
.ybo-registration-success-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#138808;color:#fff;font-size:26px;font-weight:800;box-shadow:0 0 0 5px rgba(19,136,8,.10)}
.ybo-registration-success-banner h1{margin:0 0 4px;color:#173b5c;font-size:27px;line-height:1.25}
.ybo-registration-success-banner p{margin:3px 0;color:#5d7182;font-size:14px}
.ybo-registration-success-banner .ybo-success-id-label strong{color:#005a9c}
.ybo-certificate-page.ybo-certificate-hindi,
.ybo-certificate-page.ybo-certificate-hindi .ybo-certificate,
.ybo-certificate-page.ybo-certificate-hindi .ybo-cert-actions,
.ybo-certificate-page.ybo-certificate-hindi .ybo-cert-help{
    font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",Arial,sans-serif;
}
.ybo-certificate-hindi .ybo-cert-label,
.ybo-certificate-hindi .ybo-cert-kicker{letter-spacing:1px}
.ybo-certificate-hindi .ybo-cert-text{line-height:2}
.ybo-certificate-hindi .ybo-cert-meta span,
.ybo-certificate-hindi .ybo-cert-bottom small{letter-spacing:0}
.ybo-certificate-page .ybo-cert-actions{margin-top:22px}
.ybo-certificate-page .ybo-pdf-button{background:#005a9c!important;color:#fff!important}
.ybo-certificate-page .ybo-pdf-button:hover{background:#00477a!important}
.ybo-certificate-page .ybo-cert-actions button,
.ybo-certificate-page .ybo-cert-actions a{min-height:46px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.ybo-certificate-page .ybo-cert-help{margin:10px auto 0;max-width:900px;color:#71818e;font-size:12px;text-align:center}

@media(max-width:760px){
    .ybo-certificate-page{width:100%;padding:22px 10px 48px}
    .ybo-registration-success-banner{align-items:flex-start;padding:15px;gap:12px}
    .ybo-registration-success-banner h1{font-size:22px}
    .ybo-registration-success-banner p{font-size:13px}
    .ybo-registration-success-icon{width:42px;height:42px;flex-basis:42px;font-size:22px}
}

@media print{
    body.ybo-plugin-page .wp-site-blocks > header,
    body.ybo-plugin-page .wp-site-blocks > footer,
    body.ybo-plugin-page .ybo-registration-success-banner,
    body.ybo-plugin-page .ybo-cert-actions,
    body.ybo-plugin-page .ybo-cert-help{display:none!important}
    body.ybo-plugin-page .ybo-certificate-page{display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
    body.ybo-plugin-page .ybo-certificate-wrap{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
    body.ybo-plugin-page .ybo-certificate{box-shadow:none!important;margin:0!important;width:100%!important}
}


/* =========================================================
   v7.8 RESPONSIVE FORM + CERTIFICATE ALIGNMENT
   ========================================================= */
.ybo-form-page,
.ybo-form-page *,
.ybo-certificate-page,
.ybo-certificate-page *{box-sizing:border-box}

.ybo-form-page{overflow-x:hidden}
.ybo-form-shell{width:min(1120px,100%);max-width:100%;padding:0}
.ybo-form-card{width:100%;max-width:100%;overflow:hidden}
.ybo-registration-form{width:100%;min-width:0}
.ybo-registration-form > *{min-width:0}
.ybo-field{width:100%;min-width:0}
.ybo-field input,
.ybo-field select{max-width:100%;min-width:0}
.ybo-form-card-head{min-width:0}
.ybo-form-card-head > div:first-child{min-width:0;flex:1 1 auto}
.ybo-language-switcher{flex:0 0 auto}

.ybo-certificate-english .ybo-cert-text{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:100%;
    max-width:760px;
}
.ybo-certificate-english .ybo-cert-kicker,
.ybo-certificate-english .ybo-certificate h1,
.ybo-certificate-english .ybo-cert-name,
.ybo-certificate-english .ybo-cert-meta{
    text-align:center;
}
.ybo-certificate-english .ybo-cert-meta{justify-content:center}

@media (max-width: 900px){
    .ybo-form-page{padding-left:14px;padding-right:14px}
    .ybo-form-shell{width:100%}
    .ybo-form-card{padding:28px!important}
    .ybo-form-card::before{margin:-28px -28px 24px}
    .ybo-form-card-head{gap:14px}
    .ybo-registration-form{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
    .ybo-certificate-page{padding-left:14px;padding-right:14px}
    .ybo-certificate{padding-left:45px!important;padding-right:45px!important}
}

@media (max-width: 680px){
    .ybo-form-page{padding:22px 10px 42px}
    .ybo-form-hero{padding:0 4px}
    .ybo-form-logo{width:min(290px,82vw);max-height:58px}
    .ybo-form-hero h1{font-size:clamp(26px,8vw,34px);line-height:1.18}
    .ybo-form-hero p{font-size:14px;line-height:1.55}
    .ybo-form-card{padding:20px!important;border-radius:10px!important}
    .ybo-form-card::before{margin:-20px -20px 18px}
    .ybo-form-card-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:20px;padding-bottom:16px}
    .ybo-form-card-head h2{font-size:22px}
    .ybo-form-card-head p{font-size:13px;line-height:1.55}
    .ybo-language-switcher{width:100%;display:flex}
    .ybo-lang-btn{flex:1 1 50%;min-height:42px!important}
    .ybo-registration-form{grid-template-columns:1fr;column-gap:0;row-gap:0}
    .ybo-form-section-title,
    .ybo-field-full,
    .ybo-oath,
    .ybo-consent,
    .ybo-submit-area{grid-column:1}
    .ybo-form-section-title{margin-top:16px}
    .ybo-field{margin-top:14px}
    .ybo-field label{font-size:13px}
    .ybo-form-card input[type=text],
    .ybo-form-card input[type=number],
    .ybo-form-card input[type=email],
    .ybo-form-card input[type=tel],
    .ybo-form-card input[type=date],
    .ybo-form-card select{
        width:100%;
        min-height:50px;
        font-size:16px;
    }
    .ybo-oath{margin-top:18px!important}
    .ybo-oath-header{padding:14px;gap:10px}
    .ybo-oath-header h2{font-size:19px}
    #ybo-oath-text-en,#ybo-oath-text-hi{padding:16px}
    .ybo-oath p{font-size:14px;line-height:1.8}
    .ybo-consent{margin-top:18px!important;padding:13px!important;gap:9px}
    .ybo-consent input{width:20px!important;height:20px!important}
    .ybo-submit-area{margin-top:20px;padding-top:18px}
    .ybo-submit-area button{width:100%;min-width:0;min-height:50px}

    .ybo-certificate-page{padding:16px 8px 40px}
    .ybo-registration-success-banner{width:100%;padding:14px;gap:10px}
    .ybo-registration-success-banner h1{font-size:20px}
    .ybo-registration-success-banner p{font-size:12px;line-height:1.55}
    .ybo-certificate-wrap{width:100%!important;max-width:100%!important}
    .ybo-certificate{width:100%!important;min-height:0!important;padding:38px 18px 28px!important;border-width:5px!important;outline-offset:-10px}
    .ybo-cert-top{flex-direction:column;gap:10px;text-align:center}
    .ybo-cert-logo img{width:min(235px,82vw);max-height:52px;margin:0 auto}
    .ybo-cert-label{font-size:11px}
    .ybo-cert-kicker{margin-top:30px;font-size:12px;letter-spacing:2px}
    .ybo-certificate h1{font-size:25px;line-height:1.3;margin:10px 0 18px}
    .ybo-cert-text{font-size:15px;line-height:1.75!important;max-width:100%}
    .ybo-cert-name{font-size:24px;max-width:100%;word-break:break-word;padding:0 8px 6px;margin:16px auto}
    .ybo-cert-meta{flex-direction:column;gap:16px;margin:25px 0 30px}
    .ybo-cert-meta div{min-width:0;width:100%}
    .ybo-cert-bottom{flex-direction:column;align-items:center;gap:25px;margin-top:20px}
    .ybo-cert-sign,.ybo-cert-status{min-width:0;width:100%;text-align:center}
    .ybo-cert-actions{flex-direction:column;width:100%;gap:9px}
    .ybo-cert-actions button,.ybo-cert-actions a{width:100%;min-height:48px}
    .ybo-cert-help{font-size:11px;line-height:1.6}
}

@media (max-width: 380px){
    .ybo-form-page{padding-left:7px;padding-right:7px}
    .ybo-form-card{padding:16px!important}
    .ybo-form-card::before{margin:-16px -16px 16px}
    .ybo-form-hero h1{font-size:25px}
    .ybo-form-hero p{font-size:13px}
    .ybo-form-logo{width:88vw}
    .ybo-certificate-page{padding-left:5px;padding-right:5px}
    .ybo-certificate{padding-left:13px!important;padding-right:13px!important}
    .ybo-cert-name{font-size:21px}
    .ybo-cert-text{font-size:14px}
}

/* Prevent browser/theme wrappers from creating horizontal overflow. */
body.ybo-plugin-page,
body.ybo-plugin-page #page,
body.ybo-plugin-page .site,
body.ybo-plugin-page .wp-site-blocks,
body.ybo-plugin-page .wp-block-post-content,
body.ybo-plugin-page .entry-content{
    max-width:100%;
    overflow-x:hidden;
}

/* =========================================================
   v7.8.1 PRINT FIX — ONE-PAGE A4 LANDSCAPE CERTIFICATE
   Applies to both English and Hindi certificates.
   ========================================================= */
@media print {
    @page {
        size: A4 landscape;
        margin: 0 !important;
    }

    html,
    body {
        width: 297mm !important;
        height: 210mm !important;
        min-width: 297mm !important;
        min-height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    body.ybo-plugin-page {
        position: relative !important;
        overflow: hidden !important;
    }

    /* Hide everything outside the certificate without leaving visible
       headers, buttons or page content in the print flow. */
    body.ybo-plugin-page .ybo-registration-success-banner,
    body.ybo-plugin-page .ybo-cert-actions,
    body.ybo-plugin-page .ybo-cert-help,
    body.ybo-plugin-page .wp-site-blocks > header,
    body.ybo-plugin-page .wp-site-blocks > footer {
        display: none !important;
    }

    body.ybo-plugin-page .ybo-certificate-page {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 297mm !important;
        height: 210mm !important;
        min-width: 297mm !important;
        min-height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
        display: block !important;
    }

    body.ybo-plugin-page .ybo-certificate-wrap {
        width: 297mm !important;
        height: 210mm !important;
        min-width: 297mm !important;
        min-height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.ybo-plugin-page .ybo-certificate {
        position: relative !important;
        width: 297mm !important;
        height: 210mm !important;
        min-width: 297mm !important;
        min-height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 18mm 22mm 12mm !important;
        border: 2.5mm solid #d7b46a !important;
        outline: 0.5mm solid #222 !important;
        outline-offset: -5mm !important;
        box-shadow: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        break-before: avoid-page !important;
        break-after: avoid-page !important;
        break-inside: avoid-page !important;
    }

    body.ybo-plugin-page .ybo-certificate::before {
        display: block !important;
    }

    body.ybo-plugin-page .ybo-cert-top {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10mm !important;
    }

    body.ybo-plugin-page .ybo-cert-logo img {
        width: 72mm !important;
        max-width: 72mm !important;
        height: auto !important;
        max-height: 18mm !important;
        object-fit: contain !important;
    }

    body.ybo-plugin-page .ybo-cert-label {
        font-size: 4mm !important;
        line-height: 1.2 !important;
    }

    body.ybo-plugin-page .ybo-cert-kicker {
        margin-top: 12mm !important;
        font-size: 4.2mm !important;
        line-height: 1.2 !important;
        letter-spacing: 1.5mm !important;
    }

    body.ybo-plugin-page .ybo-certificate h1 {
        font-size: 10mm !important;
        line-height: 1.15 !important;
        margin: 3mm 0 5mm !important;
    }

    body.ybo-plugin-page .ybo-cert-text {
        width: 100% !important;
        max-width: 200mm !important;
        margin: 3mm auto !important;
        font-size: 4.1mm !important;
        line-height: 1.45 !important;
        text-align: center !important;
    }

    body.ybo-plugin-page .ybo-cert-name {
        max-width: 220mm !important;
        margin: 4mm auto !important;
        padding: 0 8mm 2mm !important;
        font-size: 9mm !important;
        line-height: 1.25 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.ybo-plugin-page .ybo-cert-meta {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 15mm !important;
        margin: 7mm 0 7mm !important;
    }

    body.ybo-plugin-page .ybo-cert-meta div {
        min-width: 38mm !important;
        max-width: 75mm !important;
        text-align: center !important;
    }

    body.ybo-plugin-page .ybo-cert-meta span,
    body.ybo-plugin-page .ybo-cert-bottom small {
        font-size: 3.1mm !important;
        line-height: 1.25 !important;
    }

    body.ybo-plugin-page .ybo-cert-meta strong {
        display: block !important;
        margin-top: 1mm !important;
        font-size: 3.8mm !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    body.ybo-plugin-page .ybo-cert-bottom {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        gap: 12mm !important;
        margin-top: 4mm !important;
    }

    body.ybo-plugin-page .ybo-cert-sign,
    body.ybo-plugin-page .ybo-cert-status {
        min-width: 50mm !important;
        max-width: 70mm !important;
        text-align: center !important;
    }

    body.ybo-plugin-page .ybo-sign-line {
        width: 48mm !important;
        margin: 0 auto 2mm !important;
    }

    body.ybo-plugin-page .ybo-cert-sign strong,
    body.ybo-plugin-page .ybo-cert-status strong {
        display: block !important;
        font-size: 3.7mm !important;
        line-height: 1.25 !important;
    }

    body.ybo-plugin-page .ybo-cert-qr {
        width: 40mm !important;
        min-width: 40mm !important;
        text-align: center !important;
    }

    body.ybo-plugin-page .ybo-cert-qr img {
        width: 30mm !important;
        height: 30mm !important;
        display: block !important;
        margin: 0 auto 1mm !important;
    }

    body.ybo-plugin-page .ybo-cert-qr small {
        display: block !important;
        font-size: 2.8mm !important;
        line-height: 1.2 !important;
    }

    /* Keep Hindi print typography compact enough for the same A4 landscape
       canvas while preserving Devanagari rendering. */
    body.ybo-plugin-page .ybo-certificate-hindi {
        font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", Arial, sans-serif !important;
    }

    body.ybo-plugin-page .ybo-certificate-hindi .ybo-cert-kicker {
        letter-spacing: 0.7mm !important;
        margin-top: 10mm !important;
    }

    body.ybo-plugin-page .ybo-certificate-hindi .ybo-certificate h1 {
        font-size: 9mm !important;
    }

    body.ybo-plugin-page .ybo-certificate-hindi .ybo-cert-text {
        font-size: 3.8mm !important;
        line-height: 1.55 !important;
        max-width: 205mm !important;
    }

    body.ybo-plugin-page .ybo-certificate-hindi .ybo-cert-name {
        font-size: 8.5mm !important;
    }
}


/* v7.9.3: UNICEF-only branding on both English and Hindi certificates */
.ybo-cert-logos{
    display:flex;
    align-items:center;
    gap:22px;
    min-width:0;
}
.ybo-cert-logos .ybo-cert-logo{flex:0 1 auto;min-width:0}
.ybo-cert-unicef-logo{display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.ybo-cert-unicef-logo img{
    display:block;
    width:120px;
    height:auto;
    max-height:52px;
    object-fit:contain;
}
@media(max-width:760px){
    .ybo-cert-logos{width:100%;justify-content:center;flex-wrap:wrap;gap:12px 18px}
    .ybo-cert-logos .ybo-cert-logo img{width:min(210px,72vw);max-height:48px;margin:0 auto}
    .ybo-cert-unicef-logo img{width:min(110px,32vw);max-height:44px}
}
@media print{
    .ybo-cert-logos{display:flex!important;align-items:center!important;gap:18px!important}
    .ybo-cert-unicef-logo img{width:105px!important;max-height:38px!important}
}

/* v7.9.3: temporarily use UNICEF branding only; Youth Board logo removed */
.ybo-cert-logos-unicef-only{justify-content:flex-start!important;gap:0!important}
.ybo-cert-logos-unicef-only .ybo-cert-unicef-logo img{width:170px;max-height:62px}
.ybo-form-logo{object-fit:contain}
@media(max-width:760px){
  .ybo-cert-logos-unicef-only{justify-content:center!important}
  .ybo-cert-logos-unicef-only .ybo-cert-unicef-logo img{width:min(180px,60vw);max-height:58px}
}
@media print{
  .ybo-cert-logos-unicef-only{justify-content:flex-start!important}
  .ybo-cert-logos-unicef-only .ybo-cert-unicef-logo img{width:150px!important;max-height:52px!important}
}

/* =========================================================
   v7.9.5 MOBILE BOX-SIZING / VIEWPORT FIX
   Keep the form card and full-bleed page inside the actual
   viewport. Padding must be included in the declared width.
   ========================================================= */
.ybo-form-page,
.ybo-form-page *,
.ybo-form-shell,
.ybo-form-card,
.ybo-registration-form,
.ybo-field,
.ybo-field-full,
.ybo-oath,
.ybo-consent,
.ybo-submit-area{
    box-sizing:border-box!important;
}

@media (max-width:760px){
    html, body{
        width:100%!important;
        max-width:100%!important;
        margin:0!important;
        padding:0!important;
        overflow-x:hidden!important;
    }

    body.ybo-plugin-page .wp-site-blocks,
    body.ybo-plugin-page .wp-block-post-content,
    body.ybo-plugin-page .entry-content,
    body.ybo-plugin-page main,
    body.ybo-plugin-page #primary,
    body.ybo-plugin-page .site-main{
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
        overflow-x:hidden!important;
    }

    .ybo-form-page{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-left:0!important;
        margin-right:0!important;
        padding-left:10px!important;
        padding-right:10px!important;
        box-sizing:border-box!important;
        overflow-x:hidden!important;
    }

    .ybo-form-shell{
        width:100%!important;
        max-width:1120px!important;
        min-width:0!important;
        margin-left:auto!important;
        margin-right:auto!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
    }

    .ybo-form-card{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-left:0!important;
        margin-right:0!important;
        padding:20px!important;
        box-sizing:border-box!important;
        overflow:hidden!important;
    }

    .ybo-form-card::before{
        margin-left:-20px!important;
        margin-right:-20px!important;
    }

    .ybo-form-card input[type=text],
    .ybo-form-card input[type=number],
    .ybo-form-card input[type=email],
    .ybo-form-card input[type=tel],
    .ybo-form-card input[type=date],
    .ybo-form-card select,
    .ybo-form-card textarea{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
    }

    .ybo-registration-form{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        grid-template-columns:minmax(0,1fr)!important;
    }
}

@media (max-width:420px){
    .ybo-form-page{
        padding-left:8px!important;
        padding-right:8px!important;
    }
    .ybo-form-card{
        padding:16px!important;
    }
    .ybo-form-card::before{
        margin-left:-16px!important;
        margin-right:-16px!important;
    }
}

/* =========================================================
   v7.9.4 MOBILE VIEWPORT FIX
   Prevent WordPress/theme content gutters from creating a
   permanent left offset or horizontal overflow on phones.
   ========================================================= */
@media (max-width: 760px){
    html, body{
        width:100%;
        max-width:100%;
        overflow-x:hidden!important;
    }

    body.ybo-plugin-page #page,
    body.ybo-plugin-page .site,
    body.ybo-plugin-page .wp-site-blocks,
    body.ybo-plugin-page .wp-block-post-content,
    body.ybo-plugin-page .entry-content{
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        padding-left:0!important;
        padding-right:0!important;
        overflow-x:hidden!important;
    }

    .ybo-form-page{
        width:100vw!important;
        max-width:100vw!important;
        margin-left:calc(50% - 50vw)!important;
        margin-right:calc(50% - 50vw)!important;
        padding-left:10px!important;
        padding-right:10px!important;
        overflow-x:hidden!important;
    }

    .ybo-form-shell{
        width:100%!important;
        max-width:1120px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        min-width:0!important;
    }

    .ybo-form-hero,
    .ybo-form-card{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }

    .ybo-form-card{
        margin-left:0!important;
        margin-right:0!important;
    }

    .ybo-registration-form,
    .ybo-field,
    .ybo-field-full,
    .ybo-form-section-title,
    .ybo-oath,
    .ybo-consent,
    .ybo-submit-area{
        min-width:0!important;
        max-width:100%!important;
    }

    .ybo-form-card input[type=text],
    .ybo-form-card input[type=number],
    .ybo-form-card input[type=email],
    .ybo-form-card input[type=tel],
    .ybo-form-card input[type=date],
    .ybo-form-card select,
    .ybo-form-card textarea{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }
}

@media (max-width:420px){
    .ybo-form-page{
        padding-left:8px!important;
        padding-right:8px!important;
    }
}

/* =========================================================
   v7.9.7 — iOS/Safari DATE FIELD WIDTH FIX
   Force the native date input to obey the same box width as all
   other fields on iPhone/iPad. Safari's native date control can
   otherwise retain an intrinsic width larger than its CSS width.
   ========================================================= */
.ybo-form-card input[type="date"]{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-inline-size:0!important;
    inline-size:100%!important;
    -webkit-box-sizing:border-box!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    text-align:left!important;
    text-align-last:left!important;
    padding-left:14px!important;
    padding-right:42px!important;
    overflow:hidden!important;
}

/* Keep the native iOS calendar affordance available while the input
   itself is constrained to the exact field width. */
.ybo-form-card input[type="date"]::-webkit-calendar-picker-indicator{
    opacity:.75;
    width:20px!important;
    height:20px!important;
    margin:0!important;
    padding:0!important;
}

.ybo-form-card input[type="date"]::-webkit-date-and-time-value{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    text-align:left!important;
    margin:0!important;
    padding:0!important;
}

@media (max-width:760px){
    .ybo-form-card input[type="date"]{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        min-inline-size:0!important;
        inline-size:100%!important;
        height:50px!important;
        min-height:50px!important;
        font-size:16px!important;
        line-height:50px!important;
        padding:0 42px 0 14px!important;
        margin:0!important;
        -webkit-appearance:none!important;
        appearance:none!important;
    }

    .ybo-form-card input[type="date"]::-webkit-date-and-time-value{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        text-align:left!important;
        line-height:normal!important;
    }
}


/* v7.9.8 — visible DD/MM/YYYY placeholder for native date field */
.ybo-date-field-wrap{position:relative;width:100%;max-width:100%;min-width:0;}
.ybo-date-field-wrap #ybo_date_of_birth{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
.ybo-date-placeholder{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:16px;line-height:1;color:#7b8794;pointer-events:none;z-index:3;white-space:nowrap;}
.ybo-date-placeholder.is-hidden{display:none;}
@media (max-width:760px){
  .ybo-date-field-wrap{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden;}
  .ybo-date-field-wrap #ybo_date_of_birth{width:100%!important;max-width:100%!important;min-width:0!important;min-inline-size:0!important;inline-size:100%!important;box-sizing:border-box!important;margin:0!important;}
  .ybo-date-placeholder{left:14px;font-size:16px;}
}
