.certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
}

/* Certificate card */
.certificate {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
    
    background: #1e1e1e;
    border-radius: 18px;
    padding: 1.5rem;
    
    box-shadow: 0px 4px 16px rgba(0,0,0,0.35);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.certificate:hover {
    transform: translateY(-6px);
    box-shadow: 0px 6px 24px rgba(0,0,0,0.45);
}

/* Certificate image */
.certificate img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Info box */
.certificate .info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Long ID text */
.certificate .info .id {
    overflow-wrap: break-word;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* PDF link */
.certificate .info .link {
    margin-top: 0.6rem;
    font-size: 1.2rem;
    font-weight: bold;

    color: #7CFC00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.certificate .info .link:hover {
    color: #adff2f;
}

/* Mobile */
@media (max-width: 480px) {
    .certificate {
        width: 90%;
    }

    .certificate img {
        width: 100%;
    }
}
