/* Phase 23 R2 — Education Premium UI System (final override) */
:root{
  --edu-primary:#1458d4;--edu-primary-deep:#0b347f;--edu-accent:#0b9b76;
  --edu-gold:#d99a24;--edu-ink:#17243b;--edu-muted:#66738a;--edu-bg:#f4f7fb;
  --edu-surface:#fff;--edu-soft:#edf4ff;--edu-line:#dfe7f1;
  --edu-shadow:0 16px 42px rgba(35,58,91,.10);--edu-shadow-sm:0 7px 22px rgba(35,58,91,.08);
  --edu-radius:18px;--edu-font:"Hind Siliguri","Noto Sans Bengali",Inter,system-ui,sans-serif;
}
html{background:var(--edu-bg)!important;color-scheme:light!important}
body,button,input,select,textarea{font-family:var(--edu-font)!important}
body.app-body{background:linear-gradient(145deg,#f9fbfe 0,#f0f5fb 55%,#f8fafc 100%)!important;color:var(--edu-ink)!important}
.app-shell{background:transparent!important}
.sidebar{background:rgba(255,255,255,.98)!important;border-right:1px solid var(--edu-line)!important;box-shadow:12px 0 40px rgba(40,61,90,.06)!important;color:var(--edu-ink)!important}
.sidebar .brand{background:linear-gradient(135deg,#f7faff,#edf5ff)!important;border-bottom:1px solid var(--edu-line)!important;color:var(--edu-ink)!important;padding:12px 15px!important}
.sidebar .brand b{color:var(--edu-primary-deep)!important;font-size:17px!important}.sidebar .brand small{color:var(--edu-muted)!important;letter-spacing:.08em!important}
.brand-mark{background:linear-gradient(135deg,var(--edu-primary),#3887ef)!important;color:#fff!important;box-shadow:0 9px 22px rgba(20,88,212,.22)!important}
.profile-mini{background:#fff!important;border:1px solid var(--edu-line)!important;box-shadow:var(--edu-shadow-sm)!important;color:var(--edu-ink)!important}
.profile-mini b{color:var(--edu-ink)!important}.profile-mini small{color:var(--edu-muted)!important}.profile-mini .avatar{background:linear-gradient(135deg,var(--edu-primary),var(--edu-accent))!important;color:#fff!important}
.nav>a{color:#526078!important;border:1px solid transparent!important;background:transparent!important}.nav>a span{color:#6d7e96!important}
.nav>a:hover{background:#f1f6fd!important;border-color:#e1eaf5!important;color:var(--edu-primary)!important;transform:none!important}
.nav>a.active{background:linear-gradient(135deg,#eaf2ff,#edf9f6)!important;border-color:#cfe0f6!important;color:var(--edu-primary-deep)!important;box-shadow:inset 3px 0 var(--edu-primary),0 7px 18px rgba(20,88,212,.07)!important}
.nav>a.active span{color:var(--edu-primary)!important}.logout{background:#fff!important;border-top:1px solid var(--edu-line)!important}.logout button{background:#fff4f5!important;border:1px solid #ffd9de!important;color:#bd3449!important}
.topbar{background:rgba(255,255,255,.92)!important;border-color:var(--edu-line)!important;box-shadow:0 6px 24px rgba(35,58,91,.05)!important}.page-heading b{color:var(--edu-ink)!important}.page-heading small{color:var(--edu-muted)!important}
.top-actions .pill{background:#ecf7f3!important;border:1px solid #ccecdf!important;color:#087259!important}.icon-btn,.home-button,.menu-btn{background:#fff!important;color:var(--edu-primary-deep)!important;border-color:var(--edu-line)!important}
.content{color:var(--edu-ink)!important}.content h1,.content h2,.content h3{color:var(--edu-ink)!important;letter-spacing:-.015em!important}.content p,.content small{color:var(--edu-muted)}
.card,.panel,.box,.commercial-card,.p12-card,.p14-card,.p15-card,.p16-card,.p18-card,.p20-card,.p22-card,.p25-card{background:#fff!important;border:1px solid var(--edu-line)!important;color:var(--edu-ink)!important;box-shadow:var(--edu-shadow)!important}
.commercial-hero,.p14-hero,.p15-hero,.p16-hero,.p18-hero,.p20-hero,.p22-hero,.p25-hero{background:linear-gradient(128deg,#0e459f 0,#176fe0 55%,#0b9b76 145%)!important;color:#fff!important;border:0!important;box-shadow:0 20px 48px rgba(14,69,159,.20)!important}
.commercial-hero h1,.commercial-hero h2,.commercial-hero p,.commercial-hero small,.p14-hero *,.p15-hero *,.p16-hero *,.p18-hero *,.p20-hero *,.p22-hero *,.p25-hero *{color:#fff!important}
.executive-kpi,.stat,.metric,.kpi{background:#fff!important;border:1px solid var(--edu-line)!important;color:var(--edu-ink)!important;box-shadow:var(--edu-shadow-sm)!important}.executive-kpi strong,.stat strong,.metric strong,.kpi strong{color:var(--edu-primary-deep)!important}
.btn,button[type=submit],input[type=submit],.command-primary,.p25-btn.primary{background:linear-gradient(135deg,var(--edu-primary),#287cec)!important;border:0!important;color:#fff!important;box-shadow:0 8px 20px rgba(20,88,212,.18)!important}
.btn.secondary,.command-secondary,.btn-outline{background:#fff!important;border:1px solid #cfdbea!important;color:var(--edu-primary-deep)!important;box-shadow:none!important}
.btn.danger,.p25-btn.danger{background:#fff1f3!important;border:1px solid #ffd3d9!important;color:#bd3045!important;box-shadow:none!important}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{background:#fff!important;color:var(--edu-ink)!important;border:1px solid #ced9e7!important;box-shadow:inset 0 1px 2px rgba(20,40,70,.025)!important}
input:focus,select:focus,textarea:focus{border-color:#5a94e8!important;box-shadow:0 0 0 4px rgba(20,88,212,.10)!important}label{color:#3c4b63!important}
.table-wrap,.responsive-table,.premium-table-wrap,.p25-table{background:#fff!important;border:1px solid var(--edu-line)!important;box-shadow:none!important}thead th{background:#f3f7fc!important;color:#53647c!important}tbody tr:hover{background:#f7faff!important}tbody td{color:#33435a!important;border-color:#e9eef5!important}
.badge,.tag,.status{background:#edf4ff!important;color:#185cad!important}.alert.success{background:#eaf9f3!important;color:#08745a!important}.alert.danger{background:#fff0f2!important;color:#b62e44!important}
.p10-bottom-nav{background:rgba(255,255,255,.97)!important;border-color:var(--edu-line)!important;box-shadow:0 -9px 28px rgba(35,58,91,.10)!important}.p10-bottom-nav a,.p10-bottom-nav button{background:transparent!important;color:#718098!important;box-shadow:none!important}.p10-bottom-nav .active{color:var(--edu-primary)!important}

/* Homepage */
body:not(.app-body){background:#fff!important;color:var(--edu-ink)!important}
.p17-header{background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--edu-line)!important;box-shadow:0 7px 28px rgba(35,58,91,.06)!important}.p17-brand b{color:var(--edu-primary-deep)!important}.p17-brand small{color:var(--edu-muted)!important}.p17-brand>span{background:linear-gradient(135deg,var(--edu-primary),var(--edu-accent))!important;color:#fff!important}
.p17-header nav a{color:#45546c!important}.p17-header nav a:hover{color:var(--edu-primary)!important}.p17-head-actions>a{background:linear-gradient(135deg,var(--edu-primary),#287cec)!important;color:#fff!important;box-shadow:0 8px 20px rgba(20,88,212,.18)!important}
.p17-hero{background:radial-gradient(circle at 85% 18%,rgba(20,88,212,.12),transparent 27%),linear-gradient(150deg,#f8fbff,#eef5ff 58%,#f2fbf7)!important;color:var(--edu-ink)!important;border-bottom:1px solid var(--edu-line)!important}.p17-hero h1{color:#102a56!important}.p17-hero p{color:#5c6d84!important}.p17-eyebrow{color:var(--edu-primary)!important;background:#eaf2ff!important;border:1px solid #d1e1f8!important}.p17-actions a{background:#fff!important;border:1px solid #d7e2ef!important;color:var(--edu-primary-deep)!important}.p17-actions a.primary{background:linear-gradient(135deg,var(--edu-primary),#277be9)!important;border:0!important;color:#fff!important}.p17-trust span{color:#3f5c55!important}.p17-hero-media{background:#fff!important;border:1px solid var(--edu-line)!important;box-shadow:0 24px 60px rgba(24,66,125,.14)!important}.p17-teacher-chip,.p17-float{background:rgba(255,255,255,.96)!important;color:var(--edu-ink)!important;border:1px solid var(--edu-line)!important;box-shadow:var(--edu-shadow)!important}.p17-teacher-chip span,.p17-teacher-chip small,.p17-float span{color:var(--edu-muted)!important}.p17-float b{color:var(--edu-primary)!important}
.p17-metrics,.p17-section{background:#fff!important;color:var(--edu-ink)!important}.p17-metrics article,.p17-class-grid article,.p17-result-grid article,.p17-feed article,.p17-about aside{background:#fff!important;border:1px solid var(--edu-line)!important;box-shadow:var(--edu-shadow-sm)!important;color:var(--edu-ink)!important}.p17-metrics strong,.p17-section h2,.p17-section h3{color:#122d59!important}.p17-section p,.p17-section small{color:var(--edu-muted)!important}.p17-about{background:#f6f9fd!important;border:1px solid var(--edu-line)!important}.p17-mini-grid>div{background:#fff!important;border-color:var(--edu-line)!important}.p17-class-grid article:hover{border-color:#a9c8f1!important;transform:translateY(-3px)!important}.p17-class-grid footer a,.p17-about aside a{color:var(--edu-primary)!important}.p17-results{background:linear-gradient(145deg,#f3f7fd,#f4fbf8)!important}.p17-result-score{background:linear-gradient(135deg,var(--edu-primary),var(--edu-accent))!important;color:#fff!important}.p17-admission{background:linear-gradient(135deg,#0e459f,#176fdc)!important;color:#fff!important}.p17-admission h2,.p17-admission p,.p17-admission .p17-eyebrow{color:#fff!important}.p17-admission form{background:#fff!important;color:var(--edu-ink)!important;box-shadow:0 22px 55px rgba(6,37,87,.22)!important}.p17-admission form label{color:#3b4b62!important}.p17-footer{background:#f2f6fb!important;color:#34445c!important;border-top:1px solid var(--edu-line)!important}.p17-footer p,.p17-footer address,.p17-footer small{color:var(--edu-muted)!important}.p17-footer a{color:var(--edu-primary-deep)!important}.p17-mobile-bar{background:rgba(255,255,255,.98)!important;border-top:1px solid var(--edu-line)!important;box-shadow:0 -8px 25px rgba(35,58,91,.10)!important}.p17-mobile-bar a{color:var(--edu-primary-deep)!important}.p17-mobile-bar a:nth-child(2){background:var(--edu-primary)!important;color:#fff!important}

/* Login */
.p17-login{background:linear-gradient(145deg,#f8fbff,#edf4fd)!important;color:var(--edu-ink)!important}.p17-login-story{background:linear-gradient(145deg,#0e459f,#196fda 68%,#0a8d72)!important;color:#fff!important}.p17-login-form{background:#fff!important;color:var(--edu-ink)!important;box-shadow:-15px 0 45px rgba(19,53,99,.08)!important}.p17-login-form h2{color:#122d59!important}.p17-login-form>p,.p17-help p,.p17-back{color:var(--edu-muted)!important}.p17-secure{background:#eaf8f2!important;color:#087159!important;border:1px solid #cbeadd!important}.p17-input{background:#fff!important;border:1px solid #ced9e7!important}.p17-input:focus-within{border-color:#5a94e8!important;box-shadow:0 0 0 4px rgba(20,88,212,.10)!important}.p17-submit{background:linear-gradient(135deg,var(--edu-primary),#287cec)!important;color:#fff!important;box-shadow:0 10px 24px rgba(20,88,212,.20)!important}

@media(max-width:900px){.sidebar{box-shadow:16px 0 45px rgba(35,58,91,.16)!important}.p17-login-form{box-shadow:none!important}.p17-hero{padding-top:94px!important}.p17-header nav{background:#fff!important;border:1px solid var(--edu-line)!important;box-shadow:var(--edu-shadow)!important}.p17-header nav a{border-bottom:1px solid #edf1f6!important}}
@media(max-width:620px){.content{padding:12px 11px 86px!important}.card,.panel,.box,.commercial-card,.p12-card,.p14-card,.p15-card,.p16-card,.p18-card,.p20-card,.p22-card,.p25-card{border-radius:15px!important;box-shadow:0 8px 24px rgba(35,58,91,.08)!important}.topbar{height:64px!important}.page-heading b{font-size:17px!important}.p17-header{padding:9px 12px!important}.p17-brand b{font-size:15px!important}.p17-brand small{font-size:9px!important}.p17-head-actions>a{padding:9px 11px!important;font-size:12px!important}.p17-hero{padding:88px 14px 30px!important}.p17-hero h1{font-size:clamp(32px,10vw,46px)!important}.p17-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.p17-actions .primary{grid-column:1/-1!important}.p17-metrics{grid-template-columns:1fr 1fr!important;padding:12px!important}.p17-metrics article{padding:15px!important}.p17-section{padding:45px 14px!important}.p17-about,.p17-admission{margin:0!important;border-radius:0!important}.p17-class-grid,.p17-result-grid{grid-template-columns:1fr!important}.p17-admission form{padding:17px!important}.p17-mobile-bar a{min-height:54px!important}.p17-login-form{padding:28px 18px 90px!important}.p17-submit{min-height:50px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body,.content{background:#fff!important}.sidebar,.topbar,.p10-bottom-nav,.p17-mobile-bar{display:none!important}.card,.panel,.box{box-shadow:none!important;border:1px solid #bbb!important}}

/* R3 screenshot-led homepage UX correction */
@media(min-width:901px){
  .p17-header{height:82px!important;padding:0 max(28px,calc((100vw - 1240px)/2))!important}
  .p17-hero{min-height:auto!important;padding:88px max(28px,calc((100vw - 1240px)/2)) 64px!important;grid-template-columns:minmax(0,1.08fr) minmax(390px,.82fr)!important;gap:72px!important;align-items:center!important}
  .p17-hero-copy{max-width:700px!important}
  .p17-hero h1{font-size:clamp(48px,4.25vw,68px)!important;line-height:1.13!important;letter-spacing:-.045em!important;margin:20px 0 22px!important;word-break:normal!important;overflow-wrap:normal!important}
  .p17-hero-copy>p{font-size:19px!important;line-height:1.8!important;max-width:680px!important}
  .p17-hero-media{min-height:470px!important;max-height:540px!important;border-radius:32px!important}
}
.p17-eyebrow{display:inline-flex!important;width:auto!important;align-items:center!important;padding:8px 13px!important;border-radius:999px!important;font-size:13px!important;font-weight:750!important;letter-spacing:.01em!important}
.p17-actions{display:flex!important;gap:11px!important;align-items:center!important;margin-top:28px!important}.p17-actions a{min-height:52px!important;padding:0 20px!important;border-radius:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:800!important;box-shadow:0 7px 18px rgba(35,58,91,.07)!important}.p17-actions a.primary{box-shadow:0 11px 24px rgba(20,88,212,.22)!important}
.p17-trust{display:flex!important;gap:18px!important;flex-wrap:wrap!important;margin-top:27px!important}.p17-trust span{font-size:13px!important;font-weight:650!important}
.p17-hero-media{background:linear-gradient(145deg,#ffffff,#eff5fc)!important;border:1px solid #cfdeee!important;overflow:hidden!important;position:relative!important}.p17-hero-media:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 16%,rgba(20,88,212,.15),transparent 28%),radial-gradient(circle at 20% 85%,rgba(11,155,118,.12),transparent 30%);pointer-events:none}.p17-placeholder{position:relative!important;width:150px!important;height:150px!important;border-radius:38px!important;background:linear-gradient(145deg,#eaf2ff,#dff5ed)!important;border:1px solid #cfe0ef!important;display:grid!important;place-items:center!important;font-size:76px!important;box-shadow:0 18px 40px rgba(25,67,118,.12)!important}
.p17-teacher-chip{left:20px!important;right:20px!important;bottom:20px!important;padding:19px 21px!important;border-radius:17px!important}.p17-teacher-chip b{font-size:20px!important;color:#132e59!important}.p17-float{padding:14px 16px!important;border-radius:15px!important;min-width:112px!important}.p17-float b{font-size:28px!important}.p17-float.one{left:18px!important;top:18px!important}.p17-float.two{right:18px!important;top:96px!important}
.p17-metrics{width:min(1240px,calc(100% - 28px))!important;margin:-30px auto 40px!important;padding:0!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;border:1px solid var(--edu-line)!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 18px 48px rgba(35,58,91,.10)!important;position:relative!important;z-index:3!important}.p17-metrics article{border:0!important;border-right:1px solid var(--edu-line)!important;border-radius:0!important;box-shadow:none!important;padding:24px 26px!important;min-height:144px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}.p17-metrics article:last-child{border-right:0!important}.p17-metrics strong{font-size:32px!important;line-height:1!important;color:#153d7a!important}.p17-metrics b{font-size:16px!important;color:#213752!important;margin:10px 0 5px!important}.p17-metrics small{font-size:13px!important;line-height:1.45!important;color:#738198!important}
.p17-section{width:min(1240px,calc(100% - 28px))!important;margin-left:auto!important;margin-right:auto!important}.p17-section-head h2,.p17-about h2,.p17-admission h2{font-size:clamp(30px,3.2vw,46px)!important;line-height:1.2!important}.p17-class-grid article,.p17-result-grid article,.p17-feed article{border-radius:18px!important}.p17-class-grid article{padding:24px!important}.p17-class-grid article>span{color:var(--edu-primary)!important;background:#edf4ff!important;border-radius:10px!important;padding:6px 9px!important;font-weight:800!important}
@media(max-width:900px){
  .p17-hero{display:grid!important;grid-template-columns:1fr!important;gap:30px!important}.p17-hero-copy{max-width:680px!important}.p17-hero h1{font-size:clamp(38px,8vw,58px)!important;line-height:1.14!important;letter-spacing:-.035em!important;margin:17px 0!important}.p17-hero-media{width:100%!important;min-height:410px!important;max-width:620px!important;margin:auto!important}.p17-metrics{margin-top:18px!important;grid-template-columns:1fr 1fr!important}.p17-metrics article:nth-child(2){border-right:0!important}.p17-metrics article{border-bottom:1px solid var(--edu-line)!important}.p17-metrics article:nth-child(n+3){border-bottom:0!important}
}
@media(max-width:620px){
  .p17-hero h1{font-size:clamp(35px,10.5vw,46px)!important;line-height:1.16!important;letter-spacing:-.025em!important}.p17-hero-copy>p{font-size:16px!important;line-height:1.7!important}.p17-actions{grid-template-columns:1fr 1fr!important}.p17-actions a{padding:0 11px!important;min-height:48px!important;font-size:14px!important}.p17-trust{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.p17-hero-media{min-height:350px!important;border-radius:22px!important}.p17-placeholder{width:112px!important;height:112px!important;font-size:56px!important;border-radius:29px!important}.p17-teacher-chip{left:12px!important;right:12px!important;bottom:12px!important;padding:14px 15px!important}.p17-float{min-width:88px!important;padding:10px 12px!important}.p17-float b{font-size:23px!important}.p17-float.two{top:76px!important}.p17-metrics{width:calc(100% - 22px)!important;margin:12px auto 28px!important;border-radius:17px!important}.p17-metrics article{min-height:118px!important;padding:17px!important}.p17-metrics strong{font-size:27px!important}.p17-metrics b{font-size:14px!important}.p17-section{width:100%!important}.p17-section-head h2,.p17-about h2,.p17-admission h2{font-size:30px!important}
}
