nav#header {
    display: none;
}

nav#header.showme {
    display: block;
}

.page-template-page-mega-menu-4 a {
    transition: 0.5s all;
}
.mega-menu.products-menu .menu-links a:hover,
.mega-menu.resources-menu .menu-links a:hover,
.login-link:hover {
    color: #4C2A78 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.page-template-page-mega-menu-4 {
    padding-top: 0 !important;
}

.site-header {
    background: #fff;
    position: relative;
    z-index: 30;
}

.site-header a {
    color: #1A1B20 !important;
    text-decoration: none;
}

.site-header .header-wrapper {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 63px;
    position: relative;
    z-index: 20;
}

.site-logo img {
    width: 124px;
    height: auto;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto
}

.desktop-navigation {
    flex: 1
}

.desktop-navigation ul {
    display: flex;
    align-items: center;
    gap: 51px;
    font-size: 14px;
    list-style: none;
}

.desktop-navigation ul a {
    text-transform: uppercase;
}

.desktop-navigation a,
.navigation-trigger {
    text-transform: uppercase;
    white-space: nowrap
}

.navigation-trigger.is-active::before {
    opacity: 1;
    visibility: visible;
}

.desktop-navigation ul a {
    position: relative;
    padding: 29px 0;
}

.desktop-navigation ul a::before {
    position: absolute;
    height: 2px;
    background-color: #000000;
    border-width: 0;
    left: 0;
    content: '';
    bottom: 29px;
    transition: 0.5s all;
}

.desktop-navigation ul a:hover:before {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 14px;
    color: #1A1B20;
    text-decoration: none;
}

.language-button {
    border: 1px solid #D6D6D6 !important;
    border-radius: 50%;
    padding: 9px;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
}

.language-label {
    display: none
}

.globe-icon {
    font-size: 23px;
    line-height: 1
}

.demo-button {
    border: 1px solid #171820 !important;
    border-radius: 50px;
    padding: 9px 23px;
    text-transform: uppercase;
    font-family: Georgia, serif;
    letter-spacing: 3.4px;
    font-size: 13px;
}

.demo-button:hover {
    background-color: #171820;
    color: #fff !important;
}

.mobile-menu-button {
    display: none
}

.menu-overlay {
    position: fixed;
    inset: 80px 0 0;
    background: rgba(0, 0, 0, .65);
    z-index: 10
}

.mega-menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 102px;
    z-index: 15;
    background: #F5F5F5;
    border-radius: 20px;
    padding: 8px;
    display: none
}

.mega-menu.is-open {
    display: block
}

.mega-menu-inner {
    display: flex;
    min-height: 296px;
    gap: 48px;
}

.menu-links {
    padding: 30px 25px;
    display: flex;
    gap: 47px;
}

.menu-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6.5px;
}

/* Submenu css */
.menu-links ul ul.sub-menu,
.mobile-menu-content ul ul.sub-menu {
    padding: 0;
    background-color: transparent;
}

.menu-links a {
    color: #545454;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.new-badge {
    font-size: 8px;
    background-color: #4C2A78;
    color: #fff;
    line-height: 1;
    padding-block: 4px 2px;
    padding-inline: 4px;
    margin-left: 10px;
    font-weight: 600;
    border-radius: 2px;
}

.menu-cards {
    display: grid;
    grid-template-columns: 0.75fr 0.91fr 1.32fr;
    gap: 10px;
    flex: 1;
    max-height: 280px;
}

.menu-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.menu-card::before {
    position: absolute;
    content: '';
    background: linear-gradient(180deg, rgba(102, 102, 102, 0.4) 0%, rgba(0, 0, 0, 0.4) 50.28%);
    height: 100%;
    width: 100%;
}

.menu-card img,
.mobile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s all;
}

.menu-card:hover img {
    transform: scale(1.15);
}

.card-arrow {
    position: absolute;
    right: 17px;
    top: 12px;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    color: #fff
}

.card-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 24px;
    line-height: 1.2;
    color: #FAFBFC;
    font-style: italic;
    margin: 0;
    font-family: 'Playfair Display';
    letter-spacing: -0.72px;
}
.card-tag{
    position: absolute;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.36px;
    text-transform: uppercase;
    padding: 3px 9.1px;
    border-radius: 11.63px;
    background: #442460;
    left: 16px;
    top: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-card-wide .card-title {
    font-size: 21px;
    max-width: 370px
}

.mobile-menu {
    display: none
}

.page-content {
    overflow: hidden
}

.hero {
    min-height: 650px;
    background: #f2f2f0;
    padding: 95px 8%;
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center
}

.hero h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 62px;
    line-height: .96;
    margin: 10px 0 25px
}

.hero h1 em {
    font-style: italic
}

.hero-copy {
    max-width: 520px;
    font-size: 19px;
    line-height: 1.4;
    color: #414149
}

.hero-button {
    display: inline-block;
    margin-top: 22px;
    padding: 17px 55px;
    background: #191a21;
    color: #fff;
    border-radius: 50px;
    text-transform: uppercase;
    font-family: Georgia, serif;
    letter-spacing: 3px
}

.hero-image {
    height: 520px;
    border-radius: 0 0 0 230px;
    overflow: hidden
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.mega-menu.products-menu .menu-links {
    gap: 36px;
    flex: 1;
    padding: 29px 21px 29px 12px;
}

.mega-menu.products-menu .menu-column {
    min-width: 194px;
    position: relative;
    flex: 1;
}

.mega-menu.products-menu .menu-column:not(:last-of-type)::before {
    position: absolute;
    border-left: 1px solid #4C2A78;
    content: '';
    height: 100%;
    right: -18px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 5px);
    box-shadow: inset 0 0 0 1px #d6d6d6;
    border-radius: 22px;
    background-color: #FFFFFF;
    transition: 0.5s all;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
}

/* .language-button.active .language-menu{
    opacity: 1;
    visibility: visible;
} */
.language-selector {
    position: relative;
}

.language-selector.is-open .language-menu {
    opacity: 1;
    max-height: 80px;
    pointer-events: auto;
    z-index: 30;
}

.language-menu ul {
    list-style: none;
    padding: 8.5px 0px;
    min-width: 44px;
}

.language-menu ul a {
    padding: 4px 13.1px;
    display: block;
    font-size: 14px;
    transition: 0.5s all;
}

[lang="en-US"] .language-menu ul a[data-lang="en"],
[lang="fr-FR"] .language-menu ul a[data-lang="fr"] {
    font-weight: 600;
    color: #4C2A78 !important;
}

.language-menu ul a:hover {
    color: #4C2A78 !important;
    font-weight: 600;
}

.language-menu ul a.active,
.language-menu ul a.active:hover {
    color: #755BE2 !important;
}

.mega-menu.products-menu .card-title {
    /* max-width: 200px; */
}

.mega-menu.products-menu .mega-menu-inner {
    gap: 0;
}

.mega-menu.products-menu .menu-cards {
    grid-template-columns: 1fr;
    flex: 0 0 241px;
    max-width: 241px;
}

.mega-menu .menu-column-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #4C2A78;
    letter-spacing: 0.88px;
    display: inline-block;
}

@media(max-width:1440px) {
    .mega-menu.products-menu .menu-column:not(:last-of-type)::before {
        right: -10px;
    }

    .mega-menu.products-menu .menu-column {
        min-width: 185px;
    }

    .mega-menu.products-menu .menu-links {
        gap: 20px;
    }
}

@media(max-width:1350px) {
    .site-header .header-wrapper {
        gap: 40px;
    }

    .desktop-navigation ul {
        gap: 40px;
    }

    .mega-menu.products-menu .menu-column {
        min-width: unset;
    }
}

@media (max-width:1100px) {
    .site-header {
        padding: 0 3.5%;
        gap: 25px
    }

    .desktop-navigation {
        gap: 27px
    }

    .header-actions {
        gap: 15px
    }

    .demo-button {
        padding: 12px 20px
    }

    .mega-menu-inner {
        grid-template-columns: 28% 72%
    }

    .menu-links {
        padding: 25px 15px;
        column-gap: 20px
    }
}

@media (max-width: 1199px) {

    .site-header {
        padding: 0 23px;
        justify-content: space-between;
    }

    .site-header>.site-logo,
    .desktop-navigation,
    .header-actions .language-button,
    .header-actions .login-link,
    .header-actions .demo-button {
        display: none;
    }

    .header-actions {
        display: flex;
        margin-left: auto;
    }

    .mobile-menu-button {
        display: flex;
        width: 24px;
        height: 24px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0;
    }

    .mobile-menu-button .line {
        width: var(--hamWidth);
        height: var(--hamHeight);
        background-color: var(--hamBg);
        display: block;
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-button .line:nth-child(2) {
        width: var(--hamWidth2);
        margin-left: auto;
    }

    .mobile-menu-button .line+.line {
        margin-top: 5px;
    }


    /* =========================
       Hide Desktop Menu
    ========================= */
    .mega-menu {
        display: none !important;
    }


    /* =========================
       Mobile Menu
    ========================= */

    .mobile-menu {
        position: fixed;
        z-index: 9999;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(606px, 100%);
        display: flex;
        flex-direction: column;
        background: #F5F5F5;
        border-radius: 20px 0 0 20px;
        overflow: hidden;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            visibility 0.35s ease;

    }

    .mobile-menu.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }


    /* =========================
       Header
    ========================= */

    .mobile-menu-header {
        padding: 18px 21px 8px 20px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .mobile-close-button {
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid #D9D9D9 !important;
        border-radius: 50%;
        background-color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-box: trim-both cap alphabetic;
    }

    .mobile-close-button img {
        width: 11px;
        height: 11px;
    }


    /* =========================
       Content
    ========================= */

    .mobile-menu-content {
        padding-inline: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .mobile-menu-content::-webkit-scrollbar {
        display: none;
    }


    /* =========================
       Main Navigation
    ========================= */

    .mobile-nav-item,
    .mobile-nav-link,
    .mobile-nav-item:active,
    .mobile-nav-link:active,
    .mobile-nav-item:focus,
    .mobile-nav-link:focus
     {
        border-bottom: 1px solid #4C2A78;
    }

    .mobile-nav-heading,
    .mobile-nav-link {
        width: 100%;
        min-height: 65px;
        padding: 0;
        background: transparent;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0;
        color: #1A1B20;
        cursor: pointer;
    }

    .mobile-nav-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;

        text-decoration: none;
    }


    /* =========================
       Navigation Arrow
    ========================= */

    .mobile-nav-heading[aria-expanded="true"] .mobile-nav-arrow {
        transform: rotate(180deg);
    }


    /* =========================
       Products
    ========================= */

    .mobile-product-groups {
        /* max-height: 0; */
        overflow: hidden;
        opacity: 1;
        display: none;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease;
    }


    .mobile-product-groups::before {
        content: "";
        min-height: 0;
    }

    .mobile-products .mobile-nav-heading {
        min-height: 49px;
    }


    /* =========================
       Product Groups
    ========================= */

    .mobile-product-group {
        padding: 0 16px;
    }

    .mobile-product-group-button {
        width: 100%;
        min-height: 50px;
        padding: 0;
        border: 0;
        border-bottom: 1px solid #4C2A78 !important;
        background: transparent;
        color: #4C2A78;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-product-group-button[aria-expanded="true"] {
        border-bottom-color: transparent !important;
    }

    .mobile-product-group-button[aria-expanded="true"] .mobile-product-arrow {
        transform: rotate(180deg);
    }

    /* =========================
       Product Sublist
    ========================= */

    .mobile-product-sublist {

        overflow: hidden;
        opacity: 1;

        transition:
            max-height 0.3s ease,
            opacity 0.2s ease;
        border-bottom: 1px solid #4C2A78;
    }

    .mobile-product-sublist:last-child {
        padding-bottom: 10px;
    }

    .mobile-product-sublist a {
        padding: 6.5px 0;

        display: flex;
        align-items: center;

        color: #5B5B5B;

        font-size: 14px;
        line-height: 1.4;

        text-decoration: none;
    }

    /* .mobile-product-group.is-open .mobile-product-sublist a {
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
    } */


    /* =========================
       Resources
    ========================= */

    .mobile-resource-list {
        overflow: hidden;
        opacity: 1;
        display: none;
        padding: 0 16px 16px;
        border-bottom: 1px solid #B9A7C8;


        transition:
            max-height 0.35s ease,
            opacity 0.25s ease;
    }

    .mobile-resource-column {
        min-height: 0;

        display: flex;
        flex-direction: column;

    }

    .mobile-resource-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 25px;
    }

    .mobile-resource-list .mobile-resource-column {
        overflow: hidden;
    }

    .mobile-resource-column a {
        padding-block: 6.5px;

        display: flex;
        align-items: center;

        color: #555;

        font-size: 14px;
        line-height: 1.3;

        text-decoration: none;
    }

    .resource-new {
        margin-left: 6px;

        padding: 2px 5px;

        border-radius: 3px;

        background: #7355E8;
        color: #fff;

        font-size: 8px;
        font-weight: 600;
        line-height: 1;
    }

    .mobile-nav-item a:hover {
        text-underline-offset: 3px;
        color: rgb(76, 42, 120) !important;
        text-decoration: underline !important;
    }
    .mobile-menu a:hover{
        color: rgb(76, 42, 120) !important;
    }
    /* =========================
       Cards
    ========================= */

    .menu-cards {
        margin-top: 18px;
        display: grid;
        grid-template-columns: 45fr 55fr;
        gap: 10px;
        max-height: initial;
    }

    .menu-cards .menu-card {
        position: relative;

        min-height: 225px;
        max-height: 225px;

        border-radius: 18px;

        overflow: hidden;

        color: #fff;

        background: #333;

        text-decoration: none;
    }

    .menu-cards .menu-card.menu-card-wide {
        grid-column: 1 / -1;
    }

    .menu-card>img {
        width: 100%;
        height: 100%;

        object-fit: cover;

        display: block;
    }

    .menu-card .card-arrow {
        position: absolute;

        top: 10px;
        right: 14px;
    }

    .menu-card .card-title {
        position: absolute;
        left: 15px;
        right: 35px;
        bottom: 1px;
        font-size: 22px;
        letter-spacing: -0.8px;
        line-height: 1.2;
        font-family: "Playfair Display";
        font-size: 22px;
        font-style: italic;
        font-weight: 400;
    }


    /* =========================
       Footer
    ========================= */

    .mobile-menu-footer {
        position: relative;
        flex: 0 0 auto;
        padding: 8px 20px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .login-link {
        color: #1A1B20;

        font-size: 14px;

        text-decoration: none;
    }


    /* =========================
       Language
    ========================= */

    .language-selector {
        position: relative;
    }

    .language-button {
        height: 35px;
        width: 35px;
        min-width: 35px;
        padding: 8px;
        border: 1px solid #D9D9D9;
        border-radius: 24px;
        background: #fff;
        display: grid;
        place-content: center;
        gap: 10px;
        color: #1A1B20;
        font-size: 15px;
        cursor: pointer;
        transition: border-color 0.25s ease;
    }

    .language-button>img {
        width: 16px;
        height: auto;
    }

    .language-arrow {
        display: none;
    }

    .language-button[aria-expanded="true"] .language-arrow {
        transform: rotate(180deg);
    }

    .language-selector.is-open .language-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .language-selector .language-menu {
        left: 50%;
        transform: translateX(-50%) !important;
        top: initial;
        bottom: calc(100% + 8px);
    }

    .language-menu a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #000000;
    }

    .language-menu a:hover,
    .language-menu a:active {
        color: #755BE2;
    }

    .mobile-nav-item.is-open {
        border-bottom: none;
    }

    .mobile-nav-item.is-open .mobile-nav-heading span {
        text-decoration: 2px underline;
        text-underline-offset: 5px;
    }
    body:has(.mobile-menu.is-open) .menu-overlay {
        display: block !important;
    }
    .mobile-menu:has(.mobile-resources.is-open) .resource-menu-cards{
        display: grid;;
    }
    .mobile-menu:has(.mobile-resources.is-open) .products-menu-cards{
        display: none;
    }
    .menu-cards picture{
        display: block;
    }

}

@media(max-width:767px) {
      .mobile-menu {
        border-radius: 0;
      }
    .menu-cards {
        grid-template-columns: 1fr;
    }

    .menu-cards .menu-card.menu-card-wide {
        grid-column: auto;
    }

    .menu-cards .menu-card {
        aspect-ratio: 7 / 3;
        min-height: unset;
        max-height: unset;
    }
    .menu-cards {
        gap: 12px;
    }

    .menu-card .card-title {
        bottom: 15px;
        font-size: 20px;
    }
}

@media(min-width:1199px) {
    .resources-menu .menu-links {
        flex: 0 0 28.8%;
        max-width: 28.8%;
    }

    .resources-menu .menu-cards {
        flex: 0 0 71.2%;
        max-width: 71.2%;
    }

    .mega-menu-inner {
        gap: 0;
    }

    .mega-menu.products-menu .menu-links {
        flex: 0 0 51.2%;
        gap: 40px;
        max-width: 51.2%;
    }
    .mega-menu.products-menu .menu-column:not(:last-of-type)::before {
        right: -20px;
    }
    .mega-menu.products-menu .menu-cards,.resources-menu .menu-cards{
        max-height: 296px;
    }
    .mega-menu.products-menu .menu-cards {
        grid-template-columns: repeat(2, 1fr);
        flex: 0 0 48.8%;
        max-width: 48.8%;
    }

}

.resource-menu-cards{
    display: none;
}