.certification {
  width: 100%;
  height: 100%;
  padding: 0 clamp(1.6rem, 3vw, 4rem);
  background-color: var(--background-color);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certification-container {
  max-width: 144rem;
  min-width: var(--min-width);
  padding: 14rem 0;
}

.certification-title {
  width: 100%;
}

.certification-title h1 {
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 3.9rem;
  text-align: center;
  color: var(--main-font-color);
}

.certification-title h2 {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 100;
  font-size: 1.4rem;
  line-height: 2rem;
  text-align: center;
  color: var(--main-font-color);
}

.certification-title p {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 200;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 2.4rem;
  text-align: center;
  color: var(--white);
  padding-top: clamp(3.6rem, 2vw, 4.5rem);
}

.certification-grid {
  width: 100%;
  max-width: 120rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 8rem);
  padding-top: clamp(5rem, 2vw, 14.7rem);
  padding-bottom: clamp(4rem, 2vw, 7rem);
}

.certi-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

.certi-image {
  width: 100%;
  padding: 1.1rem;
  aspect-ratio: 299 / 393;
  overflow: hidden;
  position: relative;
}

.certi-image::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0.2rem;
  /* 외곽선 두께 */
  background: conic-gradient(#c6a274 0%,
      #a36531 25%,
      #f6df77 46%,
      #fbf6d8 65%,
      #f2ca4c 78%,
      #d4a041 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.certi-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certification-name {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.4rem, 1vw, 1.6rem);
  line-height: 1.9rem;
  color: var(--sub-font-color);
}

.certification {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .certification-title h1 {
    text-align: left;
  }

  .certification-title h2 {
    text-align: left;
  }

  .certification-container {
    padding: 0;
  }

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