/* =========================
   CERTIFICATE PAGE
========================= */
.certificate-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.certificate-bg {
  position: absolute;
  inset: 0;
  background: url("../images/home1.jpeg") center/cover no-repeat;
  transform: scale(1.03);
}

.certificate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(7, 21, 45, 0.28),
    rgba(7, 21, 45, 0.42)
  );
}

.certificate-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.certificate-content h1 {
  color: #ffffff;
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 58px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
  max-width: 920px;
  margin: 0 auto;
}

.certificate-card {
  display: flex;
}

.certificate-panel {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 20px;
  padding: 28px 24px 26px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  text-align: center;
}

.certificate-panel h3 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 12px;
}

.certificate-desc {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.96;
  margin-bottom: 20px;
}

.certificate-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.certificate-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
  border: 4px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.certificate-btn {
  display: inline-block;
  background: #f28c28;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  transition: 0.2s;
}

.certificate-btn:hover {
  background: #ff9f43;
  transform: translateY(-2px);
}

/* responsive */
@media (max-width: 900px) {
  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 430px;
  }

  .certificate-content h1 {
    font-size: 42px;
    margin-bottom: 34px;
  }

  .certificate-panel {
    padding: 22px 18px 20px;
    border-radius: 16px;
  }

  .certificate-panel h3 {
    font-size: 22px;
  }

  .certificate-image img {
    max-height: 180px;
  }

  .certificate-btn {
    width: 100%;
    max-width: 240px;
  }
}