.cert-section {
  padding: 80px 0;
  background: bg-#959595;
  text-align: center;
}

.cert-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ---- CENTERED SLIDER LAYOUT ---- */
.cert-slider-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 40px auto 0;
}

/* Make slides “floating cards” */
/* TRANSPARENT cards — like your reference picture */
.cert-card {
  background: transparent;      /* keeps your light grey background visible */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;          /* <— CRITICAL fix */
  justify-content: flex-start;  /* <— keeps content neat at top */
  min-height: 330px;            /* forces equal height */
  padding: 15px 10px 20px;
}

/* Slight hover like Picture 2 */
.cert-card:hover {
  transform: translateY(-5px);
}

/* Logos nicely sized */
.cert-card img {
  max-width: 140px;
  height: auto;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;   /* <— keeps logos perfectly centered */
  object-fit: contain;
}


/* Title styling */
.cert-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #0a0a0a;
  text-align: center;
}

.cert-card p {
  font-size: 14.5px;
  color: #333;
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto 18px;
  text-align: center;
  flex-grow: 1;          /* pushes all buttons to same line */
}

.cert-logo-box {
  width: 180px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}


/* Red pill button */
.view-btn {
  background: #D62828;
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

/* Hover color like your brand */
.view-btn:hover {
  background: #00723F;
}

/* ---- FLOATING SIDE ARROWS (LIKE PICTURE 2) ---- */
.cert-prev-btn,
.cert-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  font-size: 20px;
  z-index: 10;
}

.cert-prev-btn { left: -20px; }
.cert-next-btn { right: -20px; }

/* ---- MODAL (unchanged but clean) ---- */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal-content {
  width: 90%;
  height: 90%;
  background: none;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

#closeModal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

#pdfFrame {
  width: 100%;
  height: 100%;
  border: none;
}

.hidden {
  display: none;
}


/* ======== FIX PDF MODAL ======== */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* dark backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;   /* <-- THIS IS THE KEY FIX */
}

.cert-modal.hidden {
  display: none;
}

.cert-modal-content {
  position: relative;
  width: 85vw;
  height: 85vh;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

/* Close button */
#closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: red;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 100000; /* above iframe */
}

/* Make PDF fill the modal */
#pdfFrame {
  width: 100%;
  height: 100%;
  border: none;
}

