/* Shared public UI: same header across Home, About, Login and Register */
html{scroll-behavior:smooth}
body .site-header{height:84px!important;min-height:84px!important;padding:9px clamp(18px,4vw,64px)!important;background:linear-gradient(110deg,#063768,#031e3c)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;color:#fff!important}
body .site-header .brand{display:flex!important;align-items:center!important;gap:12px!important;color:#fff!important;min-width:0!important;flex-shrink:1!important}
body .site-header .brand img{width:62px!important;height:60px!important;object-fit:contain!important;flex-shrink:0!important}
body .site-header .brand strong{display:block!important;font-size:26px!important;line-height:1!important;font-weight:800!important;color:#fff!important}
body .site-header .brand small{display:block!important;font-size:9px!important;letter-spacing:.2px!important;line-height:1.35!important;color:#fff!important;margin-top:4px!important}
body .site-header .brand em{display:block!important;font-size:8px!important;letter-spacing:2.6px!important;font-style:normal!important;color:#fff!important;margin-top:3px!important}
body .site-header .nav{display:flex!important;align-items:center!important;gap:23px!important;flex-wrap:nowrap!important}
body .site-header .nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;position:relative!important;white-space:nowrap!important;font:700 13px Arial,sans-serif!important;color:#fff!important;text-decoration:none!important;border:0!important;border-left:0!important;border-right:0!important;padding:11px 0!important;box-shadow:none!important}
body .site-header .nav a:before{content:none!important;display:none!important}
body .site-header .nav a:after{content:none!important;display:none!important}
body .site-header .nav a svg{display:block!important;width:15px!important;height:15px!important;min-width:15px!important;max-width:15px!important;flex-shrink:0!important}
body .site-header .nav a.active{color:#f7c347!important}
body .site-header .nav a.active:after{content:""!important;display:block!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:2px!important;background:#f7c347!important}
body .site-header .nav .nav-login{margin-left:7px!important;padding:12px 20px!important;background:#fff!important;color:#062a51!important;border-radius:5px!important}
body .site-header .nav .nav-register{padding:11px 19px!important;border:1px solid #fff!important;border-radius:5px!important;background:transparent!important}
body .site-header .nav .nav-register.current-action{border-color:#f7c347!important;color:#f7c347!important}
body .site-header .menu-toggle{display:none!important;color:#fff!important;background:transparent!important;border:1px solid #ffffff80!important;border-radius:5px!important;padding:7px 11px!important;font-size:20px!important}
/* Homepage dimensions and image treatment */
body.home-view .hero{min-height:520px!important;grid-template-columns:48% 52%!important}
body.home-view .hero-copy{padding:52px 28px 52px clamp(28px,6.2vw,110px)!important}
body.home-view .hero h1{font-size:clamp(34px,3.2vw,53px)!important;line-height:1.12!important;letter-spacing:-1.2px!important;max-width:660px!important}
body.home-view .hero-visual{min-height:520px!important}
body.home-view .hero-visual:before{background:linear-gradient(110deg,#fff 0%,#ffffffd8 50%,transparent 100%)!important;clip-path:polygon(0 0,20% 0,0 100%)!important}
body.home-view .hero-visual:after{background:linear-gradient(125deg,#1788da7a 0%,transparent 43%,#082b5f9e 100%)!important}
body.home-view .diagonal-glass{opacity:.65!important}
body.home-view .slide-controls{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:18px!important;justify-content:center!important}
body.home-view .features{padding:48px clamp(25px,5vw,80px)!important;gap:18px!important}
body.home-view .feature{padding:16px!important;align-items:center!important}
body.home-view .feature-icon{width:68px!important;height:68px!important}
body.home-view .feature-icon svg{width:34px!important;height:34px!important;display:block!important}
body.home-view .banner{padding:56px clamp(30px,7vw,100px)!important}
body.home-view .login-section{display:none!important}
body.login-view .hero,body.login-view .features,body.login-view .banner{display:none!important}
body.login-view .login-section{min-height:calc(100vh - 84px)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:44px 20px!important}
body.login-view .login-shell{width:100%!important;max-width:1050px!important}
body.login-view .login-btn{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;height:46px!important;font-size:14px!important}
body.login-view .login-btn svg{width:17px!important;height:17px!important}
/* Password eye remains in precisely the same location in both states */
body .field,body .password-wrap{position:relative!important}
body .field input[type=password],body .field input[type=text][name=password],body .password-wrap input{padding-right:52px!important}
body .show-pass,body .password-toggle{position:absolute!important;right:8px!important;top:50%!important;bottom:auto!important;left:auto!important;transform:translateY(-50%)!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}
body .show-pass svg,body .password-toggle svg{width:19px!important;height:19px!important;display:block!important;flex:none!important}
/* About banner, sidebar and readable content */
body .hero:has(+ .about-layout){height:215px!important;background:linear-gradient(90deg,#062a51ed 0%,#07396caa 58%,#07396c55 100%),url('campus-library.jpg') center 52%/cover no-repeat!important;text-align:left!important;justify-content:flex-start!important;padding:30px clamp(24px,7vw,110px)!important}
body .hero:has(+ .about-layout) h1{font-size:clamp(30px,3vw,43px)!important}
body .about-layout{max-width:1220px!important;margin:0 auto!important;display:grid!important;grid-template-columns:245px minmax(0,1fr)!important;gap:42px!important;padding:38px 25px 70px!important;align-items:start!important}
body .about-sidebar{position:sticky!important;top:18px!important;width:100%!important;max-height:calc(100vh - 36px)!important;overflow:auto!important}
body .about-sidebar a{display:block!important;padding:13px 17px!important;font-size:14px!important;border-radius:5px!important}
body .about-sidebar a:first-child:not(.is-active){background:transparent!important;color:#14395d!important}
body .about-sidebar a.is-active{background:#082f5a!important;color:#fff!important}
body .about-layout .wrap{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
body .about-layout .section{scroll-margin-top:22px!important;margin-bottom:34px!important}
body .about-layout .section h2{font-size:21px!important;text-align:left!important}
body .about-layout .section h2:after{margin-left:0!important;margin-right:auto!important}
body .about-layout .section p{font-size:15px!important;line-height:1.75!important}
/* Register: keep approved form sizing, swap only image and fine alignment */
body .register-layout{max-width:1120px!important;grid-template-columns:40% 60%!important;margin:36px auto 55px!important}
body .register-art{background:linear-gradient(125deg,#052c60d9,#062957c2),url('campus-fountain.jpg') center/cover no-repeat!important}
body .register-layout .auth-card{padding:34px clamp(25px,3.5vw,52px)!important}
@media(max-width:900px){body .site-header .nav{gap:12px!important}body .site-header .brand small{max-width:260px!important}body.home-view .hero{grid-template-columns:49% 51%!important}body.home-view .hero h1{font-size:clamp(31px,3.5vw,43px)!important}body .about-layout{grid-template-columns:205px minmax(0,1fr)!important;gap:22px!important}}
@media(max-width:800px){body .site-header{height:auto!important;min-height:72px!important;flex-wrap:wrap!important}body .site-header .brand img{width:49px!important;height:49px!important}body .site-header .brand strong{font-size:20px!important}body .site-header .brand small{font-size:7px!important;max-width:220px!important}body .site-header .brand em{font-size:7px!important}body .site-header .menu-toggle{display:block!important;margin-left:auto!important}body .site-header .nav{display:none!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:3px!important;padding:8px 0!important}body .site-header .nav.open{display:flex!important}body .site-header .nav a{justify-content:flex-start!important;padding:12px!important}body .site-header .nav .nav-login{margin-left:0!important;justify-content:center!important}body .site-header .nav .nav-register{justify-content:center!important}body.home-view .hero{display:flex!important;flex-direction:column-reverse!important}body.home-view .hero-visual{min-height:290px!important}body.home-view .hero-copy{padding:35px 24px 45px!important}body.home-view .hero h1{font-size:clamp(30px,6vw,42px)!important}body.home-view .features{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:30px 18px!important}body.home-view .feature{border-right:0!important}body .about-layout{display:block!important;padding:22px 18px 50px!important}body .about-sidebar{position:sticky!important;top:0!important;z-index:8!important;display:flex!important;gap:6px!important;white-space:nowrap!important;max-height:none!important;overflow-x:auto!important;background:#fff!important;padding:9px 0!important;margin-bottom:22px!important}body .about-sidebar a{flex:none!important;font-size:12px!important;padding:10px 13px!important}body .register-layout{display:flex!important;flex-direction:column!important;margin:18px auto 40px!important;padding:0 14px!important}body .register-art{min-height:230px!important}body .register-layout .auth-card{padding:28px 22px!important}}
@media(max-width:500px){body.home-view .features{grid-template-columns:1fr!important}body.home-view .hero-visual{min-height:255px!important}body.home-view .hero h1{font-size:32px!important}body.home-view .feature{padding:12px!important}body .hero:has(+ .about-layout){height:165px!important;padding:20px!important}body .hero:has(+ .about-layout) h1{font-size:28px!important}body.login-view .login-art{padding:24px!important}}


/* Homepage hero: approved mockup's TWO translucent diagonal blue panels.
   Scoped to homepage only; all other site styles remain unchanged. */
body.home-view .hero-visual{isolation:isolate!important;overflow:hidden!important}
body.home-view .hero-visual::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;
  z-index:2!important;pointer-events:none!important;
  clip-path:polygon(24% 0,39% 0,11% 100%,0 100%)!important;
  background:linear-gradient(135deg,rgba(76,173,246,.60),rgba(7,88,170,.76))!important;
}
body.home-view .hero-visual .diagonal-glass{
  display:block!important;position:absolute!important;inset:0!important;
  z-index:2!important;pointer-events:none!important;opacity:1!important;
  clip-path:polygon(39% 0,48% 0,20% 100%,11% 100%)!important;
  background:linear-gradient(145deg,rgba(82,179,247,.50),rgba(8,81,162,.68))!important;
}
body.home-view .hero-visual::after{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;
  z-index:2!important;pointer-events:none!important;
  background:linear-gradient(110deg,rgba(11,96,178,.12) 0%,rgba(4,55,115,.03) 50%,rgba(3,35,83,.45) 100%)!important;
}
/* Preserve clean photo-first layout on narrow screens. */
@media(max-width:800px){
  body.home-view .hero-visual::before{clip-path:polygon(0 0,25% 0,0 80%)!important}
  body.home-view .hero-visual .diagonal-glass{clip-path:polygon(25% 0,36% 0,6% 100%,0 100%)!important}
}

/* Final adjustment: fade the LEFT EDGE of the slideshow photo into white,
   then light blue, while retaining both diagonal blue bands. */
body.home-view .hero-visual::after{
  background:linear-gradient(100deg,
    rgba(255,255,255,.96) 0%,
    rgba(246,251,255,.89) 10%,
    rgba(210,234,253,.70) 20%,
    rgba(123,192,243,.32) 31%,
    rgba(28,119,207,.08) 45%,
    rgba(4,46,108,.04) 68%,
    rgba(3,35,83,.34) 100%)!important;
  z-index:3!important;
}
@media(max-width:800px){
  body.home-view .hero-visual::after{
    background:linear-gradient(100deg,rgba(255,255,255,.82) 0%,rgba(195,229,255,.48) 24%,rgba(10,95,185,.04) 55%,rgba(3,35,83,.30) 100%)!important;
  }
}
