/* ══════════════════════════════════════════════════════════════════
   CERTIFICATIONS PAGE — Aurora Glassmorphism Edition
══════════════════════════════════════════════════════════════════ */

/* Stats banner */
.cert-stats-banner {
  background: rgba(4, 10, 26, 0.60);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 38px 0;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.cert-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.cstat { text-align: center; }
.cstat-num {
  display: block; font-size: 2.6rem; font-weight: 900;
  font-family: var(--mono); line-height: 1; margin-bottom: 4px;
  background: linear-gradient(135deg, #38bdf8, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}
.cstat-label { font-size: 0.78rem; color: var(--clr-text2); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.cstat-div { width: 1px; height: 52px; background: rgba(255, 255, 255, 0.10); }

/* Wide row (for Oracle single card) */
.cert-cards-row { margin-bottom: 0; }
.cert-cards-row .cert-img-card { max-width: 680px; }

/* Grid layout */
.cert-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

/* ── Cert Image Card ── */
.cert-img-card {
  background: rgba(4, 10, 26, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: var(--t);
  display: flex; flex-direction: column;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.cert-img-card:hover {
  border-color: rgba(56, 189, 248, 0.38);
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7), 0 0 32px rgba(56, 189, 248, 0.14);
}

/* Preview image */
.cic-preview {
  position: relative; height: 210px; overflow: hidden;
  background: #0d121c;
}
.cic-preview img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.5s var(--ease);
}
.cert-img-card:hover .cic-preview img { transform: scale(1.05); }
.cic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(4, 8, 18, 0.85) 100%);
}

/* Base Badge */
.cic-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.cic-badge.oracle { background: linear-gradient(135deg, #b45309, #f59e0b); border: 1px solid rgba(251, 191, 36, 0.4); }
.cic-badge.cisco  { background: linear-gradient(135deg, #059669, #10b981); border: 1px solid rgba(52, 211, 153, 0.4); }
.cic-badge.python { background: linear-gradient(135deg, #059669, #10b981); border: 1px solid rgba(52, 211, 153, 0.4); }
.cic-badge.gold   { background: linear-gradient(135deg, #d97706, #fbbf24); border: 1px solid rgba(251, 191, 36, 0.5); }
.cic-badge.green  { background: linear-gradient(135deg, #0284c7, #38bdf8); border: 1px solid rgba(56, 189, 248, 0.4); }
.cic-badge.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); border: 1px solid rgba(168, 85, 247, 0.4); }

/* Zoom hint */
.cic-preview::after {
  content: 'Expand view';
  position: absolute; bottom: 12px; right: 12px;
  font-size: 0.65rem; color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.65); padding: 5px 12px;
  border-radius: var(--r-full); backdrop-filter: blur(8px);
  opacity: 0; transition: var(--t);
  font-family: var(--mono);
}
.cert-img-card:hover .cic-preview::after { opacity: 1; }

/* Body */
.cic-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.cic-issuer {
  font-family: var(--mono); font-size: 0.74rem; color: var(--clr-amber);
  font-weight: 700;
}
.cic-body h3 { font-size: 1.10rem; font-weight: 800; color: #ffffff; line-height: 1.35; letter-spacing: -0.01em; }
.cic-body p { font-size: 0.88rem; color: var(--clr-text2); line-height: 1.7; flex: 1; }
.cic-topics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.cic-topics span {
  font-family: var(--mono); font-size: 0.70rem; color: var(--clr-text2);
  padding: 4px 12px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-full);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4, 6, 11, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.92);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 1.3rem; color: #ffffff;
  cursor: pointer; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 1024px) { .cert-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cert-cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .cert-stats { gap: 20px; }
  .cstat-div { display: none; }
  .cstat-num { font-size: 2.1rem; }
  .cic-preview { height: 185px; }
}
@media (max-width: 480px) {
  .cic-body { padding: 16px 14px 20px; }
  .cic-body h3 { font-size: 1.02rem; }
  .cic-body p { font-size: 0.85rem; }
  .cic-badge { font-size: 0.64rem; padding: 4px 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}
