/* Expressive semantic palette, including Avada HSL-derived surfaces. */
body.csskin-material-expressive #wrapper,
body.csskin-material-expressive .awb-off-canvas-wrap {
  --awb-color1:#fffcff;--awb-color1-h:300.000;--awb-color1-s:100.000%;--awb-color1-l:99.412%;--awb-color1-a:100%;
  --awb-color2:#ece2fb;--awb-color2-h:264.000;--awb-color2-s:75.758%;--awb-color2-l:93.529%;--awb-color2-a:100%;
  --awb-color3:#d3c3e5;--awb-color3-h:268.235;--awb-color3-s:39.535%;--awb-color3-l:83.137%;--awb-color3-a:100%;
  --awb-color4:#e5f29e;--awb-color4-h:69.286;--awb-color4-s:76.364%;--awb-color4-l:78.431%;--awb-color4-a:100%;
  --awb-color5:#8759cc;--awb-color5-h:264.000;--awb-color5-s:52.995%;--awb-color5-l:57.451%;--awb-color5-a:100%;
  --awb-color6:#60516f;--awb-color6-h:270.000;--awb-color6-s:15.625%;--awb-color6-l:37.647%;--awb-color6-a:100%;
  --awb-color7:#453157;--awb-color7-h:271.579;--awb-color7-s:27.941%;--awb-color7-l:26.667%;--awb-color7-a:100%;
  --awb-color8:#271438;--awb-color8-h:271.667;--awb-color8-s:47.368%;--awb-color8-l:14.902%;--awb-color8-a:100%;
  --awb-custom_color_1:#6236b5;--awb-custom_color_1-h:260.787;--awb-custom_color_1-s:54.043%;--awb-custom_color_1-l:46.078%;--awb-custom_color_1-a:100%;
  --awb-custom_color_2:#eaf2bd;--awb-custom_color_2-h:69.057;--awb-custom_color_2-s:67.089%;--awb-custom_color_2-l:84.510%;--awb-custom_color_2-a:100%;
  --awb-custom_color_3:#ffdfcf;--awb-custom_color_3-h:20.000;--awb-custom_color_3-s:100.000%;--awb-custom_color_3-l:90.588%;--awb-custom_color_3-a:100%;
}

/* Material-inspired web styling for the school only.
   Geometry, typography, photographs and component behaviour remain native Avada. */
body.csskin-material-expressive #wrapper,
body.csskin-material-expressive .awb-off-canvas-wrap {
  --mx-primary: #6236b5;
  --mx-on-primary: #ffffff;
  --mx-container: #e7d9ff;
  --mx-on-container: #301554;
  --mx-lime: #e5f29e;
  --mx-on-lime: #29350d;
  --mx-peach: #ffdfcf;
  --mx-surface: #fbf8ff;
  --mx-outline: #d3c3e5;
  --link_color: #6236b5;
  --link_hover_color: #402174;
  --primary_color: #6236b5;
}

body.csskin-material-expressive #wrapper,
body.csskin-material-expressive #wrapper #main { background-color: var(--mx-surface); }

/* Header: tonal navigation surface, one filled principal action. */
body.csskin-material-expressive #wrapper .fusion-tb-header > .fusion-fullwidth {
  background: #e7d9ff !important;
  box-shadow: none;
}
body.csskin-material-expressive #wrapper .fusion-tb-header .awb-menu__main-a {
  border-radius: 999px;
  color: #301554;
}
body.csskin-material-expressive #wrapper .fusion-tb-header :is(.current-menu-item,.current-menu-ancestor) > .awb-menu__main-a {
  color: #301554 !important;
  background-color: #d0b5fa;
  box-shadow: 0 0 0 6px #d0b5fa;
}
body.csskin-material-expressive #wrapper .fusion-tb-header .awb-menu__main-a:hover {
  background-color: #dbc6fc;
}

/* First screen: opaque tonal containment, not a Glass material. */
body.csskin-material-expressive.home #wrapper #main .cschool-hero > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper {
  position: relative;
  isolation: isolate;
}
body.csskin-material-expressive.home #wrapper #main .cschool-hero > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper::before {
  content: "";
  position: absolute;
  inset: -32px -24px -14px;
  z-index: -1;
  pointer-events: none;
  border-radius: 44px 44px 44px 12px;
  background: #41246a;
  box-shadow: none;
}
body.csskin-material-expressive #wrapper .fusion-tb-page-title-bar > .fusion-fullwidth:first-child > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("]) {
  position: relative;
  isolation: isolate;
}
body.csskin-material-expressive #wrapper .fusion-tb-page-title-bar > .fusion-fullwidth:first-child > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("])::before {
  content: "";
  position: absolute;
  inset: -24px -20px;
  z-index: -1;
  pointer-events: none;
  border-radius: 32px 32px 32px 10px;
  background: #41246a;
}

/* Articles and product titles natively use dark text, unlike photo page titles. */
/* Mobile Avada has a separate hero with dark native text; pair both branches
   with the same dark Material surface instead of inheriting the desktop color. */
body.csskin-material-expressive.home #wrapper #main .cschool-hero :is(h1,.fusion-text,.fusion-text p) {
  color: #fffcff !important;
}
body.csskin-material-expressive.home #wrapper #main .cschool-hero-mobile h1,
body.csskin-material-expressive.home #wrapper #main .cschool-hero-mobile h1 b {
  font-weight: 500;
}

body.csskin-material-expressive:is(.single-post,.single-product) #wrapper .fusion-tb-page-title-bar > .fusion-fullwidth:first-child > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper::before {
  background: #e7d9ff !important;
}
body.csskin-material-expressive.single-post #wrapper .fusion-tb-page-title-bar .fusion-meta-tb a { color: #6236b5 !important; }
body.csskin-material-expressive.single-product #wrapper .fusion-tb-page-title-bar .awb-stars-rating {
  --awb-active-color: #6236b5 !important;
  --awb-inactive-color: #af98cf !important;
}

/* Sections keep their original boundaries. Two adjacent course rows share one tone. */
body.csskin-material-expressive:not(.home) #wrapper #main .fusion-fullwidth:is([style*="--awb-background-color:var(--awb-color1)"],[style*="--awb-background-color: var(--awb-color1)"]) { background-color: #f1e8ff !important; }
body.csskin-material-expressive #wrapper #main .fusion-fullwidth[style*="--awb-background-color:hsla(var(--awb-color2-h)"] { background-color: #ece2fb !important; }
body.csskin-material-expressive.home #wrapper #main :is(.cschool-about,.cschool-features,.cschool-academics) { background-color: #fbf8ff !important; }
body.csskin-material-expressive.home #wrapper #main :is(.cschool-courses-title,.cschool-courses) { background-color: #ece2fb !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-marquee { background-color: #e5f29e !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-marquee :is(a,.fusion-marquee-content) { color: #301554 !important; }

/* Material containers. Never replace a photo carried by a child wrapper. */
body.csskin-material-expressive #wrapper .post-card:not([style*="--awb-bg-image"]):not([style*="url("]) > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("]),
body.csskin-material-expressive #wrapper #main .fusion-layout-column:is([style*="--awb-bg-color:var(--awb-color1)"],[style*="--awb-bg-color: var(--awb-color1)"]) > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("]) {
  background: #f5efff !important;
  border-color: transparent !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}
body.csskin-material-expressive #wrapper .post-card:nth-child(3n+2):not([style*="--awb-bg-image"]):not([style*="url("]) > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("]) { background-color: #edf4cb !important; }
body.csskin-material-expressive #wrapper .post-card:nth-child(3n):not([style*="--awb-bg-image"]):not([style*="url("]) > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("]) { background-color: #ffdfcf !important; }
body.csskin-material-expressive #wrapper #main .fusion-layout-column:is([style*="--awb-bg-color:var(--awb-custom_color_2)"],[style*="--awb-bg-color:var(--awb-custom_color_3)"],[style*="--awb-bg-color:hsla(var(--awb-color5-h)"]) > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("]) {
  border-radius: 32px 32px 12px 32px !important;
  box-shadow: none !important;
}
body.csskin-material-expressive.home #wrapper #main .cschool-features > .fusion-builder-row > .fusion-layout-column > .fusion-column-wrapper {
  background-color: #e7d9ff !important;
  border-color: transparent !important;
  border-radius: 32px 32px 12px 32px !important;
  box-shadow: none !important;
}
body.csskin-material-expressive.home #wrapper #main .cschool-features > .fusion-builder-row > .fusion-layout-column:nth-child(2) > .fusion-column-wrapper { background-color: #edf4cb !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-features > .fusion-builder-row > .fusion-layout-column:nth-child(3) > .fusion-column-wrapper { background-color: #ffdfcf !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-features .fusion-text:last-child { color: #6842a4; }

/* Controls: filled primary, tonal secondary. Preserve the existing box model. */
body.csskin-material-expressive #wrapper .fusion-button,
body.csskin-material-expressive #wrapper :is(.single_add_to_cart_button,.woocommerce .button),
body.csskin-material-expressive .awb-off-canvas-wrap .fusion-button { border-radius: 999px !important; }
body.csskin-material-expressive #wrapper .fusion-button:not([style*="--awb-padding-top:0px"]):not([style*="--awb-padding-right:0px"]),
body.csskin-material-expressive #wrapper :is(.single_add_to_cart_button,.woocommerce .button) {
  background: var(--mx-primary) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  --button_accent_color: #fff;
  --button_accent_hover_color: #fff;
}
body.csskin-material-expressive #wrapper .fusion-button:not([style*="--awb-padding-top:0px"]):not([style*="--awb-padding-right:0px"]) :is(.fusion-button-text,i) { color: #fff !important; }
body.csskin-material-expressive #wrapper .fusion-button:not([style*="--awb-padding-top:0px"]):not([style*="--awb-padding-right:0px"]):hover,
body.csskin-material-expressive #wrapper :is(.single_add_to_cart_button,.woocommerce .button):hover { background: #492284 !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-hero .fusion-button {
  background: #e5f29e !important;
  color: #29350d !important;
}
body.csskin-material-expressive.home #wrapper #main .cschool-hero .fusion-button :is(.fusion-button-text,i) { color: #29350d !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-hero .fusion-button[href*="/latest-events/"] { background: #e7d9ff !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-hero .fusion-button[href*="/latest-events/"] :is(.fusion-button-text,i) { color: #301554 !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-hero .fusion-button:hover { background: #d1e47f !important; }
body.csskin-material-expressive.home #wrapper #main .cschool-hero .fusion-button[href*="/latest-events/"]:hover { background: #d8c1f8 !important; }

/* Dropdowns and native panels are part of the same full-site styling. */
body.csskin-material-expressive #wrapper .awb-menu__sub-ul {
  background: #f5efff !important;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(48,21,84,.12);
}
body.csskin-material-expressive .awb-off-canvas-wrap:is(.position-right,.type-popup) .awb-off-canvas {
  background: #e7d9ff !important;
  border-radius: 28px 0 0 28px;
  box-shadow: -8px 0 32px rgba(48,21,84,.15);
}
body.csskin-material-expressive .awb-off-canvas-wrap:is(.position-right,.type-popup) .awb-off-canvas-inner { background: transparent !important; }
body.csskin-material-expressive .awb-off-canvas-wrap .awb-menu__main-a { color: #301554 !important; border-radius: 999px; }
body.csskin-material-expressive .awb-off-canvas-wrap .current-menu-item > .awb-menu__main-a { background: #d0b5fa !important; }
body.csskin-material-expressive #wrapper input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
body.csskin-material-expressive #wrapper textarea,
body.csskin-material-expressive #wrapper select,
body.csskin-material-expressive .awb-off-canvas-wrap input:not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  background-color: #f0e8fa;
  border-color: #b4a0ce;
  border-radius: 16px;
  color: #301554;
  box-shadow: none;
}
body.csskin-material-expressive #wrapper :is(input[type=checkbox],input[type=radio]) { accent-color: #6236b5; }
body.csskin-material-expressive #wrapper :is(input,textarea)::placeholder { color: #6e5b82; opacity: 1; }
body.csskin-material-expressive #wrapper :is(a,button,input,textarea,select):focus-visible,
body.csskin-material-expressive .awb-off-canvas-wrap :is(a,button,input,textarea,select):focus-visible { outline: 3px solid #a581df; outline-offset: 3px; }
body.csskin-material-expressive #wrapper .fusion-accordian .panel-heading,
body.csskin-material-expressive #wrapper .woocommerce-tabs .tabs li { background-color: #e7d9ff; border-color: #d3c3e5; border-radius: 16px; }

/* Footer retains its content and white logo, with a deliberate contrasting surface. */
body.csskin-material-expressive #wrapper .fusion-tb-footer,
body.csskin-material-expressive #wrapper .fusion-tb-footer > .fusion-footer-widget-area > .fusion-fullwidth {
  background: #41246a !important;
  --link_color: #eee3ff;
  --link_hover_color: #e5f29e;
}
body.csskin-material-expressive #wrapper .fusion-tb-footer :is(p,.fusion-text,.fusion-menu-element-list a) { color: #eee3ff !important; }
body.csskin-material-expressive #wrapper .fusion-tb-footer :is(h1,h2,h3,h4,h5,h6) { color: #e5f29e !important; }
body.csskin-material-expressive #wrapper .fusion-tb-footer a { color: #eee3ff !important; }
body.csskin-material-expressive #wrapper .fusion-tb-footer a:hover { color: #e5f29e !important; }
body.csskin-material-expressive #wrapper .fusion-tb-footer .fusion-separator { border-color: #755596 !important; }

@media (max-width:800px) {
  body.csskin-material-expressive.home #wrapper #main .cschool-hero > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper::before { inset: -24px -17px -10px; border-radius: 32px 32px 32px 10px; }
  body.csskin-material-expressive #wrapper .fusion-tb-page-title-bar > .fusion-fullwidth:first-child > .fusion-builder-row > .fusion-layout-column:first-child > .fusion-column-wrapper:not(.fusion-column-has-bg-image):not([data-bg]):not([style*="url("])::before { inset: -20px -14px; border-radius: 26px 26px 26px 8px; }
}
