#cert-block {
    padding: 80px 0px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

#cert-block .cert-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    position: relative;
    cursor: pointer;
    /* max-height: 465px; */
}

#cert-block .cert-item:before {
    content: "";
    /* width: 100%;
    height: 100%; */
    /* top: 0;
    left: 0;
    position: absolute; */
    background-color: var(--primary);
    opacity: 0;
    transition: 0.3s;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 140%;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}

#cert-block .cert-item-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid var(--white);
    border-radius: 2px;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

#cert-block .cert-item-hover svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

#cert-block .cert-item:hover:before {
    opacity: 0.7;
}

#cert-block .cert-item:hover .cert-item-hover {
    opacity: 1;
}

#cert-block .cert-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 996px) {
    #cert-block {
        padding: 30px 0px;
    }
}