/* ========================================
   CERTIFICATE PAGE
   ======================================== */

/* Hero */

.certificate-hero {
  width: 100%;
  /* height: 425px; */
  background: url("../images/certificate/bg.png") no-repeat center;
  background-size: cover;
  padding: 165px 0 142px;
}

.certificate-hero .wrapper {
  height: 100%;
}

.certificate-hero__content {
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  text-align: left;
}

.certificate-hero__title {
  margin: 0 0 10px;
  color: #ffffff;
  text-align: left;
  text-transform: none;
}

.certificate-hero__text {
  margin: 0;
  color: #ffffff;
  text-align: left;
  text-transform: none;
}

/* Main section */

.certificate-section {
  padding: 80px 0;
  background: #ffffff;
}

.certificate-section__title {
  margin: 0 0 40px;
  color: #1D3174;
}

/* Cards */

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  min-height: 721px;
  padding: 44px 35px;
  border: 1px solid #BABABA;
  border-radius: 6px;
  box-sizing: border-box;
  background: #ffffff;
}

.certificate-card__picture {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.certificate-card__img {
  display: block;
  width: 279px;
  height: 394px;
  object-fit: contain;
}

.certificate-card__content {
  margin-bottom: 20px;
}

.certificate-card__title {
  margin: 0 0 5px;
  color: #000000;
  text-align: left;
}

.certificate-card__text {
  margin: 0 0 15px;
  color: #656565;
  word-break: keep-all;
}

.certificate-card__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.certificate-card__info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.certificate-card__info dt {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.certificate-card__info dd {
  margin: 0;
  color: #656565;
  font-size: 16px;
  line-height: 1.5;
}

.certificate-card__button {
  width: fit-content;
  height: auto;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #14CB6E;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
}

.certificate-card__button:hover {
  opacity: 0.7;
}

/* Banner */

.certificate-banner {
  min-height: 251px;
  padding: 64px 82px;
  border-radius: 6px;
  background: url("../images/certificate/banner-bg.png") no-repeat center;
  background-size: cover;
  box-sizing: border-box;
}

.certificate-banner__content {
  max-width: 440px;
}

.certificate-banner__title {
  margin: 0 0 20px;
  color: #000000;
  font-weight: 700;
  text-transform: none;
  text-align: left;
}

.certificate-banner__text {
  margin: 0 0 30px;
  color: #656565;
  text-transform: none;
}

.certificate-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  height: 52px;
  padding: 8px 20px;
  border: 0;
  border-radius: 6px;
  background: #1B65D5;
  box-shadow: none;
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
}

.certificate-banner__button:hover {
  opacity: 0.75;
}

/* Modal */

.hidden {
  display: none !important;
}

.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  overflow: hidden;
}

.certificate-modal__box {
  max-width: min(552px, 100%);
  max-height: calc(100vh - 40px);
  overflow: visible;
  border: 2px solid #939393;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

.certificate-modal__top {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.certificate-modal__close {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: url("../images/certificate/close-btn.png") no-repeat center;
  background-size: contain;
  box-shadow: none;
  cursor: pointer;
}

.certificate-modal__picture {
  display: flex;
  padding: 20px 30px 30px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.certificate-modal__img {
  display: block;
  width: auto;
  max-width: min(492px, calc(100vw - 100px));
  max-height: calc(100vh - 130px);
  height: auto;
  object-fit: contain;
}

/* Responsive */

@media (max-width: 1024px) {
  .certificate-section {
    padding: 60px 24px;
  }

  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .certificate-hero {
    height: auto;
    min-height: 320px;
    padding: 120px 24px 60px;
  }

  .certificate-hero__title,
  .certificate-section__title {
    font-size: 32px;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .certificate-banner {
    margin-top: 50px;
    padding: 40px 28px;
  }

  .certificate-banner__text br,
  .certificate-hero__text br {
    display: none;
  }
}

@media (max-width: 480px) {
  .certificate-section {
    padding: 50px 16px;
  }

  .certificate-card {
    padding: 32px 20px;
  }

  .certificate-card__img {
    width: 100%;
    height: auto;
    max-height: 394px;
  }

  .certificate-banner__button {
    width: 100%;
    font-size: 20px;
  }
}