/* ---------- QUALIFICATIONS PAGE ---------- */

.section {
  background: rgba(255, 255, 255, 0.85);
  padding: 35px;
  border-radius: 26px;
  margin: 45px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.section h2 {
  margin-top: 0;
  font-size: 30px;
  font-weight: 900;
}

.section p {
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- CERTIFICATES GRID ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

/* ---------- CERTIFICATE CARD ---------- */
.cert-card {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.9);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  color: #222;
  overflow: hidden;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

/* ---------- PDF PREVIEW ---------- */
.cert-preview {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 10px;
  background: #f8f8f8;
  margin-bottom: 10px;
  pointer-events: none;
  display: block;
}

/* ---------- IMAGE PREVIEW IF NEEDED ---------- */
.cert-preview {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 10px;
  background: #f8f8f8;
  margin-bottom: 10px;
  pointer-events: none;
  overflow: hidden; /* helps hide scrollbars */
}

/* ---------- TITLE ---------- */
.cert-card p {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  .section {
    padding: 25px;
  }

  .section h2 {
    font-size: 26px;
  }

  .cert-preview,
  .cert-preview-img {
    height: 180px;
  }
}