/* ============ Certificate cards: clickable state ============ */
.cert-card-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.cert-card-clickable:hover,
.cert-card-clickable:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  border-color: var(--accent, #00e0a4);
}

.cert-card-clickable::after {
  content: "View certificate →";
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.65;
}

/* MCA card stays static, no pointer / hover lift / affordance text */
.cert-card-mca {
  cursor: default;
}

/* ============ PDF Viewer Modal ============ */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cert-modal.is-open {
  display: flex;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 10, 0.75);
  backdrop-filter: blur(4px);
}

.cert-modal-frame {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  height: min(85vh, 1100px);
  background: #0f1417;
  border: 1px solid rgba(0, 224, 164, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cert-modal-pop 0.18s ease-out;
}

@keyframes cert-modal-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #e8f2ef;
}

.cert-modal-close {
  background: none;
  border: none;
  color: #e8f2ef;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.cert-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cert-modal-body {
  flex: 1;
  background: #1a1f22;
}

.cert-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cert-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cert-modal-frame {
    width: 96vw;
    height: 90vh;
    border-radius: 10px;
  }
}
