/* Navitas World School, Ballia 6.5 — VIBGYOR + Safari-friendly, high-contrast
   This stylesheet is the final layer after all legacy CSS (no destructive removal). */
:root{--nws-violet:#6f32b2;--nws-indigo:#3d399b;--nws-blue:#1768d5;--nws-green:#16824f;--nws-yellow:#ffd445;--nws-orange:#ef7a2d;--nws-red:#cb2c48;--nws-ink:#17243f;--nws-rainbow:linear-gradient(90deg,#6f32b2 0 14.28%,#3d399b 14.28% 28.56%,#1768d5 28.56% 42.84%,#16824f 42.84% 57.12%,#ffd445 57.12% 71.40%,#ef7a2d 71.40% 85.68%,#cb2c48 85.68% 100%)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden}
body.bjs-editorial-theme-v57{overflow-x:hidden!important;background:#fafcff!important;color:var(--nws-ink)!important;-webkit-font-smoothing:antialiased}
body.bjs-editorial-theme-v57 img{max-width:100%}body.bjs-editorial-theme-v57 :focus-visible{outline:3px solid #ef7a2d!important;outline-offset:3px}
body.bjs-editorial-theme-v57 .site-header .utility-bar{background:#222d69!important;color:#fff!important;border-top:7px solid #6f32b2!important;border-image:var(--nws-rainbow) 1!important}
body.bjs-editorial-theme-v57 .site-header .utility-bar strong{color:#ffe477!important}
body.bjs-editorial-theme-v57 .site-header .brand-bar,body.bjs-editorial-theme-v57 .site-header .primary-nav{background:#fff!important}
body.bjs-editorial-theme-v57 .site-header .brand-bar .brand-inner{display:grid!important;grid-template-columns:minmax(220px,1fr) auto auto!important;min-height:110px!important;height:auto!important;align-items:center!important;gap:clamp(12px,2.3vw,35px)!important;padding-block:11px!important;overflow:visible!important}
body.bjs-editorial-theme-v57 .site-header .brand-identity{display:inline-flex!important;min-width:0!important;max-width:100%!important;width:max-content!important;text-decoration:none!important}
body.bjs-editorial-theme-v57 .site-header .brand-inner .brand-logo-wrap{display:block!important;flex:0 1 auto!important;min-width:0!important;width:max-content!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important;background:none!important}
body.bjs-editorial-theme-v57 .site-header .brand-identity:after{display:none!important;content:none!important}
body.bjs-editorial-theme-v57 .site-header .nws-header-type{display:flex!important;display:-webkit-flex!important;flex-direction:column!important;gap:2px!important;position:relative!important;padding:4px 0 13px!important;white-space:nowrap!important}
body.bjs-editorial-theme-v57 .site-header .nws-header-navitas{font-family:Arial,Helvetica,sans-serif!important;font-weight:900!important;font-size:clamp(31px,3.7vw,55px)!important;letter-spacing:.015em!important;line-height:1.03!important;color:#242b70!important}
body.bjs-editorial-theme-v57 .site-header .nws-header-world{font-family:Arial,Helvetica,sans-serif!important;font-weight:800!important;font-size:clamp(12px,1.25vw,19px)!important;letter-spacing:.15em!important;line-height:1.25!important;color:#1756a5!important}
body.bjs-editorial-theme-v57 .site-header .nws-header-world b{color:#6431a5!important}
body.bjs-editorial-theme-v57 .site-header .nws-header-type:after{content:''!important;display:block!important;position:absolute!important;bottom:0!important;left:0!important;right:0!important;height:5px!important;background:var(--nws-rainbow)!important;border-radius:9px!important}
body.bjs-editorial-theme-v57 .site-header .brand-tagline{display:flex;justify-self:center;gap:8px;white-space:nowrap;color:#242b70!important}
body.bjs-editorial-theme-v57 .site-header .brand-cta{background:#1768d5!important;color:#fff!important;border:2px solid #1768d5!important;border-radius:13px!important;white-space:nowrap!important}
body.bjs-editorial-theme-v57 .site-header .brand-cta:hover{background:#144b9b!important;border-color:#144b9b!important}
body.bjs-editorial-theme-v57 .site-header .primary-nav{border-bottom:3px solid #1768d5!important}
body.bjs-editorial-theme-v57 .site-header .primary-nav .bjs-menu>li>a{color:#242c62!important;font-weight:800!important}
body.bjs-editorial-theme-v57 .site-header .primary-nav .bjs-menu>li>a:hover{color:#6f32b2!important}
body.bjs-editorial-theme-v57 .nws-transition-notice{background:#ecf3ff!important;color:#1a3562!important;border-block:1px solid #d6e3fc!important}
body.bjs-editorial-theme-v57 .nws-transition-notice strong{color:#1e2c5d!important}
body.bjs-editorial-theme-v57 main :is(.section-kicker,.bjs-page-eyebrow,.bjs57-eyebrow):not(.bjs57-eyebrow-on-dark){color:#6431a5!important}
body.bjs-editorial-theme-v57 main a.bjs57-text-link{color:#174b9b!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-hero{background:#232c69!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-hero-copy{background:radial-gradient(circle at 5% 8%,#753db9 0%,#4242a1 38%,#202d72 75%,#142342 100%)!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-hero-copy h1{color:#fff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-hero-copy h1 em{color:#ffe477!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-hero-copy p{color:#f2f6ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-btn-gold{background:#ffd445!important;border:2px solid #ffd445!important;color:#17243f!important;border-radius:13px!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts{background:#f5f8ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts>a{border-top:6px solid #6f32b2!important;background:#f2eaff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts>a:nth-child(2){border-color:#3d399b!important;background:#ebedff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts>a:nth-child(3){border-color:#1768d5!important;background:#e5f2ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts>a:nth-child(4){border-color:#16824f!important;background:#e5f8ed!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts strong,body.bjs-editorial-home-v57 .bjs57 .bjs57-shortcuts small{color:#17243f!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-values>div{border-radius:17px!important;border-top:6px solid #6f32b2!important;background:#f3eaff!important;padding:22px!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-values>div:nth-child(2){border-color:#1768d5!important;background:#e5f4ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-values>div:nth-child(3){border-color:#16824f!important;background:#e4f8ed!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-values strong,body.bjs-editorial-home-v57 .bjs57 .bjs57-values p{color:#17243f!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning{background:linear-gradient(130deg,#263e88,#2c216c)!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning h2{color:#fff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning h2 em{color:#ffe477!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning .bjs57-section-head>p{color:#f0f4ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-grid{gap:12px!important;border:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item{border:0!important;border-top:7px solid #6f32b2!important;background:#f3eaff!important;border-radius:17px!important;padding:22px!important;box-shadow:0 8px 24px rgba(0,0,0,.1)!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item:nth-child(7n+2){border-color:#3d399b!important;background:#ebedff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item:nth-child(7n+3){border-color:#1768d5!important;background:#e5f2ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item:nth-child(7n+4){border-color:#16824f!important;background:#e4f8ed!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item:nth-child(7n+5){border-color:#ffd445!important;background:#fff8d9!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item:nth-child(7n+6){border-color:#ef7a2d!important;background:#fff0e4!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item:nth-child(7n+7){border-color:#cb2c48!important;background:#ffe9ef!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item :is(h3,p,span){color:#17243f!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-academic-grid>a{border-radius:17px!important;background:#f3eaff!important;border-top:7px solid #6f32b2!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-academic-grid>a:nth-child(2){background:#e5f2ff!important;border-color:#1768d5!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-academic-grid>a:nth-child(3){background:#e4f8ed!important;border-color:#16824f!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-academic-grid h3,body.bjs-editorial-home-v57 .bjs57 .bjs57-academic-grid p{color:#17243f!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-admission{background:radial-gradient(circle at 94% 12%,#435fc1,#37267b 68%,#261859)!important;border-top:7px solid #ffd445!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-admission h2{color:#fff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-admission h2 em,body.bjs-editorial-home-v57 .bjs57 .bjs57-admission .bjs57-eyebrow{color:#ffe477!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-admission p,body.bjs-editorial-home-v57 .bjs57 .bjs57-admission aside span,body.bjs-editorial-home-v57 .bjs57 .bjs57-admission aside small{color:#f6f7ff!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-admission aside img.nws-white-logo-on-dark{display:block!important;max-width:210px!important;width:80%!important;height:auto!important;object-fit:contain!important;padding:0!important;background:transparent!important;border:0!important;filter:brightness(0) invert(1)!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-trust{background:#edf4ff!important;color:#1a3358!important}
body.bjs-editorial-home-v57 .bjs57 .bjs57-trust p{color:#1a3358!important}
/* Footer: never put light text on the light legal notice. */
body.bjs-editorial-theme-v57 .site-footer,body.bjs-editorial-theme-v57 .site-footer .footer-main{background:#202a68!important;color:#f7f9ff!important}
body.bjs-editorial-theme-v57 .site-footer{border-top:7px solid #6f32b2!important;border-image:var(--nws-rainbow) 1!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main :is(.footer-brand,.footer-column,.footer-contact){color:#f4f7ff!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .footer-column>h3{color:#ffe483!important;font-size:15px!important;font-weight:900!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main :is(.footer-brand,.footer-column,.footer-contact) :is(p,span,strong,li,small){color:#f5f7ff!important;opacity:1!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main :is(.footer-column,.footer-contact) a{color:#fff!important;text-decoration:none!important;opacity:1!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main :is(.footer-column,.footer-contact) a:hover{color:#ffe483!important;text-decoration:underline!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .footer-contact a.footer-directions{background:#ffd445!important;color:#16233f!important;border-radius:10px!important;padding:10px 14px!important;font-weight:900!important;display:inline-flex!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .footer-badges span{background:#eaf2ff!important;color:#14254d!important;border-left:4px solid #ffd445!important;border-radius:9px!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main a.footer-logo{display:flex!important;align-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:90px!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .footer-logo img.nws-footer-emblem{background:transparent!important;border:0!important;border-radius:0!important;object-fit:contain!important;padding:0!important;filter:brightness(0) invert(1)!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .footer-logo .nws-footer-nameplate strong{color:#fff!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .footer-logo .nws-footer-nameplate small{color:#ffe483!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .bjs-v43-footer-identity{position:relative!important;background:#eaf2ff!important;border:2px solid #b8d0fc!important;border-left:6px solid #1768d5!important;color:#172850!important;border-radius:15px!important;padding:20px!important;margin-top:25px!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .bjs-v43-footer-identity :is(strong,p,a,span){color:#172850!important;opacity:1!important}
body.bjs-editorial-theme-v57 .site-footer .footer-main .bjs-v43-footer-identity a{color:#174b9b!important;text-decoration:underline!important}
body.bjs-editorial-theme-v57 .site-footer .footer-bottom{background:#111a46!important;color:#fff!important}
body.bjs-editorial-theme-v57 .site-footer .footer-bottom a,body.bjs-editorial-theme-v57 .site-footer .footer-bottom p{color:#f4f7ff!important}
/* Bilingual, graphic-only admissions creative: zero borrowed school/building/child images */
body.bjs-editorial-theme-v57 .bjs-admission-popup .bjs-popup-brand-row{display:none!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-flyer{padding:17px 16px;background:linear-gradient(145deg,#f5eaff,#e7f3ff 55%,#f0fff4)!important;border-radius:17px!important;text-align:center!important;color:#152752!important;border:1px solid #c9daf8!important;overflow:hidden!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-rainbow{height:7px;background:var(--nws-rainbow);border-radius:7px;margin-bottom:9px}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-flyer :is(.nws-popup-motto,.nws-popup-hi,.nws-popup-session,.nws-popup-classes){display:block!important;color:#152752!important;margin:5px auto!important;line-height:1.4!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-big{display:block!important;font-family:Arial,sans-serif!important;font-size:clamp(25px,4vw,36px)!important;font-weight:900!important;line-height:1.08!important;color:#6c269d!important;letter-spacing:-.02em}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-hi{font-size:clamp(18px,3.4vw,27px)!important;font-weight:900!important;color:#b0294b!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-session{font-weight:900!important;background:#ffd445!important;color:#182443!important;border-radius:11px!important;padding:7px 12px!important;width:max-content!important;max-width:100%!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-classes{font-weight:800!important;color:#174b9b!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-motto{font-size:12px!important;font-weight:800!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-contact{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px 18px!important;font-size:13px!important;font-weight:900!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-contact a{color:#174b9b!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .bjs-popup-stream-grid{display:none!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .bjs-v43-popup-declaration{background:#f1f5ff!important;color:#1a3155!important;border-radius:10px!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .bjs-v43-popup-declaration p{color:#1a3155!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .bjs-admission-popup-dialog{max-height:calc(100vh - 24px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
/* Safari responsive fallback: do not require JS animations for content visibility */
@media(max-width:1180px){body.bjs-editorial-theme-v57 .site-header .brand-inner .brand-tagline{display:none!important}body.bjs-editorial-theme-v57 .site-header .brand-bar .brand-inner{grid-template-columns:minmax(0,1fr) auto!important}body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){body.bjs-editorial-theme-v57 .site-header .brand-bar .brand-inner{grid-template-columns:minmax(0,1fr) auto!important}body.bjs-editorial-theme-v57 .site-header .mobile-menu-toggle{display:flex!important}}
@media(max-width:620px){body.bjs-editorial-theme-v57 .site-header .brand-bar .brand-inner{display:flex!important;justify-content:space-between!important;min-height:79px!important;gap:8px!important}body.bjs-editorial-theme-v57 .site-header .brand-cta{display:none!important}body.bjs-editorial-theme-v57 .site-header .nws-header-navitas{font-size:clamp(23px,6.3vw,36px)!important}body.bjs-editorial-theme-v57 .site-header .nws-header-world{font-size:clamp(10px,2.6vw,14px)!important;letter-spacing:.07em!important}body.bjs-editorial-theme-v57 .site-footer .footer-grid{grid-template-columns:1fr!important}body.bjs-editorial-theme-v57 .site-footer .footer-grid .footer-contact,body.bjs-editorial-theme-v57 .site-footer .footer-grid .footer-brand{grid-column:auto!important}body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.bjs-editorial-home-v57 .bjs57 .bjs57-learning-item{min-height:200px!important;padding:15px!important}body.bjs-editorial-theme-v57 .bjs-admission-popup .bjs-admission-popup-dialog{width:calc(100% - 18px)!important;max-height:calc(100vh - 16px)!important}}
@media(max-width:380px){body.bjs-editorial-theme-v57 .site-header .nws-header-navitas{font-size:23px!important}body.bjs-editorial-theme-v57 .site-header .nws-header-world{font-size:10px!important;letter-spacing:0!important}}
@media(prefers-reduced-motion:reduce){body.bjs-editorial-theme-v57 *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Critical Safari/slow-JS safeguard. The original experience.css hides
   the entire <main> unless experience.js adds .bjs-ready. If a script fails,
   content must remain readable and never turn into an all-white screen. */
body:not(.bjs-ready) main,
body.bjs-editorial-theme-v57:not(.bjs-ready) main,
body.bjs-editorial-theme-v57 main {opacity:1!important;visibility:visible!important}
body.bjs-editorial-theme-v57 [data-reveal],
body.bjs-editorial-theme-v57 .bjs-auto-reveal,
body.bjs-editorial-theme-v57 .bjs-reveal-left,
body.bjs-editorial-theme-v57 .bjs-reveal-right,
body.bjs-editorial-theme-v57 .bjs-reveal-scale {opacity:1!important;visibility:visible!important;transform:none!important}

/* Version 6.6: no logo image in popup; large type-based mark is never cropped. */
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-wordmark{margin:9px 18px!important;font-weight:900!important;font-size:clamp(22px,4vw,32px)!important;text-align:center!important;color:#212B71!important;line-height:1.12!important;letter-spacing:.055em!important}
body.bjs-editorial-theme-v57 .bjs-admission-popup .nws-popup-wordmark span{display:block!important;font-size:clamp(11px,2vw,14px)!important;color:#174C9C!important;letter-spacing:.13em!important;margin-top:6px!important}
