:root{--smp-blue:#0d47a1;--smp-dark-blue:#08295e;--smp-light-blue:#eaf2ff}
html{scroll-behavior:smooth;scroll-padding-top:85px}
body{background:#f7f9fd;line-height:1.6}
.navbar-custom{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.navbar-custom .nav-link{border-radius:9px}
.navbar-standard .nav-link:hover,.navbar-home-scrolled .nav-link:hover{background:#eaf2ff}
.dropdown-menu{padding:.6rem;border-radius:15px;box-shadow:0 18px 48px rgba(12,42,88,.14)}
.dropdown-item{border-radius:8px;padding:.65rem .85rem}
.btn{border-radius:11px;transition:transform .22s,box-shadow .22s}
.btn:hover{transform:translateY(-2px)}
.home-hero,.home-hero .carousel-inner,.home-hero .carousel-item{height:min(780px,88svh);min-height:570px}
.home-hero .carousel-item{background-position:center;background-size:cover}
.hero-content{z-index:2;max-width:1320px}
.hero-content h1{letter-spacing:-.045em;line-height:1.12}
.hero-eyebrow{font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.home-overlap{z-index:3;margin-top:-65px;margin-bottom:90px}
.stat-card{background:#fff;border:1px solid #e5ecf5;border-radius:19px;padding:26px;box-shadow:0 16px 50px rgba(10,35,85,.11)}
.home-section{padding:0 0 95px}
.section-kicker{color:#2563eb;font-weight:800;letter-spacing:.13em;font-size:.75rem}
.section-heading{font-size:clamp(1.75rem,3.2vw,2.6rem);font-weight:800;letter-spacing:-.035em;color:#092c69;margin:8px 0 22px}
.section-link{color:#0d47a1;text-decoration:none;font-weight:700}
.headmaster-photo{border-radius:22px;overflow:hidden;max-height:400px;background:linear-gradient(130deg,#dae8ff,#abcaf9)}
.headmaster-photo img{width:100%;height:400px;object-fit:cover;object-position:top}
.news-card{border-radius:17px;box-shadow:0 10px 35px rgba(20,50,90,.06);transition:transform .25s,box-shadow .25s}
.news-card:hover{transform:translateY(-5px);box-shadow:0 20px 45px rgba(20,50,90,.15)}
.news-thumb{width:100%;height:195px;object-fit:cover}
.news-fallback{display:grid;place-items:center;color:#0d47a1;background:#eaf2ff}
.agenda-panel{border-radius:20px;background:#fff;padding:28px;box-shadow:0 10px 35px rgba(20,50,90,.07)}
.agenda-item{padding:15px 0;border-bottom:1px solid #e8edf6}
.agenda-date{min-width:64px;text-align:center;border-radius:12px;background:#eaf2ff;color:#0d47a1;padding:8px 3px;line-height:1.2}
.agenda-date strong{display:block;font-size:1.7rem}.agenda-date small{font-size:.75rem;text-transform:uppercase}
.gallery-tile{height:235px;overflow:hidden;position:relative;border-radius:18px;background:#dce9fa}
.gallery-tile:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(1,22,65,.8))}
.gallery-tile img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gallery-tile:hover img{transform:scale(1.07)}
.gallery-tile span{position:absolute;bottom:18px;left:20px;right:20px;color:#fff;font-weight:700;z-index:1}
.empty-gallery{border:2px dashed #bcd1f3;border-radius:18px;padding:40px;text-align:center;color:#61718a}
.portal-frame{border:1px solid #dce6f7;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 22px 55px rgba(10,40,90,.10)}
.portal-topbar{display:flex;align-items:center;height:44px;background:#f1f5fb;border-bottom:1px solid #e2e8f0;padding:0 18px}
.portal-dot{width:10px;height:10px;margin-right:7px;border-radius:50%;background:#cbd5e1}
.portal-dot:first-child{background:#ff6d6d}.portal-dot:nth-child(2){background:#ffd46b}.portal-dot:nth-child(3){background:#6ccf9d}
.portal-frame iframe{display:block;width:100%;height:clamp(460px,68vw,750px);border:0}
.achievement-highlight{background:#fff;border-radius:15px;padding:22px;border:1px solid #e3eaf3;transition:transform .25s}
.achievement-highlight:hover{transform:translateY(-4px)}



.article-body img{max-width:100%;height:auto;display:inline-block;border-radius:12px}
.article-body{overflow-wrap:anywhere;line-height:1.85}
.article-body table{display:block;max-width:100%;overflow:auto}
.article-body p{margin:0 0 1.2em}
.contact-card{background:#fff;border:1px solid #e5eaf3;box-shadow:0 12px 40px rgba(14,44,92,.06);border-radius:20px;padding:30px}
.map-embed{width:100%;height:420px;border:0;border-radius:15px}
[data-reveal]{transition:opacity .65s ease, transform .65s ease}
.js-reveal [data-reveal]:not(.revealed){opacity:0;transform:translateY(25px)}
@media(max-width:991.98px){
 #mainNavbar.navbar-home-transparent{background:#fff!important;position:fixed!important}
 #mainNavbar.navbar-home-transparent .navbar-brand span{color:#0d47a1!important}
 #mainNavbar.navbar-home-transparent .navbar-brand small{color:#64748b!important}
 .home-hero{padding-top:70px}
 .home-overlap{margin-top:-24px;margin-bottom:65px}
 .home-section{padding-bottom:65px}
}
@media(max-width:575px){.home-hero,.home-hero .carousel-inner,.home-hero .carousel-item{min-height:550px;height:75svh}
.hero-content h1{font-size:2.55rem}.hero-content .lead{font-size:1.05rem}
.stat-card{padding:20px}.gallery-tile{height:180px}.home-section{padding-bottom:55px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}.js-reveal [data-reveal]:not(.revealed){opacity:1;transform:none}}
