/* =========================================
   RESET
========================================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{

  --green:#2E7D5B;
  --green-light:#4CAF7A;

  --gold:#D4AF37;

  --bg:#F5F8F7;
  --card:#FFFFFF;

  --text:#1F2A2E;
  --muted:#6B7280;

  --border:#E5E7EB;

}

body{

  font-family:'Inter',sans-serif;

  background:var(--bg);

  color:var(--text);

}

/* =========================================
   PAGE
========================================= */

.certificates-page{

  max-width:1400px;

  margin:auto;

  padding:40px;

}

/* =========================================
   HEADER
========================================= */

.certificates-header{

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:40px;

}

.eyebrow{

  color:var(--green);

  font-size:13px;

  font-weight:800;

  text-transform:uppercase;

  letter-spacing:1px;

  margin-bottom:8px;

}

.certificates-header h1{

  font-size:52px;

  margin-bottom:8px;

}

.certificates-header span{

  color:var(--muted);

}

.back-btn{

  text-decoration:none;

  background:var(--green);

  color:#fff;

  padding:14px 22px;

  border-radius:14px;

  font-weight:700;

}

/* =========================================
   STATS
========================================= */

.certificate-stats{

  display:grid;

  grid-template-columns:repeat(4,1fr);

  gap:20px;

  margin-bottom:40px;

}

.stat-card{

  background:#fff;

  border-radius:24px;

  padding:28px;

  text-align:center;

  border:1px solid var(--border);

  box-shadow:
  0 10px 30px rgba(0,0,0,.05);

}

.stat-card h2{

  font-size:42px;

  color:var(--green);

  margin-bottom:10px;

}

.stat-card p{

  color:var(--muted);

}

/* =========================================
   GRID
========================================= */

.certificates-grid{

  display:grid;

  grid-template-columns:
  repeat(2,1fr);

  gap:30px;

}

/* =========================================
   CARD
========================================= */

.certificate-card{

  background:#fff;

  border-radius:28px;

  overflow:hidden;

  border:1px solid var(--border);

  box-shadow:
  0 15px 40px rgba(0,0,0,.05);

  transition:.3s;

}

.certificate-card:hover{

  transform:
  translateY(-6px);

}

/* =========================================
   CERTIFICATE PREVIEW
========================================= */

.certificate-preview{

  height:240px;

  background:
  linear-gradient(
    135deg,
    #ffffff,
    #f5f7f9
  );

  display:flex;

  align-items:center;

  justify-content:center;

  padding:20px;

  border-bottom:1px solid var(--border);

}

.certificate-inner{

  width:100%;

  height:100%;

  border:3px solid var(--gold);

  border-radius:20px;

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  text-align:center;

}

.certificate-inner span{

  color:var(--gold);

  font-weight:700;

  margin-bottom:10px;

}

.certificate-inner h2{

  font-size:28px;

  margin-bottom:12px;

}

.certificate-inner p{

  color:var(--muted);

  margin-bottom:8px;

}

.certificate-inner h3{

  color:var(--green);

  margin-bottom:10px;

}

.certificate-inner small{

  color:var(--muted);

}

/* =========================================
   LOCKED PREVIEW
========================================= */

.locked-preview{

  background:
  linear-gradient(
    135deg,
    #f4f4f4,
    #e5e7eb
  );

  font-size:70px;

  color:#9CA3AF;

}

/* =========================================
   CONTENT
========================================= */

.certificate-content{

  padding:25px;

}

.certificate-content h3{

  font-size:26px;

  margin-bottom:10px;

}

.certificate-content p{

  color:var(--muted);

  line-height:1.8;

  margin-bottom:20px;

}

/* =========================================
   STATUS
========================================= */

.status{

  display:inline-block;

  padding:8px 14px;

  border-radius:999px;

  font-size:13px;

  font-weight:700;

  margin-bottom:16px;

}

.earned-status{

  background:#EAF6EF;

  color:var(--green);

}

.locked-status{

  background:#FFF3DD;

  color:#D97706;

}

/* =========================================
   PROGRESS
========================================= */

.progress-track{

  height:10px;

  background:#E5E7EB;

  border-radius:999px;

  overflow:hidden;

  margin-bottom:14px;

}

.progress-track span{

  display:block;

  height:100%;

  background:var(--green);

  border-radius:999px;

}

/* =========================================
   BUTTONS
========================================= */

.certificate-actions{

  display:flex;

  gap:12px;

}

.download-btn{

  flex:1;

  border:none;

  height:52px;

  border-radius:14px;

  background:var(--green);

  color:#fff;

  font-weight:700;

  cursor:pointer;

}

.share-btn{

  flex:1;

  border:none;

  height:52px;

  border-radius:14px;

  background:#EEF2F1;

  color:var(--text);

  font-weight:700;

  cursor:pointer;

}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){

  .certificate-stats{

    grid-template-columns:
    repeat(2,1fr);

  }

  .certificates-grid{

    grid-template-columns:1fr;

  }

}

@media(max-width:768px){

  .certificates-page{

    padding:20px;

  }

  .certificates-header{

    flex-direction:column;

    align-items:flex-start;

    gap:20px;

  }

  .certificates-header h1{

    font-size:40px;

  }

  .certificate-stats{

    grid-template-columns:1fr;

  }

  .certificate-actions{

    flex-direction:column;

  }

}