/* Highlighting h2 when anchor link is clicked */
.entry-content {
    #pillar-page {
        display: grid;
        grid-template-columns: 30% 70%;
        grid-template-rows: 0 auto 0;
        grid-template-areas: "header header" "sidebar main" "footer footer";
        max-width: 1160px;
        width: 100%;
        gap: 0 10px;
        justify-content: center;
        @media only screen and (max-width: 899px) {
            grid-template-columns: 100%;
            grid-template-rows: 0 auto auto auto;
            grid-template-areas: "header" "sidebar" "main" "footer";
            width: 100%;
            gap: 10px 0;
        }
        .pillar-page__nav {
            grid-area: sidebar;
        }
        .pillar-page__content {
            grid-area: main;
        }
        .pillar-page__top {
            grid-area: header;
            display: none;
        }
        .pillar-page__bottom {
            grid-area: footer;
            display: block;
            margin-top: 50px;
        }
        .pillar-panel {
            background: #ffffff;
            border-radius: 8px;
            padding: 20px;
            transition: box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
            height: fit-content;
            @media screen and (min-width: 900px) {
                &:hover {
                    box-shadow: 0px 12px 55px -10px rgba(0, 0, 0, 0.5);
                    z-index: 99;
                }
            }
        }
        @keyframes highlightAnchor {
            0% {
                border-left-color: mhcolor(sharp-blue);
                transform: translateX(0);
                background: #c0ebff;
            }
            20% {
                border-left-color: mhcolor(sharp-blue);
                transform: translateX(20px);
                margin-bottom: 10px;
                margin-top: 20px;
            }
            90% {
                border-left-color: mhcolor(sharp-blue);
                transform: translateX(20px);
                margin-bottom: 10px;
                margin-top: 20px;
            }
            100% {
                border-left-color: white;
                transform: translateX(0);
                background: white;
            }
        }
        :target {
            animation: highlightAnchor 5s ease;
            scroll-margin-top: 2em;
        }
        h2 {
            border-left: 5px solid white;
            transition: all 0.5s ease;
            left: -15px;
            padding-left: 10px;
            position: relative;
        }
    }
}

/* when full-page, cag email subscription widget will be transformed to full width */
.full-width-widget {
    position: relative;
}
.full-width-widget::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    background: mhcolor(blue);
}
.full-width-widget::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: calc(100% - 1px);
    background: mhcolor(blue);
}
