/* Ballia Jaipuria School | v4.4
   Cinematic, light, responsive refinements. Applied last, without disturbing
   original admission forms, CBSE documents, results and internal portals. */
:root {--bjs44-navy:#213754;--bjs44-deep:#12263f;--bjs44-gold:#b28b51;--bjs44-paper:#fbfaf7;--bjs44-cream:#f2eee6;--bjs44-stroke:#dfdfdc}
html {scroll-behavior:smooth}
body.bjs-corporate-safe-v42 {background:var(--bjs44-paper);color:#2c3846}
body.bjs-corporate-safe-v42 *,body.bjs-corporate-safe-v42 *::before,body.bjs-corporate-safe-v42 *::after {box-sizing:border-box}
body.bjs-corporate-safe-v42 :is(main,section,article,.bjs-container,.bjs-institutional-heading,.bjs-institutional-hero-copy,.bjs-verified-panel,.bjs-audience-card) {min-width:0}
body.bjs-corporate-safe-v42 :is(h1,h2,h3,h4,p,li,.bjs-popup-main,.bjs-popup-summary,.bjs-popup-stream-grid) {overflow-wrap:break-word;word-break:normal}
body.bjs-corporate-safe-v42 :is(h1,h2,h3) {text-wrap:balance}
body.bjs-corporate-safe-v42 :is(.bjs-btn,.brand-cta,.bjs-admission-popup-actions a) {white-space:normal;min-width:0;line-height:1.42}
body.bjs-corporate-safe-v42 .bjs-institutional-hero.bjs-v44-hero{position:relative!important;isolation:isolate;display:block;min-height:0!important;overflow:hidden;background:#efece5!important}
.bjs-v44-hero-media{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-image,.bjs-v44-hero .bjs-v44-hero-video{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:cover;object-position:center 45%;filter:saturate(.92);opacity:1!important;transform:scale(1.012)}
.bjs-v44-hero .bjs-v44-hero-video{display:block;opacity:0!important;transition:opacity 1.1s ease;will-change:opacity}
.bjs-v44-hero.bjs-v44-video-live .bjs-v44-hero-video{opacity:1!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-overlay{z-index:1;background:linear-gradient(90deg,rgba(251,249,246,.98) 0%,rgba(251,249,246,.92) 33%,rgba(251,249,246,.68) 56%,rgba(251,249,246,.1) 100%)!important}
.bjs-v44-hero::after{z-index:1!important;pointer-events:none;background:linear-gradient(0deg,rgba(246,243,236,.76),transparent)!important;height:100px!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-grid{z-index:2;position:relative;grid-template-columns:minmax(0,1.17fr) minmax(260px,.72fr)!important;column-gap:clamp(22px,4.4vw,78px)!important;align-items:center;min-height:clamp(600px,65vw,780px)!important;padding:clamp(72px,10vw,150px) 0 clamp(96px,11vw,142px)!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy h1{font-family:Georgia,'Times New Roman',serif!important;font-weight:500!important;font-size:clamp(3.4rem,6.35vw,6.7rem)!important;line-height:1.01!important;letter-spacing:-.045em!important;color:#18314f!important;max-width:800px;margin:0 0 .24em!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy h1 em{font-weight:500;color:#ab7d41!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy>p:not(.bjs-institutional-kicker){font-size:clamp(.98rem,1.35vw,1.18rem)!important;line-height:1.8!important;color:#435267!important;max-width:570px!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-kicker{font-size:11px!important;letter-spacing:.19em!important;font-weight:800!important;color:#96744c!important;line-height:1.6!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-actions{margin-top:28px!important;gap:10px!important;align-items:stretch!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-actions a{min-height:46px!important;display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:12px 20px!important;font-size:13px!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-btn-gold{background:#a37b47!important;color:#fff!important;border-color:#a37b47!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-btn-gold:hover{background:#795a33!important}
.bjs-v44-hero-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:25px;font-size:11px;letter-spacing:.11em;color:#54637a;text-transform:uppercase;font-weight:650;line-height:1.8}
.bjs-v44-meta-line{width:38px;height:1px;background:var(--bjs44-gold);flex:none}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-verified-panel{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);background:rgba(255,255,255,.91)!important;border:1px solid rgba(255,255,255,.82)!important;border-top:3px solid #bf965d!important;border-radius:8px!important;box-shadow:0 22px 55px rgba(29,49,73,.12)!important;max-width:370px;padding:26px!important;justify-self:end}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-verified-panel dl>div{gap:8px!important}
body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-verified-panel :is(dt,dd){font-size:12px!important;line-height:1.5!important}
.bjs-v44-scroll-cue{position:absolute;left:max(24px,calc((100vw - 1180px)/2));bottom:28px;z-index:3;display:flex;align-items:center;gap:10px;color:#2c4562!important;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.13em;text-decoration:none}
.bjs-v44-scroll-cue span{width:20px;height:32px;border:1px solid #b1a390;border-radius:11px;position:relative;flex:none}
.bjs-v44-scroll-cue span::after{content:'';position:absolute;left:8px;top:6px;width:2px;height:7px;border-radius:5px;background:#a68356;animation:bjs44-scroll-nudge 2.2s ease-in-out infinite}
@keyframes bjs44-scroll-nudge{0%,100%{transform:translateY(0);opacity:.5}55%{transform:translateY(10px);opacity:1}}
.bjs-v44-motion-control{position:absolute;right:max(24px,calc((100vw - 1180px)/2));bottom:26px;z-index:4;border:1px solid #d8d0c4;background:rgba(255,255,255,.92);font-weight:650;font-size:12px;border-radius:999px;padding:10px 16px;color:#213954;cursor:pointer}
.bjs-v44-motion-control:focus-visible,.bjs-v44-scroll-cue:focus-visible,.bjs-v44-journey a:focus-visible{outline:3px solid #ab8451;outline-offset:4px}
/* Story: intentional large-format editorial photographic panels. */
body.bjs-corporate-safe-v42 .bjs-v44-journey{background:#f5f3ee!important;color:#213651;padding:clamp(64px,8vw,125px) 0 clamp(70px,8vw,110px)}
.bjs-v44-journey-intro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.48fr);gap:clamp(20px,4vw,75px);align-items:end;margin:0 0 clamp(26px,4vw,52px)}
.bjs-v44-overline{font-size:11px;letter-spacing:.22em;text-transform:uppercase;font-weight:800;color:#9a764b;display:block;margin-bottom:20px}
body.bjs-corporate-safe-v42 .bjs-v44-journey h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.55rem,5.5vw,5.75rem)!important;font-weight:500;line-height:1.07!important;letter-spacing:-.044em;color:#18314f!important;margin:0!important;max-width:820px}
.bjs-v44-journey h2 em{font-weight:400;color:#ae834f}
.bjs-v44-journey-intro>p{font-size:clamp(.95rem,1.4vw,1.11rem);color:#606d7b;line-height:1.82;max-width:340px;margin:0}
.bjs-v44-journey-gallery{display:grid;grid-template-columns:1.06fr .93fr 1.06fr;gap:clamp(10px,1.5vw,22px);align-items:start;overflow:visible}
.bjs-v44-journey-card{display:block;position:relative;min-width:0;text-decoration:none!important;color:#24374f!important;transform:translateZ(0);outline-offset:5px}
.bjs-v44-journey-card:nth-child(2){margin-top:clamp(25px,6vw,75px)}
.bjs-v44-journey-card:nth-child(3){margin-top:clamp(10px,2.4vw,36px)}
.bjs-v44-photo-mask{display:block;width:100%;height:clamp(260px,35vw,510px);overflow:hidden;background:#e3dfd7;isolation:isolate;border-radius:3px}
.bjs-v44-photo-mask img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.85);transform:scale(1.025) translate3d(0,var(--bjs44-photo-offset,0px),0);transition:transform .85s cubic-bezier(.2,.75,.2,1),filter .6s ease}
.bjs-v44-journey-card:hover img{transform:scale(1.075) translate3d(0,var(--bjs44-photo-offset,0px),0);filter:saturate(1)}
.bjs-v44-photo-caption{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:18px 4px 2px}
.bjs-v44-photo-caption small{grid-column:1;font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#8d755b}
.bjs-v44-photo-caption strong{grid-column:1;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1rem,1.55vw,1.37rem);font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.bjs-v44-photo-caption>span{grid-column:2;grid-row:1/3;font-size:21px;color:#b18b5d;align-self:center}
.bjs-v44-journey-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:54px;padding-top:25px;border-top:1px solid #d9d8d4;font-size:12px;color:#6d7580;line-height:1.6}
.bjs-v44-journey-foot a{color:#273f5a!important;font-weight:750;letter-spacing:.02em;text-decoration:none}
.bjs-v44-journey-no-gallery{padding:30px;border:1px solid #ddd8cd;background:#fff}
/* Decorative micro-motion; content remains visible when JavaScript is absent. */
@media(prefers-reduced-motion:no-preference){
 .bjs-v44-js .bjs-v44-animate{opacity:0;transform:translateY(25px);transition:opacity .75s ease,transform .85s cubic-bezier(.17,.67,.27,1)}
 .bjs-v44-js .bjs-v44-animate.is-in-view{opacity:1;transform:translateY(0)}
 .bjs-v44-journey-card:nth-child(2){transition-delay:.12s}
 .bjs-v44-journey-card:nth-child(3){transition-delay:.2s}
}
/* Non-destructive site-wide typography and overlap fixes. */
body.bjs-corporate-safe-v42 .brand-inner{min-width:0!important;max-width:100%;overflow:visible!important}
body.bjs-corporate-safe-v42 .brand-identity,body.bjs-corporate-safe-v42 .brand-logo-wrap{min-width:0!important}
body.bjs-corporate-safe-v42 .brand-logo-wrap .bjs-header-logo{object-fit:contain!important}
body.bjs-corporate-safe-v42 .primary-nav .bjs-menu>li>a{overflow-wrap:break-word!important;white-space:normal!important;line-height:1.45!important}
body.bjs-corporate-safe-v42 .bjs-admission-popup-html{min-width:0!important;max-width:calc(100vw - 24px)!important}
body.bjs-corporate-safe-v42 .bjs-popup-admission-headline{min-width:0;word-break:normal}
body.bjs-corporate-safe-v42 .bjs-popup-admission-headline :is(strong,span){line-height:1.2!important;word-break:normal!important}
body.bjs-corporate-safe-v42 .bjs-v43-popup-declaration{overflow-wrap:break-word!important}
body.bjs-corporate-safe-v42 .bjs-v43-home-identity-grid{align-items:center}
body.bjs-corporate-safe-v42 .bjs-v43-home-identity p{max-width:820px}
@media(max-width:1050px){
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-grid{grid-template-columns:minmax(0,1fr) minmax(250px,.75fr)!important;column-gap:24px!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy h1{font-size:clamp(3.3rem,6vw,4.9rem)!important}
 body.bjs-corporate-safe-v42 .brand-inner{grid-template-columns:minmax(0,250px) minmax(0,1fr) auto!important}
}
@media(max-width:850px){
 .bjs-v44-hero .bjs-v44-hero-video{display:none!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important;min-height:0!important;padding:76px 0 95px!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-overlay{background:linear-gradient(90deg,rgba(251,249,246,.94),rgba(251,249,246,.71))!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-verified-panel{justify-self:start!important;max-width:100%;width:100%;padding:22px!important}
 .bjs-v44-journey-intro{grid-template-columns:1fr;gap:16px}
 .bjs-v44-journey-intro>p{max-width:550px}
 .bjs-v44-journey-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bjs-v44-photo-mask{height:clamp(210px,38vw,390px)}
}
@media(max-width:650px){
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-grid{padding:65px 0 90px!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy h1{font-size:clamp(2.75rem,11.4vw,4.1rem)!important;line-height:1.03!important;letter-spacing:-.045em!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy>p:not(.bjs-institutional-kicker){font-size:.98rem!important;line-height:1.72!important}
 .bjs-v44-hero-meta{font-size:10px;letter-spacing:.06em}
 .bjs-v44-scroll-cue{bottom:19px;left:22px;font-size:9px}
 body.bjs-corporate-safe-v42 .bjs-v44-journey{padding:64px 0 70px}
 body.bjs-corporate-safe-v42 .bjs-v44-journey h2{font-size:clamp(2.25rem,9vw,3.8rem)!important}
 .bjs-v44-journey-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(78vw,1fr);grid-template-columns:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:0 2px 14px;gap:14px;scrollbar-width:thin}
 .bjs-v44-journey-gallery .bjs-v44-journey-card{margin-top:0!important;scroll-snap-align:start}
 .bjs-v44-photo-mask{height:clamp(310px,105vw,440px)}
 .bjs-v44-journey-foot{align-items:flex-start;flex-direction:column;gap:12px;margin-top:30px}
 body.bjs-corporate-safe-v42 .bjs-admission-popup-html{display:block!important;max-height:92dvh!important;overflow-y:auto!important}
 body.bjs-corporate-safe-v42 .bjs-popup-brand-row{padding:12px 52px 12px 16px!important}
 body.bjs-corporate-safe-v42 .bjs-v43-popup-art-link img{max-height:210px!important;object-fit:contain}
 body.bjs-corporate-safe-v42 .bjs-popup-main{padding:18px!important}
 body.bjs-corporate-safe-v42 .bjs-popup-stream-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.bjs-corporate-safe-v42 .bjs-popup-stream-grid article{padding:7px 3px!important}
 body.bjs-corporate-safe-v42 .bjs-v43-popup-declaration{padding:12px 16px!important;font-size:11px!important}
 body.bjs-corporate-safe-v42 .brand-logo-wrap .bjs-header-logo{max-width:100%!important;height:auto!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.bjs-v44-scroll-cue span:after{animation:none!important}.bjs-v44-animate{opacity:1!important;transform:none!important;transition:none!important}.bjs-v44-photo-mask img{transform:none!important;transition:none!important}.bjs-v44-hero-video{display:none!important}}
/* Keep the collapsed mobile navigation from the working original theme.
   The tablet 3-column brand layout above must never override these rules. */
@media(max-width:900px){
 body.bjs-corporate-safe-v42 .brand-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important}
 body.bjs-corporate-safe-v42 .brand-identity{grid-column:1!important;grid-row:1!important;max-width:260px!important}
 body.bjs-corporate-safe-v42 .brand-tagline,body.bjs-corporate-safe-v42 .brand-cta{display:none!important}
 body.bjs-corporate-safe-v42 .mobile-menu-toggle{display:block!important;grid-column:2!important;grid-row:1!important;justify-self:end!important}
}
@media(max-width:380px){
 body.bjs-corporate-safe-v42 .brand-identity{max-width:215px!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-actions a{padding:11px 12px!important;font-size:12px!important}
 body.bjs-corporate-safe-v42 .bjs-v44-hero .bjs-institutional-hero-copy h1{font-size:clamp(2.5rem,11vw,3.15rem)!important}
}
