.bd-cert-section{
  padding: 90px 0 70px;
}

.bd-cert-container{
  width: min(1200px, 92%);
  margin: 0 auto;
  text-align: center;
}

.bd-cert-title{
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.15;
}

.bd-cert-subtitle{
  margin: 0 auto 16px;
  max-width: 760px;
  opacity: .95;
  line-height: 1.5;
}

.bd-cert-badges{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 34px;
}

.bd-cert-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 14px;
}

.bd-cert-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.bd-cert-card{
  width: calc((100% - 44px) / 3);
  max-width: calc((100% - 44px) / 3);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;
}

@media (max-width: 992px){
  .bd-cert-card{
    width: calc((100% - 22px) / 2);
    max-width: calc((100% - 22px) / 2);
  }
}

@media (max-width: 600px){
  .bd-cert-card{
    width: 100%;
    max-width: 100%;
  }
}

/* ✅ Image viewport (certificate visible area) */
.bd-cert-imgwrap{
  background: rgba(255,255,255,.06);
  padding: 18px;
}

.bd-cert-img-viewport{
  height: 170px;             /* ✅ card এর মধ্যে দেখাবে */
  overflow: hidden;          /* ✅ বাইরে যাবে না */
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  position: relative;
}

.bd-cert-img-viewport img{
  width: 100%;
  height: auto;              /* ✅ full certificate height maintain */
  display: block;
  border-radius: 10px;
  will-change: transform;
  animation-name: bdCertFloat;
  animation-duration: var(--bd-cert-speed, 10s); /* ✅ Redux from inline var */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate; /* ✅ up then down */
}

/*
  ✅ Move up/down effect
  NOTE: shift amount fixed by CSS var.
  If you need later, we can add Redux control for shift too.
*/
@keyframes bdCertFloat{
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-1 * var(--bd-cert-shift, 120px))); }
}

/* ✅ Only ONE button - centered */
.bd-cert-actions{
  display: flex;
  justify-content: center;
  padding: 14px 16px 18px;
}

.bd-cert-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s ease, opacity .15s ease;
  min-width: 130px;
}

.bd-cert-btn:hover{
  transform: translateY(-1px);
  opacity: .95;
}

.bd-cert-bottom{
  margin-top: 26px;
}

.bd-cert-bottom-btn{
  display: inline-flex;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
}