.certificate-section {
  background: #fff;
  /* height: 25rem; */
}

.certificate-heading {
  margin-bottom: 1rem;
  border-bottom: 5px solid #ffd23f;
  font-family: "Readex Pro";
  color: #363636;
  padding-bottom: 0.2rem;
  display: inline-block;
}

.certificate-heading-parent-div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.certificate-main-div {
  display: flex;
  width: 90%;
  margin: 1.5rem auto;
  align-items: center;
}

.certificate-image-div {
  width: 50%;
  /* height: 100%; */
}

.certificate-image-div img {
  cursor: pointer;
  width: 100%;
  height: 20rem;
  object-fit: contain;
}

.certificate-text-div {
  width: 40%;
}

.certificate-text-p {
  color: #424242;
  font-weight: 500;
  line-height: 1.4rem;
  font-size: 14px;
  height: 100%;
  display: flex;
  text-align: justify;
  opacity: 0.9;
}

.popup-certificate {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: -0.5rem;
  z-index: 100;
  display: none;
  /* transform: translatex(-110%); */
}

.popup-certificate-div {
  /* width: 40%; */
  width: 100%;

  height: 70%;
  margin-top: 3rem;
}

.popup-certificate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 950px) {
  .certificate-main-div {
    flex-direction: column;
    align-items: center;
  }

  .certificate-text-div {
    width: 100%;
    margin-top: 1.5rem;
  }

  .certificate-image-div {
    width: 50%;
    height: 50%;
  }

  .certificate-image-div img {
    width: 100%;
    height: 100%;
  }

  .popup-certificate-div {
    width: 90%;
    height: max-content;
    margin: 0;
  }

  .popup-certificate {
    align-items: center;
  }

  .certificate-outer-div {
    margin-bottom: 0rem;
  }
}

@media screen and (max-width: 450px) {
  .certificate-section{
    height: auto;
  }
  .certificate-main-div {
    flex-direction: column;
    align-items: center;
  }

  .certificate-text-p {
    font-size: 0.9rem;
  }

  .popup-certificate-div {
    width: 90%;
    height: max-content;
    margin: 0;
  }

  .popup-certificate {
    align-items: center;
  }

  .certificate-heading {
    font-size: 1.2rem;
    border-bottom: 5px solid #ffd23f;
  }
}
