﻿/* ============================================================================
   DESIGN SKINS  â€”  <body class="tpl-XXX">. Each template changes the whole
   LOOK: header/menu layout, logo position, card shapes, typography, animations
   â€” not just colours (colours come from _ThemeStyle via --b / --y).
   'classic' = the original design (baseline, no overrides).
   Font Awesome icons (<i class="fa*">) are never touched.
   ========================================================================== */

/* ALL templates: every heading uses Playfair Display serif (looks best, consistent).
   `html` prefix + !important so it wins over each template's own font rule.
   The Drag Builder still wins: it writes its edits as inline `!important` (see PageBuilder). */
html body[class*="tpl-"] .na-sec-heading,
html body[class*="tpl-"] .sc-about-title,
html body[class*="tpl-"] .na-desks-heading,
html body[class*="tpl-"] .na-fac-title,
html body[class*="tpl-"] .na-ev-title,
html body[class*="tpl-"] .na-testi-name,
html body[class*="tpl-"] .na-testi-quote,
html body[class*="tpl-"] .hero-title,
html body[class*="tpl-"] .header-school-name {
    font-family: 'Playfair Display', serif !important;
}

/* logo that lives inside the nav bar â€” hidden unless a template wants it */
.menu-brand { display: none; }
.menu-brand img { height: 46px; width: auto; display: block; }

/* menu centered on every page (incl. frozen drag-published pages, which load this file
   fresh) â€” !important beats the page's own flex-start. Template overrides below re-set it. */
.menu-row nav > ul.menu { justify-content: center !important; }

/* slider image fills the frame at a consistent height â€” also applies to frozen drag pages */
.home-slider .carousel-item img, .home-slider .carousel-item video {
    object-fit: cover !important; height: 560px !important;
}

/* Mobile: shorter slider so wide banner images aren't heavily cropped */
@media (max-width: 768px) {
    .home-slider .carousel-item img, .home-slider .carousel-item video {
        height: 250px !important;
    }
    .home-slider,
    body.tpl-modern .home-slider, body.tpl-elegant .home-slider, body.tpl-vibrant .home-slider {
        min-height: 250px !important;
    }
}

/* ==========================================================================
   HERO STRUCTURE â€” genuinely different top-of-page per template.
   Classic = plain slider + a row of quick-info cards (heritage / Montfort).
   Modern/Elegant/Vibrant = a heading + CTA overlaid on the slider.
   ========================================================================== */
.hero-overlay { display: none; }
.hero-quicklinks { display: none; }

/* CLASSIC (heritage) â€” plain slider + 4 quick-info cards overlapping under it */
body.tpl-classic .hero-quicklinks {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    max-width: 1180px; margin: -46px auto 34px; padding: 0 20px; position: relative; z-index: 5;
}
body.tpl-classic .ql-card {
    background: #fff; border-radius: 12px; padding: 22px 16px; text-align: center; text-decoration: none;
    box-shadow: 0 16px 38px -18px rgba(15,35,71,.35); border-top: 4px solid var(--y);
    display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .2s, box-shadow .2s;
}
body.tpl-classic .ql-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(15,35,71,.45); }
body.tpl-classic .ql-ic { font-size: 26px; color: var(--b); }
body.tpl-classic .ql-t { font-weight: 800; color: var(--b); font-size: 15px; }
body.tpl-classic .ql-s { font-size: 12px; color: #64748b; }
@media (max-width: 820px) { body.tpl-classic .hero-quicklinks { grid-template-columns: 1fr 1fr; margin-top: 18px; } }

/* shared overlay basics for the three overlay templates â€” a branded hero band shows
   even before any slider image is added, so the overlay heading is always visible */
body.tpl-modern .home-slider, body.tpl-elegant .home-slider, body.tpl-vibrant .home-slider {
    position: relative; min-height: 440px;
    background: var(--b);   /* branded fill (not dark) so fade transitions never flash black */
}
body.tpl-modern .hero-overlay, body.tpl-elegant .hero-overlay, body.tpl-vibrant .hero-overlay {
    display: flex; position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
/* the per-slide caption is redundant when there's an overlay heading */
body.tpl-modern .home-slider .carousel-caption, body.tpl-elegant .home-slider .carousel-caption, body.tpl-vibrant .home-slider .carousel-caption { display: none !important; }
body.tpl-modern .hero-cta, body.tpl-elegant .hero-cta, body.tpl-vibrant .hero-cta { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; text-decoration: none; }
body.tpl-modern .hero-eyebrow, body.tpl-elegant .hero-eyebrow { display: block; text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 700; }
body.tpl-modern .hero-title, body.tpl-elegant .hero-title, body.tpl-vibrant .hero-title { color: #fff; line-height: 1.1; margin: 6px 0; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
body.tpl-modern .hero-sub, body.tpl-elegant .hero-sub, body.tpl-vibrant .hero-sub { color: rgba(255,255,255,.95); font-size: 15px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* MODERN â€” left overlay, square CTA (DIS-Edge style). Background transparent so the
   admin's Slider Overlay colour/opacity (the ::before veil) is what shows. */
body.tpl-modern .hero-overlay { align-items: center; background: transparent; }
body.tpl-modern .hero-overlay-inner { max-width: 1180px; margin: 0 auto; width: 100%; padding: 0 26px; text-align: left; }
body.tpl-modern .hero-eyebrow { color: var(--y); }
body.tpl-modern .hero-title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); }
body.tpl-modern .hero-cta { background: var(--y); color: var(--b-deep, #10233f); padding: 12px 22px; border-radius: 4px; }

/* ELEGANT â€” centered welcome band, serif, gold-outline CTA */
body.tpl-elegant .hero-overlay { align-items: center; justify-content: center; background: transparent; text-align: center; }
body.tpl-elegant .hero-overlay-inner { max-width: 760px; padding: 0 24px; }
body.tpl-elegant .hero-eyebrow { color: var(--y); font-style: italic; letter-spacing: 2px; }
body.tpl-elegant .hero-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem); }
body.tpl-elegant .hero-cta { border: 2px solid var(--y); color: #fff; padding: 11px 26px; border-radius: 0; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }

/* VIBRANT â€” centered, brand-gradient veil, big pill CTA */
body.tpl-vibrant .hero-overlay { align-items: center; justify-content: center; text-align: center; background: transparent; }
body.tpl-vibrant .hero-overlay-inner { max-width: 780px; padding: 0 24px; }
body.tpl-vibrant .hero-eyebrow { display: inline-block; background: rgba(255,255,255,.25); color: #fff; padding: 5px 16px; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; font-weight: 700; }
body.tpl-vibrant .hero-title { font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); }
body.tpl-vibrant .hero-cta { background: #fff; color: var(--b); padding: 13px 28px; border-radius: 40px; }

/* hero heading font â€” Playfair serif for every template (like the classic 72 look) */
body.tpl-modern .hero-title, body.tpl-elegant .hero-title, body.tpl-vibrant .hero-title {
    font-family: 'Playfair Display', serif !important;
}

@keyframes tplFadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes tplFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes tplPop      { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes tplSlideDown{ from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   MODERN MINIMAL  â€”  compact single light bar, LOGO ON THE LEFT of the menu.
   Flat square cards, sans-serif, airy, underline-slide nav.
   ========================================================================== */
body.tpl-modern { font-family: 'Inter', sans-serif; }
/* one slim white bar: hide the big logo header, drop the logo into the nav */
body.tpl-modern .main-header { display: none; }
body.tpl-modern .menu-row {
    background: #ffffff !important;
    border-bottom: 1px solid #e8ebf1 !important;
    box-shadow: 0 2px 14px rgba(15,23,42,.06) !important;
    display: flex; align-items: center; gap: 18px; padding: 0 22px;
    animation: tplSlideDown .45s ease both;
}
body.tpl-modern .menu-brand { display: block; }
body.tpl-modern .menu-brand img { height: 44px; }
body.tpl-modern .menu-row nav { margin-left: auto; }            /* menu pushed to the right */
body.tpl-modern .menu-row nav > ul.menu { justify-content: flex-end !important; padding: 0; }
body.tpl-modern .menu-row nav ul.menu > li > a { color: #1f2937 !important; font-weight: 600; }
body.tpl-modern .menu-row nav > ul.menu > li:hover > a,
body.tpl-modern .menu-row nav > ul.menu > li.active > a {
    background: transparent !important; color: var(--b) !important; border-bottom-color: var(--y) !important;
}
body.tpl-modern .menu-toggle { color: #1f2937; }
/* typography */
body.tpl-modern .na-sec-heading, body.tpl-modern .sc-about-title,
body.tpl-modern .na-testi-name, body.tpl-modern .na-fac-title, body.tpl-modern .na-ev-title {
    font-family: 'Inter', sans-serif !important; font-weight: 800 !important; letter-spacing: -.02em !important;
}
body.tpl-modern .na-sec-eyebrow, body.tpl-modern .sc-about-eyebrow {
    text-transform: uppercase !important; letter-spacing: 3px !important; font-size: 11px !important;
    font-weight: 700 !important; color: var(--y) !important; background: none !important; padding: 0 !important;
}
body.tpl-modern .na-sec-sub { color: #64748b; }
/* flat square cards */
body.tpl-modern .na-ev-card, body.tpl-modern .na-fac-card, body.tpl-modern .na-testi-card,
body.tpl-modern .na-gallery-item, body.tpl-modern .na-ev-list-item {
    border-radius: 4px !important; border: 1px solid #e5e7eb !important; box-shadow: none !important;
    transition: border-color .18s, transform .18s, box-shadow .18s !important;
}
body.tpl-modern .na-ev-card:hover, body.tpl-modern .na-fac-card:hover, body.tpl-modern .na-testi-card:hover {
    border-color: var(--b) !important; transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px -18px rgba(15,23,42,.45) !important;
}
body.tpl-modern .na-fac-icon { border-radius: 6px !important; }
body.tpl-modern .na-ev-link, body.tpl-modern .tb-admission, body.tpl-modern .btn, body.tpl-modern button {
    border-radius: 4px !important; letter-spacing: .3px !important;
}
body.tpl-modern .sc-about-img { border-radius: 6px !important; }

/* ==========================================================================
   ROYAL MAROON (elegant)  â€”  CENTERED logo + centered serif menu, cream cards.
   ========================================================================== */
body.tpl-elegant { font-family: 'Inter', Georgia, serif; }
/* stack the header: big centered logo, admission button under it */
body.tpl-elegant .header-inner { flex-direction: column; gap: 10px; }
body.tpl-elegant .header-logo img { height: 108px; }
body.tpl-elegant .header-right { position: static; transform: none; right: auto; top: auto; margin: 4px auto 0; }
body.tpl-elegant .menu-row nav > ul.menu { justify-content: center; }
body.tpl-elegant .menu-row { animation: tplFadeIn .7s ease both; }
body.tpl-elegant .menu-row nav ul li a { letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
body.tpl-elegant section { animation: tplFadeIn .8s ease both; }
/* serif typography */
body.tpl-elegant .na-sec-heading, body.tpl-elegant .sc-about-title, body.tpl-elegant .na-testi-name,
body.tpl-elegant .na-fac-title, body.tpl-elegant .na-ev-title, body.tpl-elegant .na-testi-quote,
body.tpl-elegant .header-school-name {
    font-family: 'Playfair Display', Georgia, serif !important; font-weight: 700 !important; letter-spacing: 0 !important;
}
body.tpl-elegant .na-sec-heading { font-size: 2.3rem; }
body.tpl-elegant .na-sec-eyebrow, body.tpl-elegant .sc-about-eyebrow {
    font-family: 'Fraunces', Georgia, serif !important; font-style: italic !important; text-transform: none !important;
    letter-spacing: .5px !important; font-size: 15px !important; color: var(--y) !important; background: none !important;
}
body.tpl-elegant .na-sec-sub { font-style: italic; color: #6b5a4a; }
body.tpl-elegant .na-ev-card, body.tpl-elegant .na-fac-card, body.tpl-elegant .na-testi-card, body.tpl-elegant .na-ev-list-item {
    border-radius: 2px !important; border: 1px solid color-mix(in srgb, var(--y) 55%, white) !important;
    background: #fbf8f2 !important; box-shadow: 0 14px 34px -24px rgba(70,20,35,.5) !important;
}
body.tpl-elegant .na-gallery-item { border-radius: 2px !important; border: 3px solid #fff !important; box-shadow: 0 8px 20px -12px rgba(70,20,35,.5) !important; }
body.tpl-elegant .na-fac-icon { border-radius: 50% !important; }
body.tpl-elegant .na-ev-link, body.tpl-elegant .header-admit-btn, body.tpl-elegant .tb-admission, body.tpl-elegant .btn {
    border-radius: 0 !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; font-size: 12px !important;
}
body.tpl-elegant .sc-about-img { border-radius: 2px !important; }
body.tpl-elegant .na-sec-heading::after {
    content: ""; display: block; width: 70px; height: 2px; background: var(--y); margin: 14px auto 0;
}

/* ==========================================================================
   VIBRANT CAMPUS  â€”  floating rounded gradient bar with LOGO + pill nav.
   Big rounded cards, pop-in, playful hover lift.
   ========================================================================== */
body.tpl-vibrant { font-family: 'Space Grotesk', 'Poppins', sans-serif; }
body.tpl-vibrant .main-header { display: none; }
body.tpl-vibrant .menu-row {
    display: flex; align-items: center; gap: 16px; padding: 10px 22px;
    border-bottom: none !important; box-shadow: 0 12px 32px -12px rgba(0,0,0,.4) !important;
    animation: tplSlideDown .45s ease both;
}
body.tpl-vibrant .menu-brand { display: block; }
body.tpl-vibrant .menu-brand img { height: 50px; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
body.tpl-vibrant .menu-row nav { margin-left: auto; }
body.tpl-vibrant .menu-row nav > ul.menu { justify-content: flex-end !important; gap: 4px; }
body.tpl-vibrant .menu-row nav > ul.menu > li > a { border-radius: 30px !important; padding: 8px 16px !important; border-bottom: none !important; }
body.tpl-vibrant .menu-row nav > ul.menu > li:hover > a,
body.tpl-vibrant .menu-row nav > ul.menu > li.active > a { background: rgba(255,255,255,.22) !important; border-bottom: none !important; color: #fff !important; }
/* typography */
body.tpl-vibrant .na-sec-heading, body.tpl-vibrant .sc-about-title, body.tpl-vibrant .na-testi-name,
body.tpl-vibrant .na-fac-title, body.tpl-vibrant .na-ev-title, body.tpl-vibrant .header-school-name {
    font-family: 'Space Grotesk', 'Poppins', sans-serif !important; font-weight: 700 !important; letter-spacing: -.01em !important;
}
body.tpl-vibrant .na-sec-eyebrow, body.tpl-vibrant .sc-about-eyebrow {
    display: inline-block !important; background: color-mix(in srgb, var(--y) 22%, white) !important;
    color: color-mix(in srgb, var(--b) 70%, black) !important; border-radius: 30px !important; padding: 5px 16px !important;
    text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; font-weight: 700 !important;
}
body.tpl-vibrant .na-sec-sub { color: #6b7280 !important; }
/* big rounded cards, pop-in */
body.tpl-vibrant .na-ev-card, body.tpl-vibrant .na-fac-card, body.tpl-vibrant .na-testi-card,
body.tpl-vibrant .na-gallery-item, body.tpl-vibrant .na-ev-list-item {
    border-radius: 22px !important; border: none !important; overflow: hidden !important;
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--b) 65%, transparent) !important;
    transition: transform .2s, box-shadow .2s !important;
}
body.tpl-vibrant .na-ev-card:hover, body.tpl-vibrant .na-fac-card:hover, body.tpl-vibrant .na-testi-card:hover {
    transform: translateY(-7px) scale(1.01) !important;
    box-shadow: 0 28px 52px -20px color-mix(in srgb, var(--b) 55%, transparent) !important;
}
/* facilities stays dark by design; keep its cards translucent and the icon as a plain coloured glyph (no filled box) */
body.tpl-vibrant .na-fac-icon, body.tpl-modern .na-fac-icon, body.tpl-elegant .na-fac-icon {
    background: none !important; border-radius: 0 !important; width: auto !important; height: auto !important;
    color: var(--y) !important;
}
body.tpl-vibrant .na-fac-icon i, body.tpl-modern .na-fac-icon i, body.tpl-elegant .na-fac-icon i { color: var(--y) !important; }
body.tpl-vibrant .na-ev-link, body.tpl-vibrant .header-admit-btn, body.tpl-vibrant .tb-admission, body.tpl-vibrant .btn, body.tpl-vibrant button {
    border-radius: 40px !important; font-weight: 700 !important;
}
body.tpl-vibrant .sc-about-img { border-radius: 26px !important; }

/* ==========================================================================
   INTERNATIONAL PRESTIGE  (tisb)  —  modelled on tisb.org: a premium, restrained
   international-school look. Slim DARK nav, a full-bleed hero with CENTERED
   light-weight heading + thin gold outline CTA, airy sans-serif sections,
   minimal small-radius subtle-shadow cards, muted gold accents, lots of space.
   ========================================================================== */
body.tpl-tisb { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
/* slim dark premium bar, logo dropped into the nav, big header hidden */
body.tpl-tisb .main-header { display: none; }
body.tpl-tisb .menu-row {
    background: color-mix(in srgb, var(--b) 92%, #000) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--y) 30%, transparent) !important;
    display: flex; align-items: center; gap: 18px; padding: 4px 26px;
}
body.tpl-tisb .menu-brand { display: block; }
body.tpl-tisb .menu-brand img { height: 46px; }
body.tpl-tisb .menu-row nav { margin-left: auto; }
body.tpl-tisb .menu-row nav > ul.menu { justify-content: flex-end !important; }
body.tpl-tisb .menu-row nav ul.menu > li > a { color: #e8eaf0 !important; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; font-size: 12.5px; }
body.tpl-tisb .menu-row nav > ul.menu > li:hover > a,
body.tpl-tisb .menu-row nav > ul.menu > li.active > a { color: var(--y) !important; border-bottom-color: var(--y) !important; background: transparent !important; }
body.tpl-tisb .menu-toggle { color: #fff; }
/* full-bleed centered hero */
body.tpl-tisb .home-slider { position: relative; min-height: 600px; background: var(--b); }
body.tpl-tisb .home-slider .carousel-caption { display: none !important; }
body.tpl-tisb .hero-overlay { display: flex; position: absolute; inset: 0; z-index: 4; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
body.tpl-tisb .hero-overlay-inner { max-width: 820px; padding: 0 24px; }
body.tpl-tisb .hero-eyebrow { display: block; color: var(--y); text-transform: uppercase; letter-spacing: 5px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
html body.tpl-tisb .hero-title { color: #fff; font-family: 'Inter', sans-serif !important; font-weight: 400 !important; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: .3px; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
body.tpl-tisb .hero-sub { color: rgba(255,255,255,.9); font-size: 16px; margin-top: 14px; }
body.tpl-tisb .hero-cta { pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; border: 1.5px solid var(--y); color: #fff; padding: 13px 30px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
body.tpl-tisb .hero-cta:hover { background: var(--y); color: color-mix(in srgb, var(--b) 85%, #000); }
/* restrained moderate-weight headings + spaced gold kicker */
html body.tpl-tisb .na-sec-heading, html body.tpl-tisb .sc-about-title, html body.tpl-tisb .na-testi-name,
html body.tpl-tisb .na-fac-title, html body.tpl-tisb .na-ev-title, html body.tpl-tisb .header-school-name {
    font-family: 'Inter', sans-serif !important; font-weight: 600 !important; letter-spacing: .2px !important;
}
body.tpl-tisb .na-sec-eyebrow, body.tpl-tisb .sc-about-eyebrow {
    background: none !important; color: var(--y) !important; text-transform: uppercase !important;
    letter-spacing: 4px !important; font-size: 12px !important; font-weight: 600 !important; padding: 0 !important;
}
body.tpl-tisb .na-sec-heading::after { content: ""; display: block; width: 56px; height: 2px; background: var(--y); margin: 16px auto 0; }
/* airy alternating sections */
body.tpl-tisb #sec-about, body.tpl-tisb #sec-testimonials { background: #f7f8fa !important; }
/* minimal subtle cards */
body.tpl-tisb .na-ev-card, body.tpl-tisb .na-fac-card, body.tpl-tisb .na-testi-card,
body.tpl-tisb .na-gallery-item, body.tpl-tisb .na-ev-list-item {
    border-radius: 6px !important; border: 1px solid #edeff3 !important;
    box-shadow: 0 10px 34px -22px rgba(20,30,60,.35) !important; transition: transform .25s, box-shadow .25s !important;
}
body.tpl-tisb .na-ev-card:hover, body.tpl-tisb .na-fac-card:hover, body.tpl-tisb .na-testi-card:hover {
    transform: translateY(-5px) !important; box-shadow: 0 20px 48px -24px rgba(20,30,60,.4) !important;
}
body.tpl-tisb .sc-stat-item { background: #fff !important; border: 1px solid #edeff3 !important; border-radius: 6px !important; box-shadow: 0 10px 30px -22px rgba(20,30,60,.3) !important; }
body.tpl-tisb .na-ev-link, body.tpl-tisb .header-admit-btn, body.tpl-tisb .tb-admission,
body.tpl-tisb .btn, body.tpl-tisb button { border-radius: 3px !important; text-transform: uppercase; letter-spacing: 1px; font-weight: 600 !important; }
body.tpl-tisb .sc-about-img { border-radius: 6px !important; }

/* ==========================================================================
   WARM CAMPUS  (trio)  —  modelled on trioworldacademy.com: friendly & premium.
   Clean WHITE nav (logo left), a full hero with a CENTERED BOLD heading, a gold
   pill kicker + rounded gold CTA, big soft rounded cards, warm generous spacing.
   ========================================================================== */
body.tpl-trio { font-family: 'Poppins', 'Inter', sans-serif; }
body.tpl-trio .main-header { display: none; }
/* clean white sticky nav */
body.tpl-trio .menu-row {
    background: #ffffff !important; border-bottom: 1px solid #eef1f5 !important;
    box-shadow: 0 4px 18px -12px rgba(15,23,42,.2) !important;
    display: flex; align-items: center; gap: 18px; padding: 6px 26px;
}
body.tpl-trio .menu-brand { display: block; }
body.tpl-trio .menu-brand img { height: 50px; }
body.tpl-trio .menu-row nav { margin-left: auto; }
body.tpl-trio .menu-row nav > ul.menu { justify-content: flex-end !important; }
body.tpl-trio .menu-row nav ul.menu > li > a { color: #1f2937 !important; font-weight: 600; font-size: 14px; }
body.tpl-trio .menu-row nav > ul.menu > li:hover > a,
body.tpl-trio .menu-row nav > ul.menu > li.active > a { color: var(--b) !important; border-bottom-color: var(--y) !important; background: transparent !important; }
body.tpl-trio .menu-toggle { color: #1f2937; }
/* full hero, centered bold heading + pill CTA */
body.tpl-trio .home-slider { position: relative; min-height: 560px; background: var(--b); }
body.tpl-trio .home-slider .carousel-caption { display: none !important; }
body.tpl-trio .hero-overlay { display: flex; position: absolute; inset: 0; z-index: 4; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
body.tpl-trio .hero-overlay-inner { max-width: 860px; padding: 0 24px; }
body.tpl-trio .hero-eyebrow { display: inline-block; background: var(--y); color: color-mix(in srgb, var(--b) 82%, #000); padding: 6px 18px; border-radius: 30px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 700; margin-bottom: 14px; }
html body.tpl-trio .hero-title { color: #fff; font-family: 'Poppins', sans-serif !important; font-weight: 700 !important; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; margin: 0; text-shadow: 0 3px 24px rgba(0,0,0,.5); }
body.tpl-trio .hero-sub { color: rgba(255,255,255,.95); font-size: 16px; margin-top: 14px; }
body.tpl-trio .hero-cta { pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; background: var(--y); color: #fff; padding: 14px 32px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--y) 70%, transparent); }
body.tpl-trio .hero-cta:hover { transform: translateY(-2px); }
/* big bold friendly headings + pill kicker */
html body.tpl-trio .na-sec-heading, html body.tpl-trio .sc-about-title, html body.tpl-trio .na-testi-name,
html body.tpl-trio .na-fac-title, html body.tpl-trio .na-ev-title, html body.tpl-trio .header-school-name {
    font-family: 'Poppins', sans-serif !important; font-weight: 700 !important;
}
body.tpl-trio .na-sec-eyebrow, body.tpl-trio .sc-about-eyebrow {
    display: inline-block !important; background: color-mix(in srgb, var(--y) 20%, #fff) !important;
    color: color-mix(in srgb, var(--b) 70%, #000) !important; border-radius: 30px !important; padding: 5px 16px !important;
    text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; font-weight: 700 !important;
}
/* ── TRIO signature: floating bubbles behind sections + a blue "Welcome" band.
   Bubbles are painted as layered background circles (not pseudo-elements) so all
   content stays above them with no z-index juggling. Colours come from the theme
   (--b blue, --y accent) so it stays on-palette. ── */

/* ABOUT → blue band, white justified text, translucent stat chips + bubbles */
body.tpl-trio #sec-about {
    background:
        radial-gradient(circle at 7% 18%,  color-mix(in srgb, #fff 12%, transparent) 0 60px, transparent 61px),
        radial-gradient(circle at 16% 74%, color-mix(in srgb, var(--y) 26%, transparent) 0 30px, transparent 31px),
        radial-gradient(circle at 88% 20%, color-mix(in srgb, #fff 10%, transparent) 0 46px, transparent 47px),
        radial-gradient(circle at 80% 82%, color-mix(in srgb, var(--y) 20%, transparent) 0 24px, transparent 25px),
        radial-gradient(circle at 97% 58%, color-mix(in srgb, #fff 8%, transparent)  0 72px, transparent 73px),
        radial-gradient(circle at 45% 96%, color-mix(in srgb, #fff 8%, transparent)  0 26px, transparent 27px),
        var(--b) !important;
    background-repeat: no-repeat !important;
}
html body.tpl-trio #sec-about .sc-about-title { color: #fff !important; font-size: clamp(2rem, 4vw, 3rem) !important; }
body.tpl-trio #sec-about .sc-about-text { color: rgba(255,255,255,.92) !important; text-align: justify !important; }
body.tpl-trio #sec-about .sc-about-eyebrow { background: rgba(255,255,255,.16) !important; color: #fff !important; }
body.tpl-trio #sec-about .sc-about-divider { background: #fff !important; }
body.tpl-trio #sec-about .sc-about-img { border-radius: 20px !important; box-shadow: 0 26px 54px -22px rgba(0,0,0,.45) !important; }
body.tpl-trio #sec-about .sc-stat-item { background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.28) !important; box-shadow: none !important; }
body.tpl-trio #sec-about .sc-stat-num { color: #fff !important; }
body.tpl-trio #sec-about .sc-stat-lbl { color: rgba(255,255,255,.85) !important; }

/* FACILITIES → light band with light-blue rounded cards + bubbles (dark text) */
body.tpl-trio #sec-facilities {
    background:
        radial-gradient(circle at 10% 28%, color-mix(in srgb, var(--y) 30%, transparent) 0 55px, transparent 56px),
        radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--b) 12%, transparent) 0 42px, transparent 43px),
        radial-gradient(circle at 72% 86%, color-mix(in srgb, var(--y) 24%, transparent) 0 62px, transparent 63px),
        radial-gradient(circle at 24% 90%, color-mix(in srgb, var(--b) 10%, transparent) 0 30px, transparent 31px),
        #eaf3ff !important;
    background-repeat: no-repeat !important;
}
html body.tpl-trio #sec-facilities .na-sec-heading { color: var(--b) !important; -webkit-text-fill-color: var(--b) !important; }
body.tpl-trio #sec-facilities .na-sec-sub { color: #5b6b82 !important; }
body.tpl-trio #sec-facilities .na-fac-card { background: #dbe9ff !important; border: none !important; border-radius: 18px !important; box-shadow: 0 14px 32px -22px rgba(15,40,90,.3) !important; }
body.tpl-trio #sec-facilities .na-fac-card:hover { background: #cfe1ff !important; transform: translateY(-6px) !important; }
body.tpl-trio #sec-facilities .na-fac-title { color: var(--b) !important; }
body.tpl-trio #sec-facilities .na-fac-desc { color: #5b6b82 !important; }
body.tpl-trio #sec-facilities .na-fac-icon, body.tpl-trio #sec-facilities .na-fac-icon i { color: var(--y) !important; }

/* TESTIMONIALS / EVENTS / NEWS / GALLERY → subtle bubbles so the motif runs through the page */
body.tpl-trio #sec-testimonials {
    background:
        radial-gradient(circle at 90% 14%, color-mix(in srgb, var(--y) 22%, transparent) 0 52px, transparent 53px),
        radial-gradient(circle at 8% 82%,  color-mix(in srgb, var(--b) 9%, transparent)  0 62px, transparent 63px),
        #f6f8fb !important;
    background-repeat: no-repeat !important;
}
body.tpl-trio #sec-events, body.tpl-trio #sec-news, body.tpl-trio #sec-gallery {
    background:
        radial-gradient(circle at 95% 12%, color-mix(in srgb, var(--y) 16%, transparent) 0 46px, transparent 47px),
        radial-gradient(circle at 4% 88%,  color-mix(in srgb, var(--b) 7%, transparent)  0 56px, transparent 57px),
        #ffffff !important;
    background-repeat: no-repeat !important;
}

/* INNER PAGES → a soft bubble backdrop behind page content so galleries/About/Contact
   carry the same look (homepage sections have solid backgrounds that cover this) */
body.tpl-trio .page-body {
    background:
        radial-gradient(circle at 92% 6%,  color-mix(in srgb, var(--y) 14%, transparent) 0 60px, transparent 61px),
        radial-gradient(circle at 6% 34%,  color-mix(in srgb, var(--b) 7%, transparent)  0 72px, transparent 73px),
        radial-gradient(circle at 82% 72%, color-mix(in srgb, var(--y) 12%, transparent) 0 52px, transparent 53px),
        radial-gradient(circle at 20% 92%, color-mix(in srgb, var(--b) 6%, transparent)  0 44px, transparent 45px),
        #f4f8ff;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ── TRIO: the default-dark bands (Desk / Track Record / Video) go LIGHT with
   bubbles, so the page keeps Trio's airy white rhythm and the blue About band
   stands out. These sections' headings carry inline white text — beaten here
   with !important. ── */

/* DESK — "Voices That Guide Us" (cards are already white) */
body.tpl-trio .na-desks {
    background:
        radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--y) 22%, transparent) 0 54px, transparent 55px),
        radial-gradient(circle at 8% 78%,  color-mix(in srgb, var(--b) 9%, transparent)  0 64px, transparent 65px),
        #f5f9ff !important;
    background-repeat: no-repeat !important;
}
body.tpl-trio .na-desks::before { display: none !important; }
html body.tpl-trio .na-desks-heading { color: var(--b) !important; }
body.tpl-trio .na-desks .na-eyebrow { color: var(--b) !important; }

/* TRACK RECORD — "By the Numbers" stats band */
body.tpl-trio .na-achieve {
    background:
        radial-gradient(circle at 10% 22%, color-mix(in srgb, var(--y) 26%, transparent) 0 56px, transparent 57px),
        radial-gradient(circle at 84% 84%, color-mix(in srgb, var(--b) 10%, transparent) 0 60px, transparent 61px),
        #eaf3ff !important;
    background-repeat: no-repeat !important;
}
body.tpl-trio .na-achieve::before { display: none !important; }
html body.tpl-trio .na-achieve .na-sec-heading { color: var(--b) !important; -webkit-text-fill-color: var(--b) !important; }
body.tpl-trio .na-achieve-item { background: #fff !important; border: 1px solid #d9e6ff !important; }
body.tpl-trio .na-achieve-item:hover { background: color-mix(in srgb, var(--y) 10%, #fff) !important; }
body.tpl-trio .na-achieve-icon { background: color-mix(in srgb, var(--y) 16%, #fff) !important; border-color: color-mix(in srgb, var(--y) 42%, #fff) !important; color: var(--y) !important; }
body.tpl-trio .na-achieve-num { color: var(--b) !important; text-shadow: none !important; }
body.tpl-trio .na-achieve-label { color: #5b6b82 !important; }

/* VIDEO GALLERY */
body.tpl-trio .na-video-sec {
    background:
        radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--y) 18%, transparent) 0 48px, transparent 49px),
        radial-gradient(circle at 5% 86%,  color-mix(in srgb, var(--b) 8%, transparent)  0 58px, transparent 59px),
        #ffffff !important;
    background-repeat: no-repeat !important;
}
html body.tpl-trio .na-video-sec .na-sec-heading { color: var(--b) !important; -webkit-text-fill-color: var(--b) !important; }
body.tpl-trio .na-video-sec .na-sec-sub { color: #5b6b82 !important; }
body.tpl-trio .na-video-card { background: #f4f8ff !important; border: 1px solid #e3ecff !important; }
body.tpl-trio .na-video-caption { color: var(--b) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   TISB polish — modelled on tisb.org (clean premium, NOT bubbly). Fixes the
   layout issues (dark logo unreadable on the dark bar; over-tall hero; the About
   image hanging far below the text on the left) and gives a calmer alternating
   rhythm: About + Track-Record go light, the other bands stay premium-dark.
   ══════════════════════════════════════════════════════════════════════════ */

/* logo sits on a white chip so a dark logo reads on the dark bar */
body.tpl-tisb .menu-brand img { background: #fff; padding: 4px 9px; border-radius: 6px; }

/* calmer hero height (was 600 → too tall in the preview) */
body.tpl-tisb .home-slider { min-height: 480px; }

/* ABOUT → clean premium band; cap the image so the left column can't hang low */
body.tpl-tisb #sec-about { background: #f7f8fa !important; }
body.tpl-tisb #sec-about .sc-about-img {
    max-height: 470px !important; object-fit: cover !important; width: 100% !important;
    border-radius: 6px !important; box-shadow: 0 26px 54px -24px rgba(20,30,60,.4) !important;
}
html body.tpl-tisb #sec-about .sc-about-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important; }

/* TRACK RECORD → light premium (breaks up the navy) */
body.tpl-tisb .na-achieve { background: #ffffff !important; }
body.tpl-tisb .na-achieve::before { display: none !important; }
html body.tpl-tisb .na-achieve .na-sec-heading { color: var(--b) !important; -webkit-text-fill-color: var(--b) !important; }
body.tpl-tisb .na-achieve-item { background: #f7f8fa !important; border: 1px solid #e9ecf2 !important; }
body.tpl-tisb .na-achieve-icon { background: color-mix(in srgb, var(--y) 14%, #fff) !important; border-color: color-mix(in srgb, var(--y) 40%, #fff) !important; color: var(--y) !important; }
body.tpl-tisb .na-achieve-num { color: var(--b) !important; text-shadow: none !important; }
body.tpl-tisb .na-achieve-label { color: #5b6b82 !important; }

/* also cap the tall About image on the other templates so no one hangs low */
body[class*="tpl-"] #sec-about .sc-about-img { max-height: 520px; object-fit: cover; }
/* big rounded soft cards */
body.tpl-trio .na-ev-card, body.tpl-trio .na-fac-card, body.tpl-trio .na-testi-card,
body.tpl-trio .na-gallery-item, body.tpl-trio .na-ev-list-item, body.tpl-trio .na-star-card {
    border-radius: 12px !important; border: 1px solid #eef1f5 !important; overflow: hidden !important; background: #fff !important;
    box-shadow: 0 14px 36px -24px rgba(15,23,42,.28) !important; transition: transform .22s, box-shadow .22s !important;
}
body.tpl-trio .na-ev-card:hover, body.tpl-trio .na-fac-card:hover, body.tpl-trio .na-testi-card:hover {
    transform: translateY(-7px) !important; box-shadow: 0 26px 54px -22px rgba(15,23,42,.4) !important;
}
body.tpl-trio .sc-stat-item { border-radius: 12px !important; border: 1px solid #eef1f5 !important; box-shadow: 0 12px 30px -22px rgba(15,23,42,.28) !important; }
/* Trio-style buttons: solid accent, moderate radius (like their 'Discover More') */
body.tpl-trio .na-ev-link, body.tpl-trio .header-admit-btn, body.tpl-trio .tb-admission,
body.tpl-trio .btn, body.tpl-trio button { border-radius: 6px !important; font-weight: 700 !important; }
/* 'Learn more →' arrow-link accent on card read-more links */
body.tpl-trio .na-ev-link { color: var(--y) !important; }
body.tpl-trio .sc-about-img { border-radius: 12px !important; }

/* mobile: shorter hero + tidy in-bar logo for the two reference templates */
@media (max-width: 768px) {
    body.tpl-tisb .home-slider, body.tpl-trio .home-slider { min-height: 340px !important; }
    body.tpl-tisb .menu-row nav, body.tpl-trio .menu-row nav { margin-left: 0; }
    body.tpl-tisb .menu-brand img, body.tpl-trio .menu-brand img { height: 40px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CHROME (top-bar + submenu + footer) for the two reference templates, so the
   WHOLE page — not just the middle — reads like the source site. Header & menu
   are handled above; these style the utility strip, dropdowns and footer.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---- TISB: premium. Slim dark utility strip, square social, an uppercase
   footer with a gold top rule and lettered headings. ---- */
body.tpl-tisb .top-bar { padding: 6px 0; background: color-mix(in srgb, var(--b) 90%, #000) !important; }
body.tpl-tisb .tb-inner { max-width: 1180px; }
body.tpl-tisb .tb-left span, body.tpl-tisb .tb-left a { letter-spacing: .3px; font-size: 12px; }
body.tpl-tisb .tb-admission { text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; font-weight: 600; }
body.tpl-tisb .tb-social a { border-radius: 3px; }
/* dropdown menus: crisp, thin gold top rule */
body.tpl-tisb .submenu { border-radius: 0; border-top: 2px solid var(--y); }
body.tpl-tisb .submenu li a { text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
/* footer */
body.tpl-tisb .site-footer { background: color-mix(in srgb, var(--b) 90%, #000) !important; border-top: 3px solid var(--y); padding-top: 66px; }
body.tpl-tisb .footer-col h3 { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 600; }
body.tpl-tisb .footer-social a { border-radius: 3px; }
body.tpl-tisb .footer-about-text, body.tpl-tisb .footer-links a { letter-spacing: .2px; }
body.tpl-tisb .footer-bottom { text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px; }

/* ---- TRIO: friendly. Rounded utility button, round social pills, a footer with
   a rounded top skirt and soft rounded link chips. ---- */
body.tpl-trio .tb-admission { border-radius: 30px; padding: 5px 16px; font-weight: 700; }
body.tpl-trio .tb-social a { border-radius: 50%; }
body.tpl-trio .submenu { border-radius: 0 0 12px 12px; border-top: 3px solid var(--y); }
body.tpl-trio .submenu li a { font-family: 'Poppins', sans-serif; }
/* footer */
body.tpl-trio .site-footer { background: color-mix(in srgb, var(--b) 84%, #000) !important; border-radius: 30px 30px 0 0; padding-top: 60px; }
body.tpl-trio .footer-col h3 { font-family: 'Poppins', sans-serif; font-weight: 700; border-bottom-width: 3px; }
body.tpl-trio .footer-social a { width: 38px; height: 38px; border-radius: 50%; }
body.tpl-trio .footer-links a { border-radius: 6px; padding: 2px 4px; transition: background .2s, color .2s, padding-left .2s; }
body.tpl-trio .footer-links a:hover { background: rgba(255,255,255,.06); padding-left: 8px; }
body.tpl-trio .footer-bottom { font-family: 'Poppins', sans-serif; }
@media (max-width: 768px) { body.tpl-trio .site-footer { border-radius: 20px 20px 0 0; } }

/* ==========================================================================
   SECTION FORMAT â€” this is what makes each template a DIFFERENT LAYOUT, not
   just different colours: heading alignment, the stats block, section rhythm.
   ========================================================================== */

/* ---------- MODERN â€” LEFT-ALIGNED editorial. Headings left with an accent bar,
   stats become underlined figures in a row (no boxes). ---------- */
body.tpl-modern #sec-about, body.tpl-modern #sec-testimonials { background: #f6f8fc !important; }
body.tpl-modern #sec-events, body.tpl-modern #sec-news, body.tpl-modern #sec-gallery { background: #ffffff !important; }
/* everything left-aligned */
body.tpl-modern .na-sec-eyebrow, body.tpl-modern .na-sec-heading, body.tpl-modern .na-sec-sub,
body.tpl-modern .sc-about-eyebrow, body.tpl-modern .sc-about-title, body.tpl-modern .sc-about-text {
    text-align: left !important;
}
body.tpl-modern .na-sec-heading { position: relative; padding-bottom: 14px; }
body.tpl-modern .na-sec-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; background: var(--y); border-radius: 2px; }
body.tpl-modern .sc-about-divider { margin-left: 0 !important; margin-right: auto !important; }
body.tpl-modern .sc-about-stats { grid-template-columns: repeat(4, max-content) !important; justify-content: start !important; gap: 44px !important; }
body.tpl-modern .sc-stat-item {
    background: none !important; border: none !important; border-top: 3px solid var(--y) !important;
    border-radius: 0 !important; padding: 12px 0 0 !important; text-align: left !important;
}
body.tpl-modern .sc-stat-item:hover { transform: none !important; box-shadow: none !important; background: none !important; }
body.tpl-modern #sec-slider .carousel-item img, body.tpl-modern #sec-slider .carousel-item video { border-radius: 0 !important; }

/* ---------- ELEGANT â€” CENTERED editorial. Stats become inline figures split by
   thin gold dividers (no boxes), warm cream bands. ---------- */
body.tpl-elegant #sec-about, body.tpl-elegant #sec-testimonials, body.tpl-elegant #sec-news { background: #faf6ee !important; }
body.tpl-elegant #sec-slider { border-bottom: 4px solid var(--y); }
body.tpl-elegant .sc-about-title, body.tpl-elegant .sc-about-eyebrow, body.tpl-elegant .sc-about-text { text-align: center !important; }
body.tpl-elegant .sc-about-divider { margin: 14px auto !important; background: var(--y) !important; }
body.tpl-elegant .sc-about-stats { display: flex !important; justify-content: center !important; flex-wrap: wrap !important; gap: 0 !important; }
body.tpl-elegant .sc-stat-item {
    background: none !important; border: none !important; box-shadow: none !important; border-radius: 0 !important;
    border-right: 1px solid color-mix(in srgb, var(--y) 50%, white) !important; padding: 6px 32px !important;
}
body.tpl-elegant .sc-stat-item:last-child { border-right: none !important; }
body.tpl-elegant .sc-stat-item:hover { transform: none !important; box-shadow: none !important; background: none !important; }

/* ---------- VIBRANT â€” CENTERED playful. Stats become rounded gradient pill
   cards, tinted bands, rounded hero. ---------- */
body.tpl-vibrant #sec-about, body.tpl-vibrant #sec-testimonials { background: color-mix(in srgb, var(--y) 8%, #fff) !important; }
body.tpl-vibrant #sec-events, body.tpl-vibrant #sec-news, body.tpl-vibrant #sec-gallery { background: color-mix(in srgb, var(--b) 5%, #fff) !important; }
body.tpl-vibrant #sec-slider, body.tpl-vibrant #mainSlider { border-radius: 0 0 30px 30px; overflow: hidden; }
body.tpl-vibrant #sec-marquee { border-radius: 30px; margin: 14px auto; max-width: 1180px; }
body.tpl-vibrant .sc-about-title, body.tpl-vibrant .sc-about-eyebrow, body.tpl-vibrant .sc-about-text { text-align: center !important; }
body.tpl-vibrant .sc-about-divider { margin: 14px auto !important; }
body.tpl-vibrant .sc-about-stats { gap: 16px !important; }
body.tpl-vibrant .sc-stat-item {
    background: linear-gradient(160deg, color-mix(in srgb, var(--y) 16%, #fff), #fff) !important;
    border: none !important; border-radius: 22px !important; padding: 20px 14px !important;
    box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--b) 60%, transparent) !important;
}
body.tpl-vibrant .sc-stat-item:hover { transform: translateY(-6px) scale(1.02) !important; box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--b) 55%, transparent) !important; }

/* mobile: keep the in-bar logo tidy when the menu collapses */
@media (max-width: 768px) {
    body.tpl-modern .menu-brand img, body.tpl-vibrant .menu-brand img { height: 40px; }
    body.tpl-modern .menu-row nav, body.tpl-vibrant .menu-row nav { margin-left: 0; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   INNER-PAGE HERO â€” the title banner on every page except Home.
   One shared treatment for all six banners, themed from --b / --y, with a
   distinct character per template. The `body[class*="tpl-"]` prefix (0,2,1)
   outranks each page's own banner CSS (0,1,0); a Drag-Builder edit
   (.gbu-x.gbu-x.gbu-x !important) still outranks this.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

body[class*="tpl-"] :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 84px 0 74px;
    text-align: center;
    background:
        radial-gradient(120% 160% at 12% -30%, color-mix(in srgb, #fff 20%, transparent), transparent 58%),
        radial-gradient(100% 140% at 108% 130%, color-mix(in srgb, var(--y) 38%, transparent), transparent 62%),
        linear-gradient(118deg, color-mix(in srgb, var(--b) 88%, black) 0%, var(--b) 52%, color-mix(in srgb, var(--b) 80%, white) 100%);
}

/* fine dotted texture, fading out towards the bottom */
body[class*="tpl-"] :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(rgba(255,255,255,.85) 1px, transparent 1.6px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 5%, transparent 88%);
}

/* secondary-coloured hairline along the bottom edge */
body[class*="tpl-"] :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(90deg, transparent, var(--y), transparent);
}

body[class*="tpl-"] :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) :is(h1, h2) {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
    letter-spacing: .5px;
    text-shadow: 0 12px 34px color-mix(in srgb, var(--b) 72%, black);
}

body[class*="tpl-"] :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) p {
    position: relative;
    z-index: 2;
}

/* the divider under the title â€” glowing bar + diamond ornament */
body[class*="tpl-"] :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider) {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 4px;
    border: none;
    border-radius: 99px;
    margin: 20px auto 0;
    opacity: 1;
    overflow: visible;
    background: linear-gradient(90deg, transparent, var(--y), transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--y) 55%, transparent);
}

body[class*="tpl-"] :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider)::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 9px; height: 9px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--y);
    box-shadow: 0 0 12px color-mix(in srgb, var(--y) 70%, transparent);
}

/* â”€â”€ Classic: stately, wide-tracked caps over a double rule â”€â”€ */
body.tpl-classic :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) { padding: 76px 0 66px; }
body.tpl-classic :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) :is(h1, h2) {
    font-weight: 800;
    letter-spacing: 2px;
}
body.tpl-classic :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider) {
    width: 132px; height: 3px; border-radius: 0;
    background: var(--y);
    box-shadow: none;
}
body.tpl-classic :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider)::before {
    content: "";
    position: absolute;
    left: 50%; top: 8px;
    transform: translateX(-50%);
    width: 66px; height: 2px;
    background: color-mix(in srgb, var(--y) 55%, transparent);
}

/* â”€â”€ Modern: flat, tight, engineered â€” grid texture, blunt accent bar â”€â”€ */
body.tpl-modern :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) { padding: 70px 0 60px; }
body.tpl-modern :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::before {
    opacity: .10;
    background-image:
        linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 44px 44px;
}
body.tpl-modern :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) :is(h1, h2) {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.01em;
}
body.tpl-modern :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider) {
    width: 64px; height: 5px; border-radius: 2px;
    background: var(--y);
    box-shadow: none;
}
body.tpl-modern :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider)::after { display: none; }

/* â”€â”€ Elegant: airy, italic, framed like a printed page â”€â”€ */
body.tpl-elegant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) { padding: 100px 0 90px; }
body.tpl-elegant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::after {
    left: 22px; right: 22px; top: 22px; bottom: 22px;
    height: auto;
    background: none;
    border: 1px solid color-mix(in srgb, #fff 32%, transparent);
}
body.tpl-elegant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) :is(h1, h2) {
    font-style: italic;
    font-weight: 600;
    letter-spacing: 1px;
}

/* â”€â”€ Vibrant: primaryâ†’secondary wash, soft blobs, rounded skirt â”€â”€ */
body.tpl-vibrant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) {
    padding: 82px 0 78px;
    border-radius: 0 0 42px 42px;
    background:
        radial-gradient(90% 120% at 10% -20%, color-mix(in srgb, #fff 24%, transparent), transparent 60%),
        linear-gradient(125deg, var(--b) 0%, color-mix(in srgb, var(--b) 45%, var(--y)) 62%, var(--y) 135%);
}
body.tpl-vibrant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::before {
    opacity: 1;
    background-image: none;
    -webkit-mask-image: none;
    mask-image: none;
    background:
        radial-gradient(circle at 88% 20%, color-mix(in srgb, #fff 20%, transparent) 0 11%, transparent 12%),
        radial-gradient(circle at 7% 80%, color-mix(in srgb, #fff 14%, transparent) 0 8%, transparent 9%);
}
body.tpl-vibrant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::after { display: none; }
body.tpl-vibrant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) :is(h1, h2) { font-weight: 800; }
body.tpl-vibrant :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider) {
    width: 112px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 20px rgba(255,255,255,.55);
}
body.tpl-vibrant :is(.sis-banner-line, .evt-banner-line, .evtg-banner-line, .cu-banner-line, .cr-line, .md-line, .pg-hero-divider, .vg-hero-divider)::after {
    background: #fff;
    box-shadow: 0 0 14px rgba(255,255,255,.8);
}

/* â”€â”€ Gallery heroes carry an icon medallion + breadcrumb; theme them too â”€â”€ */
body[class*="tpl-"] :is(.pg-hero, .vg-hero) :is(.pg-hero-inner, .vg-hero-inner) { position: relative; z-index: 2; }

body[class*="tpl-"] :is(.pg-hero-icon, .vg-hero-icon) {
    position: relative;
    z-index: 2;
    color: var(--y);
    background: color-mix(in srgb, var(--y) 16%, transparent);
    border: 2px solid color-mix(in srgb, var(--y) 45%, transparent);
    box-shadow: 0 0 0 8px color-mix(in srgb, #fff 6%, transparent), 0 10px 30px color-mix(in srgb, var(--b) 60%, black);
    backdrop-filter: blur(2px);
}

body[class*="tpl-"] :is(.pg-hero, .vg-hero) p { margin-top: 16px; }

body[class*="tpl-"] :is(.pg-hero-breadcrumb, .vg-hero-breadcrumb) { position: relative; z-index: 2; }
body[class*="tpl-"] :is(.pg-hero-breadcrumb, .vg-hero-breadcrumb) a:hover { color: var(--y); }
body[class*="tpl-"] :is(.pg-hero-breadcrumb, .vg-hero-breadcrumb) .sep { color: var(--y); }

/* vibrant paints its hero primaryâ†’secondary, so a gold medallion would vanish â€” go white */
body.tpl-vibrant :is(.pg-hero-icon, .vg-hero-icon) {
    color: #fff;
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.5);
}
body.tpl-vibrant :is(.pg-hero-breadcrumb, .vg-hero-breadcrumb) a:hover,
body.tpl-vibrant :is(.pg-hero-breadcrumb, .vg-hero-breadcrumb) .sep { color: #fff; }

/* modern is flat and square â€” drop the medallion's round glow */
body.tpl-modern :is(.pg-hero-icon, .vg-hero-icon) { border-radius: 8px; box-shadow: none; }

@media (max-width: 768px) {
    body[class*="tpl-"] :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) { padding: 56px 18px 48px; }
    body.tpl-elegant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero)::after { left: 12px; right: 12px; top: 12px; bottom: 12px; }
    body.tpl-vibrant :is(.sis-banner, .evt-banner, .evtg-banner, .cu-banner, .cr-hero, .md-hero, .pg-hero, .vg-hero) { border-radius: 0 0 26px 26px; }
}
