.certificate_section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    rgba(6, 106, 128, 0.05),
    rgba(135, 107, 36, 0.05)
  );
  overflow: hidden;
}

/* Decorative circles */
.certificate_section::before,
.certificate_section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.certificate_section::before {
  width: 350px;
  height: 350px;
  background: rgba(6, 106, 128, 0.08);
  top: -150px;
  left: -120px;
}

.certificate_section::after {
  width: 300px;
  height: 300px;
  background: rgba(135, 107, 36, 0.08);
  bottom: -120px;
  right: -100px;
}

/* .certificate_section .container {
  position: relative;
  z-index: 2;
} */

.certificate_section .certificate_holder {
  margin-top: 60px;
}

.certificate_section .certificate_holder .certificate_card {
  position: relative;
  height: 100%;
}

/* Badge */
.certificate_section .certificate_holder .certificate_badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background: linear-gradient(135deg, #066a80, #044f60);
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(6, 106, 128, 0.25);
}

.certificate_section .certificate_holder .img_holder {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  /* background: #fff; */
  padding: 15px;
  border: 2px solid rgba(6, 106, 128, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.certificate_section .certificate_holder .img_holder::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #066a80, #876b24, #066a80);
}

.certificate_section .certificate_holder .img_holder::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #066a80, #876b24, #066a80);
}

.certificate_section .certificate_holder .img_holder::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #066a80, #876b24, #066a80);
  z-index: 2;
}

.certificate_section .certificate_holder .img_holder:hover::after {
  /* left: 150%; */
}

/* .certificate_section .certificate_holder .img_holder:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(6, 106, 128, 0.15);
} */

.certificate_section .certificate_holder .img_holder {
  width: auto;
  height: 420px;
  object-fit: contain;
  display: block;
  transition: all 0.4s ease;
}

.certificate_section .certificate_holder .img_holder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.4s ease;
}

.certificate_section .certificate_holder .img_holder:hover img {
  transform: scale(1.05);
}

@media (min-width: 0px) and (max-width: 574px) {
  .certificate_section {
    padding: 60px 0;
  }

  .certificate_section .certificate_holder {
    margin-top: 40px;
  }

  .certificate_section .certificate_holder .img_holder {
    /* height: 300px; */
    width: 100%;
    margin: 0 auto;
  }

  .certificate_section .certificate_holder .certificate_badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (min-width: 575px) and (max-width: 767px) {
  .certificate_section {
    padding: 60px 0;
  }

  .certificate_section .certificate_holder {
    margin-top: 40px;
  }

  /* .certificate_section .certificate_holder .img_holder {
    height: 340px;
    width: 70%;
    margin: 0 auto;
  } */

  .certificate_section .certificate_holder .certificate_badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .certificate_section {
    padding: 60px 0;
  }

  .certificate_section .certificate_holder {
    margin-top: 40px;
  }

  .certificate_section .certificate_holder .certificate_badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}
