.certificate {
  margin-top: 8rem;
  position: relative;
}

.certificate-link {
  margin-top: 2rem;
  margin-bottom: 10rem;
  
}

.certificate-link a{
color: aqua;
}
/* Imagen con overlay */
.card-img-top {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin: 1rem;
  align-self: flex-start;
}

/* Estilo general de las cards */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 14px;
  height: 420px;
  margin-bottom: 2rem;
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #fff;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
}

/* Encabezado de cada card */
.card-title {
  background: #222;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Texto de la card */
.card-text {
  background: #454444;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}

/* Responsive para pantallas menores a 900px */
@media (max-width: 900px) {
  /* Contenedor de la sección */
  .certificate {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 10rem;
    padding: 0 1rem;
  }

  /* Cards */
  .card {
    height: auto;
    width: 90%;
    margin: 1rem 0;
  }

  /* Imagen con overlay */
  .card-img-container {
    height: 120px;
    width: 100%;
  }

  .card-img-top {
    max-height: 100%;
    max-width: 100%;
  }

  /* Texto de la card */
  .card-text {
    height: auto;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Encabezado */
  .card-title {
    font-size: 0.95rem;
    padding: 0.5rem;
    text-align: center;
  }
}
