
.certificates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.certificate-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: transform 0.3s ease-in-out;
}

.certificate-img:hover {
    transform: scale(1.05);
}

.download-btn {
    display: block;
    margin-top: 15px;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .certificates {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

   
}