/* Front-end template presets: default classic remains untouched. */
body.school-template-modern{--primary:#315ecb;--accent:#41a4e1;--primary-soft:#e9f1ff;--page:#fff;--card:#fff;--border:#dce6f5;--shadow:0 8px 24px rgba(33,70,130,.08)}
.school-template-modern .topbar{background:linear-gradient(95deg,#edf4ff,#fff)}
.school-template-modern .ticker .badge{border-radius:24px;box-shadow:0 5px 14px #315ecb22}
.school-template-modern .hero-frame{border-radius:22px;overflow:hidden;box-shadow:0 14px 32px rgba(25,77,148,.17)}
.school-template-modern .hero-bg{background:linear-gradient(115deg,#1646a5,#50a8dd)}
.school-template-modern .sec-title h2{color:#214a9a}
.school-template-modern .btn-soft,.school-template-modern .more-wrap a,.school-template-modern .quick-links a{border-radius:16px;transition:transform .22s,box-shadow .22s,background-color .22s}
.school-template-modern .btn-soft:hover,.school-template-modern .more-wrap a:hover,.school-template-modern .quick-links a:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(35,85,170,.16)}
.school-template-modern main section:not(.hero),.school-template-modern .sidebar > *{border-color:#e0eafb;box-shadow:0 7px 24px rgba(40,80,145,.065)}
.school-template-modern main section:not(.hero):hover{box-shadow:0 12px 28px rgba(40,80,145,.11)}
.school-template-modern .card,.school-template-modern .tile,.school-template-modern .info-card{border-radius:18px}
.school-template-modern .menu > li > a,.school-template-modern .menu .sub-menu a{border-radius:12px;transition:background-color .2s,transform .2s,box-shadow .2s}
.school-template-modern .menu > li > a:hover,.school-template-modern .menu .sub-menu a:hover{transform:translateY(-2px);box-shadow:0 6px 13px rgba(32,72,160,.14)}
@media(max-width:767px){.school-template-modern .hero-frame{border-radius:14px}.school-template-modern .menu > li > a:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.school-template-modern *{transition:none!important}}

/* Full-layout Campus Modern redesign. Not a color-only preset. */
body.school-template-modern{--primary:#164c91;--accent:#14b8a6;--page:#f7f9fc;--text:#17324b;background:#f7f9fc;color:#17324b}
.school-template-modern .container{max-width:1240px}
.school-template-modern .campus-mini{background:#112b4c;color:#dce8f5;font-size:12px;padding:9px 0}
.school-template-modern .campus-mini-row,.school-template-modern .campus-mini-row>span{display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden}
.school-template-modern .campus-mini-row>span:first-child{white-space:nowrap;text-overflow:ellipsis;max-width:70%}
.school-template-modern .campus-mini-row a{color:inherit}
.school-template-modern .campus-header{position:relative;background:#fff;box-shadow:0 8px 30px #102b4a0b;z-index:40}
.school-template-modern .campus-head-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 0}
.school-template-modern .campus-brand{display:flex;align-items:center;gap:18px;min-width:0}
.school-template-modern .campus-brand .custom-logo{width:66px;max-height:70px;object-fit:contain}
.school-template-modern .campus-brand-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:18px;background:#e9f3ff;color:#1a5699;font-size:30px}
.school-template-modern .campus-brand-title{display:flex;flex-direction:column;color:#15345a;line-height:1.4}
.school-template-modern .campus-brand-title strong{font-size:clamp(21px,3vw,30px)}
.school-template-modern .campus-brand-title span{font-size:13px;color:#617b92}
.school-template-modern .campus-header-right{display:flex;align-items:center;gap:24px}
.school-template-modern .campus-kicker{font-weight:800;font-size:12px;letter-spacing:1.2px;color:#5d7896}
.school-template-modern .campus-admission-link,.school-template-modern .campus-admission-card a{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#13a998;color:#fff;padding:12px 21px;border-radius:11px;font-weight:700;transition:transform .2s,box-shadow .2s}
.school-template-modern .campus-admission-link:hover,.school-template-modern .campus-admission-card a:hover{transform:translateY(-3px);box-shadow:0 12px 24px #0ea89b43}
.school-template-modern .campus-navigation{background:#174f93}
.school-template-modern .campus-nav-inner{display:flex;justify-content:space-between;align-items:center;min-height:58px}
.school-template-modern .campus-nav{display:flex;align-items:center;justify-content:space-between;width:100%;gap:15px}
.school-template-modern .campus-nav .menu{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.school-template-modern .campus-nav .menu>li>a{display:block;color:#fff;background:transparent;padding:12px 15px;border-radius:9px;font-size:15px;font-weight:700;transition:background .2s,transform .2s}
.school-template-modern .campus-nav .menu>li>a:hover{background:#ffffff26;transform:translateY(-2px)}
.school-template-modern .campus-nav .sub-menu{background:#fff;box-shadow:0 18px 30px #163a602b;border-radius:12px;padding:9px}
.school-template-modern .campus-nav .sub-menu a{color:#17324b;border-radius:7px}
.school-template-modern .campus-nav .sub-menu a:hover{background:#eef5ff;color:#174f93}
.school-template-modern .campus-nav .tool-btn{color:#fff;border-color:#ffffff66}
.school-template-modern .campus-toggle{color:white}
.school-template-modern .campus-hero{position:relative;min-height:490px;background:linear-gradient(120deg,#102d50,#2064a4);overflow:hidden;color:#fff}
.school-template-modern .campus-hero-photo{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.95}
.school-template-modern .campus-hero-inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:45px;min-height:490px;padding-top:55px;padding-bottom:85px}
.school-template-modern .campus-hero-content{max-width:700px}
.school-template-modern .campus-eyebrow{display:inline-block;color:#bbf6ed;border:1px solid #ffffff4d;padding:8px 15px;border-radius:99px;font-size:13px;font-weight:700}
.school-template-modern .campus-hero h1{font-size:clamp(34px,5vw,61px);line-height:1.24;margin:22px 0;color:#fff;text-wrap:balance}
.school-template-modern .campus-hero p{font-size:18px;line-height:1.8;opacity:.92;margin-bottom:30px;max-width:600px}
.school-template-modern .campus-hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.school-template-modern .campus-action{display:inline-flex;gap:12px;align-items:center;padding:14px 21px;font-weight:800;border-radius:12px;transition:transform .2s,background .2s}
.school-template-modern .campus-action:hover{transform:translateY(-4px)}
.school-template-modern .campus-action.primary{background:#11b8a4;color:#fff}.school-template-modern .campus-action.secondary{border:1px solid #ffffff88;color:#fff}
.school-template-modern .campus-hero-side{width:240px;min-width:240px;background:#ffffff18;backdrop-filter:blur(10px);padding:28px;border-radius:22px;border:1px solid #ffffff55;display:flex;flex-direction:column;gap:10px;box-shadow:0 25px 45px #00000016}
.school-template-modern .campus-hero-side span{font-size:14px;color:#acfff4}.school-template-modern .campus-hero-side strong{font-size:25px;line-height:1.45}.school-template-modern .campus-hero-side small{font-size:12px}
.school-template-modern .campus-quick-wrap{position:relative;margin-top:-49px;z-index:3}
.school-template-modern .campus-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.school-template-modern .campus-quick{display:flex;align-items:center;gap:14px;background:#fff;padding:22px 18px;border-radius:17px;box-shadow:0 12px 37px #1d426019;border:1px solid #e8edf5;color:#1b3958;transition:transform .2s,box-shadow .2s}
.school-template-modern .campus-quick:hover{transform:translateY(-6px);box-shadow:0 18px 38px #1d42602e}
.school-template-modern .campus-quick>span{width:48px;height:48px;border-radius:13px;background:#e6f4f9;color:#146299;display:grid;place-items:center;font-size:21px}
.school-template-modern .campus-quick>b{font-size:15px;flex:1}.school-template-modern .campus-quick>i{color:#91a7bc;font-size:12px}
.school-template-modern .campus-main-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(285px,1fr);align-items:start;gap:27px;margin-top:43px;margin-bottom:75px}
.school-template-modern .campus-primary-column,.school-template-modern .campus-aside{display:flex;flex-direction:column;gap:26px;min-width:0}
.school-template-modern .campus-panel{background:#fff;border:1px solid #e4ebf2;padding:28px;border-radius:20px;box-shadow:0 7px 24px #10375d0b}
.school-template-modern .campus-label{color:#00998f;font-size:11px;font-weight:900;letter-spacing:1.5px}
.school-template-modern .campus-section-heading{margin-bottom:22px}
.school-template-modern .campus-section-heading h2{font-size:25px;margin-top:5px;color:#15395c}
.school-template-modern .campus-about-grid{display:grid;grid-template-columns:1fr 220px;gap:25px;align-items:center}
.school-template-modern .campus-about-content p{line-height:1.95;color:#526879}.school-template-modern .campus-about-image,.school-template-modern .campus-about-placeholder{width:100%;height:170px;object-fit:cover;border-radius:16px;background:#ebf5fc}
.school-template-modern .campus-about-placeholder{display:grid;place-items:center;font-size:65px;color:#9cc4e1}
.school-template-modern .campus-inline-link{color:#1368ab;font-size:14px;font-weight:800;display:inline-flex;align-items:center;gap:9px;margin-top:20px}.school-template-modern .campus-inline-link:hover{color:#0fae9e}
.school-template-modern .campus-people-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.school-template-modern .campus-person{display:flex;flex-direction:column;gap:8px;padding:10px 10px 17px;border:1px solid #e9eef3;border-radius:15px;transition:transform .2s}
.school-template-modern .campus-person:hover{transform:translateY(-5px);border-color:#9dd9dc}
.school-template-modern .campus-person img,.school-template-modern .campus-person .img-placeholder{width:100%;height:116px;object-fit:cover;border-radius:11px;background:#eaf1f7}
.school-template-modern .campus-person strong{font-size:13px}.school-template-modern .campus-person small{font-size:11px;color:#708397}
.school-template-modern .campus-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.school-template-modern .campus-gallery-item{position:relative;overflow:hidden;border-radius:14px;min-height:128px;background:#e6edf5}
.school-template-modern .campus-gallery-item img,.school-template-modern .campus-gallery-item .img-placeholder{width:100%;height:155px;object-fit:cover}
.school-template-modern .campus-gallery-item span:not(.img-placeholder){position:absolute;left:0;right:0;bottom:0;padding:16px 12px 10px;background:linear-gradient(transparent,#092745db);color:#fff;font-size:12px}
.school-template-modern .campus-gallery-item:hover img{transform:scale(1.06)}.school-template-modern .campus-gallery-item img{transition:transform .3s}
.school-template-modern .campus-notice-list{display:flex;flex-direction:column;gap:2px}
.school-template-modern .campus-notice{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eaf0f5;color:#244563}
.school-template-modern .campus-notice:hover{color:#0b9d96}
.school-template-modern .campus-notice time{background:#edf5ff;color:#2465a4;font-weight:800;font-size:11px;line-height:1.3;text-align:center;min-width:53px;padding:10px 6px;border-radius:9px}
.school-template-modern .campus-notice span{flex:1;font-size:13px}.school-template-modern .campus-notice>i{font-size:10px}
.school-template-modern .campus-admission-card{background:linear-gradient(150deg,#174d90,#112b51);padding:34px 28px;border-radius:20px;color:#fff}
.school-template-modern .campus-admission-card>span{display:grid;place-items:center;width:66px;height:66px;background:#ffffff24;border-radius:18px;font-size:29px;margin-bottom:20px}
.school-template-modern .campus-admission-card small{letter-spacing:1.7px;color:#83e8d7;font-size:11px;font-weight:800}
.school-template-modern .campus-admission-card h2{font-size:26px;color:#fff;margin:10px 0}
.school-template-modern .campus-admission-card p{color:#dae8f6;font-size:14px;line-height:1.8;margin:0 0 22px}
.school-template-modern .campus-event{display:flex;gap:13px;align-items:center;padding:14px 0;border-bottom:1px solid #e9eef5;font-size:13px}
.school-template-modern .campus-event i{color:#009e94}.school-template-modern .campus-empty{color:#7d90a1;font-size:14px}
.school-template-modern .site-footer{background:#102c4d;color:#e4f0fc}.school-template-modern .footer-main{background:transparent}
.school-template-modern .footer-grid{grid-template-columns:1fr 1fr 1.5fr;gap:40px;padding-top:65px;padding-bottom:55px}
.school-template-modern .site-footer .f-col{background:#ffffff08;border:1px solid #ffffff17;border-radius:18px;padding:24px}
.school-template-modern .site-footer .f-col h4{color:#fff}.school-template-modern .footer-bottom{background:#0a213d}
@media(max-width:1000px){.school-template-modern .campus-hero-side,.school-template-modern .campus-kicker{display:none}.school-template-modern .campus-main-grid{grid-template-columns:1fr}.school-template-modern .campus-quick-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.school-template-modern .campus-mini{display:none}.school-template-modern .campus-head-row{padding:13px 0}.school-template-modern .campus-brand .custom-logo{width:48px;height:48px}.school-template-modern .campus-brand-title strong{font-size:18px}.school-template-modern .campus-brand-title span{font-size:11px}.school-template-modern .campus-header-right{display:none}.school-template-modern .campus-nav-inner{min-height:50px}.school-template-modern .campus-nav{display:none}.school-template-modern .campus-nav.open,.school-template-modern .campus-nav.is-open,.school-template-modern .campus-nav.active{display:block}.school-template-modern .campus-hero,.school-template-modern .campus-hero-inner{min-height:390px}.school-template-modern .campus-hero-inner{padding:55px 0 85px}.school-template-modern .campus-hero h1{font-size:32px}.school-template-modern .campus-hero p{font-size:15px}.school-template-modern .campus-quick-grid{gap:10px}.school-template-modern .campus-quick{padding:15px 10px;gap:8px}.school-template-modern .campus-quick>span{width:35px;height:35px;font-size:16px}.school-template-modern .campus-quick>b{font-size:12px}.school-template-modern .campus-quick>i{display:none}.school-template-modern .campus-main-grid{margin-top:25px}.school-template-modern .campus-panel{padding:19px}.school-template-modern .campus-section-heading h2{font-size:22px}.school-template-modern .campus-about-grid{grid-template-columns:1fr}.school-template-modern .campus-people-grid{grid-template-columns:repeat(2,1fr)}.school-template-modern .campus-gallery-grid{grid-template-columns:repeat(2,1fr)}.school-template-modern .footer-grid{grid-template-columns:1fr}}


/* Full visual templates v1.0.9: original site modules and PHP data queries are retained. */
body.school-template-education{--redesign-accent:#078b8f;--redesign-soft:#e5f8f6;--redesign-dark:#104456;background:#fff}
body.school-template-academy{--redesign-accent:#852d4b;--redesign-soft:#fff5e7;--redesign-dark:#401c31;background:#fff}
body.school-template-digital{--redesign-accent:#5749d6;--redesign-soft:#edeeff;--redesign-dark:#252277;background:#fff}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign{--primary:var(--redesign-accent);--primary-soft:var(--redesign-soft);isolation:isolate}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .site-header{position:relative;z-index:12}
body:is(.school-template-education,.school-template-academy,.school-template-digital) :is(.sec-title h2,.section-title h2){color:var(--redesign-dark)}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign>section{margin-top:28px;margin-bottom:28px;transition:box-shadow .22s,transform .22s}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign>section:not(.hero){background:#fff;border:1px solid #e6edf1;border-radius:24px;box-shadow:0 8px 30px rgba(23,45,62,.065);padding:24px}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign>section:not(.hero):hover{box-shadow:0 16px 37px rgba(23,45,62,.115)}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign :is(.btn-solid,.btn-soft,.more-wrap a){border-radius:13px;transition:transform .2s,box-shadow .2s,background .2s}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign :is(.btn-solid,.btn-soft,.more-wrap a):hover{transform:translateY(-3px);box-shadow:0 8px 16px #10182822}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign .hero{margin-top:24px;overflow:hidden;border-radius:26px}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign .hero-frame{overflow:hidden;border-radius:24px}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign :is(.quick-links,.info-row){position:relative;z-index:2}
body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign .block{min-width:0}
body:is(.school-template-education,.school-template-academy,.school-template-digital) :is(.main-nav a,.menu a){transition:background-color .2s,color .2s,transform .2s,box-shadow .2s}
body:is(.school-template-education,.school-template-academy,.school-template-digital) :is(.main-nav a:hover,.menu a:hover){transform:translateY(-2px)}
/* Modern Education: airy light teal, pill navigation and staggered panels. */
body.school-template-education .school-full-redesign{background:radial-gradient(ellipse at top,#eafaf8 0%,#fff 35%);padding:1px 0 48px}
body.school-template-education :is(.main-nav,.nav-bar,.main-menu-wrap){border-radius:14px}
body.school-template-education .school-full-redesign .hero{border-radius:36px 12px 36px 12px;box-shadow:0 22px 50px #067c8730}
body.school-template-education .school-full-redesign>section:not(.hero){border-left:4px solid #55b9b5;border-radius:26px 10px 26px 10px}
body.school-template-education .school-full-redesign>section.band{border-left:4px solid #138e93}
body.school-template-education .school-full-redesign .quick-links{margin-top:-20px}
body.school-template-education .school-full-redesign .info-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}
body.school-template-education .site-footer{border-top:5px solid #06959a}
/* Premium Academy: editorial premium style, gold accents, restrained corners. */
body.school-template-academy .school-full-redesign{background:linear-gradient(180deg,#fffcf7,#fff 38%);padding:1px 0 65px}
body.school-template-academy .school-full-redesign .hero{box-shadow:0 20px 45px #682a3a29;border-radius:5px;border-bottom:7px solid #bc9254}
body.school-template-academy .school-full-redesign>section:not(.hero){border-radius:5px;border-color:#ebdfd6;border-top:3px solid #c79c61;padding:32px;box-shadow:0 12px 26px #4d2b3510}
body.school-template-academy .school-full-redesign :is(.sec-title,.section-title){border-bottom:1px solid #dfc69e;padding-bottom:12px}
body.school-template-academy .school-full-redesign .quick-links{margin-top:24px}
body.school-template-academy .school-full-redesign .band{background:#fffaf2}
body.school-template-academy .site-footer{border-top:6px solid #b98b50}
/* Digital School: tech neon accents, nested rounded panels and asymmetric structure. */
body.school-template-digital .school-full-redesign{background:radial-gradient(ellipse at top left,#efefff,#fff 38%);padding:1px 0 60px}
body.school-template-digital .school-full-redesign .hero{box-shadow:0 22px 48px #4136a636;border-radius:30px}
body.school-template-digital .school-full-redesign>section:not(.hero){border:1px solid #dadcf8;border-radius:28px;box-shadow:0 10px 28px #403d9e13}
body.school-template-digital .school-full-redesign>section:not(.hero):nth-of-type(even){background:#fafaff}
body.school-template-digital .school-full-redesign .quick-links{margin-top:-18px}
body.school-template-digital .school-full-redesign .info-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
body.school-template-digital .school-full-redesign .sec-title .line{background:#07b9d9}
body.school-template-digital .site-footer{border-top:6px solid #00acc8}
/* Theme-specific redesigned masthead and menu: keeps every original header control in place. */
body.school-template-education :is(.topbar,.top-bar){background:#075d63;color:#fff}
body.school-template-academy :is(.topbar,.top-bar){background:#431c31;color:#fff}
body.school-template-digital :is(.topbar,.top-bar){background:#28247e;color:#fff}
body.school-template-education :is(.main-nav,.navbar,.nav-bar){background:#067d83}
body.school-template-academy :is(.main-nav,.navbar,.nav-bar){background:#5c2340}
body.school-template-digital :is(.main-nav,.navbar,.nav-bar){background:linear-gradient(105deg,#3732a6,#1668ae)}
body.school-template-education :is(.site-header,.header-main){border-bottom:3px solid #0c9998}
body.school-template-academy :is(.site-header,.header-main){border-bottom:3px solid #b68c4d}
body.school-template-digital :is(.site-header,.header-main){border-bottom:3px solid #19b6d8}
@media(max-width:850px){body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign .info-row{display:block}}
@media(max-width:600px){body:is(.school-template-education,.school-template-academy,.school-template-digital) .school-full-redesign>section:not(.hero){padding:16px;border-radius:16px}body.school-template-academy .school-full-redesign>section:not(.hero){padding:18px}}
@media(prefers-reduced-motion:reduce){body:is(.school-template-education,.school-template-academy,.school-template-digital) *{transition:none!important}}

/* v1.0.9: Modern Sky also renders all original dynamic sections. */
body.school-template-modern .school-full-redesign{--primary:#3868d9;--primary-soft:#eaf2ff;background:linear-gradient(180deg,#edf5ff,#fff 45%);padding:1px 0 60px}
body.school-template-modern .school-full-redesign>section{margin-top:26px;margin-bottom:26px}
body.school-template-modern .school-full-redesign>section:not(.hero){background:#fff;border:1px solid #dce9fc;border-radius:23px;box-shadow:0 10px 30px #154a8513;padding:27px}
body.school-template-modern .school-full-redesign>section:not(.hero):hover{box-shadow:0 15px 35px #154a8523}
body.school-template-modern .school-full-redesign .hero{overflow:hidden;border-radius:26px;box-shadow:0 16px 42px #204b9930}
body.school-template-modern .school-full-redesign .hero-frame{border-radius:26px;overflow:hidden}
body.school-template-modern .school-full-redesign :is(.btn-solid,.btn-soft,.more-wrap a){border-radius:13px;transition:transform .2s}
body.school-template-modern .school-full-redesign :is(.btn-solid,.btn-soft,.more-wrap a):hover{transform:translateY(-3px)}
@media(max-width:600px){body.school-template-modern .school-full-redesign>section:not(.hero){padding:16px;border-radius:16px}}


/* Green School Portal template based on the user's supplied layout reference. */
body.school-template-portal{--portal-green:#0a8f68;--portal-green-dark:#055f47;--portal-green-deep:#064534;--portal-soft:#eef8f3;--portal-border:#d9ece4;--portal-text:#173a32;background:#f5fbf7;color:var(--portal-text)}
body.school-template-portal .container{max-width:1180px}
body.school-template-portal .top-banner{background:#0f6a52}
body.school-template-portal .portal-header{position:relative;z-index:30;background:transparent}
body.school-template-portal .portal-topbar{padding:14px 0 10px;background:#f5fbf7}
body.school-template-portal .portal-topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#fff;border:1px solid var(--portal-border);border-radius:18px;padding:10px 16px;box-shadow:0 8px 24px rgba(10,71,52,.08)}
body.school-template-portal .portal-brand{display:flex;align-items:center;gap:12px;min-width:0}body.school-template-portal .portal-brand .custom-logo,body.school-template-portal .portal-brand-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}body.school-template-portal .portal-brand-icon{background:linear-gradient(135deg,#0b8f67,#1eb77e);color:#fff;font-size:26px}body.school-template-portal .portal-brand-text{display:flex;flex-direction:column;gap:2px;min-width:0}body.school-template-portal .portal-brand-text strong{font-size:29px;line-height:1.1;color:#133830}body.school-template-portal .portal-brand-text small{font-size:14px;color:#5c7a71}
body.school-template-portal .portal-top-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end}body.school-template-portal .portal-top-actions>a{display:inline-flex;align-items:center;gap:8px;color:#35574e;font-weight:600;font-size:13px}body.school-template-portal .portal-top-actions>a i{color:#0a8f68}body.school-template-portal .portal-admission-btn{background:linear-gradient(135deg,#0d946a,#0a805d);color:#fff!important;border-radius:12px;padding:12px 16px;box-shadow:0 10px 20px rgba(10,128,93,.18)}
body.school-template-portal .portal-nav-wrap{background:linear-gradient(180deg,#0b8e67,#086c50);border-top:1px solid #0c7c5a;border-bottom:1px solid #09694d;box-shadow:0 12px 22px rgba(10,83,62,.12)}
body.school-template-portal .portal-nav-row{display:flex;align-items:center;min-height:56px}body.school-template-portal .portal-toggle{display:none;background:#fff;color:#0b8e67;border:0;border-radius:10px;padding:9px 12px;font-weight:700}body.school-template-portal .portal-nav{display:flex;align-items:center;justify-content:space-between;width:100%;gap:18px}body.school-template-portal .portal-nav .menu{display:flex;align-items:center;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}body.school-template-portal .portal-nav .menu>li>a{display:inline-flex;align-items:center;padding:11px 14px;color:#fff;font-weight:700;font-size:14px;border-radius:10px}body.school-template-portal .portal-nav .menu>li.current-menu-item>a,body.school-template-portal .portal-nav .menu>li>a:hover{background:rgba(255,255,255,.15)}body.school-template-portal .portal-nav .header-tools{display:flex;align-items:center;gap:8px}body.school-template-portal .portal-nav .tool-btn{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.14)}
body.school-template-portal .school-layout-portal{padding:18px 0 50px}
body.school-template-portal .portal-hero-wrap{margin-top:0}body.school-template-portal .hero-frame{border-radius:0 0 18px 18px;overflow:hidden;border:1px solid var(--portal-border);box-shadow:0 18px 30px rgba(7,89,65,.12)}body.school-template-portal .hero .slide{position:relative;min-height:410px}body.school-template-portal .hero .slide img,body.school-template-portal .hero .hero-bg{width:100%;height:440px;object-fit:cover;display:block}body.school-template-portal .hero .slide::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,71,52,.86) 0%,rgba(4,71,52,.75) 35%,rgba(4,71,52,.15) 72%,rgba(4,71,52,0) 100%)}body.school-template-portal .hero-caption{position:absolute;z-index:2;left:42px;bottom:54px;max-width:520px;color:#fff;font-size:46px;font-weight:800;line-height:1.12;text-shadow:0 4px 20px rgba(0,0,0,.25)}body.school-template-portal .hero-caption a,body.school-template-portal .hero-caption strong{color:#fff}body.school-template-portal .hero-caption p{margin:14px 0 0;font-size:17px;font-weight:500;line-height:1.8;color:#e5f7f0;text-shadow:none}body.school-template-portal .portal-hero-btn{display:inline-flex;margin-top:18px;background:#0a8f68;color:#fff!important;border:1px solid rgba(255,255,255,.3)}body.school-template-portal .hero .dots{bottom:18px}.school-template-portal .hero .dots span{background:#cde9de}.school-template-portal .hero .dots .active{background:#1ccd7b}
body.school-template-portal .portal-quick-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px auto 0}body.school-template-portal .portal-quick{background:#fff;border:1px solid var(--portal-border);border-radius:16px;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 16px;font-weight:700;box-shadow:0 8px 20px rgba(10,71,52,.05)}body.school-template-portal .portal-quick i{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--portal-soft);color:#0a8f68;font-size:16px}body.school-template-portal .portal-quick:hover{transform:translateY(-3px);box-shadow:0 14px 24px rgba(10,71,52,.12)}
body.school-template-portal .portal-upper-grid,body.school-template-portal .portal-double-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;margin-top:20px}body.school-template-portal .portal-side-stack{display:grid;gap:20px}body.school-template-portal .portal-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body.school-template-portal .portal-panel{background:#fff;border:1px solid var(--portal-border);border-radius:18px;padding:20px;box-shadow:0 10px 26px rgba(9,67,51,.06);margin-top:20px}body.school-template-portal .portal-panel:hover{box-shadow:0 16px 30px rgba(9,67,51,.1)}body.school-template-portal .portal-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e7f0eb}body.school-template-portal .portal-panel-head h2,body.school-template-portal .portal-panel-head h3{font-size:28px;margin:0;color:#143c32;display:flex;align-items:center;gap:10px}body.school-template-portal .portal-panel-head h3{font-size:20px}body.school-template-portal .portal-panel-head h2 i,body.school-template-portal .portal-panel-head h3 i{color:#0a8f68}body.school-template-portal .portal-panel-head>a{font-size:14px;font-weight:700;color:#0a8f68}
body.school-template-portal .portal-notice-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}body.school-template-portal .portal-notice-list li{padding:14px 0;border-bottom:1px solid #edf3ef;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}body.school-template-portal .portal-notice-list li:last-child{border-bottom:0}body.school-template-portal .portal-notice-list a{font-weight:700;color:#193d34}body.school-template-portal .portal-notice-list small{font-size:12px;color:#6b817a}body.school-template-portal .portal-notice-list .new-tag{margin-left:0}
body.school-template-portal .portal-admission-panel{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:16px;background:linear-gradient(135deg,#f4ebff,#efeefc);border-color:#e8ddfa;margin-top:0}body.school-template-portal .portal-admission-copy>span{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#6f36d415;color:#6430d0;font-size:26px;margin-bottom:14px}body.school-template-portal .portal-admission-copy h2{font-size:38px;color:#4b26ae;margin:0 0 10px}body.school-template-portal .portal-admission-copy p{margin:0 0 16px;color:#5f5676;line-height:1.8}body.school-template-portal .portal-admission-media img{width:100%;height:180px;object-fit:cover;border-radius:0 22px 22px 60px}body.school-template-portal .portal-admission-panel .btn-solid{background:#6b38db}
body.school-template-portal .portal-links{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}body.school-template-portal .portal-links li a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;background:var(--portal-soft);color:#215046;font-weight:700}body.school-template-portal .portal-links li a:hover{background:#dff4e8;transform:translateX(4px)}
body.school-template-portal .portal-people-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}body.school-template-portal .portal-person-card,body.school-template-portal .portal-committee-card{background:#fff;border:1px solid #e6efea;border-radius:16px;padding:14px;text-align:center;box-shadow:0 6px 18px rgba(10,71,52,.04)}body.school-template-portal .portal-person-photo,body.school-template-portal .portal-committee-photo{display:block;overflow:hidden;border-radius:12px;margin-bottom:12px}.school-template-portal .portal-person-photo img,.school-template-portal .portal-committee-photo img,.school-template-portal .portal-person-photo .img-placeholder,.school-template-portal .portal-committee-photo .img-placeholder{width:100%;height:165px;object-fit:cover;background:#e7f1ec}.school-template-portal .portal-person-card h3,.school-template-portal .portal-committee-card h3{font-size:17px;margin:0 0 4px}.school-template-portal .portal-person-card small,.school-template-portal .portal-committee-card small{color:#6b8079;font-size:12px}
body.school-template-portal .portal-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}body.school-template-portal .portal-gallery-item{position:relative;overflow:hidden;border-radius:16px;background:#e6f0eb}body.school-template-portal .portal-gallery-item img,body.school-template-portal .portal-gallery-item .img-placeholder{width:100%;height:180px;object-fit:cover;display:block}body.school-template-portal .portal-gallery-cap{position:absolute;left:0;right:0;bottom:0;padding:15px 12px 10px;background:linear-gradient(transparent,rgba(8,55,41,.88));color:#fff;font-weight:700;font-size:13px}.school-template-portal .portal-gallery-item:hover img{transform:scale(1.05)}.school-template-portal .portal-gallery-item img{transition:transform .32s}
body.school-template-portal .portal-mini-list{display:grid;gap:14px}body.school-template-portal .portal-mini-card{display:grid;gap:12px;padding:14px;border:1px solid #e6efea;border-radius:14px;background:#fbfdfc}.school-template-portal .portal-mini-top{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center}.school-template-portal .portal-mini-top img,.school-template-portal .portal-mini-top .img-placeholder{width:70px;height:70px;object-fit:cover;border-radius:14px;background:#e7f1ec}.school-template-portal .portal-mini-card h3{font-size:17px;margin:0 0 2px}.school-template-portal .portal-mini-card small{color:#6b817a}.school-template-portal .portal-mini-card p{margin:0;color:#435e57;line-height:1.8}
body.school-template-portal .portal-committee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.school-template-portal .portal-about-grid{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center}.school-template-portal .portal-about-media img,.school-template-portal .portal-about-media .img-placeholder{width:100%;height:190px;object-fit:cover;border-radius:16px;background:#e7f1ec}.school-template-portal .portal-about-copy p{margin:0 0 16px;line-height:1.9;color:#47635b}
body.school-template-portal .portal-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.school-template-portal .portal-stat{padding:18px;border-radius:16px;background:var(--portal-soft);text-align:center}.school-template-portal .portal-stat strong{display:block;font-size:28px;color:#0a8f68}.school-template-portal .portal-stat span{color:#527068;font-weight:700;font-size:14px}
body.school-template-portal .portal-ach-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.school-template-portal .portal-ach{padding:18px 12px;text-align:center;border-radius:16px;background:linear-gradient(180deg,#f8fcfa,#edf8f3);border:1px solid #d9ece4}.school-template-portal .portal-ach i{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;margin:0 auto 12px;background:#0a8f6810;color:#0a8f68;font-size:20px}.school-template-portal .portal-ach strong{display:block;font-size:28px;color:#143c32}.school-template-portal .portal-ach span{font-size:14px;color:#5c756e}
body.school-template-portal .portal-event-list,body.school-template-portal .portal-download-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.school-template-portal .portal-event-list li{display:grid;grid-template-columns:66px 1fr;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #edf3ef}.school-template-portal .portal-event-list li:last-child{border-bottom:0}.school-template-portal .portal-event-list li div a{display:block;font-weight:700;color:#163b31}.school-template-portal .portal-event-list li div small{display:block;color:#70827c}.school-template-portal .portal-download-list li a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--portal-soft);font-weight:700}.school-template-portal .portal-download-list i{color:#0a8f68}
body.school-template-portal .portal-testi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.school-template-portal .portal-testi-card{padding:18px;border-radius:16px;background:#fbfdfc;border:1px solid #e4efea}.school-template-portal .portal-testi-card>i{font-size:20px;color:#0a8f68;margin-bottom:10px}.school-template-portal .portal-testi-card p{line-height:1.85;color:#47635b}.school-template-portal .portal-testi-card strong{display:block;color:#173d33}.school-template-portal .portal-testi-card small{display:block;color:#789089}
body.school-template-portal .portal-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.school-template-portal .portal-blog-card{overflow:hidden;border:1px solid #e4efea;border-radius:16px;background:#fff}.school-template-portal .portal-blog-thumb img,.school-template-portal .portal-blog-thumb .img-placeholder{width:100%;height:190px;object-fit:cover;background:#e7f1ec}.school-template-portal .portal-blog-body{padding:16px}.school-template-portal .portal-blog-body h3{font-size:18px;margin:0 0 6px}.school-template-portal .portal-blog-body small{display:block;margin-bottom:10px;color:#6b8079}.school-template-portal .portal-blog-body p{margin:0;color:#4e6961;line-height:1.75}
body.school-template-portal .site-footer{background:linear-gradient(180deg,#04523f,#063a2e);border-top:4px solid #0fa56f;color:#e8f7f0;margin-top:34px}body.school-template-portal .footer-main{background:transparent}body.school-template-portal .footer-grid{grid-template-columns:1fr 1fr 1.2fr;gap:26px;padding-top:44px;padding-bottom:26px}body.school-template-portal .site-footer .f-col{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px}body.school-template-portal .site-footer h4{color:#fff}body.school-template-portal .site-footer :is(a,li,span){color:#e8f7f0}body.school-template-portal .footer-bottom{background:rgba(0,0,0,.12)}body.school-template-portal .socials a{box-shadow:none}
@media (max-width: 1024px){body.school-template-portal .portal-upper-grid,body.school-template-portal .portal-double-grid{grid-template-columns:1fr}body.school-template-portal .portal-people-grid,body.school-template-portal .portal-gallery-grid,body.school-template-portal .portal-blog-grid,body.school-template-portal .portal-testi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.school-template-portal .portal-ach-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.school-template-portal .portal-topbar-inner{flex-direction:column;align-items:flex-start}body.school-template-portal .portal-top-actions{justify-content:flex-start}}
@media (max-width: 767px){body.school-template-portal .portal-topbar-inner{padding:12px}body.school-template-portal .portal-brand-text strong{font-size:22px}body.school-template-portal .portal-nav-row{min-height:54px;padding:10px 0}body.school-template-portal .portal-toggle{display:inline-flex;align-items:center;gap:8px}body.school-template-portal .portal-nav{display:none;position:absolute;left:12px;right:12px;top:100%;margin-top:6px;background:#09684d;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px;box-shadow:0 16px 26px rgba(0,0,0,.18)}body.school-template-portal .portal-nav.open,body.school-template-portal .portal-nav.active,body.school-template-portal .portal-nav.is-open{display:flex;flex-direction:column;align-items:stretch}body.school-template-portal .portal-nav .menu{flex-direction:column;align-items:stretch}body.school-template-portal .portal-nav .header-tools{justify-content:flex-start}body.school-template-portal .hero .slide img,body.school-template-portal .hero .hero-bg{height:360px}body.school-template-portal .hero-caption{left:20px;right:20px;bottom:28px;max-width:none;font-size:30px}body.school-template-portal .hero-caption p{font-size:14px;line-height:1.7}body.school-template-portal .portal-quick-strip{grid-template-columns:repeat(2,minmax(0,1fr))}body.school-template-portal .portal-link-grid{grid-template-columns:1fr}body.school-template-portal .portal-admission-panel{grid-template-columns:1fr}body.school-template-portal .portal-admission-media img{height:180px;border-radius:18px}body.school-template-portal .portal-people-grid,body.school-template-portal .portal-gallery-grid,body.school-template-portal .portal-blog-grid,body.school-template-portal .portal-testi-grid,body.school-template-portal .portal-ach-grid,body.school-template-portal .portal-committee-grid,body.school-template-portal .portal-stat-grid{grid-template-columns:1fr}body.school-template-portal .portal-about-grid{grid-template-columns:1fr}body.school-template-portal .portal-panel{padding:16px}body.school-template-portal .portal-panel-head{align-items:flex-start;flex-direction:column}body.school-template-portal .portal-panel-head h2{font-size:24px}body.school-template-portal .portal-notice-list li{grid-template-columns:1fr}body.school-template-portal .footer-grid{grid-template-columns:1fr}}
