/* Certification Section (matching Images 4 & 5 reference) */

.certification-section.page-section {
  position: relative;
  min-height: auto;
  padding-top: clamp(60px, 6vw, 90px);
  padding-bottom: clamp(60px, 6vw, 90px);
  background: var(--color-white);
  overflow: hidden;
}

/* Background lavender radial glow in top right behind certificate */
.certification-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(340px, 35vw, 550px);
  height: clamp(340px, 35vw, 550px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 226, 248, 0.95) 0%, rgba(236, 226, 248, 0.5) 45%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.certification-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.certification-copy {
  max-width: 780px;
}

.certification-eyebrow {
  margin: 0;
  color: var(--color-purple);
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.certification-eyebrow span {
  display: inline-block;
  margin-inline: 4px;
}

.certification-copy .section-heading {
  margin-top: 18px;
}

.certification-copy .section-heading h2.certification-title {
  color: var(--color-orange);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

.certification-copy .section-heading h3 {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
}

.certification-copy .section-heading > p {
  max-width: 580px;
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.65);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.5;
}

/* Pills on Desktop: 1 Single Row */
.certification-benefits {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.certification-benefits li {
  flex: 0 0 auto;
  min-width: auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(102, 64, 149, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(102, 64, 149, 0.1);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.certification-benefits li:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 64, 149, 0.35);
  box-shadow: 0 6px 14px rgba(102, 64, 149, 0.16);
}

/* Certificate Art */
.certificate-art {
  position: relative;
  z-index: 1;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(102, 64, 149, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.certificate-art:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 44px rgba(102, 64, 149, 0.22), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.certificate-art img {
  display: block;
  width: clamp(260px, 25vw, 330px);
  height: auto;
  aspect-ratio: 321 / 436;
  object-fit: contain;
  border-radius: 14px;
}

/* Responsive: Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .certification-benefits {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .certification-benefits li {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Responsive: Mobile (max-width: 768px) - Matching Image 5 */
@media (max-width: 768px) {
  .certification-section.page-section {
    padding-top: 44px;
    padding-bottom: 50px;
  }

  .certification-section::before {
    top: -50px;
    right: -50px;
    width: 280px;
    height: 280px;
  }

  .certification-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .certification-copy {
    max-width: 100%;
  }

  .certification-eyebrow {
    font-size: 0.95rem;
  }

  .certification-copy .section-heading {
    margin-top: 14px;
  }

  .certification-copy .section-heading h2.certification-title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .certification-copy .section-heading h3 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    margin-top: 6px;
  }

  .certification-copy .section-heading > p {
    font-size: 0.92rem;
    margin-top: 10px;
  }

  /* 2x2 Grid for Mobile Pills */
  .certification-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    width: 100%;
  }

  .certification-benefits li {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: clamp(0.72rem, 3.2vw, 0.84rem);
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .certificate-art {
    width: min(100%, 280px);
    margin: 6px auto 0;
  }

  .certificate-art img {
    width: 100%;
    max-width: 280px;
  }
}
