@font-face {
    font-family: "lineicons";
    src: url("../../fonts/icons/lineicons.eot");
    src: url("../../fonts/icons/lineicons.eot") format("embedded-opentype"),
    url("../../fonts/icons/lineicons.woff2") format("woff2"),
    url("../../fonts/icons/lineicons.woff") format("woff"),
    url("../../fonts/icons/lineicons.ttf") format("truetype"),
    url("../../fonts/icons/lineicons.svg") format("svg");
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/media/templates/site/cassiopeia_home/fonts/Poppins-Regular.woff2') format('woff2'), url('../fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}
@font-face {
    font-family: 'Monstserrat';
    src: url('/media/templates/site/cassiopeia_home/fonts/montserrat-variablefont_wght-webfont.woff2') format('woff2'), url('../fonts/montserrat-variablefont_wght-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap
}
@font-face {
    font-family: 'specter';
    src: url('/media/templates/site/cassiopeia_home/fonts/Specter.woff2') format('woff2'), url('../fonts/Specter.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

:root {
    --white-1:#fff;
    --black-1:#424347;
    --blue-1:#35518b;
    --blue-dot:rgba(53, 81, 139, 0.3);
    --blue-dot-border:rgba(53, 81, 139, 0.7);
    --red-1:#8b3535;
    --red-hover:#d55;
    --radius-10:10px;
    --radius-20:20px;
    --radius-30:30px;
    --border-light:#e1e1e1;
    --transparent-bg-1:rgba(255,255,255, 0.55);
}

body {
    font-size:1.1rem;
    line-height:1.6;
    font-family: 'Poppins', Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 400;
    font-display: swap;
    overflow-x: hidden;
    display:grid;
    &#top {
        display: unset !important;
        height: unset !important;
        margin: unset !important;
        width: unset !important;
        &.com_finder {
            display:grid !important;
        }
    }
}
h1,h2,h3,h4,h5,h6 {
    font-family:'specter', Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 700;
}
h1, .h1 {
    font-size: clamp(1.8rem, 2.25vw, 2.25rem);
    font-weight: 400;
}
h2, .h2 {
    font-size:  clamp(1.5rem, 1.9vw, 1.9rem);
    font-weight: 400;
}
h3, .h3 {
    font-size: clamp(1.3rem, 1.5vw, 1.5rem);
    font-weight: 400;
}
h4, .h4 {
    font-size: 1.25rem;
    font-weight: 400;
}
h5, .h5, .card-title-text {
    font-size: 1.25rem;
    font-weight: 400;
}
h1,h2,h3,h4 {
    text-wrap:balance;
}

header {
    display:flex;
    gap:4vw;
    align-items:center;
    height:fit-content;

    &.container-header {
        background-color:var(--white-1);
        background-image:none;
        box-shadow: rgba(0, 0, 0, 0.2) 0 0 4px 0;
        padding-block:15px;
        .navbar-brand {
            padding:0;
            margin:0;
        }
        #searchIcon i, #clientLogin i {
            cursor:pointer;
        }
        .container-search {
            margin-top: 0;
            display:flex;
            align-items:center;
            gap:15px;
            .search-block {
                .flexy {
                    display:flex;
                    gap:15px;
                    align-items:center;
                }
            }
            .mobile-menu-button {
                svg {
                    width:2rem;
                    height:2rem;
                }
            }
        }
        & > div:first-of-type {
            width:fit-content;
        }
        .grid-child.container-nav {
            padding-block:0;
            justify-content: space-between;
            width: 100%;
            gap: 20px;
            display: grid;
            grid-template-columns: 200px auto 60px;
            .menu-block {

            }

            .mod-list {
                gap:1.5rem;
                align-items: center;
                justify-content: center;
            }
            .mod-list > li {
                margin:0;
                padding:0;
                font-size:1.1rem;
            }
        }
    }
    &.container-header .mod-menu a,
    &.container-header .mod-menu button {
    color: var(--black-1);
}
}
/* Header icons (search / user / mobile-menu): same visual size, vertically centered.
   The magnifier and hamburger render at ~24px; the user icon's artwork is inset in its
   16x16 viewBox (~75% fill), so it looks small at the same box size — its box is bumped
   to 2rem so the visible figure matches. Flex-centering the wrappers removes the
   line-height gap that was top-aligning the search/user icons. */
.container-search {
    align-items: center;

    #searchIcon,
    #clientLogin,
    #clientLogin > a,
    .mobile-menu-button {
        display: flex;
        align-items: center;
    }

    #searchIcon i,
    #clientLogin i,
    .mobile-menu-button svg {
        display: block;
    }

    #clientLogin i {
        width: 2rem;
        height: 2rem;
    }
}
/* Header menu: reveal submenu dropdowns on hover (desktop), matching the reference site.
   Joomla's default shows .mod-menu__sub on click of the toggle button; here it fades in
   on hover / keyboard focus instead. The core rule that hides submenus,
   :where(.mod-menu__sub[aria-hidden="true"]){display:none}, has zero specificity, so these
   normal selectors win without !important. menu.js (ARIA state + arrow-key nav) is left intact. */
@media (width >= 992px) {
    .container-header .mod-menu > li.parent > .mod-menu__sub {
        /* Kept in the layout so it can fade; hidden until hover / focus-within. */
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
        width: 300px;
        padding-block: 5px;
        background-color: var(--white-1);
        border: 1px solid rgba(66, 67, 71, 0.2);
        border-radius: 4px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .container-header .mod-menu > li.parent:hover > .mod-menu__sub,
    .container-header .mod-menu > li.parent:focus-within > .mod-menu__sub {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
    }
    /* Sub items: bold, letter-spaced, thin dividers, inset from the box edge. */
    .container-header .mod-menu > li.parent > .mod-menu__sub > li {
        margin: 0 15px;
    }
    .container-header .mod-menu > li.parent > .mod-menu__sub > li > a {
        display: block;
        padding: 8px 0;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 1.3;
        color: var(--black-1);
        text-decoration: none;
        border-bottom: 1px solid rgba(66, 67, 71, 0.2);
    }
    .container-header .mod-menu > li.parent > .mod-menu__sub > li:last-child > a {
        border-bottom: 0;
    }
    .container-header .mod-menu > li.parent > .mod-menu__sub > li > a:hover,
    .container-header .mod-menu > li.parent > .mod-menu__sub > li > a:focus {
        color: var(--blue-1);
    }
}
/* Header search modal — styled to match the reference site's search popup
   (Bootstrap 5 modal; the search-modal position renders mod_finder inside). */
.search-modal-div {
    .modal-dialog {
        max-width: 620px;
    }
    .search-modal__panel {
        position: relative;
        border: 0;
        border-radius: var(--radius-20);
        box-shadow: none;
        text-align: center;
    }
    .modal-body {
        padding: 30px;
    }
    /* Module title (rendered by the search-modal module chrome; editable by the client). */
    .moduletable > h3 {
        /* Reference uses the body font here, not the heading font. */
        font-family: 'Poppins', Helvetica, Tahoma, Geneva, Arial, sans-serif;
        font-weight: 400;
        font-size: clamp(1.5rem, 2.2vw, 1.75rem);
        line-height: 1.3;
        color: var(--black-1);
        margin: 0 0 20px;
        text-wrap: balance;
    }
    .search-modal__close {
        position: absolute;
        top: 10px;
        right: 16px;
        z-index: 2;
        padding: 0;
        border: 0;
        background: transparent;
        color: #888;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        transition: color 0.2s;
        &:hover,
        &:focus {
            color: var(--black-1);
        }
    }
    /* mod_finder field: centered, underline-only, like the reference. */
    .mod-finder {
        margin: 0;
    }
    .js-finder-search-query,
    input[type="search"],
    input[type="text"] {
        width: 100%;
        max-width: 560px;
        height: 60px;
        margin-inline: auto;
        padding: 6px 20px;
        font-size: clamp(1.25rem, 2vw, 1.5rem);
        text-align: center;
        color: var(--black-1);
        background: transparent;
        border: 0;
        border-bottom: 2px solid #e0e0e5;
        border-radius: 0;
        box-shadow: none;
        &:focus {
            outline: 0;
            border-bottom-color: var(--blue-1);
        }
    }
}
/* Dark, blurred backdrop for the search modal (tagged from user.js so other
   Bootstrap modals keep the default backdrop). */
.modal-backdrop.search-modal-backdrop {
    --bs-backdrop-opacity: 0.7;
    background-color: #000;
    backdrop-filter: blur(5px);
}
/* Full-screen mobile menu — matches the reference site's mobile menu.
   Bootstrap modal-fullscreen renders module 175 (mod_menu). The submenu
   accordion is driven by Joomla's core menu.js (click a parent to expand). */
.mobile-menu-div {
    .modal-content {
        background-color: var(--white-1);
        border: 0;
        border-radius: 0;
    }
    .modal-body {
        padding: 1.5rem 1.75rem 2.5rem;
    }
    .mobile-menu__close {
        position: absolute;
        top: 12px;
        right: 16px;
        z-index: 2;
        padding: 0;
        border: 0;
        background: transparent;
        color: #888;
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
        transition: color 0.2s;
        &:hover,
        &:focus {
            color: var(--black-1);
        }
    }
    .mobile-menu__logo {
        display: block;
        width: fit-content;
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(66, 67, 71, 0.2);
        img {
            max-width: 200px;
        }
    }
    /* The menu list (.nav adds Bootstrap flex — force a vertical list). */
    .mod-menu {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .mod-menu > li {
        margin: 0;
        list-style: none;
    }
    /* Top-level rows: plain links or heading/separator toggle buttons. */
    .mod-menu > li > a,
    .mod-menu > li > .mod-menu__toggle-sub {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        width: 100%;
        padding: 5px 0;
        font-family: 'Poppins', Helvetica, Tahoma, Geneva, Arial, sans-serif;
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.6;
        color: var(--blue-1);
        text-align: left;
        text-decoration: none;
    }
    .mod-menu__heading,
    .mod-menu__separator {
        font: inherit;
        color: inherit;
    }
    /* Chevron pushed to the right edge (rotates on expand via core mod-menu.css). */
    .mod-menu .icon-chevron-down {
        margin-inline-start: auto;
        flex: 0 0 auto;
    }
    /* Submenu accordion: indented, slightly smaller, animated open/close.
       Core mod-menu.css toggles display:none/block via [aria-hidden] (zero
       specificity), so we override display to keep it rendered and animate
       max-height + opacity instead. menu.js flips aria-hidden on parent-click. */
    .mod-menu__sub {
        display: block;
        margin: 0;
        padding-left: 15px;
        list-style: none;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.3s ease;
    }
    .mod-menu__sub[aria-hidden="false"] {
        max-height: 600px;
        opacity: 1;
    }
    .mod-menu__sub > li > a {
        display: block;
        padding: 2px 0;
        font-family: 'Poppins', Helvetica, Tahoma, Geneva, Arial, sans-serif;
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--blue-1);
        text-decoration: none;
    }
    .mod-menu a:hover,
    .mod-menu a:focus,
    .mod-menu .mod-menu__toggle-sub:hover,
    .mod-menu .mod-menu__toggle-sub:focus {
        color: var(--black-1);
    }
}
.site-grid > .grid-child {
    padding:3vw 0;
}
.container-xxl {
    max-width:1420px;
    margin-inline:auto;
}
.container-top-a, .container-top-b, .container-top-c, .container-top-d {
    position:relative;
}
.section-deco {
    position:absolute;
    content:"";
    bottom:0;
    width:100%;
    margin-block:0;
}
.fa-light.fa-user {
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 8a3 3 0 1 0 0-6a3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0a2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1s1-4 6-4s6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z'/%3E%3C/svg%3E");
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    &::before {
        content:unset;
    }
}
.container-top-a {
    background: white;
    background: -moz-linear-gradient(top, white 0%, white 10%, #35518b 100%);
    background: -webkit-linear-gradient(top, white 0%, white 10%, #35518b 100%);
    background: linear-gradient(to bottom, white 0%, white 10%, #35518b 100%);
    .section-deco {
        .waves {
            position: relative;
            width: 100%;
            max-height: 100px;
            margin-bottom: -30px;
        }
    }
    .parallax > use {
        animation: move-forever 35s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    }
    .parallax > use:nth-child(1) {
        animation-delay: -2s;
        animation-duration: 10s;
    }
    .parallax > use:nth-child(2) {
        animation-delay: -3s;
        animation-duration: 13s;
    }
    .parallax > use:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 16s;
    }
    .parallax > use:nth-child(4) {
        animation-delay: -5s;
        animation-duration: 23s;
    }
}
.itemid-101 {
    .container-top-a {
        padding-bottom:calc(3rem + 120px);
        padding-top:3rem;
        .card-item__title {
            margin-bottom:1em;
        }
    }
    h3 {
        font-size: clamp(1.2rem, 2.5vw, 2.5rem);
        margin-bottom: 4rem;
        &.card-item__title {
            font-size: clamp(1.3rem, 1.5vw, 1.5rem);
            font-weight: 400;
            margin-bottom:1em;
        }
    }
    h1 {
        color: #f9fbfe;
        font-size: clamp(1.8rem, 2.25vw, 3rem);
        margin-block: 0;
    }
    #mod-grid-card-173 {
        .mgc-carousel__dots {
            .mgc-carousel__dot {
                width:20px;
                height:20px;
                border-radius:100vh;
                background:var(--blue-dot);
                border:solid 1px var(--blue-dot-border);
                transition:all 0.2s;
                &.is-active, &:hover {
                    background:rgba(53, 81, 139, 1);
                    border:rgba(53, 81, 139, 1);

                }
            }
        }
    }
}
.site-grid {
    & > .grid-child:last-of-type {
        padding-bottom:3rem;
    }
}
.container-banner {
    /* Hero: copy + CTA anchored left over a full-bleed image (Variation B).
       Flex + absolute layers instead of a fixed 1fr/1fr grid, so the content
       reflows to the bottom on small screens instead of squeezing into half a column. */
    .heroGrid {
        position: relative;
        display: flex;
        align-items: center;
        min-height: clamp(420px, 62vh, 640px);
        width: 100%;
        padding-block: 2rem;
        /* Comfortable gutter, but align the copy to the 1420px content column on wide screens. */
        padding-inline: max(clamp(1.25rem, 5vw, 3rem), calc((100% - 1420px) / 2));
        overflow: hidden;
        isolation: isolate;
    }
    .heroGridImg {
        position: absolute;
        inset: 0;
        z-index: 0;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 72% center; /* keep the shield in frame while text sits left */
        }
    }
    .imgOverlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background-image: linear-gradient(100deg, rgba(39, 66, 129, 0.95) 0%, rgba(53, 81, 139, 0.82) 34%, rgba(53, 81, 139, 0.35) 62%, rgba(2, 3, 6, 0.12) 100%);
        mix-blend-mode: multiply;
    }
    .heroGridContent {
        position: relative;
        z-index: 2;
        max-width: 34rem;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        row-gap: 1.6em;
        color: #f9fbfe !important;
        p {
            font-size: clamp(1.3rem, 1.5vw, 1.5rem);
            line-height: 1.5;
            text-wrap: balance;
            margin-block: 0;
            font-weight: 400;
        }
    }
    @media (max-width: 640px) {
        .heroGrid {
            align-items: flex-end;
            min-height: clamp(440px, 72vh, 560px);
        }
        .heroGridImg img {
            object-position: center;
        }
        .imgOverlay {
            /* Full-width bottom-up scrim so the copy stays legible over the whole image. */
            mix-blend-mode: normal;
            background-image: linear-gradient(to top, rgba(2, 3, 6, 0.9) 6%, rgba(39, 66, 129, 0.72) 46%, rgba(39, 66, 129, 0.3) 100%);
        }
        .heroGridContent {
            max-width: 100%;
            margin-right: 0;
        }
    }
    .heroBtn {
        background: #f9fbfe;
        color: #020306 !important;
        border-radius: 100vh;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        font-weight: bold;
        outline: 2px solid #f9fbfe;
        outline-offset: 4px;
        margin-left: 4px;
        width: fit-content;
        display: flex;
        gap: 10px;
        margin-top: 8px;
        transition: all 0.3s ease-in-out;
        font-weight: 400;
        text-decoration:none;
    }
    .heroBtn:hover, .heroGrid .heroBtn:active, .heroGrid .heroBtn:focus {
        background: #8afa68;
        outline: 2px solid #8afa68;
    }
}
.layout-cassiopeia_homebannerarticle, .view-article.layout-cassiopeia_homeaccurateblog, .view-article.layout-blog.blogPages {
    .container-component {
        padding-top:0;
        & > div.container-xxl {
            margin-top:0;
        }
        main {
            margin-top:0;
        }
    }
    .icons {
        display:none;
    }
    .article-banner {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%);
        margin-top: 0;
        margin-bottom: 0;
        max-width: 100vw;
        width: 100vw;
        display:grid;
        position:relative;
        max-height: 300px;
        overflow: hidden;
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 45%, hsl(220, 49%, 31%) 100%),
            linear-gradient(to right, hsl(220, 49%, 31%) 0%,
                    hsl(220 45% 38% / .92) 22%, hsl(220 45% 38% / .55) 75%,
                    hsl(220 45% 38% / .15) 100%);)

        }
        img {
            width:100%;
            grid-area:1/1/2/2;
            position:relative;
            max-height:300px;
            object-fit:cover;
        }
        .banner-title {
            /*align-self:end;*/
            align-self:center;
            grid-area:1/1/2/2;
            .page-header {
                width:fit-content;
                /*background:var(--white-1);*/
                /*padding: 0.5rem 1rem 0;*/
                /*box-shadow: 0.3px 0.5px 0.7px rgba(0, 0, 0, 0.07), 0.8px 1.6px 2px -0.8px rgba(0, 0, 0, 0.07), 2.1px 4.1px 5.2px -1.7px rgba(0, 0, 0, 0.07), 5px 10px 12.6px -2.5px rgba(0, 0, 0, 0.07);*/
               /* border-radius: 10px;
                border-bottom-left-radius: 0px;
                border-bottom-right-radius: 0px;*/
                margin-block: 0;
                padding-block: 10px 5px;
                position: relative;
                z-index: 1;
                h1 {
                    margin-bottom:0;
                    color:var(--white);
                    font-size:clamp(1.125rem, -0.191rem + 5.8491vw, 5rem);
                }
            }

        }
    }
    .banner-article {
        padding-top:65px;
        z-index:5;
        position:relative;
        background:var(--white-1);
    }
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}
.container-top-c {
    grid-area: top-c;
    background:var(--blue-1);
    color:var(--white-1);
    padding: 3rem 0;
}

.container-top-d {
    grid-area: top-d;
    background: radial-gradient(circle at bottom, #ffffff, transparent 150%), linear-gradient(to top, #bcd1fd 0%, transparent 70%), linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4) 70%), #bcd1fd;
    animation: bg 10s infinite;
    inset: 0 0 -7px 0;
}
.container-bottom-b {
    background: radial-gradient(circle at bottom, #ffffff, transparent 150%), linear-gradient(to top, #bcd1fd 0%, transparent 70%), linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4) 70%), #bcd1fd;
    animation: bg 10s infinite;
    inset: 0 0 -7px 0;
}
/* Cards */
.card-item {
    &.card-item--image-left, &.card-item--image-right {
        .card-item__inner {
            gap:clamp(10px,1rem,1rem);
        }
    }
}
.card-item__inner {
   color:var(--black-1);
}
@keyframes bg {
    0%, 100% {
        background-color: #bcd1fd;
    }

    25% {
        background-color: rgba(158, 249, 132, 0.6);
    }
    50% {
        background-color: #bcd1fd;
    }
    75% {
        background-color: #6294fb;
    }
}

.container-bottom-c {
    grid-area: bot-c;
}

.container-bottom-d {
    grid-area: bot-d;
}
body:not(.has-sidebar-right) .site-grid .container-component.full-width {
    grid-column-end: full-end !important;
}
body:not(.has-sidebar-left) .site-grid .container-component.full-width {
    grid-column-start: full-start!important;
}
@supports (display:grid) {
    @media (width >= 992px) {
        .site-grid {
            grid-template-areas:
                    ".banner banner banner banner."
                    ".top-a top-a top-a top-a."
                    ".top-b top-b top-b top-b."
                    ".top-c top-c top-c top-c."
                    ".top-d top-d top-d top-d."
                    ".side-l comp comp side-r."
                    ".bot-a bot-a bot-a bot-a."
                    ".bot-b bot-b bot-b bot-b."
                    ".bot-c bot-c bot-c bot-c."
                    ".bot-d bot-d bot-d bot-d.";
        }
    }
}
@supports (display:grid) {
    .site-grid {
        grid-gap: 0 1em;
        grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 19.875rem)) [main-end] minmax(0, 1fr) [full-end];
        grid-template-areas:
                ".banner banner banner banner."
                ".top-a top-a top-a top-a."
                ".top-b top-b top-b top-b."
                ".top-c top-c top-c top-c."
                ".top-d top-d top-d top-d."
                ".comp comp comp comp."
                ".side-r side-r side-r side-r."
                ".side-l side-l side-l side-l."
                ".bot-a bot-a bot-a bot-a."
                ".bot-b bot-b bot-b bot-b."
                ".bot-c bot-c bot-c bot-c."
                ".bot-d bot-d bot-d bot-d.";
        display: grid;
    }
}

.navbar-brand img  {
    max-width:200px;
}
.card-item {
    .card-item__link {
        background:var(--red-1);
        transition:all 0.2s;
        color:var(--white);
        text-decoration:none;
        border-radius:100vh;
        padding: 5px 30px;
        line-height:1.5;
        border:solid 1px var(--red);
        width:100%;
        margin:2px;
        outline: 1px solid var(--red);
        outline-offset: 2px;
        display: flex;
        justify-content: center;
        &:hover, &:active, &:focus {
            background:var(--red-hover);
            outline: 1px solid var(--red-hover);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.13) !important;
            -ms-transform: translateY(-2px);
            transform: translateY(-2px);
            -webkit-transform: translateY(-2px);
        }
    }
    .card-item__title {
        .card-item__link {
            all:unset;

            &:hover, &:active, &:focus {
                box-shadow:none !important;
                -ms-transform: unset;
                transform:unset;
                -webkit-transform:unset;
            }
        }
    }
    .card-item__content {
        ul.team-social {
            list-style:none;
            display:flex;
            align-items:center;
            gap:10px;
            margin:0;
            padding:0;
            font-size:2rem;
            .tm-social-icon {
                transition:all 0.2s;
                color:var(--red);
                &:hover, &:active, &:focus {
                    color:var(--red-hover);
                }
            }
        }
    }
    .card-item__media {
        img {
            margin-inline: auto;
            border-radius: 5px;
        }
    }
    &:has(.stretched-link) {
        cursor:pointer;
    }
}
.moduletable:has(.card-header-bm-0) {
    .card-item__title {
        margin-bottom:0;
    }
}

.mgc-carousel__dots {
    margin-top: 20px;
    .mgc-carousel__dot {
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.3);
        border-width: 1px;
        border-style: solid;
        border-color: rgba(255, 255, 255, 0.6);
        border-image: none;
        &.is-active {
            background: rgba(255, 255, 255, 1);
            border-color: rgba(255, 255, 255, 1);
        }
    }
}
.icon-chevron-down {
    display: inline-block;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    width:1rem;
    height:1rem;
    &::before {
        content:unset;
    }
}
.fa-regular.fa-magnifying-glass {
    display: inline-block;
   background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E");
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    width:1.5rem;
    height:1.5rem;
    &::before {
        content:unset;
    }
}
.footer-logo {
    width:200px;
}
footer {
    height:fit-content;
    align-self:end;
    .g-grid {
        width:100%;
        display:flex;
        justify-content:space-between;
        &:has(.footer-logo) {
            flex-flow:row wrap;
            row-gap:1rem;
            column-gap: 2rem;
        }
    }
    .moduletable {
        width:100%;
    }
    &.footer {
        background-color: var(--blue-1);
        background-image: none;
        margin-top: 0;
    }
    .footer-logo svg path, .footer-logo rect {
        fill: var(--white-1);
    }
    .g-grid #copyBlock p {
        line-height: 1.1;
    }
    .g-grid > div:nth-of-type(2) {
        justify-content: center;
    }
    .g-grid #copyBlock p:first-of-type {
        margin-top: 0;
    }
    .g-grid #copyBlock p:last-of-type {
        margin-bottom: 0;
    }
    .g-copyright {
        font-size: 0.8125rem;
        line-height: 1.25rem;
    }
    #footerMenu {
        display:flex;
        align-items:center;
        .g-horizontalmenu {
            list-style:none;
            display:flex;
            gap:2rem;
            align-items:center;
            margin:0;
            padding:0;
            a {
                text-decoration:none;
            }
        }
    }
    &.footer .grid-child {
        justify-content: space-between;
        align-items: center;
        padding: 1rem .5em;
    }
}
.search-modal-div.show {
    background:rgba(0, 0, 0, 0.7);
}
#search-results {
    .result__title-url, .result__taxonomy {
        display:none;
    }
 .result__item:has(figure) {
     display:grid;
     grid-template-columns: 150px auto;
     gap:20px;
     figure {
         display:grid;
         place-content:center;
         background-size:cover;
         img {
             object-fit:cover;
         }
     }
 }
}
mark, .mark {
    color: var(--highlight-color);
    background-color: #F1FD22;
    padding: .1875em 0;
    border-radius:3px;
}
.article-image-intro:has(.article-intro) {
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:clamp(1rem, 4vw, 2rem);
    margin-bottom:clamp(2rem, 4rem, 4rem);
    .article-intro {
        display:flex;
        flex-direction:column;
        justify-content:center;
        p:last-of-type{
            margin-bottom:0;
        }
    }
    .figure-wrap {
        display:grid;
        order:2;
        figure {
            grid-area:1/-1;
            text-align: center;
            &.img-small img {
                max-width:320px;
            }
        }
        .article-buttons {
            --radius-20:20px;
            position:relative;
            display:flex;
            flex-direction:column;
            column-gap:10px;
            row-gap:5px;
            grid-area:1/-1;
            height:fit-content;
            width:fit-content;
            align-self:end;
            padding:3px 12px 0 0;
            background:var(--white-1);
            border-top-right-radius:24px;

            &::before,
            &::after {
                content: "";
                position: absolute;
                width: var(--radius-20);
                height: var(--radius-20);
                background: var(--white-1);
                pointer-events: none;
            }
            &::before {
                bottom: 0px;               /* sit directly above the panel */
                right: -20px;
                -webkit-mask: radial-gradient(circle var(--radius-20) at bottom left, #0000 98%, #000 100%);
                mask: radial-gradient(circle var(--radius-20) at bottom left, #0000 98%, #000 100%);
                transform:rotate(-180deg);
            }
            &::after {
                top: -20px;                  /* NOTE: only works if the panel isn't flush to the image bottom */
                left: 0;
                -webkit-mask: radial-gradient(circle var(--radius-20) at top right, #0000 98%, #000 100%);
                mask: radial-gradient(circle var(--radius-20) at top right, #0000 98%, #000 100%);
            }
            .article-buttons-corner {

            }


            .cta-button {
                padding: 3px 10px;
                background: var(--red-1);
                transition: all 0.2s;
                text-decoration: none;
                border-radius: 100vh;
                line-height: 1.5;
                border: solid 1px var(--red);
                width: 100%;
                margin: 2px;
                outline: 1px solid var(--red);
                outline-offset: 2px;
                display: flex;
                align-items:center;
                justify-content: center;
                color: var(--white);
                text-align: center;
                &:hover, &:focus,&:active {
                    background: var(--red-hover);
                    outline: 1px solid var(--red-hover);
                    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.13) !important;
                    -ms-transform: translateY(-2px);
                    transform: translateY(-2px);
                    -webkit-transform: translateY(-2px)
                }
            }
        }
    }
    figure {
        margin-bottom:0;
        height:100%;
        border-radius: 10px;
        overflow: hidden;
        img {
            background-size:cover;
            object-fit:cover;
            height:100%;
            width:100%;
        }
    }
}
.cta-button, .btn-primary {
    padding: 3px 10px;
    background: var(--red-1);
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 100vh;
    line-height: 1.5;
    border: solid 1px var(--red);
    width: 100%;
    margin: 2px;
    outline: 1px solid var(--red);
    outline-offset: 2px;
    display: flex;
    align-items:center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    &:hover, &:focus,&:active {
        background: var(--red-hover);
        outline: 1px solid var(--red-hover);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.13) !important;
        -ms-transform: translateY(-2px);
        transform: translateY(-2px);
        -webkit-transform: translateY(-2px)
    }
}
#contact-form {
    .btn-primary {
        width:fit-content;
    }
    .altcha {
        background: var(--altcha-color-base, transparent);
        border: none;
        color: var(--altcha-color-text, currentColor);
        max-width: var(--altcha-max-width, 260px);
        flex-direction: column;
        display: flex;
        position: relative;
        .altcha-main {
            align-items: center;
            gap: .4rem;
            padding: unset;
            display: flex;
            position: relative;
        }
    }
}
.back-to-top-link {
    inset-inline-end: 1rem;
    z-index: 10000;
    color: var(--blue-1);
    pointer-events: all;
    background-color: var(--white-1);
    border: 1px solid var(--blue-1);
    opacity: 0;
    border-radius: 100vh;
    width:45px;
    height:45px;
    display:grid;
    place-content:center;
    transition: opacity .2s ease-in;
    position: fixed;
    bottom: 1rem;
    text-decoration:none;
    &:hover, &:active, &:focus {
        color: var(--white-1);
        pointer-events: all;
        background-color: var(--blue-1);
    }
}
.com-content-category-blog__items.blog-items.masonry-3 {
       gap:2rem;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, calc(33.3% - 4rem)));
}
.com-content-category-blog__item.blog-item {
    display:grid !important;
    grid-template-rows: auto 1fr;
    .item-content {
        grid-template-rows: subgrid;
        display: grid;
        grid-row: span 4;
        .icons {
            display:none;
        }
    }
    h2 {
        font-size: clamp(1.3rem, 1.3rem, 1.5rem);
        font-weight: 400;
        a {
            text-decoration:none;
        }
    }
}
body.formPage /*#page-inner*/, .blogPages {
    background-image: linear-gradient(315deg, rgba(53, 81, 139, 0.035) 0%, rgba(53, 81, 139, 0.035) 50%, white 50%, white 100%);
    background-size: cover;
}
body {
    #form_container:has(.appnitro) {
        background: unset;
        border: none;
        border-radius: 0.5rem;
        margin: 0 auto;
        text-align: left;
        max-width: unset;
        box-shadow:none;
        margin-inline:0;
    }

}
#main_body input.text, #main_body input.file, #main_body textarea.textarea, #main_body select.select, #main_body input.checkbox, #main_body input.radio {
    border-left: none;
    border-top: none;
    border-right: none;
    border-radius: 0;
    border-width: 2px;
}
#main_body {
    form li {
        display: block;
        margin: 0;
        padding: 4px 0 2px 0 !important;
        position: relative;
        clear: both;
    }

    &.integrated {
        font-family:"Poppins", sans-serif;
        max-width: 840px;
        margin-inline:auto;
    }
    form > ul {
        border:solid 1px var(--border-light);
        border-radius:20px;
        padding:clamp(10px, 20px, 20px) !important;
        background:var(--transparent-bg-1);
    }
    .form_description {
        display:none !important;
    }
    .payment-options {
        border: solid 1px var(--border-light);
        border-radius: 20px;
        padding: clamp(10px, 20px, 20px) !important;
        background: var(--transparent-bg-1);
        margin-bottom:1rem;
        display:flex;
        flex-flow:row wrap;
        gap:1rem;
        align-items:end;
        .dropdown.service-name {
            order:1;
            margin:0;padding:0;
            width:auto;
        }
        .total_payment {
            order:2;
            margin:0;padding:0;
            width:auto;
        }
    }
    #submit_form {
        color: #fff;
        line-height: 1.5;
        width: 100%;
        outline-offset: 2px;
        display: flex;
        justify-content: center;
        background: #8b3535;
        transition: 0.2s;
        text-decoration: none;
        border-radius: 100vh;
        padding: 5px 30px;
        border: solid 1px #8b3535;
        margin: 2px;
        outline: 1px solid #8b3535;
        font-family: 'Poppins', sans-serif;
        font-size:1.1rem;
        width:fit-content;
        &:hover, &:active, &:focus {
            transform: translateY(-2px);
            box-shadow: rgba(0, 0, 0, 0.13) 0px 6px 12px !important;
            background: #d55;
            outline: 1px solid #d55;
        }
    }
}
.com-content-article__body:has(#main_body) {
    & > ol {
        padding-left:1rem;
    }
}
.formPage {
    max-width:900px;
    margin-inline:auto;
}

.com-contact__container {
    display:block;
}
.contactPage .contact-address .addressLine {
    display: grid;
    grid-template-columns: 137px 1fr;
}
.form-scripts {
    display:none;
}
.sitemap {
    ul {
        padding-left:0;
        list-style:none;
        a {
            text-decoration:none;
        }
    }
}
.com_modulepage {
    .modulepage-hero__title {
        width:100%;
        max-width:1420px;
        margin:auto;
        .container-xxl {

        }
    }
    .container-component > .container-xxl {
        margin-top:0;
    }
}
#search-form {
    .btn.btn-primary {
        width:fit-content;
    }
}
@media screen and ( width < 1450px ) {
main > .container-xxl, .banner-title > .container-xxl {
    max-width:calc(100vw - 2rem);
    margin-inline:auto;
}
}
@media screen and ( width < 1300px ) {
    header {
        &.container-header {
            & .grid-child.container-nav {
                .mod-list > li {
                    font-size:1rem;
                }
            }
            }
        }

}
@media screen and ( width < 1169px ) {
    header {
        &.container-header {
            & .grid-child.container-nav {
                .mod-list > li {
                    font-size:0.9rem;
                }
            }
        }
    }

}
@media screen and ( width >= 992px ) {
    .visible-phone {
        display:none !important;
    }
    .hidden-phone {
        display:inherit;
    }
}
@media screen and ( width < 992px ) {
    .visible-phone {
        display: unset;
    }

    .hidden-phone {
        display: none;
    }

    header {
        &.container-header {
            .grid-child.container-nav {
                padding-block: 0;
                justify-content: space-between;
                width: 100%;
                grid-template-columns: 200px auto;
            }
        }
    }
}
@media screen and ( width < 768px ) {
    .article-image-intro:has(.article-intro) {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: clamp(1rem, 4vw, 2rem);

        .article-intro {
            order: 1;
        }

        .figure-wrap {
            order: 2;
            max-width: 450px;
            margin-inline: auto;
        }
    }
}
@media screen and ( width < 450px ) {
    header {
        &.container-header {
            .grid-child.container-nav {
                gap: 5px;
                grid-template-columns: 1fr;
            }
            .container-search {
                justify-content: center;
            }
        }
    }
   .brand-logo {
       margin-inline:auto;
   }
    .navbar-brand {
       text-align:center;
    }
}

/* ---------------------------------------------------------------------------
   com_contact: place the Miscellaneous Information beside the email form
   (info on the left, form on the right) to match the reference site.
   --------------------------------------------------------------------------- */
.com-contact .contact-columns--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.5rem 3.5rem;
    align-items: start;
}
.com-contact .contact-columns__info .contact-misc {
    display: block;
}
.com-contact .contact-columns__form > :first-child {
    margin-top: 0;
}
@media screen and (width < 768px) {
    .com-contact .contact-columns--split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}