#app,
.pb-main,
body,
html,
button,
#h3 .utility-menu .utilities-bar .translate-button .translate-text {
    font-family: Roboto, sans-serif !important;
    --font-family: Roboto, sans-serif !important;
}

#m3 .static-links span {
    word-break: keep-all;
}

#home .header-slot-container h2 {
    text-transform: capitalize;
}

#app .style-bold .header-slot-container {
    border-right-color: var(--secondary-color);
}

.logo-circle .circle {
    display: none;
}

/* custom header */
@media (min-width: 960px) {
    #view-header .menu-item:not(.search) svg {
        rect {
            fill: var(--secondary-color);
        }

        path {
            fill: var(--secondary-color-contrast);
        }
    }
}

#app .header-bar {

    &,
    .hide-on-cms {
        display: none !important;
    }
}

#view-header .header-bar-wrapper:not(.sticky) .header-bar:has(a) {
    display: flex !important;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 0;

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .only-in-cms {
        display: none !important;
    }

    .container {
        display: inline-flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        background-color: var(--header-bar-bg-color, var(--secondary-color));
        color: var(--header-bar-color, var(--secondary-color-contrast));
        gap: 10px var(--links-gap, 15px);
        padding: 10px 20px;

        @media only screen and (min-width: 960px) {
            padding-inline: 32px;
            justify-content: flex-end;
            gap: 10px var(--links-gap, 20px);
        }
    }

    .links-with-icons,
    .top-header-buttons {
        display: flex;
        gap: var(--links-gap, 15px);
        align-items: center;

        @media only screen and (min-width: 960px) {
            gap: var(--links-gap, 20px);
        }

        &>div {
            &:not(:has(a)) {
                display: none;
            }
        }

        a {
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            letter-spacing: 0.02em;
            transition: all .35s ease-in-out;
            display: block;

            @media only screen and (min-width: 760px) {
                font-size: 16px;
            }
        }
    }

    .top-header-buttons {
        a {
            background-color: var(--button-bg-color, var(--primary-color));
            border: 2px solid var(--button-bg-color, var(--primary-color));
            color: var(--button-link-color, var(--primary-color-contrast));
            padding: 6px 14px;
            border-radius: 10px;

            &:hover {
                background-color: var(--secondary-color);
                color: var(--secondary-color-contrast);
            }
        }
    }

    .links-with-icons {
        &>div {
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;

            &:not(:has(svg)) {
                a {
                    position: relative;
                    display: inline-block;

                    &::before {
                        position: absolute;
                        content: '';
                        bottom: -2px;
                        left: 0;
                        width: 0%;
                        height: 2px;
                        background-color: currentColor;
                        opacity: 0.5;
                        transition: width .35s ease-in-out;
                    }

                    &:hover::before {
                        width: 100%;
                    }
                }
            }

            &:hover {
                .icon {
                    transform: scale(1.1);
                }
            }
        }

        .icon {
            width: var(--icon-size, 20px);
            min-width: var(--icon-size, 20px);
            height: var(--icon-size, 20px);
            transition: all .35s ease-in-out;

            &:not(:has(svg)) {
                display: none;
            }
        }

        a {
            color: currentColor;
            isolation: isolate;

            &::after {
                position: absolute;
                z-index: -1;
                content: '';
                inset: 0;
            }
        }
    }
}

@media only screen and (min-width: 1280px) {
    #view-header .header-bar-wrapper {
        border-top: 6px solid var(--top-bar-border-color, var(--secondary-color));
    }

    #view-header .header-bar-wrapper:not(.sticky):has(.header-bar a) {

        .header-bar:has(a) {
            justify-content: flex-end;
            width: auto;
            display: inline-flex !important;
            position: absolute;
            right: 0;
            top: 0;
            padding-left: 89px;
            min-height: 55px;

            &::before {
                content: '';
                background-color: var(--header-bar-bg-color, var(--secondary-color));
                mask-image: url("data:image/svg+xml,%3Csvg data-v-672e66cf='' class='sloped-edge' width='97' height='56' viewBox='0 0 97 56' preserveAspectRatio='none' fill='none' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath data-v-672e66cf='' d='M94.5015 56H97V0H1.00114C0.188275 0 -0.284554 0.919373 0.187909 1.58124L6.79574 10.8378C27.0277 39.1796 59.6932 56 94.5015 56Z' fill='%23BAC13E'%3E%3C/path%3E%3C/svg%3E");
                mask-repeat: no-repeat no-repeat;
                mask-position: left bottom;
                mask-size: contain;
                display: block;
                width: 97px;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
            }

            .container .buttons-wrapper {
                margin-left: -33px;
                position: relative;
            }
        }

        #h1 .header-container {
            padding-block: 6px;
            box-sizing: border-box;
            min-height: 112px;
        }

        #h1 .right {
            padding-top: 54px;
        }

        #h1 .logo {
            height: 100px;
        }
    }
}

#cms-header {
    .mobile-header {
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;

        .main-content {
            height: auto;
            padding-right: unset;

            .logo {
                margin-bottom: unset;
            }

            .school-info {
                display: none;
            }
        }

        .left-icon {
            position: static;
            margin: unset;
            transform: unset;
        }

        #explore-header-collapsible {
            .bar-nav--drawer-element-title-text {
                .item-icon {
                    svg {
                        path {
                            fill: currentColor;
                        }
                    }
                }
            }
        }
    }

    .sticky {
        .mobile-header {
            padding-top: 0;
            padding-bottom: 0;

            .main-content {
                .logo {
                    height: 36px;
                }
            }
        }
    }
}

/* end custom header */
/* header badges */
#app .header-badges-section {
    display: none;
}

#badgeLiner .minimize_logos {
    &:not(:hover) {
        background-color: #979797;
    }

    &::after {
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 14 16' fill='none'%3E%3Cpath d='M13.4233 7.75006L-0.0001228 15.5001L-0.000122123 2.08709e-05L13.4233 7.75006Z' fill='white'/%3E%3C/svg%3E");
        mask-repeat: no-repeat no-repeat;
        mask-position: center center;
        mask-size: contain;
    }
}

#app #badgeLiner {
    --aspect-ratio: 1/1;
}

#badgeLiner .button-link .button {
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    background-color: #49AFA9;
    padding: 10px;

    @media only screen and (max-width: 960px) {
        aspect-ratio: var(--aspect-ratio);
        height: auto;
    }

    img {
        margin-bottom: auto !important;
        border-radius: 10px;
    }
}

/* end header badges */
/* menu changes */
#view-menu #m3 .menu-container {
    .content {

        .generated-links>ul>li {
            margin-bottom: 0;
            padding-bottom: max(0.6vw, 15px);
            box-sizing: border-box;

            &>ul {
                max-height: 0;
                overflow: hidden;
                transition: all 0.35s ease-in-out;
            }

            &:hover {
                &>ul {
                    max-height: 2700px;
                }
            }

            &:not(:hover) {
                margin-bottom: 0;

                h2.has-child {
                    border-bottom: 0;
                }
            }

            &>h2 {
                font-size: 38px;
                line-height: 1.1;
            }
        }
    }
}

@media only screen and (min-width: 1280px) {
    #view-menu #m3 .menu-container {
        width: 816px;
    }
}

/* end menu changes */

/* gallery changes */
#cms-gallery .description p a {
    display: inline-block;
    text-decoration: none;
    background-color: var(--secondary-color);
    color: var(--secondary-color-contrast);
    padding: 9px 20px;
    border-radius: 50vw;
    font-weight: 700;
    transition: all .35s ease-in-out;
    display: inline-block;
    margin-top: 15px;
    margin-right: 5px;
    text-transform: uppercase;

    &:hover {
        background-color: #FFF;
        color: #000;
    }
}


body:not(.vancouver-public-schools) {
    #cms-gallery {
        #g2 {
            @media (min-width: 1280px) {
                .slide {
                    .text {
                        width: auto;
                        min-width: 400px;
                        border-radius: 1em;
                        bottom: unset;
                        top: 5vw;
                    }
                }
            }
        }
    }
}

@media (min-width: 1200px) {
    #cms-gallery {
        #g2 {
            .position {
                margin-left: 50px;
            }
        }
    }
}

/* end gallery changes */

/* custom buttons */
#app #quick-links-v1 {
    --waves-color: #EAF2FB;
    --waves-opacity: 0.87;

    svg#waves {
        height: 100%;
        max-height: 100%;
    }


}

/* End custom buttons */

/* START Custom Buttons V3 changes */

#app #home {
    @media (min-width: 1280px) {
        #buttons-b3 {
            .wrapper {
                position: relative;
                top: -40px;
                margin-top: -40px;
                box-shadow: 4px 4px 21px 0px rgba(0, 0, 0, 0.25);
                border-radius: 12px;

                .button {
                    margin-left: 0;
                    margin-right: 0;
                    border-radius: 0;
                    border: none;
                    box-shadow: none;
                    position: static;
                    top: unset;
                    margin-top: unset;

                    &:nth-child(1) {
                        border-radius: 12px 0 0 12px;
                    }

                    &:last-child {
                        border-radius: 0 12px 12px 0;
                    }

                    .button-link {
                        text-transform: capitalize;
                        display: block;
                        width: 100%;
                        height: 100%;

                        .button-title {
                            text-transform: inherit;
                        }
                    }
                }
            }
        }
    }
}

/* END Custom Buttons V3 changes */



/* Custom Programs changes */
#app .custom-programs-section-v10 {
    --programs-see-all-color: #000;

    &:not(:has(img[src^="http"])):has(.title span:empty):has(.text span:empty) {
        display: none !important;
    }

    .see-all-container {
        flex-wrap: wrap;

        .intro {
            width: 100%;
        }
    }

    &.style-bold {
        .see-all-container .see-all-button-custom a {
            padding: 10px 0;
            border: 0;
            text-decoration: none;
            border-block: 2px solid transparent;

            &:hover {
                background-color: transparent;
                color: var(--programs-see-all-color);
                border-bottom-color: var(--secondary-color);
            }
        }
    }
}

/* End Custom Programs changes */

/* custom News */
#home #news-n2 {

    .news-image {
        border-radius: 15px;
        overflow: hidden;

        .image-hidden-wrapper {
            border-top: unset;
        }

        &::before {
            display: none;
        }
    }

    .more-headlines-header {
        display: none;
    }

    .more-headlines-content.news-content {
        margin-top: 45px;

        .story {

            .news-image-title-link {
                --article-title-color: #000;
                --news-accent-border-color: var(--secondary-color);


                @media only screen and (min-width: 1280px) {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 15px;
                }
            }

            .news-image-container {
                @media only screen and (max-width: 600px) {
                    width: 100%;
                }
            }
        }

        .story:nth-child(n + 3) {
            display: none;
        }
    }
}

/* body:not(.vancouver-public-schools) { */
#home #news-n2 {
    .more-headlines-content.news-content {
        .story:nth-child(n + 1) {
            display: none;
        }
    }
}

/* } */

/* End custom News */

/* custom Events */
#home #events-e2 .events-card {
    padding: 10px 10px 10px 95px;
    position: relative;
    min-height: 100px;
    box-sizing: border-box;
    border: 0 !important;
    display: none;
    background: var(--event-bg-color, var(--event-background-color));

    @media (max-width: 1199px) {
        padding: 10px 10px 10px 75px;
    }

    &:nth-child(-n+4) {
        display: flex;
        flex-direction: column;
    }

    &:hover .events-date {
        background-color: var(--primary-color);
        color: var(--primary-color-contrast);
        border-color: var(--primary-color);
    }

    &.multiple-days {
        min-height: 148px;

        .events-date {
            padding-bottom: 2px;
        }
    }

    &.multipleDays .events-date .day {
        font-size: 20px;
        padding-top: 2px;
    }

    .events-date {
        position: absolute;
        left: 0;
        top: 3px;
        width: 78px;
        min-height: 78px;
        padding: 5px 10px;
        margin: 0;
        background: var(--event-bg-color, var(--event-background-color));
        color: var(--date-color, var(--event-date-color));
        border: 3px solid var(--date-color, var(--event-date-color));
        border-radius: 15px;
        font-size: 16px;
        line-height: 1.1;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
        word-spacing: 100vw;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all .35s ease-in-out;

        @media (max-width: 1199px) {
            width: 64px;
            min-height: 64px;
        }

        .date-year,
        .date-comma {
            display: none;
        }

        .date-day {
            font-size: 46px;
            line-height: 1;
            font-weight: 700;

            @media (max-width: 1199px) {
                font-size: 32px;
            }
        }

        .date-month {
            font-size: 16px;
            font-weight: 400;
        }

        &>.date-month {
            padding-top: 3px;
        }
    }

    .events-title {
        line-height: 1.2;
        padding-top: 0;

        a::before {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            content: "";
            z-index: 1;
        }
    }

    .events-date-and-time {
        padding: 0;

        .events-time {
            padding-left: 0;
            margin-bottom: 5px;
            display: block;
            font-weight: 600;
        }
    }

    .event-tag-wrapper {
        order: 2;
    }
}

/* End custom Events */

#home #about-v1:after {
    opacity: 0.15;
}

/* social media wall */
#social-media-wall {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    @media only screen and (min-width: 1280px) {
        padding-top: 80px;
    }

    &::after {
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        content: '';
        width: 100%;
        height: 210px;
        max-height: 90%;
        background: url(waves.svg) no-repeat center top;
        background-size: 100% 100%;

        /* Client asked for this to be disabled */
        display: none;

        @media only screen and (max-width: 480px) {
            background-size: auto 250px;
        }
    }

    .header-slot-container {
        color: var(--primary-color);
    }
}

body:not(.vancouver-public-schools) {
    #app #home #social-media-wall {
        padding-top: 50px;
        background-color: color-mix(in srgb, var(--primary-color), #fff 85%);

        .see-all-container.see-all-top {
            .header-slot-container {
                display: flex;
                column-gap: 15px;
                border-right: none;
                flex-wrap: wrap;

                h2 {
                    border-right: 4px solid var(--secondary-color);
                    padding-right: 15px;
                }
            }
        }
    }
}

/* end social media wall */
/* slogan section */
#slogan-section {
    background-color: #e9f3ff;
    padding: 40px 20px;
    text-align: center;

    &:has(.slogan-content-description:empty) {
        display: none !important;
    }

    .text {
        font-size: clamp(1.375rem, -0.017rem + 2.931vw, 3.5rem);
        line-height: 1.3;
        font-weight: 900;
        text-transform: capitalize;
        color: var(--slogan-text-color, var(--page-builder-color));
        opacity: 0.5;
    }

    .slogan-content-description {
        position: relative;
        isolation: isolate;
        white-space: normal !important;
        display: block;

        &:not(:has(.highlight))::after,
        .highlight::after {
            background-color: var(--secondary-color);
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='353' height='32' viewBox='0 0 353 32' fill='none'%3E%3Cpath d='M0.484863 18.039C168.507 -23.9539 351.934 29.7864 351.934 29.7864' stroke='%23BAC140' stroke-width='4'/%3E%3C/svg%3E");
            mask-repeat: no-repeat no-repeat;
            mask-position: center bottom;
            mask-size: contain;
            content: '';
            position: absolute;
            right: 16%;
            top: calc(100% + 5px);
            width: clamp(12.5rem, 5.539rem + 14.655vw, 23.125rem);
            height: 27px;
        }

        &:has(.highlight) {
            padding-top: 20px;
        }

        .highlight {
            position: relative;
            isolation: isolate;
            display: inline-block;
            padding-bottom: 20px;



            @media only screen and (max-width: 500px) {
                padding-bottom: 15px;
            }

            &::after {
                width: 100%;
                left: 0;
                right: auto;
                top: auto;
                bottom: 0;
            }
        }
    }
}

body:not(.vancouver-public-schools) {
    #app #home #slogan-section {
        background-color: color-mix(in srgb, var(--primary-color), #fff 85%);
    }
}


/* end slogan section */

/* custom footer */
#view-footer {

    #footer-f1 {
        padding-inline: 0;

        .row {
            padding-inline: max(4.33vw, 25px);
            padding-bottom: 50px;
            box-sizing: border-box;
            position: relative;

            &::after {
                background-image: var(--logo-url);
                background-position: bottom right;
                background-repeat: no-repeat;
                background-size: contain;
                content: no-close-quote;
                opacity: var(--footer-logo-opacity, 0.15);
                position: absolute;
                z-index: -1;
                right: 10px;
                bottom: 10px;
                height: 339px;
                width: 341px;
                max-width: 90%;
                max-height: 95%;
                opacity: 0.1;
            }

            .image-container:has(a) {
                img {
                    transition: all .35s ease-in-out;
                }

                a:hover img {
                    transform: scale(1.05);
                }
            }
        }

        .footer-column-main {
            h2+p {
                color: var(--heading-color);

                a {
                    text-decoration: none;
                }
            }

            .footer-column-last {
                text-align: center;

                @media only screen and (min-width: 600px) {
                    text-align: left;
                }

                h2 {
                    color: var(--text-link-color);
                    padding-bottom: 10px;
                }

                a:has(.app-link) {
                    text-align: center;

                    @media only screen and (min-width: 600px) {
                        text-align: left;
                    }

                    img {
                        height: 52px;
                    }
                }
            }
        }

        .footer-columns:last-child {
            padding-right: 0;
        }

        .apptegy-copyright {
            background-color: var(--bottom-footer-bg-color, var(--secondary-color));
            color: var(--bottom-footer-text-color, var(--secondary-color-contrast));
            padding-inline: max(4.33vw, 25px);
            padding-block: 25px;
            box-sizing: border-box;
            position: relative;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;

            @media only screen and (min-width: 600px) {
                text-align: left;
                justify-content: flex-start;
            }

            &::before {
                width: 100%;
                height: 1px;
                background-color: var(--bottom-footer-text-color, var(--secondary-color-contrast));
                content: '';
                display: block;
                margin-bottom: 10px;
                margin-top: -14px;
            }

            * {
                color: currentColor;
            }

            &>span {
                font-size: 16px;
                line-height: 1.7;

                @media only screen and (min-width: 600px) {
                    &:first-child {
                        position: relative;
                        padding-right: 5px;
                        margin-right: 5px;

                        &::after {
                            content: '';
                            position: absolute;
                            right: 0;
                            top: 50%;
                            transform: translateY(-50%);
                            color: currentColor;
                            height: 65%;
                            width: 1px;
                            background-color: currentColor;
                        }
                    }
                }
            }

            .additional-text {
                width: 100%;
                box-sizing: border-box;
                padding-top: 3px;
                text-align: center;

                @media only screen and (min-width: 600px) {
                    text-align: left;
                }

                p {
                    font-size: 16px;
                    padding: 0;
                    text-align: center !important;

                    @media only screen and (min-width: 600px) {
                        text-align: left !important;
                    }
                }

                a {
                    text-decoration: none;
                }
            }
        }

    }
}

#app .footer-social-links li[data-social-media=facebook] a {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M36.7603 9.88965H11.0093C10.39 9.88965 9.88965 10.39 9.88965 11.0093V36.7603C9.88965 37.3795 10.39 37.8799 11.0093 37.8799H36.7603C37.3795 37.8799 37.8799 37.3795 37.8799 36.7603V11.0093C37.8799 10.39 37.3795 9.88965 36.7603 9.88965ZM33.5274 18.0594H31.2917C29.5388 18.0594 29.1995 18.8921 29.1995 20.1166V22.8141H33.384L32.8382 27.0371H29.1995V37.8799H24.8364V27.0407H21.1873V22.8141H24.8364V19.7003C24.8364 16.086 27.0442 14.1162 30.27 14.1162C31.8165 14.1162 33.1426 14.2316 33.5309 14.2841V18.0594H33.5274Z' fill='%23BAC140'/%3E%3C/svg%3E");
    mask-repeat: no-repeat no-repeat;
    mask-position: center center;
    mask-size: 50px;
}

.vancouver-public-schools {
    #view-footer {
        --bottom-footer-bg-color: #4c76ab;
        --bottom-footer-text-color: #fff;
    }
}


body:not(.vancouver-public-schools) {
    #app {

        @media (min-width: 1200px) {
            #view-footer {
                #footer-f1 {

                    .row {
                        justify-content: space-between;
                    }

                    .footer-column-main {
                        --logo-width: 200px;
                        --logo-offset: 15vw;

                        @media (max-width: 1499px) {
                            --logo-offset: 10vw;

                        }

                        width: 50%;
                        flex: unset;
                        position: relative;
                        padding-left: calc(var(--logo-width) + var(--logo-offset));

                        .logo-wrapper {
                            position: absolute;
                            left: 0;
                            top: 0;
                            width: var(--logo-width);
                        }
                    }
                }

                .footer-columns {
                    flex: unset !important;
                    min-width: 15%;
                }
            }
        }
    }
}

/* end custom footer */

#view-theme .custom-section {

    &.header-bar,
    &.header-badges-section {
        padding-block: 20px;
    }
}

/* style for CMS page */
#page {
    --light-component-bg-color: #e9f3ff;

    .pb-heading h1 {
        color: var(--heading-h1-color, #2b5484);
    }

    p {
        font-family: "Merriweather", serif;
    }
}

/* Breadcrumb  */
#app #container {
    .breadcrumb {
        display: flex;
        justify-content: flex-start;
        background: transparent;

        ul {
            display: flex;
            align-items: center;
            width: 100%;
            flex-direction: row;

            @media (max-width: 767px) {
                li:not(:first-child):not(:last-child) {
                    display: none;
                }
            }

            li:not(:first-child) {
                &:before {
                    content: "/" !important;
                }
            }

            li:first-child a[href="/"] {
                display: block;
                width: 32px;
                height: 32px;
                text-indent: -9999px;
                mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 9.185l7 6.514v6.301h-14v-6.301l7-6.514zm0-2.732l-9 8.375v9.172h18v-9.172l-9-8.375zm2 14.547h-4v-6h4v6zm10-8.852l-1.361 1.465-10.639-9.883-10.639 9.868-1.361-1.465 12-11.133 12 11.148z'%3E%3C/path%3E%3C/svg%3E");
                mask-size: 80%;
                background-color: currentColor;
                mask-repeat: no-repeat;
                mask-position: center;
                transition: transform 0.3s ease;

                &:hover {
                    transform: scale(1.1);
                    color: var(--page-builder-color);
                }
            }

            li:last-child a {
                color: var(--page-builder-color);
            }
        }
    }
}

#page-wrapper .full-width-column-row {
    --hero-title-font-size: clamp(2.188rem, 0.104rem + 4.386vw, 5.313rem);

    .page-title {
        text-shadow: 5px 7px 6px rgba(0, 0, 0, 0.41);
    }
}

/* side nav */
@media (min-width: 760px) {
    #page .layout-node-container.left-sidebar-row:has(.pb-navigation) {
        flex-wrap: nowrap;

        .column.left-sidebar {
            --one-third-width: calc((100% - var(--total-layout-gap)) / 4.5);
            min-width: 240px;
        }
    }
}

@media (min-width: 1440px) {
    #page .layout-node-container.left-sidebar-row:has(.pb-navigation) {
        --gap-size: 45px;
    }
}

#page .pb-navigation .navigation-section {
    .navigation-header {
        background-color: transparent;
        position: relative;
        isolation: isolate;

        &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40%;
            display: block;
            background-color: var(--side-nav-bg-color, #eaf2fb);
            z-index: -1;
        }
    }

    .navigation-title {
        color: var(--primary-color);
        font-size: clamp(1.563rem, 1.23rem + 0.543vw, 1.875rem);
        line-height: 1;
        mask-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg' width='468' height='111' viewBox='0 0 468 111' fill='none'%3E%3Cpath d='M451.997 1.24897C397.648 1.24897 397.648 27.0402 343.279 27.0402C288.91 27.0402 288.931 1.24897 234.583 1.24897C180.235 1.24897 180.235 27.0402 125.865 27.0402C71.4962 27.0402 54.3481 0 0 0V83.0982C54.3693 83.0982 71.5174 110.118 125.887 110.118C180.256 110.118 180.235 84.3264 234.604 84.3264C288.973 84.3264 288.952 110.118 343.322 110.118C397.691 110.118 397.67 84.3264 452.039 84.3264C457.953 84.3264 463.231 84.6386 468 85.1798V2.10244C463.231 1.56121 457.953 1.24897 452.018 1.24897H451.997Z' fill='%23C7DEF0'/%3E%3C/svg%3E");
        mask-repeat: no-repeat no-repeat;
        mask-position: center center;
        mask-size: 100% 100%;
        background-color: var(--side-nav-shape-color, #c7def0);
        display: flex;
        align-items: center;
        min-height: 100px;
        padding-block: 41px;
        padding-right: 5px;

        a {
            color: currentColor;
        }
    }

    .navigation-list {
        padding-bottom: 30px;
        background-color: var(--side-nav-bg-color, #eaf2fb);

        .page-child {
            background-color: var(--side-nav-bg-color, #eaf2fb);
            margin: 0;
            font-weight: 500;
            font-size: clamp(1rem, 0.734rem + 0.435vw, 1.25rem);
            line-height: 1.2;
            color: var(--page-builder-color);

            &:has(.page-collapse-icon) {
                color: var(--primary-color) !important;
                font-size: clamp(1.25rem, 0.347rem + 1.129vw, 1.688rem);

                &:not(:first-child) {
                    margin-top: 20px;
                }
            }

            &.active {
                border: 0;
                color: var(--links-color);
                font-weight: 700;
            }

            a {
                color: currentColor;

                &[href]:hover {
                    color: var(--links-color);
                }
            }

            a.page-anchor:before {
                display: none;
            }
        }
    }
}

/* end side nav */

/* cards */
#page .pb-card {
    .card-container {
        overflow: auto;
    }

    .card-container.box-shadow {
        background-color: var(--light-component-bg-color);
        border: 0;
        box-shadow: none;

        .pb-heading h3 {
            font-weight: 500;
            font-size: 17px;
            line-height: 1.5;

            @media (min-width: 1280px) {
                font-size: 19px;
            }
        }
    }

    .card-container.separator {
        border: 1px solid var(--primary-color);
        box-sizing: border-box;
        border-left-width: 5px;
        border-radius: 25px;
        padding: 10px;

        @media (min-width: 1280px) {
            padding: 30px;
        }

        .card-text,
        .card-image-container {
            padding: 0;
        }
    }

    .card-container:not(.box-shadow):not(.separator) {
        padding-inline: 0;
        padding-top: 0;
        padding-bottom: 15px;
    }
}

/* end cards */
/* buttons */
#page .pb-button {
    --light-button-color: color-mix(in srgb, var(--page-builder-color), #fff 84%);

    .button-theme-dark {
        transition:
            background 0.3s ease,
            color 0.3s ease;

        &:hover {
            background: var(--light-button-color);
            color: var(--primary-color);

            .title-text {
                color: currentColor;
            }

            svg {
                fill: currentColor;
            }
        }
    }

    .button-theme-outline:not(:hover) {
        border-color: var(--secondary-color);
    }

    .button.button-type-regular:not(.button-pill-shape) {
        border-radius: 10px;
    }

    .button-theme-dark.button-size-large {
        .title-text {
            display: flex;
            gap: 15px;
            align-items: center;
            transition: all 0.25s ease;

            &::after {
                mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='20' viewBox='0 0 17 20' fill='none'%3E%3Cpath d='M16.5 9.52637L1.01012e-06 19.0526L1.84293e-06 8.70168e-05L16.5 9.52637Z' fill='white'/%3E%3C/svg%3E");
                mask-repeat: no-repeat no-repeat;
                mask-position: right center;
                mask-size: contain;
                background-color: currentColor;
                width: clamp(1rem, 0.601rem + 0.652vw, 1.375rem);
                height: clamp(1rem, 0.601rem + 0.652vw, 1.375rem);
                content: "";
                display: block;
            }
        }
    }
}

/* buttons */
/* tables */
.pb-table {
    --color-main: var(--primary-color);

    table {
        border-radius: 10px;
        overflow: hidden;

        tr:has(> th:first-child + td) {
            --header-bg-color: var(--links-color);

            th {
                color: #fff;
            }
        }
    }
}

/* end tables */

/* accordions */
#page .pb-accordion {
    .accordion-panel:not(.default) .panel-heading {
        border-radius: 12px;
    }

    .accordion-panel .panel-heading {
        margin: 0;

        .panel-toggle-icon {
            order: -2;
            margin: 0;
            background-color: var(--page-builder-color);
            color: #FFF;
            border-radius: 50vw;
            padding: 7px;

            &::before {
                display: none;
            }

            svg path {
                fill: #FFF;
            }
        }

        .panel-title {
            padding-left: 10px;
        }
    }

    .accordion-panel:not(.default):not(:has(.panel-content)).dark {
        .panel-heading {
            background-color: #FFF;
            color: var(--primary-color);
            border: 1px solid #E0E0E0;

            * {
                color: currentColor;
            }
        }
    }

    .accordion-panel:not(.default):has(.panel-content).dark {
        .panel-heading {
            background-color: var(--primary-color);
            color: var(--primary-color-contrast);
            border-radius: 12px 12px 0 0 !important;
        }
    }

    .accordion-panel:not(.default):not(:has(.panel-content)).light {
        .panel-heading {
            background-color: #FFF;
            color: var(--primary-color);
            border: 1px solid var(--page-builder-color);

            * {
                color: currentColor;
            }
        }
    }

    .accordion-panel:not(.default):has(.panel-content).light {
        .panel-heading {
            background-color: var(--light-component-bg-color);
            color: var(--primary-color);
            border-radius: 12px 12px 0 0 !important;
        }
    }

    .accordion-panel .panel-content {
        margin: 0;
        border: 0 !important;
        border-radius: 0 0 12px 12px !important;
        background-color: #f1f2f2;
    }
}

/* end accordions */
.pb-gallery .gallery-item {
    cursor: pointer;
}

.pb-slider .slider-image-container .slider-image,
.pb-video iframe {
    border-radius: 25px;
    ;
}

/* Filtered events in CMS page */
#page .custom-events-filtered {
    padding: 15px 0 0;

    @media (min-width: 760px) {
        min-width: 240px;
        box-sizing: border-box;
    }

    .see-all-container.see-all-top {
        margin: 0;
    }

    .header-slot-container {
        background-color: transparent;
        position: relative;
        isolation: isolate;
        padding: 0;
        margin: 0;
        border: 0;
        width: 100%;
        box-sizing: border-box;
        display: block;

        &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40%;
            display: block;
            background-color: var(--side-nav-bg-color, #eaf2fb);
            z-index: -1;
            margin: 0;
        }

        h2 {
            color: var(--primary-color);
            font-size: clamp(1.563rem, 1.146rem + 0.877vw, 2.188rem);
            font-weight: 700;
            line-height: 1;
            mask-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg' width='468' height='111' viewBox='0 0 468 111' fill='none'%3E%3Cpath d='M451.997 1.24897C397.648 1.24897 397.648 27.0402 343.279 27.0402C288.91 27.0402 288.931 1.24897 234.583 1.24897C180.235 1.24897 180.235 27.0402 125.865 27.0402C71.4962 27.0402 54.3481 0 0 0V83.0982C54.3693 83.0982 71.5174 110.118 125.887 110.118C180.256 110.118 180.235 84.3264 234.604 84.3264C288.973 84.3264 288.952 110.118 343.322 110.118C397.691 110.118 397.67 84.3264 452.039 84.3264C457.953 84.3264 463.231 84.6386 468 85.1798V2.10244C463.231 1.56121 457.953 1.24897 452.018 1.24897H451.997Z' fill='%23C7DEF0'/%3E%3C/svg%3E");
            mask-repeat: no-repeat no-repeat;
            mask-position: center center;
            mask-size: 100% 100%;
            background-color: var(--side-nav-shape-color, #c7def0);
            display: flex;
            align-items: center;
            min-height: 100px;
            padding-block: 25px;
            padding-inline: 15px;
            text-transform: none;
        }
    }

    .events-section-container {
        background-color: var(--side-nav-bg-color, #eaf2fb);
        padding-top: 30px;
        padding-bottom: 5px;
        padding-inline: 15px;
        box-sizing: border-box;
    }
}

.custom-events-filtered {
    --evt-date-bg: transparent;
    --evt-date-bg-hover: var(--primary-color);
    --evt-date-border: var(--page-builder-color);
    --evt-date-border-hover: var(--primary-color);
    --evt-date-color: var(--page-builder-color);
    --evt-time-color: var(--page-builder-color);
    --evt-text-color: var(--primary-color);
    --evt-text-color-hover: var(--primary-color-contrast);
    --evt-filter-color: #333;
    --event-date-width: 64px;
    --event-gap: 5px;
    box-sizing: border-box;

    *,
    *::before,
    *::after {
        box-sizing: inherit;
    }
}

.custom-events-filtered .events-section-container {
    display: flex;
    flex-direction: column;
}

#page .hide {
    display: none;
}

.custom-events-filtered .event-item {
    display: flex;
    align-items: flex-start;
    gap: var(--event-gap, 15px);
    padding: 0;
    padding-left: calc(var(--event-date-width, 64px) + 15px);
    position: relative;
    min-height: 80px;
    flex-direction: column;
    margin-bottom: 25px;
}

.custom-events-filtered .event-item:first-child {
    padding-top: 0;
}

.custom-events-filtered .event-item:last-child {
    border-bottom: none;
}

/* Date box */
.custom-events-filtered .event-item__date {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 0;
    top: 0;
}

.custom-events-filtered .event-item__date .start-date,
.custom-events-filtered .event-item__date .end-date {
    width: var(--event-date-width, 64px);
    min-height: var(--event-date-width, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--evt-date-bg);
    border: 3px solid var(--evt-date-border);
    border-radius: 12px;
    padding: 6px 4px;
    box-sizing: border-box;
    transition: all .35s ease-in-out;
}

.custom-events-filtered .event-item:hover .event-item__date .start-date,
.custom-events-filtered .event-item:hover .event-item__date .end-date {
    background-color: var(--evt-date-bg-hover);
    border-color: var(--evt-date-border-hover, var(--primary-color));

    * {
        color: var(--evt-date-color-hover, var(--primary-color-contrast)) !important;
    }
}

.custom-events-filtered .event-item__date .date-month {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--evt-date-color);
    line-height: 1.2;
    transition: color .35s ease-in-out;
}

.custom-events-filtered .event-item__date .date-day {
    font-size: 32px;
    font-weight: 700;
    color: var(--evt-date-color);
    line-height: 1.1;
    transition: color .3s ease-in-out;
}

.custom-events-filtered .event-item__date .date-separator {
    font-size: 14px;
    font-weight: 600;
    color: var(--evt-date-color);
}

.custom-events-filtered .see-all-container.see-all-bottom {
    display: block !important;
    margin-top: 10px;
    text-align: left;

    a {
        color: var(--primary-color-contrast) !important;
        background-color: var(--page-builder-color);
        padding: 5px 10px;
        transition: all .3s ease-in-out;
        text-align: center;

        &:hover {
            background-color: var(--primary-color);
        }
    }
}

.custom-events-filtered .event-item__dates {
    order: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--evt-time-color);
    line-height: 1.4;
}

.custom-events-filtered .event-item__title {
    order: 2;
    color: var(--evt-text-color);

    * {
        color: var(--evt-text-color) !important;
    }
}

.custom-events-filtered .event-item__title h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.custom-events-filtered .event-item__title a {
    text-decoration: none;

    &::after {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        content: "";
        z-index: 1;
    }
}

.custom-events-filtered .event-item__filter {
    order: 3;
    font-size: 13px;
    color: var(--evt-filter-color);
    line-height: 1.4;
}

@media only screen and (max-width: 480px) {
    .custom-events-filtered .event-item {
        gap: 14px;
    }

    .custom-events-filtered .event-item__date .start-date,
    .custom-events-filtered .event-item__date .end-date {
        width: 56px;
        min-height: 64px;
    }

    .custom-events-filtered .event-item__date .date-day {
        font-size: 24px;
    }

    .custom-events-filtered .event-item__dates,
    .custom-events-filtered .event-item__title,
    .custom-events-filtered .event-item__filter {
        flex-basis: calc(100% - 70px);
        max-width: calc(100% - 70px);
    }
}

/* end Filtered events in CMS page */

/* START Tabs */

#home .tabcordion.v3 {
    --section-bg-color: color-mix(in srgb, var(--primary-color), #fff 55%);
    --tabs-container-bg-color: #fff;
    padding-top: 30px;
    padding-bottom: 30px;

    .see-all-container.see-all-top {
        display: none;
    }

    @media (min-width: 959px) {
        .tabcordion-container {
            padding-top: 20px;

            .tabcordion--panels {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                position: relative;

                &:after {
                    content: '';
                    display: block;
                    position: absolute;
                    width: 100%;
                    height: 50px;
                    background-color: color-mix(in srgb, var(--primary-color), #fff 85%);
                    bottom: 100%;
                    border-top-left-radius: 12px;
                    border-top-right-radius: 12px;

                    display: none;
                }
            }
        }
    }
}

/* END Tabs */