.teacher-resource-grid p.mb2.text-black {
    color: var(--text-black);
    font-weight: 500;
}
.teacher-resource-grid .teacher-resource-grid-row {
    margin: -15px;
}
.teacher-resource-grid .teacher-resource-grid-content {
    padding: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    color: unset;
    text-decoration: none;
    transition: ease all 0.3s;
}
.teacher-resource-grid .teacher-resource-grid-content > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.teacher-resource-grid .teacher-resource-grid-content p.large {
    color: var(--text-black);
    font-weight: 500;
}
.teacher-resource-grid .heading-area {
    margin-bottom: 60px;
}
.teacher-resource-grid .teacher-resource-grid-content .white_background {
    padding: 80px 60px;
}
.teacher-resource-grid .teacher-resource-grid-square {
    max-width: 64px;
    margin-bottom: 30px;
}
.teacher-resource-grid .resource-button {
    margin-top: 80px;
}
.teacher-resource-grid .resource-button a.button  {
    margin: 0px;
}
.teacher-resource-grid .teacher-resource-grid-content a {
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.2s ease-in-out;
    height: 100%;
}
.teacher-resource-grid .teacher-resource-grid-content a::after {
    content: '';
    position: absolute;
    background-image: url('assets/crest.svg');
    height: 326px;
    width: 220px;
    top: 110px;
    right: 0px;
    background-repeat: no-repeat;
    background-size: calc(100% + 30px);
    transition: 0.2s ease-in-out;
    opacity: 0.6;
}
.teacher-resource-grid .teacher-resource-grid-content a:hover::after {
    opacity: 0.6;
}
.teacher-resource-grid .teacher-resource-grid-content a .white_background {
    transition: 0.2s ease-in-out;
    height: 100%;
}
.teacher-resource-grid .teacher-resource-grid-content a:hover > .white_background {
    background-color: var(--royal-blue);
    transition: 0.2s ease-in-out;
}
.teacher-resource-grid .teacher-resource-grid-content a:hover > .white_background * {
    color: var(--white);
}
.teacher-resource-grid .teacher-resource-grid-content a > .white_background button.button {
    transition: 0.2s ease-in-out;
}
.teacher-resource-grid .teacher-resource-grid-content a:hover > .white_background button.button {
    border-color: var(--white);
    background-image: url('assets/white_arrow.svg');
    transition: 0.2s ease-in-out;
}
.teacher-resource-grid .teacher-resource-grid-content h4 {
    z-index: 2;
    position: relative;
}
@media(max-width: 1599.98px){
    .teacher-resource-grid .teacher-resource-grid-content a::after {
        width: 150px;
        top: 150px;
    }
}
@media(max-width: 1199.98px){
    .teacher-resource-grid .teacher-resource-grid-row {
        margin: -7.5px;
    }
    .teacher-resource-grid .teacher-resource-grid-content {
        padding: 7.5px;
    }
    .teacher-resource-grid .teacher-resource-grid-content .white_background {
        padding: 45px;
    }
    .teacher-resource-grid .teacher-resource-grid-content a::after {
        top: 150px;
    }
}
@media(max-width: 991.98px) {

}
@media(max-width: 767.98px){
    .teacher-resource-grid .teacher-resource-grid-content .white_background {
        padding: 30px;
    }
    .teacher-resource-grid .teacher-resource-grid-square {
        max-width: 54px;
        margin-bottom: 15px;
    }
    .teacher-resource-grid .heading-area {
        margin-bottom: 30px;
    }
    .teacher-resource-grid .teacher-resource-grid-content a::after {
        width: 100px;
        top: 135px;
    }
}
@media(max-width: 575.98px){
    .teacher-resource-grid .teacher-resource-grid-square {
        max-width: 45px;
    }
    .teacher-resource-grid .heading-area {
        margin-bottom: 20px;
    }
    .teacher-resource-grid .crosslink_8_button {
        margin-top: 15px;
    }
    .page-template-page-password-protected form.post-password-form .d-flex {
        display: block !important;
    }
    .page-template-page-password-protected form.post-password-form input[type="password"] {
        min-width: 100%;
        margin-bottom: 15px;
    }
    .page-template-page-password-protected form.post-password-form button {
        min-width: 100%;
    }
    .teacher-resource-grid .teacher-resource-grid-content a::after {
        top: 130px;
    }
}