* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans, 'Poppins', sans-serif);
}

.cert-page {
  background: #0a0a0a;
  min-height: 100vh;
  color: #fff;
  padding: 0 0 60px;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(15, 15, 15, 0.9);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.6s ease forwards;
  opacity: 0;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cert-logo {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}

.cert-back {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.2s;
}

.cert-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.cert-hero {
  text-align: center;
  padding: 60px 20px 40px;
  animation: fadeUp 0.8s 0.2s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cert-hero h1 {
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.cert-hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  animation: fadeUp 0.8s 0.4s ease forwards;
  opacity: 0;
}

.cert-card {
  background: #111;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px 20px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  background: #161616;
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cert-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.cert-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.cert-source {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-arrow {
  font-size: 12px;
  margin-left: auto;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.cert-card:hover .cert-arrow {
  opacity: 0.8;
  transform: translate(2px, -2px);
}

.c-web .cert-icon {
  background: rgba(55, 138, 221, 0.15);
  color: #378add;
}

.c-web .cert-label {
  background: rgba(55, 138, 221, 0.1);
  color: #378add;
}

.c-ml .cert-icon {
  background: rgba(29, 158, 117, 0.15);
  color: #1d9e75;
}

.c-ml .cert-label {
  background: rgba(29, 158, 117, 0.1);
  color: #1d9e75;
}

.c-ai .cert-icon {
  background: rgba(127, 119, 221, 0.15);
  color: #7f77dd;
}

.c-ai .cert-label {
  background: rgba(127, 119, 221, 0.1);
  color: #7f77dd;
}

@media (max-width: 520px) {
  .cert-header {
    padding: 16px 20px;
  }
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
}
