/* Estilo Premium 3D Light para Seção de Certificações (Efeito Reveal Sutil) */
.certifications-premium-section {
  padding: 100px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.certifications-premium-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(226, 232, 240, 0.5) 0%, transparent 80%);
  pointer-events: none;
}

.certifications-premium-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header .section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.section-header .section-subtitle {
  color: #64748b;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.certifications-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card Unibody - Subtle Reveal */
.cert-card {
  box-sizing: border-box;
  height: 310px; /* Ajuste sutil para garantir que traduções muito longas (DE/FR) caibam perfeitamente */
  background: #ffffff;
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 35px 20px 20px 20px;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 8px 10px -6px rgba(0, 0, 0, 0.05),
    inset 0 -4px 0 rgba(203, 213, 225, 0.2);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px -10px rgba(6, 182, 212, 0.15),
    inset 0 -4px 0 #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}

/* Container da Logo */
.cert-logo-wrapper {
  height: 120px; /* Mais espaço para as imagens brilharem */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px; /* Mais respiro entre imagem e texto base */
  transition: transform 0.4s ease-out;
  z-index: 2;
}

.cert-logo-img {
  max-width: 190px; /* Imagens mais proeminentes */
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
  transition: transform 0.4s ease-out;
}

.cert-card:hover .cert-logo-wrapper {
  transform: translateY(-20px);
}

.cert-card:hover .cert-logo-img {
  transform: scale(1.05); /* Escala sutil em vez de agressiva */
}

/* Textos e Conteúdo (Fade-in sutil) */
.cert-content-wrapper {
  text-align: center;
  position: absolute;
  top: 180px; /* Começa depois da logo expandida */
  bottom: 15px; /* Preenche até o fim do card para impedir corte de texto livre */
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-desc {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.cert-card:hover .cert-desc {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Detalhes Expandidos (Invisíveis no repouso) */
.cert-details {
  position: absolute;
  top: 0; /* Começa examente no topo da caixa de texto */
  left: 0;
  width: 100%;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.05s;
}

.cert-details p {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  word-break: break-word;
  hyphens: auto;
}

.cert-card:hover .cert-details {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade Mobile */
@media (max-width: 900px) {
  .certifications-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .certifications-premium-grid {
    grid-template-columns: 1fr;
  }
  .cert-card {
    height: 290px; /* Ainda menor em celular */
    padding: 30px 15px 15px 15px;
  }
  .cert-details p {
    font-size: 0.8rem;
  }
}
