.smb-section { margin:var(--sm-section-space,80px) auto; }
.smb-section > h2 { margin-bottom:calc(var(--sm-section-space,80px) / 2); }
.smb-bg-white { background:#fff; color:#094070; }
.smb-bg-grey { background:#e9eaf0; color:#094070; }
.smb-bg-light-blue { background:#d7ecfb; color:#094070; }
.smb-bg-blue { background:#065da8; color:#fff; }
.smb-bg-blue h2,.smb-bg-blue h3 { color:#fff !important; }
.smb-bg-blue a:not(.sm-button) { color:#fff; }
.smb-values { padding:0 var(--sm-gutter,40px); }
.smb-values .sm-rich-text p { font-weight:bold; }
.smb-values .sm-value-text p { margin:0 0 16px; }
.smb-button { margin:20px 0; }
.smb-button-blue .sm-button { background:#065da8; color:#fff; }
.smb-button-light-blue .sm-button { background:#d7ecfb; color:#094070; }
.smb-button .sm-button:hover { background:#000; color:#fff; }
.smb-hero .smb-hero-image { width:100%; height:100%; object-fit:cover; }
.smb-hero .sm-slide-image { position:relative; overflow:hidden; }
/* Progressive enhancement: without JS, the first slide is usable. */
.smb-hero .smb-slide:first-child { opacity:1; visibility:visible; pointer-events:auto; }
.smb-hero.smb-ready .smb-slide { opacity:0; visibility:hidden; pointer-events:none; }
.smb-hero.smb-ready .sm-slide-active { opacity:1; visibility:visible; pointer-events:auto; }
.smb-hero .sm-slider-controls { display:none; }
.smb-hero.smb-ready .sm-slider-controls { display:flex; }
.smb-hero .smb-play-icon { display:none; }
.smb-hero.smb-paused .smb-play-icon { display:block; }
.smb-hero.smb-paused .smb-pause-icon { display:none; }
.smb-welcome .sm-intro-text p { margin:0 0 20px; }
.smb-welcome .sm-intro-text p:last-child { margin-bottom:0; }
.sm-feature.smb-bg-white h2,.sm-feature.smb-bg-grey h2,.sm-feature.smb-bg-light-blue h2 { color:#065da8 !important; }
.sm-feature .sm-feature-content > h2 { margin:0 0 24px; }
.sm-feature .sm-feature-content p { margin-bottom:20px; }
.smb-image-left .sm-feature-image { order:-1; }
.smb-accordion-item { margin:15px 0; border:1px solid #a8bcc6; border-radius:10px; background:#fff; }
.smb-accordion-item summary { padding:20px; cursor:pointer; color:#065da8; font-weight:bold; }
.smb-accordion-content { padding:0 20px 20px; }
.smb-accordion-item summary:hover { background:#e9eaf0; border-radius:10px; }
.smb-accordion-item summary:focus-visible { outline:3px solid #065da8; outline-offset:3px; }
.sm-logo-list .sm-logo-item a { display:block; }
@media(max-width:767px) { .smb-section { margin:0px auto; } .smb-values { padding:0 20px; }  }
@media(prefers-reduced-motion:reduce) { .smb-hero .smb-slide { transition:none !important; } }

/* Values form complete rows rather than shrinking into one long row. */
.sm-body .smb-values .sm-values { display:grid; grid-template-columns:minmax(0,1fr); gap:30px; }
.sm-body .smb-values .sm-values > .sm-value { min-width:0; padding:0; }
@media(min-width:768px) { .sm-body .smb-values .sm-values { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(min-width:1280px) { .sm-body .smb-values .sm-values { grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px; } }
/* Quote layout and controls mirror the ELIAS quote, with school colours/type. */
.sm-quote { width:min(1180px,calc(100% - 80px)); margin:var(--sm-section-space,80px) auto; display:grid; overflow:hidden; border-radius:12px; }
.sm-quote.has-image { grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); }
.sm-quote.has-image.image-right { grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); }
.sm-quote.image-right > img { grid-column:2; grid-row:1; }
.sm-quote.image-right > blockquote { grid-column:1; grid-row:1; }
.sm-quote > img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.sm-quote > blockquote { margin:0; padding:clamp(38px,5vw,72px); border:0; display:flex; flex-direction:column; justify-content:center; }
.sm-quote blockquote > p { margin:0; font-size:clamp(26px,4vw,var(--quote-font-size,54px)); font-weight:300; line-height:1.12; }
.sm-quote figcaption { margin-top:24px; font-size:18px; color:inherit; }
.sm-quote.is-simple { max-width:none; }
@media(max-width:900px) {
 .sm-quote.has-image,.sm-quote.has-image.image-right { grid-template-columns:1fr; }
 .sm-quote.image-right > img,.sm-quote.image-right > blockquote { grid-column:1; grid-row:auto; }
 .sm-quote.image-right > img { order:0; } .sm-quote.image-right > blockquote { order:1; }
 .sm-quote > img { min-height:0; aspect-ratio:16/9; }
}
@media(max-width:700px) { .sm-quote { width:calc(100% - 40px); } .sm-quote > img { aspect-ratio:4/3; } }
/* ELIAS Styles options. */
.is-style-no-top-space { margin-top:0 !important; padding-top:0 !important; }
.is-style-no-bottom-space { margin-bottom:0 !important; padding-bottom:0 !important; }
.is-style-no-vertical-space { margin-top:0 !important; margin-bottom:0 !important; padding-top:0 !important; padding-bottom:0 !important; }
.is-style-no-spacing { margin:0 !important; padding:0 !important; }
/* Remove spacing owned by nested layout wrappers as well. */
:is(.is-style-no-top-space,.is-style-no-vertical-space,.is-style-no-spacing) :is(.sm-intro-inner,.sm-values,.sm-cards-inner) { margin-top:0 !important; padding-top:0 !important; }
:is(.is-style-no-bottom-space,.is-style-no-vertical-space,.is-style-no-spacing) :is(.sm-intro-inner,.sm-values,.sm-cards-inner) { margin-bottom:0 !important; padding-bottom:0 !important; }




/* Explicit Quote widths, consistent with the theme content and wide sizes. */
.sm-quote:not(.alignwide):not(.alignfull) { width:100%; max-width:700px; margin-left:auto; margin-right:auto; box-sizing:border-box; }
.entry-content > .sm-quote.alignwide { width:min(1360px,calc(var(--sm-site-width,100vw) - 2 * var(--sm-gutter,40px))); max-width:none; margin-left:50%; margin-right:0; transform:translateX(-50%); box-sizing:border-box; }
.entry-content > .sm-quote.alignfull { width:calc(var(--sm-site-width,100vw) - 2 * var(--sm-gutter,clamp(20px,3vw,40px))); max-width:none; margin-left:50%; margin-right:0; transform:translateX(-50%); box-sizing:border-box; }
