/* ── Certification ────────────────────────────────────────── */
.certification-section {
  /* === Typography defaults — overridden by ACF per-instance === */
  --atg-eyebrow-size: 14px;
  --atg-eyebrow-color: var(--text-white, #ffffff);
  --atg-section-title-size: clamp(34px, 4.5vw, 56px);
  --atg-section-title-plain-color: var(--text-white, #ffffff);
  --atg-section-title-accent-color: #10b981; /* iubenda brand green — block-specific default */
  --atg-subtitle-size: 16px;
  --atg-subtitle-color: var(--text-muted, #8b949e);

  position: relative;
  padding: 120px 0;
}

.certification__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Left column: text ────────────────────────────────────── */
.certification__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow — text + thin cyan line on the RIGHT only */
.certification__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.certification__eyebrow-text {
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-eyebrow-size);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--atg-eyebrow-color);
}
.certification__eyebrow-line {
  flex: 0 0 80px;
  height: 1px;
  background: linear-gradient(
    91.21deg,
    #278fb9 -4%,
    rgba(13, 13, 13, 0) 95.04%
  );
}

/* Heading — white plain + emerald-green accent */
.certification__title {
  margin: 0 0 24px;
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-section-title-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.certification__title-plain {
  color: var(--atg-section-title-plain-color);
}
.certification__title-accent {
  color: var(
    --atg-section-title-accent-color
  ); /* default = iubenda brand green via .certification-section */
}

/* ── Description (WYSIWYG rich content) ───────────────────── */
.certification__rich-content {
  margin: 0 0 36px;
  max-width: 480px;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: var(--atg-subtitle-size);
  line-height: 1.6;
  color: var(--atg-subtitle-color);
}
.certification__rich-content p {
  margin: 0 0 16px;
}
.certification__rich-content p:last-child {
  margin-bottom: 0;
}

.certification__rich-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.certification__rich-content ul li {
  position: relative;
  padding-left: 22px;
}
.certification__rich-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #00c3d0);
}

.certification__rich-content ol {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  counter-reset: cert-ol;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.certification__rich-content ol li {
  position: relative;
  padding-left: 28px;
  counter-increment: cert-ol;
}
.certification__rich-content ol li::before {
  content: counter(cert-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary, #00c3d0);
  font-weight: 600;
}

.certification__rich-content strong,
.certification__rich-content b {
  color: var(--text-white, #ffffff);
  font-weight: 700;
}
.certification__rich-content em,
.certification__rich-content i {
  font-style: italic;
}

.certification__rich-content a {
  color: var(--primary, #00c3d0);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 195, 208, 0.3);
  transition: border-color 0.2s ease;
}
.certification__rich-content a:hover {
  border-bottom-color: rgba(0, 195, 208, 0.8);
}

.certification__rich-content > *:last-child {
  margin-bottom: 0;
}

/* ── Buttons (scoped overrides — same treatment as aboutme) ─ */
.certification__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.certification__buttons .wby-btn--outline {
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow:
    0 0 0 1px rgba(0, 195, 208, 0.08),
    0 8px 32px rgba(0, 195, 208, 0.12);
  transition: all 0.25s ease;
}
.certification__buttons .wby-btn--outline:hover {
  background: rgba(0, 195, 208, 0.08);
  border-color: rgba(0, 195, 208, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 195, 208, 0.2),
    0 8px 40px rgba(0, 195, 208, 0.25);
}

/* ── Right column: image + optional glow ──────────────────── */
.certification__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.certification__media.has-glow::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 195, 208, 0.15) 0%,
    rgba(0, 195, 208, 0.05) 40%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.certification__img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .certification-section {
    padding: 80px 0;
  }
  .certification__inner {
    gap: 40px;
  }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .certification-section {
    padding: 60px 0;
  }
  .certification__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .certification__text {
    order: 1;
  }
  .certification__media {
    order: 2;
  }
  .certification__rich-content {
    max-width: 100%;
  }
  .certification__eyebrow-line {
    flex-basis: 60px;
  }
}
