/* ============================================
   CERTIFICATES SECTION - Sem overlay, apenas botão
   ============================================ */

.certificates-section {
    position: relative;
    padding: 0px 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FB 100%);
}

/* Section Header */
.certificates-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.certificates-section .section-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 16px;
}

.certificates-section .section-header h2 i {
    color: var(--yellow);
    margin-right: 12px;
}

.certificates-section .section-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper */
.certificates-swiper {
    padding: 20px 10px 50px 10px;
    overflow: hidden;
}

.certificates-swiper .swiper-slide {
    height: auto;
}

/* Card do Certificado - SEM OVERLAY */
.certificate-card {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(81, 68, 166, 0.1);
}

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

/* Imagem do certificado - SEM OVERLAY */
.certificate-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #F0F0F5;
}

.certificate-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #fff;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.03);
}

/* REMOVIDO: overlay e zoom-icon completamente */

/* Informações do certificado */
.certificate-info {
    padding: 20px 20px 24px;
    text-align: center;
    flex: 1;
}

.certificate-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Botão Ver Certificado */
.btn-ver-certificado {
    background: transparent;
    border: 2px solid var(--purple);
    border-radius: 40px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--purple);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-ver-certificado i {
    font-size: 14px;
}

.btn-ver-certificado:hover {
    background: var(--purple);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Navegação do Swiper */
.certificates-swiper .swiper-button-prev,
.certificates-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.certificates-swiper .swiper-button-prev:after,
.certificates-swiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.certificates-swiper .swiper-button-prev:hover,
.certificates-swiper .swiper-button-next:hover {
    background: var(--yellow);
    color: var(--purple);
}

.certificates-swiper .swiper-pagination-bullet {
    background: var(--purple);
    opacity: 0.4;
}

.certificates-swiper .swiper-pagination-bullet-active {
    background: var(--yellow);
    opacity: 1;
}

/* ============================================
   MODAL / LIGHTBOX
   ============================================ */

.certificate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.certificate-modal.show {
    display: flex;
}

.certificate-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
}

.certificate-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.certificate-modal-close:hover {
    color: var(--yellow);
}

.certificate-modal-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.certificate-modal-caption {
    text-align: center;
    margin-top: 16px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet */
@media (max-width: 1023px) and (min-width: 769px) {
    .certificates-section {
        padding: 70px 0;
    }
    
    .certificates-section .section-header h2 {
        font-size: 32px;
    }
    
    .certificate-info {
        padding: 16px 16px 20px;
    }
    
    .certificate-title {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .certificates-section {
        padding: 0px 0;
    }
    
    .certificates-section .section-header h2 {
        font-size: 28px;
    }
    
    .certificates-section .section-header p {
        font-size: 15px;
        padding: 0 16px;
    }
    
    .certificate-info {
        padding: 14px 14px 18px;
    }
    
    .certificate-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .btn-ver-certificado {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Esconde setas no mobile */
    .certificates-swiper .swiper-button-prev,
    .certificates-swiper .swiper-button-next {
        display: none !important;
    }
    
    .certificates-swiper {
        padding: 10px 5px 40px 5px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .certificate-title {
        font-size: 14px;
    }
}