/* =========================
   GRID DE CERTIFICADOS
========================= */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 por linha */
    gap: 20px;
    margin-bottom: 40px;
    padding: 10px;
}

/* =========================
   CARD DO CERTIFICADO
========================= */

.certificate-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* IMAGEM */
.certificate-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: zoom-in;
}

/* =========================
   MODAL (IMAGEM EXPANDIDA)
========================= */

.cert-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cert-modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

/* BOTÃO FECHAR */
.cert-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.cert-close:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

/* =========================
   ANIMAÇÕES
========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.75);
    }

    to {
        transform: scale(1);
    }
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1024px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}









































