@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

#app,
.pb-main,
body,
html,
button {
    font-family: Poppins, sans-serif !important;
    --font-family: Poppins, sans-serif !important;
}

#app {
    --side-margin: clamp(2.5rem, -5rem + 12.5vw, 6.25rem);
}

#home {

    @media only screen and (min-width: 960px) {

        #about-v1,
        #programs-p1,
        #live-feed-lf5,
        #events-e1,
        #SL1,
        #stats-s2,
        .custom-section,
        #footer-f1 {
            padding-inline: var(--side-margin);
        }

        #news-n2 {
            padding-left: var(--side-margin);
            position: relative;
        }

        #events-e2,
        #LF1 {
            padding-right: var(--side-margin);
        }

        .homepage-component:has(#news-n2) {
            position: relative;

            &::after {
                content: '';
                position: absolute;
                height: calc(100% - 70px);
                width: 1px;
                background-color: #ccc;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
            }
        }
    }
}

/* Start - Make header v2 look like header v6 but with menu v4 */
/* Hide Explore/Menu button */
#mainmenu .mobile-menu-wrapper .m4--drawer-element:has(#explore-header),
#mainmenu .m4-menu--mobile-wrapper .m4--drawer-element:has(#explore-header),
#mainmenu .mobile-menu-wrapper #explore-header,
#mainmenu .m4-menu--mobile-wrapper #explore-header,
#view-header #explore-button,
.bar-nav--drawer-element.mobile-element.new-mobile-header:has(#explore-header) {
    display: none !important;
}

#view-header .utilities .utility-bar {
    gap: 4px 24px;
    padding: 0 24px 0 0;

    .utilities {
        position: relative;

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

#districtHeaderLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--primary-color);

    &>span {
        font-weight: 700;
    }

    .links {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 24px;
        padding-right: 24px;
        box-sizing: border-box;
        
        & > a:last-child::after, & > div:last-child a::after {
            display: none
        }
    }

    a {
        color: var(--primary-color);
        text-decoration: none;
        position: relative;

        &:hover {
            text-decoration: underline;
        }

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

/* END */
#app:has(.header-bar-wrapper > #m4) {
    #view-header {
        --logo-height: 72px;
        --school-info-max-width: min(750px, 41vw);
    }

    #view-header #h2 .header-container {
        box-sizing: border-box;
        min-height: calc(var(--logo-height) + 30px);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-block: 8px;
        padding-inline: var(--side-margin);

        &::before {
            display: none;
        }
    }

    #view-header #h2 .left {
        margin: 0;
        padding: 0;
        width: auto;
        min-width: inherit;
        max-width: var(--school-info-max-width);
        gap: 8px;
        z-index: 1;
    }

    #view-header .logo {
        height: var(--logo-height);
        flex: 0 0 auto;
        margin: 0;
        max-width: 100%;

        img {
            object-fit: contain;
        }
    }

    #view-header #h2 .left .school-info {
        padding: 0;

        &:has(.sr-only) {
            display: none;
        }
    }

    #view-header #h2 .utilities.utilities-top {
        display: none;
    }

    #view-header #h2 .right {
        box-sizing: border-box;
        width: auto;
        padding: 0;
        justify-content: flex-end;
        flex-direction: row;
        padding-bottom: 45px;
        position: relative;
        margin-left: auto;

        .utilities.utilities-right {
            width: auto;
            position: static;
            min-height: inherit;
            display: flex;

            .sloped-edge {
                display: none;
            }

            .utility-bar {
                position: relative;
                z-index: 2;
                flex-wrap: nowrap;

                .utilities {
                    margin: 0;
                    white-space: nowrap;
                    line-height: 1.4;

                    &:hover {
                        text-decoration: underline;
                    }

                    &:nth-child(n+5) {
                        display: none;
                    }
                }
            }
        }

        .right-menu-items {
            padding: 0;
        }

        .right-left-menu {
            /* padding-left: calc(var(--school-info-max-width)/2 + 10px); */
            flex-direction: row-reverse;
        }

        /* 
    .right-right-menu {
      padding-right: calc(var(--school-info-max-width)/2 + 10px);
    } */

        #explore-button,
        #menubutton,
        #searchbutton {
            margin-right: 0;
        }
    }

    #m4 .m4-menu--bar {
        padding-inline: var(--side-margin);
        justify-content: flex-start;
        padding-right: 240px;
        height: 40px;
    }

    #view-header .m4-menu--drawer {
        top: 100%;
        z-index: 9;

        .m4-menu--drawer-title {
            display: none;
        }

        .m4-menu--drawer-content-wrapper {
            max-width: 100%;
            margin: 0;
            box-sizing: border-box;
            padding-inline: var(--side-margin);

            &>.m4--drawer-element {
                margin-inline: 0px;
            }
        }
    }

    #view-header .m4--menu-item .m4--menu-item-active-line {
        display: none;
    }

    #view-header #badgeLiner {
        padding-right: var(--side-margin);
    }

    #view-header .m4-menu--bar-item-wrapper .m4--menu-item {
        padding-inline: 20px;

        &:first-child {
            padding-left: 0;

            .m4--menu-item-text {
                &::after {
                    display: none;
                }
            }
        }

        .m4--menu-item-text {
            position: relative;
            font-size: 16px;
            text-transform: none;
            letter-spacing: 0.03em;

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

        .m4--menu-item-icon {
            display: none;
        }
    }

    #view-header #m4-menu--bar-dropdown-button {
        position: relative;

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

        #menu-button-more {
            text-transform: none;
            letter-spacing: 0.03em;
            font-size: 16px;

            &:hover::before {
                width: 100%;
                height: 3px;
                background-color: var(--secondary-color);
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
            }

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

        &>.m4--menu-item-icon {
            display: none;
        }
    }

    #view-header #more-menu-dropdown {
        top: 100%;
        z-index: 10;
    }


    #view-header .m4-menu--bar-item-wrapper .m4--menu-item.m4--menu-item-active,
    .m4-menu--bar-item-wrapper .m4--menu-item:hover {
        background: var(--bg-color);

        .m4--menu-item-text::before {
            width: 100%;
            height: 3px;
            background-color: var(--secondary-color);
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
        }
    }

    #districtHeaderLinks {
        max-width: calc(50vw - 100px);
    }

    #view-header #searchbutton {
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 0;
        height: auto;
        width: 300px;
        border: 1px solid var(--primary-color);
        border-radius: 50vw;
        padding-block: 3px;
        padding-inline: 12px;
        box-sizing: border-box;
        transition: all .35s ease-in-out;

        &:hover {
            background-color: #F2F2F2;
        }

        .button-action-content {
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            width: 100%;
        }

        svg {
            width: 20px;
            height: 20px;
        }

        svg path {
            stroke: var(--nav-color);
        }

        .sr-only {
            color: #000;
            clip: auto;
            clip-path: unset;
            height: auto;
            width: auto;
            margin: 0;
            position: relative;
            font-size: 15px;
            font-weight: 400;
            line-height: 24px;
            letter-spacing: .5px;
            text-transform: none;
            font-family: var(--font-family, Helvetica);
            opacity: 0.8;
        }

    }

    #view-header #languagebutton,
    #view-header #schoolsbutton {
        margin: 0;

        .menu-field {
            text-transform: none;
            padding: 0;
        }

        svg {
            display: none;
        }
    }

    #view-header #languagesmenu {
        right: 0;
        top: 18px;
    }

    #view-header #schoolsbutton {
        position: absolute;
        top: 95px;
        right: 0;

        .menu-field {
            color: #FFF !important;
            letter-spacing: 0.03em;
        }
    }

    #view-header #schoolsmenu {
        top: 110px;
        right: -100px;
        left: auto;
        transform: none;
    }

    @media only screen and (min-width: 961px) and (max-width: 1023px) {
        #view-header:not(:has(.school-info .sr-only)) {
            --logo-height: 65px;
            --school-info-max-width: min(450px, 30vw);

            #h2 .header-container {
                min-height: calc(var(--logo-height) + 90px);
            }
        }
    }

    @media only screen and (min-width: 961px) and (max-width: 1279px) {
        #view-header {
            --logo-height: 62px;
        }

        #view-header #searchbutton {
            width: 200px;
        }

        #view-header #schoolsbutton {
            top: 88px;
        }

    }
}

.jenison-public-schools #app:has(.header-bar-wrapper > #m4) {
    #view-header #h2 .left {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        justify-content: center;
    }

    #view-header #h2 .right {
        max-width: calc(50vw - 100px);
    }

    @media only screen and (min-width: 961px) and (max-width: 1279px) {
        #view-header {
            --logo-height: 70px;
        }

        #view-header #h2 .header-container {
            padding-top: 50px;
            align-items: flex-start;
        }

        #view-header #h2 .left {
            top: 50px;
            transform: translate(-50%, 0%);
        }

        #view-header #h2 .right,
        #districtHeaderLinks {
            top: -40px;
            position: relative;
        }

        #view-header #schoolsbutton {
            top: 126px;
        }

        #view-header #schoolsmenu {
            top: 144px
        }
    }
}

#app:has(.mobile-header) {
    #h2 .utilities.utilities-top {
        justify-content: center;
        box-sizing: border-box;
        flex-direction: column;
        padding-inline: 10px;

        .utility-bar {
            padding-right: 0;
            padding-top: 5px;

            .utilities {
                margin: 0;
                padding: 0;
            }

            .utilities:last-child::after {
                display: none;
            }
        }
    }

    #districtHeaderLinks {
        text-align: center;
        justify-content: center;
        border-bottom: 1px solid var(--primary-color);
        padding-bottom: 5px;

        .links {
            justify-content: center;
        }
    }
}

@media only screen and (max-width: 500px) {
    #view-header {
        .mobile-header .left-icon {
            left: 20px;
        }

        .mobile-header .main-content {
            margin-left: auto;
            margin-right: 20px;
        }
    }
}

/* END - Make header v2 look like header v6 but with menu v4 */

/* Update the Desktop site menu to display by multiple columns */
#view-header {
    #m4 .m4-menu--bar {
        .m4-menu--drawer {
            padding-block: 25px;
            max-height: inherit;
            min-height: inherit;
        }

        .m4-menu--columns-container {
            display: flex;
            justify-content: space-between;

            .m4-menu--column {
                box-sizing: border-box;
                flex: 1;
                position: relative;
                padding-left: 20px;

                &:first-child {
                    margin-left: -20px;
                }

                &::after {
                    position: absolute;
                    content: '';
                    left: 0;
                    top: 0;
                    height: 100%;
                    width: 1px;
                    background-color: var(--secondary-color);
                    opacity: 0.5;
                }
            }
        }

        .m4--drawer-element {
            margin-bottom: 20px;
            height: auto;
            margin-left: 0;

            .m4--menu-item-link {
                position: relative;
                padding-bottom: 2px;

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

                &::after {
                    width: 0%;
                    bottom: 0;
                    left: 0;
                    height: 1px;
                    background-color: var(--secondary-color);
                    transition: all .35s ease-in-out;
                    content: '';
                    display: block;
                }
            }

            &.has-children {
                .m4--drawer-children {
                    padding-left: 20px;

                    .m4--drawer-element {
                        margin-bottom: 10px;
                    }
                }
            }
        }

        .m4--drawer-element .m4--drawer-element-title {
            min-height: inherit;
        }
    }
}

#app #cms-header {
    &:has(.mobile-header) {
        .menu.m4-menu {
            display: block;
        }
    }
}

/* END */
/* menu with images */
#app:has(.header-bar-wrapper > #m4) #view-header #m4 .m4-menu--drawer:has(.m4-menu-card) {
    display: flex;
    gap: 20px;
    justify-content: flex-start;

    .m4-menu--drawer-content-wrapper {
        padding-right: 0;
        width: auto;
        display: inline-flex;
        flex: unset;

        &>.m4--drawer-element {
            margin-bottom: 0;
            padding-bottom: 20px;
            position: relative;

            &::after {
                position: absolute;
                content: '';
                left: -20px;
                top: 0;
                height: 100%;
                width: 1px;
                background-color: var(--secondary-color);
                opacity: 0.5;
            }
        }
    }

    .m4-menu--columns-container {
        height: 100%;
    }

    .m4-menu-card {
        position: relative;
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: var(--side-margin);

        &::after {
            position: absolute;
            content: '';
            left: 0;
            top: 0;
            height: 100%;
            width: 1px;
            background-color: var(--secondary-color);
            opacity: 0.5;
        }
    }

    .m4-menu-card__headline {
        * {
            color: #FFF;
            font-size: 18px;
        }
    }

    .m4-menu-card__content {
        margin-top: 5px;

        * {
            color: #FFF;
            text-decoration: none;
            font-size: 15px;
        }

        a {
            display: flex;
            gap: 10px;
            align-items: center;

            &:hover::after {
                transform: translateX(7px);
            }

            &::after {
                content: '';
                display: block;
                width: 35px;
                height: 15px;
                background-color: currentColor;
                mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='16' viewBox='0 0 54 16' fill='none'%3E%3Cpath d='M53.0993 8.76603C53.5224 8.34296 53.5224 7.65704 53.0993 7.23397L46.205 0.339676C45.7819 -0.0833921 45.096 -0.0833921 44.6729 0.339676C44.2499 0.762744 44.2499 1.44867 44.6729 1.87174L50.8012 8L44.6729 14.1283C44.2499 14.5513 44.2499 15.2373 44.6729 15.6603C45.096 16.0834 45.7819 16.0834 46.205 15.6603L53.0993 8.76603ZM0.333252 8V9.08333H52.3333V8V6.91667H0.333252V8Z' fill='white'/%3E%3C/svg%3E");
                mask-repeat: no-repeat no-repeat;
                mask-position: right center;
                mask-size: contain;
                transition: all .35s ease-in-out;
            }
        }
    }

    .m4-menu-card__image {
        max-width: 340px;
        margin-bottom: 10px;

        img {
            max-width: 100%;
            height: auto;
        }
    }
}

/* End menu with images  */
/* Gallery */
#cms-gallery {
    .title>h1~h3 * {
        font-weight: 400;

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

    .left-text a {
        background-color: var(--secondary-color);
        color: var(--secondary-color-contrast);
        border: 1px solid var(--secondary-color);
        border-radius: 4px;
        padding: 8px 25px;
        box-sizing: border-box;
        font-weight: 500;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
        font-size: 20px;
        line-height: 1.4;
        transition: all .35s ease-in-out;
        display: inline-flex;
        align-items: center;
        gap: 20px;

        @media only screen and (max-width: 760px) {
            font-size: 18px;
            padding: 5px 15px;
        }

        &:hover {
            background-color: var(--primary-color);
            color: var(--primary-color-contrast);
            border-color: rgba(255, 255, 255, 0.5);

            &::after {
                transform: translateX(10px);
            }
        }

        &::after {
            content: '';
            display: block;
            width: 49px;
            height: 15px;
            background-color: currentColor;
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='16' viewBox='0 0 54 16' fill='none'%3E%3Cpath d='M53.0993 8.76603C53.5224 8.34296 53.5224 7.65704 53.0993 7.23397L46.205 0.339676C45.7819 -0.0833921 45.096 -0.0833921 44.6729 0.339676C44.2499 0.762744 44.2499 1.44867 44.6729 1.87174L50.8012 8L44.6729 14.1283C44.2499 14.5513 44.2499 15.2373 44.6729 15.6603C45.096 16.0834 45.7819 16.0834 46.205 15.6603L53.0993 8.76603ZM0.333252 8V9.08333H52.3333V8V6.91667H0.333252V8Z' fill='white'/%3E%3C/svg%3E");
            mask-repeat: no-repeat no-repeat;
            mask-position: right center;
            mask-size: contain;
            transition: all .35s ease-in-out;

            @media only screen and (max-width: 760px) {
                width: 30px;
                height: 20px;
            }
        }
    }
}

/* End Gallery */

/* BY THE NUMBERS */
#home .by-the-numbers-v4-section {
    /* the background color of the whole section */
    --section-bg-color: #FFF;

    /* the text color of the whole section */
    --section-text-color: var(--primary-color);

    @media only screen and (min-width: 1400px) {
        padding-block: 50px;
    }

    &::before {
        display: none;
    }

    .see-all-container.see-all-top {
        max-width: 1100px;
        margin-inline: auto;
        gap: 5%;
        justify-content: center;

        .top-image {
            min-width: 160px;
            text-align: center;

            @media only screen and (min-width: 900px) {
                min-width: 259px;
            }

            img {
                width: 100%;
                max-width: 259px;
                height: auto;
                object-fit: contain;
            }
        }
    }

    .by-the-numbers.is-slider .swiper-slide {
        text-align: center;
    }

    .by-the-numbers-outer {
        .is-slider .swiper-slide {
            width: 100%;
        }
    }

    .by-the-numbers-outer:has(.by-the-numbers.is-slider) .custom-swiper-controls {
        justify-content: center;
        margin-top: 20px;
    }

    .by-the-numbers-outer:has(.by-the-numbers.is-slider) .custom-swiper-navigation {
        justify-content: center;
    }

    .by-the-numbers-item {
        padding-right: 0;
    }

    @media only screen and (min-width: 700px) and (max-width: 959px) {
        .by-the-numbers-outer {
            &:not(:has(.swiper-slide:nth-child(3))) {
                --space-for-buttons: 0px;

                .custom-swiper-controls {
                    display: none;
                }

            }

            .is-slider .swiper-slide {
                width: 50%;
            }
        }
    }

    @media only screen and (min-width: 960px) {
        .by-the-numbers-outer:has(.by-the-numbers.is-slider) .custom-swiper-controls {
            margin-top: 0;
        }

        .by-the-numbers-outer {
            &:not(:has(.swiper-slide:nth-child(4))) {
                --space-for-buttons: 0px;

                .custom-swiper-controls {
                    display: none;
                }
            }

            .is-slider .swiper-slide {
                width: 33.33%;
            }
        }
    }

    .header-slot-container {
        color: var(--section-title-color, var(--primary-color));
        text-align: center;
        text-transform: none;
        font-weight: 700;

        @media only screen and (min-width: 1400px) {
            font-size: 40px;
            font-weight: 700;
        }
    }

    .by-the-numbers-item .btn-title {
        font-weight: 400;
        font-size: 20px;
    }

    @media only screen and (min-width: 1280px) {
        .by-the-numbers-item .btn-value {
            font-size: 40px;
        }
    }


}

/* END */


/* ------------------------------------------------- */
/* ------------- SPONSORS START          ----------- */
/* ------------------------------------------------- */

#home .scroller-area {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    gap: 25px;

    @media only screen and (min-width: 1440px) {
        gap: 40px;
    }

    &::after {
        position: absolute;
        top: 0;
        left: var(--side-margin);
        right: var(--side-margin);
        height: 2px;
        width: auto;
        background-color: var(--primary-color);
        content: '';
    }

    .header-slot-container {
        color: var(--section-title-color, var(--primary-color));
        text-align: center;
        text-transform: none;
        padding-top: 20px;

        @media only screen and (min-width: 1400px) {
            font-size: 40px;
            font-weight: 700;
        }
    }

    .slide-pane {
        margin-block: 0;
        --scoller-section-image-height: 175px;

        @media only screen and (min-width: 760px) {
            --scoller-section-image-width: 320px;
        }

    }
}

/* ------------------------------------------------- */
/* ------------- SPONSORS END            ----------- */
/* ------------------------------------------------- */

/* spotlight center text */
#home .spotlight-text {
    text-align: center;

    .spotlight-author {
        align-self: center;
    }
}

/* end */


/* ------------------------------------------------- */
/* ------------- FOOTER START            ----------- */
/* ------------------------------------------------- */
#view-footer {

    .footer-column-main {

        &>h2 {
            display: none;
        }

        &>p {
            span:first-child {
                font-weight: 700;
                margin-bottom: 15px;
                font-size: 18px;
            }

            span:nth-child(3) {
                margin-bottom: 15px;
            }

            &+ul li a {
                background-color: var(--primary-color-contrast);
                display: inline-block;
                padding: 5px 20px;
                color: var(--primary-color) !important;
                text-decoration: none;
                font-weight: 700;
                font-size: 18px;
                line-height: 1.2;
                transition: all .35s ease-in-out;
                margin-top: 20px;

                @media only screen and (min-width: 1400px) {
                    font-size: 20px;
                    padding: 10px 30px;
                }

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

    .row:not(:has(.footer-column-last)) {
        .footer-columns {
            padding-right: 0;
        }
    }

    .apptegy-copyright {
        display: flex;
        flex-direction: column;

        @media only screen and (min-width: 600px) {
            flex-direction: row;
            justify-content: space-between;
        }

        .copyright {

            max-width: 100%;
            text-align: center;
            gap: 20px;
            margin-bottom: 30px;

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

            .additional-text {
                padding: 0;
                margin-bottom: 20px;
                width: 100%;

                p {
                    padding: 0;
                    text-align: center !important;

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

                }
            }
        }

        .footer-column-last {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0;

            h2 {
                display: none;
            }

            .footer-social-links {
                order: -1;
                min-width: 185px;
                justify-content: center;
                display: flex;
            }

            a:has(.app-link) {
                margin-bottom: 5px;

                img {
                    height: 55px;
                }
            }
        }
    }
}

/* ------------------------------------------------- */
/* ------------- FOOTER END              ----------- */
/* ------------------------------------------------- */