/* Certificate Centre page components.
   Shared typography, navigation, buttons, forms and responsive shell live in learner-portal.css. */

.top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:8px 16px;
  background:var(--lp-navy);
  color:rgba(255,255,255,.86);
  font-size:.82rem;
  font-weight:750;
  text-align:center;
}
.top a{
  color:#ffe0a3;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
}

.cert-shell{
  width:min(var(--lp-max),calc(100% - 40px));
  margin-inline:auto;
}

.certificate-hero-upgraded{
  position:relative;
  overflow:hidden;
  padding:64px 0 56px;
  background:
    radial-gradient(circle at 85% 25%,rgba(244,162,28,.22),transparent 28%),
    radial-gradient(circle at 10% 95%,rgba(91,175,255,.16),transparent 30%),
    linear-gradient(135deg,var(--lp-navy),var(--lp-blue));
  color:#fff;
}
.certificate-hero-upgraded::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.45),transparent 94%);
}
.cert-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:28px;
  align-items:center;
}
.cert-kicker{
  display:inline-flex;
  margin-bottom:16px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.certificate-hero-upgraded h1{
  max-width:800px;
  margin:0;
  color:#fff;
  font-size:clamp(2.3rem,5vw,4.4rem);
  line-height:1;
}
.certificate-hero-upgraded p{
  max-width:760px;
  color:rgba(255,255,255,.92)!important;
  font-size:1.08rem;
  line-height:1.72;
}
.hero-trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}
.hero-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.11);
  font-size:.82rem;
  font-weight:800;
}
.verification-card{
  padding:24px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:26px;
  background:rgba(255,255,255,.1);
  box-shadow:0 24px 60px rgba(0,0,0,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.verification-card h3{margin:0 0 8px;color:#fff}
.verification-card p{margin:0;color:rgba(255,255,255,.9)!important;font-size:.94rem}

.certificate-main{padding:38px 0 70px}
.cert-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:24px;
  align-items:start;
}
.cert-card,
.side-panel-upgraded,
.how-card{
  border:1px solid var(--lp-line);
  background:#fff;
  box-shadow:var(--lp-shadow);
}
.cert-card{
  padding:24px;
  border-radius:24px;
}
.cert-card h2,.cert-card h3{margin-top:0}
.search-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.search-tab.active{
  background:var(--lp-navy)!important;
  color:#fff!important;
}
.cert-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}

.status-box{
  display:none;
  margin-top:20px;
  padding:18px;
  border:1px solid var(--lp-line);
  border-radius:18px;
}
.status-box.loading{display:block;background:var(--lp-sky);color:#16416c}
.status-box.success{display:block;background:var(--lp-green-soft);border-color:#bde8db;color:#075e49}
.status-box.error{display:block;background:var(--lp-red-soft);border-color:#fecaca;color:#7f1d1d}
.status-box.warning{display:block;background:var(--lp-gold-soft);border-color:#f8d79d;color:#684000}

.result-card{
  display:none;
  overflow:hidden;
  margin-top:22px;
  border:1px solid var(--lp-line);
  border-radius:22px;
}
.result-card.show{display:block}
.result-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px;
  background:linear-gradient(135deg,var(--lp-navy),var(--lp-blue));
  color:#fff;
}
.result-top h3{margin:0 0 5px;color:#fff}
.result-body{padding:20px;background:#fff}
.result-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.meta-item{
  padding:13px;
  border:1px solid var(--lp-line);
  border-radius:15px;
}
.meta-item small{
  display:block;
  margin-bottom:4px;
  color:var(--lp-muted);
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.meta-item strong{overflow-wrap:anywhere}
.provider-block{
  margin-top:16px;
  padding:14px;
  border:1px solid var(--lp-line);
  border-radius:16px;
  background:var(--lp-surface-soft);
}
.provider-block strong{display:block}
.external-note{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #f8d79d;
  border-radius:14px;
  background:var(--lp-gold-soft);
  color:#684000;
  line-height:1.55;
}

.side-stack{display:grid;gap:18px}
.side-panel-upgraded{
  padding:20px;
  border-radius:22px;
}
.side-panel-upgraded h3{margin-top:0}
.check-list{list-style:none;padding:0;margin:0}
.check-list li{
  position:relative;
  padding:9px 0 9px 28px;
  color:#39475b;
  line-height:1.45;
}
.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:9px;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--lp-green-soft);
  color:var(--lp-green);
  font-size:.72rem;
  font-weight:900;
}
.provider-list{display:flex;flex-wrap:wrap;gap:8px}
.portal-box{
  border-color:#f7dfae;
  background:linear-gradient(135deg,#fff8e8,#fff);
}
.portal-box p{color:#66522d!important}

.how-section{margin-top:26px}
.how-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.how-card{padding:18px;border-radius:18px}
.step-num{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
  border-radius:50%;
  background:var(--lp-navy);
  color:#fff;
  font-weight:900;
}
.how-card h4{margin:0 0 6px}
.how-card p{margin:0;color:var(--lp-muted)!important;font-size:.9rem}

.float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:999px;
  background:var(--lp-green);
  color:#fff;
  font-size:.88rem;
  font-weight:900;
  box-shadow:var(--lp-shadow-lg);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(3,minmax(0,1fr));
  gap:24px;
}
.footer-grid img{width:46px;height:46px;object-fit:contain}
.footer-grid h3,.footer-grid h4{margin:8px 0;color:#fff}
.footer-grid p{max-width:420px;color:rgba(255,255,255,.68)!important}
.footer-grid a{display:block;margin:7px 0;color:rgba(255,255,255,.78)}
.footer-grid a:hover{color:#fff}
.certificate-footer-note{margin-top:30px;color:rgba(255,255,255,.55)!important}

@media(max-width:1000px){
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .cert-hero-grid,.cert-grid{grid-template-columns:1fr}
  .verification-card{max-width:none}
  .how-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .top{align-items:flex-start;text-align:left}
  .cert-shell{width:calc(100% - 28px)}
  .certificate-hero-upgraded{padding:46px 0 42px}
  .cert-card{padding:18px}
  .result-top{flex-direction:column}
  .footer-grid{grid-template-columns:1fr}
  .float{right:14px;bottom:14px}
}
@media(max-width:620px){
  .result-meta{grid-template-columns:1fr}
}
