/* Ballia Jaipuria School v3.50.0 — final unified institutional polish */
:root{
  --bjs-indigo:#1D0045;
  --bjs-deep:#140039;
  --bjs-purple:#38105F;
  --bjs-royal-purple:#56137D;
  --bjs-saffron:#F1951A;
  --bjs-gold:#F5CD96;
  --bjs-cream:#FFF8EC;
  --bjs-soft:#FFF1D6;
  --bjs-white:#FFFFFF;
  --bjs-text:#241934;
  --bjs-muted:#6B617C;
  --bjs-border:rgba(29,0,69,.13);
  --bjs-shadow:0 18px 55px rgba(29,0,69,.10);
}

html{scroll-behavior:smooth}
body{font-family:"Montserrat",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--bjs-text);text-rendering:optimizeLegibility}
img{height:auto}
.bjs-container{width:min(1180px,calc(100% - 40px))}

/* Keep the premium homepage decisive rather than endlessly long. */
.bjs-premium-home .bjs-institutional-section{padding-block:clamp(64px,7vw,104px)}
.bjs-home-latest-wrap{background:#fff;border-bottom:1px solid var(--bjs-border)}
.bjs-home-latest-wrap .section{padding-block:clamp(42px,5vw,68px)}
.bjs-home-latest-wrap .section-heading p{max-width:700px}
.bjs-home-latest-wrap article:nth-child(n+4){display:none}

/* Verified profile and official-data surfaces. */
.bjs-verified-panel,
.bjs-transparency-summary,
.bjs-managed-document,
.bjs-department-directory article{
  box-shadow:var(--bjs-shadow);
}
.bjs-verified-panel{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.bjs-transparency-summary>div{min-height:150px}

/* Document Centre: readable cards, restrained badges, reliable action area. */
.bjs-managed-documents-grid{align-items:stretch}
.bjs-managed-document{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:250px;
  overflow:hidden;
  border:1px solid var(--bjs-border);
  border-radius:20px;
  background:#fff;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.bjs-managed-document:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,var(--bjs-indigo),var(--bjs-saffron));
}
.bjs-managed-document:hover{transform:translateY(-4px);border-color:rgba(241,149,26,.5);box-shadow:0 24px 65px rgba(29,0,69,.14)}
.bjs-managed-document h3{font-size:clamp(1.05rem,1.6vw,1.26rem);line-height:1.35;margin-top:18px}
.bjs-managed-document p{color:var(--bjs-muted);line-height:1.7}
.bjs-managed-document .bjs-document-type{align-self:flex-start;background:var(--bjs-soft);color:var(--bjs-indigo);border-radius:999px;padding:7px 11px;font-size:.68rem;letter-spacing:.12em;font-weight:800}
.bjs-managed-document .bjs-document-download{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--bjs-border);padding-top:16px;color:var(--bjs-indigo);font-weight:800;text-decoration:none}
.bjs-managed-document .bjs-document-download:hover{color:var(--bjs-royal-purple)}

/* Department directory: responsible person + routed official contact. */
.bjs-department-directory{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.bjs-department-directory article{display:flex;flex-direction:column;min-height:330px;border:1px solid var(--bjs-border);border-radius:22px;background:#fff}
.bjs-department-directory article h2{font-size:1.25rem;line-height:1.3}
.bjs-contact-person{margin:.1rem 0 .65rem!important;padding:.65rem .75rem;border-left:3px solid var(--bjs-saffron);background:var(--bjs-cream);font-size:.82rem!important;color:var(--bjs-indigo)!important}
.bjs-contact-card-actions{display:grid;gap:8px;margin-top:auto}
.bjs-contact-card-actions a{display:flex!important;justify-content:space-between;align-items:center;word-break:break-word}
.bjs-contact-card-actions a+a{padding-top:8px;border-top:1px dashed var(--bjs-border);font-size:.78rem!important;color:var(--bjs-muted)!important}

/* Public disclosure tables remain usable on narrow screens. */
.bjs-public-data-table th{width:34%;color:var(--bjs-indigo)}
.bjs-public-data-table td{font-weight:600}
.bjs-transparency-status-bar{position:relative;z-index:2}

/* Stable navigation hierarchy and reduced visual noise. */
.bjs-institutional-menu>.menu-item>a{letter-spacing:.01em}
.bjs-institutional-menu .sub-menu{max-height:min(70vh,560px);overflow:auto}
.utility-actions a,.notice-text{text-underline-offset:3px}

/* Staff directory readability without photography. */
.bjs-staff-card{border:1px solid var(--bjs-border)!important}
.bjs-staff-code{font-variant-numeric:tabular-nums;letter-spacing:.07em}

/* Accessibility and performance-friendly motion. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media (max-width:980px){
  .bjs-department-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bjs-premium-home .bjs-institutional-section{padding-block:64px}
}

@media (max-width:680px){
  .bjs-container{width:min(100% - 28px,1180px)}
  .bjs-department-directory{grid-template-columns:1fr}
  .bjs-department-directory article{min-height:auto}
  .bjs-managed-document{min-height:220px}
  .bjs-public-data-table,.bjs-public-data-table tbody,.bjs-public-data-table tr,.bjs-public-data-table th,.bjs-public-data-table td{display:block;width:100%}
  .bjs-public-data-table tr{padding:14px 0;border-bottom:1px solid var(--bjs-border)}
  .bjs-public-data-table th{padding-bottom:5px;border:0;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em}
  .bjs-public-data-table td{padding-top:0;border:0;word-break:break-word}
  .bjs-home-latest-wrap article:nth-child(n+3){display:none}
}

/* v3.51 Results dashboard and compact multimedia showcase */
.bjs-results-hero{background:linear-gradient(135deg,#1D0045 0%,#38105F 65%,#56137D 100%)}
.bjs-results-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.bjs-results-metric-card{background:#fff;border:1px solid rgba(29,0,69,.12);border-radius:24px;padding:30px;box-shadow:0 18px 48px rgba(29,0,69,.08)}
.bjs-results-metric-card small{display:block;color:#6B617C;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}
.bjs-results-metric-card>strong{display:block;color:#1D0045;font-size:clamp(2.4rem,6vw,4.5rem);line-height:1;font-weight:900;margin-bottom:14px}
.bjs-results-metric-card h2{font-size:1.25rem;margin:0 0 10px;color:#241934}
.bjs-results-metric-card p{margin:0;color:#6B617C;line-height:1.7}
.bjs-results-metric-card.is-distinction{background:linear-gradient(145deg,#FFF8EC,#FFF1D6);border-color:rgba(241,149,26,.35)}
.bjs-results-metric-card.is-distinction>strong{font-size:clamp(1.7rem,3vw,2.7rem);color:#38105F;line-height:1.15}
.bjs-results-topper-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:28px;align-items:stretch}
.bjs-results-topper-card{border-radius:28px;padding:42px;background:#1D0045;color:#fff;position:relative;overflow:hidden}
.bjs-results-topper-card:after{content:"";position:absolute;width:240px;height:240px;border:1px solid rgba(245,205,150,.28);border-radius:50%;right:-70px;top:-80px}
.bjs-results-topper-card span{color:#F5CD96;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.bjs-results-topper-card h2{font-size:clamp(2.2rem,5vw,4rem);margin:18px 0 8px;color:#fff}
.bjs-results-topper-card strong{display:block;color:#F1951A;font-size:1.15rem;margin-bottom:20px}
.bjs-results-topper-card p{max-width:650px;color:rgba(255,255,255,.82);line-height:1.75}
.bjs-v351-video-home{background:#fff}
.bjs-v351-video-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:26px}
.bjs-v351-video-featured{border-radius:26px;overflow:hidden;background:#140039;color:#fff;box-shadow:0 20px 55px rgba(20,0,57,.16)}
.bjs-v351-video-featured>a{display:block;position:relative;aspect-ratio:16/9;background:#140039}
.bjs-v351-video-featured img,.bjs-v351-video-short-list img{width:100%;height:100%;object-fit:cover;display:block}
.bjs-v351-video-featured>a>span,.bjs-v351-video-short-list article>a>span{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#F1951A;color:#1D0045;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.bjs-v351-video-featured>div{padding:26px 30px 30px}
.bjs-v351-video-featured small,.bjs-v351-video-short-list small{color:#F5CD96;text-transform:uppercase;font-weight:800;letter-spacing:.08em}
.bjs-v351-video-featured h3{font-size:1.6rem;margin:9px 0 10px}.bjs-v351-video-featured h3 a{color:#fff}.bjs-v351-video-featured p{color:rgba(255,255,255,.76);margin:0;line-height:1.65}
.bjs-v351-video-short-list{display:grid;gap:16px}
.bjs-v351-video-short-list article{display:grid;grid-template-columns:145px 1fr;gap:16px;align-items:center;border:1px solid rgba(29,0,69,.1);border-radius:20px;padding:12px;background:#FFF8EC}
.bjs-v351-video-short-list article>a{display:block;position:relative;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:#140039}
.bjs-v351-video-short-list article>a>span{width:38px;height:38px;font-size:.8rem}
.bjs-v351-video-short-list h3{font-size:1rem;line-height:1.4;margin:6px 0}.bjs-v351-video-short-list h3 a{color:#241934}
@media(max-width:900px){.bjs-results-metric-grid,.bjs-v351-video-grid{grid-template-columns:1fr}.bjs-results-topper-grid{grid-template-columns:1fr}}
@media(max-width:620px){.bjs-results-metric-card{padding:24px}.bjs-results-topper-card{padding:30px 24px}.bjs-v351-video-short-list article{grid-template-columns:110px 1fr}.bjs-v351-video-featured>div{padding:22px}}
