.know-more {
  padding: 24px;
}

.know-more__top {
  margin-top: 97px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.know-more__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--neutral-800);
}

.know-more__back-icon {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
  filter: invert(1) brightness(0.6);
}

.know-more__heading {
  display: inline-flex;
  align-items: center;
  border-left: 4px solid var(--accent-600);
  padding: 4px 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--neutral-800);
}

.know-more__intro {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.know-more__photo {
  flex-shrink: 0;
  width: 199px;
  height: 199px;
  background: var(--accent-200);
  overflow: hidden;
}

.know-more__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.know-more__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--neutral-800);
}

.know-more__bio {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  color: var(--neutral-900);
}

.know-more__title + .know-more__bio {
  margin-top: 16px;
}

.know-more__bio + .know-more__bio {
  margin-top: 16px;
}

.know-more__divider {
  display: block;
  margin-top: 32px;
  border-top: 1px solid var(--neutral-300);
}

.know-more__certs-head {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.know-more__certs-head h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--neutral-800);
}

.know-more__certs-icon {
  width: 20px;
  height: 20px;
}

.know-more__certs {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.know-more__cert {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  background: var(--accent-800);
  border: 1px solid var(--accent-300);
  scroll-snap-align: start;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.know-more__cert:hover,
.know-more__cert:focus-visible {
  box-shadow: 4px 4px 0 0 var(--accent-400);
}

.know-more__cert-badge {
  width: 145px;
  aspect-ratio: 193 / 274;
  background: var(--accent-200);
  overflow: hidden;
}

.know-more__cert-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.know-more__cert-name {
  width: 145px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--neutral-100);
  text-transform: uppercase;
}

@media (min-width: 744px) {
  .know-more {
    padding: 40px;
  }

  .know-more__back,
  .know-more__heading {
    font-size: 24px;
  }

  .know-more__photo {
    width: 296px;
    height: 296px;
  }

  .know-more__title {
    font-size: 26px;
  }

  .know-more__bio {
    font-size: 20px;
  }

  .know-more__certs-head h2 {
    font-size: 24px;
  }

  .know-more__certs-icon {
    width: 24px;
    height: 24px;
  }

  .know-more__certs {
    gap: 36px;
  }

  .know-more__cert-badge {
    width: 193px;
  }

  .know-more__cert-name {
    width: 193px;
    font-size: 16px;
  }
}

@media (min-width: 1100px) {
  .know-more {
    padding: 40px 60px;
  }

  .know-more__certs {
    gap: 60px;
  }

  .know-more__intro {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  .know-more__photo {
    order: 2;
    width: 407px;
    height: 407px;
  }

  .know-more__intro-text {
    order: 1;
    max-width: 783px;
  }

  .know-more__title {
    font-size: 32px;
  }

  .know-more__bio {
    font-size: 20px;
  }
}

@media (min-width: 1920px) {
  .know-more {
    padding: 40px 120px;
  }

  .know-more__certs {
    gap: 149px;
  }
}

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cert-modal[hidden] {
  display: none;
}

.cert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cert-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 604px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  box-shadow: 0 0 55px 4px rgba(0, 0, 0, 0.25);
  padding: 24px;
}

.cert-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cert-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-700);
}

.cert-modal__close {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cert-modal__close img {
  width: 100%;
  height: 100%;
}

.cert-modal__zoom {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cert-modal__zoom-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neutral-300);
  font-size: 16px;
  line-height: 1;
  color: var(--neutral-800);
}

.cert-modal__zoom-btn:hover {
  background: var(--neutral-100);
}

.cert-modal__zoom-level {
  min-width: 42px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--neutral-600);
}

.cert-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.cert-modal__image {
  width: 100%;
  max-width: none;
  display: block;
  touch-action: none;
}

@media (min-width: 744px) {
  .cert-modal__panel {
    padding: 32px;
  }

  .cert-modal__title {
    font-size: 20px;
  }
}

@media (min-width: 1100px) {
  .cert-modal__panel {
    padding: 42px;
  }

  .cert-modal__title {
    font-size: 22px;
  }
}
