.cert-item {
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.cert-item img {
    width: 100%;
    max-width: 280px;
    margin: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cert-item img:hover {
    transform: scale(1.05);
}

.cert-text {
    text-align: left;
    margin-top: 10px;
}

.cert-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cert-text p {
    font-size: 13px;
    color: #555;
}


.cert-img {
    position: relative;
    overflow: hidden;
}

.cert-img img {
    width: 100%;
}

/* overlay */
.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: linear-gradient(135deg, #1fa84a, #3aa0a8);
    color: #000;

    opacity: 0;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;


}

/* hover */
.cert-img:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay h3,
.cert-overlay p {
    color: #fff !important;
}

.cert-overlay {
    text-align: left;
}

.cert-overlay h3,
.cert-overlay p {
    text-align: left;
}