#app,
body,
html,
.m4-menu--bar *,
.slide *,
* {
    font-family: DM Sans, serif !important;
}

/* ------------------------------------------ */
/* ------------- START CUSTOM HEADER V3 */
/* ------------------------------------------ */
#view-header {
    position: relative;
    z-index: 101;
}

#app:has(#view-header .cms-alert-modal button.close) #view-header {
    z-index: auto;
}

#cms-header {
    --utility-buttons-color: var(--secondary-color);
}

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


    #cms-header #h2 .header-container:before {
        display: none;
    }

    #cms-header #h2 .left {
        margin-left: 0;
        min-width: min(900px, 55%);
    }

    #cms-header #h2 .left .logo {
        height: 92px;
    }

    #cms-header #h2 .left .logo img {
        max-width: 340px;
        width: auto;
        height: auto;
    }

    #cms-header #h2 .left a {
        display: flex;
        align-items: center;
        padding-left: 20px;
        padding-right: 50px;
        height: 165px;
        margin-bottom: -85px;
        background-color: #fff;
        border: 3px solid var(--secondary-color);
        border-left: none;
        border-radius: 0 100px 100px 0;
    }

    #cms-header #h2 .left .school-info .org-name {
        max-width: 550px;
        line-height: 1;
        font-size: 24px;
    }

    #cms-header #m4 .m4-menu--bar {
        height: 85px;
        padding-right: 10px;
        padding-left: 400px;
    }

    #cms-header #m4 .m4-menu--drawer {
        top: 85px;
    }
}

@media only screen and (min-width: 1200px) {
    body #app #cms-header #h2 .left a {
        background-color: var(--logo-bg-color, var(--school-name-color));
        border-color: var(--logo-bg-color, var(--school-name-color));
    }

    body #app #cms-header #h2 .left .logo {
        width: auto;
        height: 143px;
        place-content: center;
    }

    body #app #cms-header #h2 .left a h1 {
        color: var(--custom-school-name-color, var(--school-tagline-color));
        font-weight: 700;
        font-size: var(--custom-school-name-font-size, 39px);
        letter-spacing: var(--custom-school-name-letter-spacing, 1px);
    }

    body #app #cms-header #h2 .left a .slogan {
        color: var(--custom-school-tagline-color, var(--school-tagline-color));
        font-size: var(--custom-school-tagline-font-size, 19px);
        letter-spacing: var(--custom-school-tagline-letter-spacing, 1.2px);
        font-weight: 700;
    }
}

#cms-header #schools-menu-sm1 {
    margin-top: 0;
    top: 170px;
}

#app #search {
    z-index: 102;
}

/* ------------------------------------------ */
/* ------------- END CUSTOM HEADER V3 */
/* ------------------------------------------ */

/* gallery v2 to look like v3 */
@media screen and (min-width: 960px) {
    #cms-gallery #g2 .text {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        text-align: center;
        background: linear-gradient(180deg, rgba(1, 73, 145, 0) 0%, var(--button-bg-color) 80.73%) !important;
        box-sizing: border-box;
        padding: 50px 170px;
        -webkit-transform: translate(0%);
        transform: translate(0%);
    }

    #cms-gallery #g2 .text .title h1 {
        font-size: 40px;
        line-height: 1.1;
    }

    #cms-gallery .image-wrapper .pause,
    #cms-gallery .image-wrapper .play {
        z-index: 2;
        left: 70px;
        bottom: 50px;
    }
}

@media screen and (max-width: 959px) {
    #cms-gallery .image-wrapper {
        position: relative;
        isolation: isolate;
    }

    #cms-gallery #g2 .image-wrapper:after {
        content: close-quote;
        font-size: 0;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 50px;
        text-align: center;
        background: linear-gradient(180deg, rgba(1, 73, 145, 0) 0%, var(--button-bg-color) 80.73%) !important;
        box-sizing: border-box;
        z-index: 0;
        -webkit-transform: translate(0%);
        transform: translate(0%);
    }

    #cms-gallery #g2 .slide button {
        z-index: 1;
    }

    #cms-gallery #g2 .slide button svg {
        border: 1px solid rgba(255, 255, 255, 0.7);
    }
}

/* END */


@media only screen and (min-width: 960px) {
    #home .see-all-container h2 {
        font-size: 56px;
    }
}

@media only screen and (min-width: 600px) {
    #home .see-all-container h2 {
        font-size: 48px;
    }
}

#cms-header .button-action-content .menu-field {
    font-weight: 700;
}

/* fix the events title in 1/3 column layout */
@media only screen and (min-width: 960px) {
    #home .main .last.right-sidebar:has(.view-events) {
        min-width: 400px;
        box-sizing: border-box;

        .header-slot-container h2 {
            white-space: nowrap;
        }
    }
}

/* end fix the events title in 1/3 column layout */


#app {
    --custom-border-radius: 10px;
}

#cms-header {
    .header-container {
        border-bottom: var(--separator-line-height, 6px) solid var(--separator-line-color, #C8102E);
    }
}

.tabcordion.v3 {
    --active-tab-background-color: var(--secondary-color);
    --section-title-color: #000;
}


#view-header #m3 .menu-container .content .static-links ul li {
    width: 100px;
    /* adjust as needed */
}

#home .custom-section.tabcordion.v3 .panel-content-image img {
    border: 3px solid var(--secondary-color);
}

@media only screen and (min-width: 1280px) and (max-width: 1400px) {
    #cms-header #h2 .left {
        padding-right: 20px;
        min-width: inherit;
    }

    #cms-header #h2 .right .utility-bar-items {
        gap: 0 13px;
    }

    #cms-header #h2 .right .utility-bar-items a {
        padding: 0.65em 1.2em;
    }
}

#h2 .utilities.utilities-top {
    box-sizing: border-box;
}

#view-header .utility-bar.H2.is-mobile {
    padding-inline: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

@media only screen and (max-width: 420px) {
    #news-n4 .news-content {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }
}

@media only screen and (max-width: 1999px) {
    body #view-header .slogan {
        color: var(--school-name-color);
        display: block;
    }
}

@media only screen and (min-width: 600px) and (max-width: 1999px) {
    #view-header .mobile-header {
        padding-top: 30px;
        padding-bottom: 20px;
    }
}

#home .see-all-container h2 {
    font-weight: 600;
}

#cms-header .slogan {
    width: 340px;
    overflow-wrap: break-word;
}

/* Fix header on mobile */
@media only screen and (max-width: 979px) {
    #view-header #cms-header .mobile-header {
        justify-content: center;
        box-sizing: border-box;
        align-items: flex-start;
        gap: 10px 35px;
        padding-bottom: 10px !important;
        padding-top: 20px;

        &.menu-open {
            max-height: calc(100dvh + 48px) !important;

            .mobile-element:has(#explore-header) {
                display: none;
            }

            .menu-mobile {
                overflow-x: hidden;
                /* width: auto !important; */
                order: 3;
            }

            #schoolsbutton {
                display: none;
            }
        }

        .left-icon {
            position: static;
            transform: none;
            margin: 0;

            #closebutton {
                svg path {
                    fill: var(--nav-color);
                }
            }

            #menubutton {
                width: auto;
                height: auto;
                border-radius: none;

                .button-action-content {
                    align-items: center;
                }

                svg.hamburger {
                    width: 22px;
                    height: 22px;

                    rect {
                        fill: transparent;
                    }

                    path {
                        fill: var(--nav-color);
                    }
                }
            }
        }

        .main-content {
            min-width: 100%;
            box-sizing: border-box;
            order: -1;
            height: auto;
        }

        #schoolsbutton {
            position: static !important;
            transform: none;
        }

        .logo {
            margin: 0;
        }

        &:not(.menu-open):not(.shrink) {
            .logo {
                height: 60px;
            }
        }

        #schoolsbutton .button-action-content {
            display: flex;
            align-items: center;
            gap: 3px;
        }
    }

    #cms-header .right-mobile,
    #cms-header .header-container .right {
        display: none !important;
    }
}

@media only screen and (max-width: 500px) {
    #view-header #cms-header .mobile-header:has(.dynamicLink) {
        gap: 10px;
        align-items: center;

        .left-icon #menubutton svg.hamburger {
            width: 18px;
            height: 18px;
        }

        .menu .button-action-content,
        #schoolsbutton .menu-field::after {
            font-size: 15px;
        }

        .dynamicLink {
            order: 2;
            padding: 4px;
            font-size: 15px;
        }
    }
}

/* END fix header on mobile */

/* START CMS page side nav */
#page .pb-navigation {
    & .navigation-list .page-child.active {
        border-left-width: 6px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color), white 85%) 0%, var(--grey-20) 100%);
        font-weight: 600;
    }

    & .navigation-header .navigation-title {
        font-size: 20px;
    }
}

/* END CMS page side nav */

/* START CMS page breadcrumb */
@media (width >= 1200px) {
  .breadcrumb {
    margin-top: 40px; 
    transition: margin-top 0.2s ease-out; 
  }
}

/* END CMS page breadcrumb */


/* START - Hide Dining Menu item */
#view-header #m3 .menu-container .content .static-links ul li:nth-child(5) {
    display: none;
}
/* END - Hide Dining Menu item */
