.certificates-section {
  width: 100%;
  background: linear-gradient(to right, #1e293b, #2563eb, #1e293b);
  padding: 60px 0;
  margin-top: 100px;
}

.certificates-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.certificates-box {
  grid-column: 1 / 2;
  background-color: #1e293b;
  color: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.certificates-box h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.certificates-box p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #cbd5e1; 
  line-height: 1.5;
}

.certificates-wrapper {
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.certificate-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0; /* animasi: start */
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.certificate-card.show {
  opacity: 1;
  transform: translateX(0);
}

.certificate-image {
  position: relative;
  color: white;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  overflow: hidden;
  opacity: 0; /* animasi: start */
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.certificate-image.show {
  opacity: 1;
  transform: translateX(0);
}

.certificate-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  z-index: 1;
}

/* efek zoom-in */
.certificate-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.5s ease;
}

.certificate-image:hover::after {
  transform: scale(1.2);
}

.certificate-content {
  position: relative;
  z-index: 2;
}

.certificate-content h3 {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  max-width: 80%;
}

/* mode mobile */
@media (max-width: 992px) {
  .certificates-container {
    grid-template-columns: 1fr;
  }

  .certificates-box {
    grid-column: 1 / 2;
    background: transparent; 
  }

  .certificates-wrapper {
    grid-column: 1 / 2;
    grid-template-columns: 1fr;
  }

  .certificate-card {
    background: transparent; 
    box-shadow: none;
  }

  /* matikan efek hover di mobile */
  .certificate-image:hover::after {
    transform: none;
  }
}
