/* ══════════════════════════════════════
   CERTIFICATION PAGE — premium wall
   Prefix: cer-  (mirrors blg-/plc- conventions)
══════════════════════════════════════ */

.cer{
  --cer-ink:#0f1420;
  --cer-sub:#5b6472;
  --cer-line:#e8eaef;
  --cer-bg:#f7f8fb;
  --cer-card:#ffffff;
  --cer-brand:#1f9d6f;
  --cer-brand-2:#2952e3;
  --cer-gold:#e8a33d;
  --cer-radius:18px;
  --cer-shadow:0 10px 30px -12px rgba(15,20,32,.12);
  --cer-shadow-hover:0 20px 45px -14px rgba(15,20,32,.22);
  font-family:inherit;
  color:var(--cer-ink);
  background:var(--cer-bg);
}

.cer *{ box-sizing:border-box; }

.cer-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* Scroll progress bar */
.cer-bar{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg,var(--cer-brand),var(--cer-brand-2));
  z-index:999;
  transition:width .1s linear;
}

/* Scroll reveal */
.cer-up{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .6s ease, transform .6s ease;
}
.cer-up.cer-in{
  opacity:1;
  transform:translateY(0);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.cer-hero{
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(31,157,111,.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(41,82,227,.10), transparent 55%),
    linear-gradient(180deg,#ffffff, var(--cer-bg));
  padding:76px 0 40px;
  border-bottom:1px solid var(--cer-line);
}

.cer-hero-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}

.cer-hero-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--cer-brand);
  background:rgba(31,157,111,.08);
  border:1px solid rgba(31,157,111,.18);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:20px;
}
.cer-hero-tag span{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--cer-brand);
  box-shadow:0 0 0 4px rgba(31,157,111,.18);
}

.cer-hero h1{
  font-size:clamp(32px,4.4vw,52px);
  line-height:1.08;
  font-weight:800;
  margin:0 0 16px;
  letter-spacing:-.02em;
}
.cer-hero h1 em{
  font-style:normal;
  background:linear-gradient(90deg,var(--cer-brand),var(--cer-brand-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.cer-hero p{
  font-size:17px;
  color:var(--cer-sub);
  max-width:520px;
  line-height:1.6;
  margin:0;
}

.cer-hero-meta{
  display:flex;
  gap:28px;
}
.cer-hmeta-item{
  text-align:center;
  min-width:88px;
  padding:16px 10px;
  border-radius:14px;
  background:var(--cer-card);
  border:1px solid var(--cer-line);
  box-shadow:var(--cer-shadow);
}
.cer-hmeta-val{
  font-size:24px;
  font-weight:800;
  background:linear-gradient(90deg,var(--cer-brand),var(--cer-brand-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.cer-hmeta-lbl{
  font-size:12px;
  color:var(--cer-sub);
  margin-top:4px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* ══════════════════════════════════════
   STICKY FILTER BAR
══════════════════════════════════════ */
.cer-filter-bar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,248,251,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--cer-line);
  padding:14px 0;
}
.cer-filter-inner{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scrollbar-width:none;
}
.cer-filter-inner::-webkit-scrollbar{ display:none; }

.cer-pill{
  flex:0 0 auto;
  padding:9px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  color:var(--cer-sub);
  background:var(--cer-card);
  border:1px solid var(--cer-line);
  text-decoration:none;
  white-space:nowrap;
  transition:all .2s ease;
}
.cer-pill:hover{
  border-color:var(--cer-brand);
  color:var(--cer-brand);
}
.cer-pill.active{
  background:linear-gradient(90deg,var(--cer-brand),var(--cer-brand-2));
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 18px -8px rgba(31,157,111,.5);
}

/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.cer-grid-section{
  padding:44px 0 90px;
}
.cer-grid-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:24px;
  flex-wrap:wrap;
  gap:8px;
}
.cer-grid-head h3{
  font-size:22px;
  font-weight:800;
  margin:0;
}
.cer-result-count{
  font-size:14px;
  color:var(--cer-sub);
}

.cer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:26px;
}

.cer-card{
  background:var(--cer-card);
  border:1px solid var(--cer-line);
  border-radius:var(--cer-radius);
  overflow:hidden;
  box-shadow:var(--cer-shadow);
  transition:transform .25s ease, box-shadow .25s ease;
}
.cer-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--cer-shadow-hover);
}

.cer-card-img{
  position:relative;
  aspect-ratio:4/3;
  background:linear-gradient(135deg,#eaf7f1,#eef1fb);
  overflow:hidden;
}
.cer-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.cer-card:hover .cer-card-img img{
  transform:scale(1.07);
}
.cer-card-emoji{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:56px;
}

.cer-card-grade{
  position:absolute;
  top:12px;
  right:12px;
  background:linear-gradient(90deg,var(--cer-gold),#f0be6e);
  color:#3a2705;
  font-size:12.5px;
  font-weight:800;
  padding:6px 12px;
  border-radius:999px;
  box-shadow:0 6px 14px -6px rgba(232,163,61,.6);
}

.cer-card-body{
  padding:18px 20px 20px;
}
.cer-card-course-tag{
  display:inline-block;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--cer-brand);
  background:rgba(31,157,111,.08);
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:10px;
}
.cer-card-body h3{
  font-size:18px;
  font-weight:800;
  margin:0 0 4px;
  line-height:1.3;
}
.cer-card-certno{
  font-size:13px;
  color:var(--cer-sub);
  margin:0 0 14px;
}

.cer-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  border-top:1px solid var(--cer-line);
  gap:8px;
}
.cer-card-date{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  color:var(--cer-sub);
}
.cer-card-date svg{
  width:14px; height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}
.cer-card-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12.5px;
  font-weight:700;
  color:var(--cer-brand);
}
.cer-card-badge svg{
  width:14px; height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
}

/* Empty state */
.cer-empty{
  grid-column:1/-1;
  text-align:center;
  padding:70px 20px;
  color:var(--cer-sub);
}
.cer-empty svg{
  width:44px; height:44px;
  stroke:var(--cer-sub);
  fill:none;
  stroke-width:1.6;
  margin-bottom:14px;
}
.cer-empty h4{
  font-size:18px;
  color:var(--cer-ink);
  margin:0 0 6px;
}
.cer-empty p{ margin:0; font-size:14px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width:640px){
  .cer-hero{ padding:56px 0 30px; }
  .cer-hero-inner{ flex-direction:column; align-items:flex-start; }
  .cer-hero-meta{ width:100%; justify-content:space-between; gap:12px; }
  .cer-hmeta-item{ flex:1; min-width:0; }
  .cer-grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:16px; }
}