/* Certifications page, implemented from the Figma frame 10:1250. */
.page-certifications main { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.page-certifications .profile-hero > img { object-position: center 50%; }
.page-certifications .profile-hero-shade { background: rgba(0, 0, 0, .2); }

.certifications-main { padding: 77px 0 80px; }

.certifications-heading {
  margin: 0 auto 26px;
  text-align: center;
}

.certifications-heading > p {
  margin: 0 0 6px;
  color: #376036;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
}

.certifications-heading h2 {
  margin: 0;
  color: #000;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
}

.certifications-heading > div {
  max-width: 1228px;
  margin: 25px auto 0;
  color: #333;
  font-size: 16px;
  line-height: 2.5;
  font-weight: 400;
}

.certificate-group > h3 {
  margin: 0 0 20px;
  color: #333;
  font-size: 26px;
  line-height: 30px;
  font-weight: 500;
  text-align: center;
}

.certificate-stage { position: relative; }

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 452px));
  gap: 22px;
  padding: 0 100px;
  transition: opacity .18s ease, transform .18s ease;
}

.certificate-stage.is-shifting-prev .certificate-grid { opacity: .38; transform: translateX(24px); }
.certificate-stage.is-shifting-next .certificate-grid { opacity: .38; transform: translateX(-24px); }

.certificate-grid figure {
  margin: 0;
  overflow: hidden;
  color: #333;
  background: #f5f5f5;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.certificate-grid figure:nth-child(n+4) { display: none; }

.certificate-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 30px rgba(55, 96, 54, .13);
}

.qualification-grid figure { height: 375px; }
.qualification-grid figure > div {
  display: grid;
  place-items: center;
  height: 316px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.qualification-grid figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.certificate-grid figcaption {
  display: grid;
  place-items: center;
  min-height: 59px;
  padding: 8px 18px;
  font-size: 16px;
  line-height: 1.875;
}

.certificate-arrow {
  position: absolute;
  z-index: 2;
  top: 125px;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.certificate-arrow.prev { left: 0; }
.certificate-arrow.next { right: 0; }
.certificate-arrow img { display: block; width: 66px; height: 66px; }
.certificate-arrow.prev img { transform: scaleX(-1); }
.certificate-arrow:hover { transform: scale(1.055); filter: brightness(.95); }
.certificate-arrow:focus-visible { outline: 3px solid rgba(55,96,54,.35); outline-offset: 3px; }

.certification-group { margin-top: 80px; }
.certification-grid figure { height: 661px; background: #f5f4f4; }
.certification-grid figure > div { height: 595px; padding: 14px 23px 6px; }
.certification-grid figure img { width: 100%; height: 100%; object-fit: contain; }
.certification-grid figcaption { min-height: 66px; }
.certification-stage .certificate-arrow { top: 268px; }

@media (max-width: 1500px) {
  .certifications-heading > p { font-size: 15px; }
  .certifications-heading > div { font-size: 15px; }
  .certificate-grid { gap: 18px; padding: 0 78px; }
  .certificate-arrow { width: 54px; height: 54px; }
  .certificate-arrow img { width: 54px; height: 54px; }
  .certificate-arrow.prev { left: 0; }
}

@media (max-width: 1199.98px) {
  .certificate-grid { padding: 0 62px; gap: 14px; }
  .qualification-grid figure { height: 310px; }
  .qualification-grid figure > div { height: 258px; }
  .certificate-grid figcaption { min-height: 52px; font-size: 14px; }
  .certificate-arrow { top: 112px; width: 46px; height: 46px; }
  .certificate-arrow img { width: 46px; height: 46px; }
  .certificate-arrow.prev { left: 0; }
  .certification-grid figure { height: 530px; }
  .certification-grid figure > div { height: 472px; }
  .certification-grid figcaption { min-height: 58px; }
  .certification-stage .certificate-arrow { top: 235px; }
}

@media (prefers-reduced-motion: reduce) {
  .certificate-grid,
  .certificate-arrow { transition: none; }
}

@media (max-width: 900px) {
  .certificate-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; padding: 0; gap: 18px; }
  .certificate-grid figure:nth-child(n+4) { display: block; }
  .certificate-arrow { display: none; }
  .qualification-grid figure { height: auto; }
  .qualification-grid figure > div { height: auto; aspect-ratio: 452 / 316; }
  .certification-grid figure { height: auto; }
  .certification-grid figure > div { height: auto; aspect-ratio: 406 / 575; margin: 14px 23px 0; padding: 0; }
  .certification-grid figcaption { min-height: 66px; }
}

@media (max-width: 760px) {
  .page-certifications .profile-hero > img { object-position: 54% center; }
  .certifications-main { padding: 62px 0 72px; }
  .certifications-heading { margin-bottom: 32px; }
  .certifications-heading > p { font-size: 14px; }
  .certifications-heading h2 { font-size: 26px; }
  .certifications-heading > div { margin-top: 22px; font-size: 14px; line-height: 1.85; text-align: justify; }
  .certificate-group > h3 { font-size: 24px; }
  .certificate-grid { gap: 14px; }
  .certification-group { margin-top: 62px; }
}
