#cms-header .mobile-header #closebutton {
  svg path {
    fill: var(--primary-color-contrast);
  }
}

/* START Menu V5 icons fix */
#cms-header .bar-nav-menu--drawer .dropdown-with-icons .global-icon svg {
  width: 100%;
  height: 100%;
}

/* END Menu V5 icons fix */

#home #stats-s5 {

    .stats-counter,
    .stats-snippet {
        display: none;
    }

    .stats-wrapper {
        padding-block: 12px;
    }

    .stats-card {
        position: relative;

        &:has(.stat-link):hover .stats-image,
        &:has(.stat-link:focus-visible) .stats-image {
            transform: translateY(-4px) scale(1.05);
            filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.2));
        }
    }

    .svg-wrapper {
        height: auto;
        overflow: visible;
    }

    .stats-image {
        display: block;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        transition: transform 0.25s ease, filter 0.25s ease;
    }

    .snippet-link-container {
        position: static;
        margin: 0;
        padding: 0;
    }

    .stat-link {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        font-size: 0;
        color: transparent;
        cursor: pointer;

        &:focus-visible {
            outline: 2px solid var(--focus-visible-outline);
            outline-offset: 2px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .stats-image {
            transition: none;
        }

        .stats-card:has(.stat-link):hover .stats-image,
        .stats-card:has(.stat-link:focus-visible) .stats-image {
            transform: none;
        }
    }
}

#home #stats-s5 .stats-info,
#home #stats-s5 .stats-card {
  min-height: fit-content !important;
}


/* START CMS Page Customisations */
#page {
    .round-image {
        .image-container {
            img {
                border-radius: 50%;
            }
        }
    }

    .padding-10 {
        padding: 10px;
    }

    .padding-15 {
        padding: 15px;
    }

    .padding-20 {
        padding: 20px;
    }

    .padding-25 {
        padding: 25px;
    }

    .padding-30 {
        padding: 30px;
    }

    .bg-color-primary-transparent {
        position: relative;
        isolation: isolate;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: color-mix(in srgb, var(--primary-color) 90%, transparent);
            z-index: -1;
            pointer-events: none;
        }

        color: #fff;
        --color-heading: #fff;

        .pb-button {
            .button {
                background-color: #fff;
                color: var(--primary-color);
            }
        }

        & > * {
            position: relative;
            z-index: 1;
        }
    }

    .northside-section-v1 {
        position: relative;
        isolation: isolate;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: rgba(255, 255, 255, 0.6);
            z-index: -1;
            pointer-events: none;
        }

        & > * {
            position: relative;
            z-index: 1;
        }

        .column.double-column {
            padding: 25px;

            &+.column.double-column {
                background-color: rgba(255, 255, 255, 0.8);
            }

        }

        .single-column-row .column.single-column {
            padding: 25px;
            background-color: rgba(255, 255, 255, 0.8);
        }
    }

    .bg-color-white-primary {
        background-color: rgba(255, 255, 255, 0.6);
    }

    .section-with-cards {
        background-color: color-mix(in srgb, var(--primary-color), transparent 90%);
        padding-top: 3em !important;
        padding-bottom: 3em !important;


        .double-column-row,
        .triple-column-row {
            width: 80%;
            margin-left: auto !important;
            margin-right: auto !important;

            .column.triple-column,
            .column.double-column {
                background-color: #fff;
                color: var(--primary-color);
                border-radius: 5px;
                padding-top: 30px;
                padding-bottom: 40px;
                border-top: 10px solid var(--primary-color);

                .pb-text {
                    padding-left: 15px;
                    padding-right: 15px;

                    ul {
                        padding-left: 0;
                    }
                }

                .buttons-container:has(.button-type-square.button-style-1) {
                    margin-left: auto;
                    margin-right: auto;

                    .button-type-square.button-style-1 {
                        background: transparent;
                        min-width: 50px;
                        min-height: 50px;

                        .custom-icon-wrapper {
                            margin-top: 0;
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }
    }

    .northside-card-v1 {
        .column.single-column {
            padding: 25px;

            .pb-text {

                ul {
                    list-style-type: none;
                    padding-left: 0;

                    li {
                        a {
                            color: currentColor;
                            text-decoration: none;

                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }
        }
    }

    .northside-card-v2 {
        &.no-outline .column.single-column {
            border-top: none;
        }
        
        .column.single-column {
            color: currentColor;
            border-radius: 5px;
            padding-top: 30px;
            padding-bottom: 40px;

            border-top: 10px solid var(--primary-color);

            .pb-text {
                padding-left: 15px;
                padding-right: 15px;

                ul {
                    padding-left: 0;
                }
            }

            .buttons-container:has(.button-type-square.button-style-1) {
                margin-left: auto;
                margin-right: auto;

                .button-type-square.button-style-1 {
                    background: transparent;
                    min-width: 50px;
                    min-height: 50px;

                    .custom-icon-wrapper {
                        margin-top: 0;
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}

#page .triangle-bullet-list {

    .html-wrapper {


        li {
            list-style-type: none;
            position: relative;
            padding-left: 1.25em;
            align-content: center;

            +li {
                margin-top: .25em;
            }

            &::before {
                content: '';
                position: absolute;
                margin-left: -1.25em;
                margin-top: .45em;
                margin-bottom: auto;
                height: 0;
                border-style: solid;
                border-width: 0 0 10px 10px;
                border-color: transparent transparent currentColor transparent;
                -webkit-transform: rotate(360deg);
            }
        }
    }
}

#page .custom-fullwidth .pb-layout-container.row-level-2 {
    width: 85%;
    max-width: 1920px;
    margin: 10px auto;
}

/* END CMS Page Customisations */

/* ------------------- START Custom 404 Page ------------------- */
#app .error-page {
    .content .error-reasons {
        align-self: stretch;
        margin-top: -10px;

        p {
            margin: 0 0 8px;
            font-weight: 700;
        }

        ul {
            margin: 0;
            padding-left: 20px;
        }

        li + li {
            margin-top: 4px;
        }

        &::before,
        &::after {
            background-image: url('https://cmsv2-shared-assets.apptegy.net/Schools/Northside-ISD-6221/img/separator-line.svg');
            background-repeat: no-repeat;
            background-position: left center;
            background-size: auto 18px;
            content: '';
            display: block;
            width: calc(100% + 40px);
            height: 18px;

            @media (max-width: 600px) {
                width: 100%;
            }
        }

        &::before {
            margin-bottom: 20px;
        }

        &::after {
            margin-top: 20px;
        }
    }

    .content h2.return-text {
        margin: 0;
        padding: 25px 0 35px;
    }

    #go-Home-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;

        & a,
        & button {
            margin-top: 0;
            border: 1px solid var(--primary-color);
            border-radius: 4px;
            padding: 8px 15px;
            font: inherit;
            line-height: 1.4;
            text-decoration: none;
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease;

            &:focus-visible {
                box-shadow: none;
                outline: 2px solid var(--primary-color);
                outline-offset: 3px;
            }
        }

        & a:not(.error-action) {
            background-color: var(--primary-color) !important;
            color: var(--primary-color-contrast);
            border-radius: 4px;

            &:hover {
                opacity: 0.9;
            }
        }

        & .error-action {
            background-color: transparent;
            color: var(--primary-color);

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

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
    }
}
/* ------------------- END Custom 404 Page ------------------- */
