.all-certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
}

.certificate-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: calc(33.333% - 20px);
    /* 3 columns layout */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.certificate-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.certificate-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.certificate-link:hover {
    background: #0056b3;
}