/* ==========================================================================
   /ai-training-certificate
   (also loads aitraining.css + aitraining-hub.css for the shared track rows)
   ========================================================================== */

/* ---------- Hero ---------- */
.cert-hero { padding: 180px 40px 120px; display: flex; justify-content: center; }
.cert-hero__row { width: 100%; max-width: 1000px; display: flex; align-items: center; gap: 29px; overflow: hidden; }
.cert-hero__left { flex: 0 0 612px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; overflow: hidden; }
.cert-hero__kicker { background: var(--lime); border-radius: 10px; padding: 5px 10px; font: 400 15px/21px var(--f-body); color: var(--ink-2); text-align: center; }
.cert-hero__title span { display: block; }
.cert-hero__lead { max-width: 603px; }
.cert-hero__meta { max-width: 603px; }
.cert-hero__right { position: relative; flex: 0 0 359px; height: 475px; }
.cert-hero__right img { position: absolute; left: 50%; top: 50%; width: 371px; height: 371px; max-width: none; transform: translate(-50%, -50%); object-fit: cover; }

/* ---------- Section heads ---------- */
.cert-head { display: flex; flex-direction: column; gap: 8px; }
.cert-head__kicker { color: var(--green); }
.cert-head__sub { color: var(--ink-2); }
.cert-head--center { text-align: center; }

/* ---------- Six skills ---------- */
.cert-skills__inner { gap: 60px; }
.cert-skills__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; overflow: hidden; }
.cert-skill { width: calc((100% - 20px) / 2); background: var(--white); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 30px; overflow: hidden; }
.cert-skill__top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cert-skill__icon { display: block; width: 54px; height: 54px; color: var(--green); }
.cert-skill__icon svg { display: block; width: 100%; height: 100%; }
.cert-skill__title, .cert-isnt__h { font: 500 24px/28.8px var(--f-head); letter-spacing: -0.02em; color: var(--ink-2); }

/* ---------- Is / isn't ---------- */
.cert-isnt__inner { gap: 30px; }
.cert-isnt__title { text-align: center; }
.cert-isnt__row { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 20px; overflow: hidden; }
.cert-isnt__col { width: calc((100% - 20px) / 2); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.cert-list li { position: relative; padding-inline-start: 2ch; font: 400 16px/24px var(--f-body); color: var(--ink-3); }
.cert-list li::before { content: "•"; position: absolute; inset-inline-start: 0; }

/* ---------- Reveal band ---------- */
.cert-reveal .at-reveal__inner { gap: 10px; }
.cert-reveal .at-reveal__words { order: -1; }

/* ---------- How it's earned (3 cards + employer box) ---------- */
.cert-how { background: var(--at-teal-dark); padding: 120px 80px; display: flex; justify-content: center; }
.cert-how__inner { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.cert-how__cards { display: flex; justify-content: center; align-items: stretch; gap: 20px; overflow: hidden; }
.cert-step { flex: 1 1 0; min-width: 0; background: var(--white); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 30px; overflow: hidden; }
.cert-step__top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cert-step__num { font: 600 64px/64px var(--f-head); letter-spacing: -0.04em; color: rgba(107, 163, 60, 0.24); }
.cert-step__title { font: 500 24px/28.8px var(--f-head); letter-spacing: -0.02em; color: var(--ink-2); }
.cert-step__text { font: 400 14px/21px var(--f-body); color: var(--ink-2); }
.cert-checks { display: flex; flex-direction: column; gap: 4px; }
.cert-check { display: flex; align-items: center; gap: 10px; }
.cert-check__icon { flex: none; width: 27px; height: 27px; color: var(--green); }
.cert-check__icon svg { display: block; width: 100%; height: 100%; }
.cert-check p { flex: 1; min-width: 0; font: 400 15px/21px var(--f-body); color: var(--gray); }
.cert-emp { background: var(--teal); border-radius: 16px; padding: 22px 20px 20px; display: flex; justify-content: center; align-items: center; }
.cert-emp__text { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cert-emp__kicker { font: italic 400 14px/19.6px var(--f-inter); color: #d9eceb; }
.cert-emp__title { font: 500 24px/28.8px var(--f-head); letter-spacing: -0.02em; color: #d5ed71; }
.cert-emp__row { display: flex; justify-content: center; align-items: center; gap: 10px; overflow: hidden; }
.cert-emp__row .at-p { flex: 1 1 0; min-width: 0; color: #f0f0f0; }
.cert-emp__btn { flex: none; }

/* ---------- Stats ---------- */
.cert-stats-sec__inner { gap: 60px; }
.cert-stats { background: var(--teal); border-radius: 24px; padding: 24px; display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.cert-stat { flex: 1 1 0; min-width: 0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.cert-stat__num { font: italic 600 44px/52.8px var(--f-head); letter-spacing: -0.02em; color: #d5ed71; }
.cert-stat__label { font: 400 18px/27px var(--f-body); color: var(--white); text-align: center; }

/* ---------- Tracks (hub-track rows) ---------- */
.cert-track__t1 { max-width: 297px; }
.cert-track__t2 { max-width: 245px; }
.cert-track__t3 { max-width: 304px; }
.cert-track__t4 { max-width: 325px; }
.hub-track__inner.cert-track4__inner { gap: 77px; }
.cert-formats { font: 400 16px/24px var(--f-body); color: var(--gray); }
.cert-formats strong { font: 700 16px/24px var(--f-inter); font-feature-settings: var(--inter-features); }

/* ---------- Newsletter CTA ---------- */
.cert-cta { background: var(--teal); padding: 100px 40px; display: flex; justify-content: center; overflow: hidden; }
.cert-cta__inner { width: 100%; max-width: 1000px; display: flex; justify-content: space-between; align-items: center; }
.cert-cta__title { width: 500px; color: var(--white); }
.cert-cta__side { width: 415px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 19px; overflow: hidden; }
.cert-cta__side .at-body { color: var(--white); }
.cert-cta__btns { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1199.98px) {
  .cert-hero { padding: 180px 30px 120px; }
  .cert-hero__row { gap: 40px; }
  .cert-hero__left { flex: 1 1 0; }
  .cert-hero__right { flex: 1 1 0; height: 353px; }
  .cert-hero__right img { width: 365px; height: 365px; }
  .cert-hero__lead, .cert-hero__meta { max-width: none; }

  .cert-skills__inner { gap: 24px; }
  .cert-skill { width: 48%; padding: 24px; }
  .cert-skill:nth-child(5) { align-self: stretch; } /* live: 5th card stretches to its row */
  .cert-skill__title, .cert-isnt__h { font-size: 22px; line-height: 26.4px; }
  .cert-isnt__row { align-items: stretch; }
  .cert-isnt__col { width: 48%; padding: 24px; }
  .cert-list li { font-size: 15px; line-height: 22.5px; }

  .cert-how { padding: 100px 25px; }
  .cert-how__cards { align-items: center; }
  .cert-step { padding: 24px; }
  .cert-step--1 { padding-bottom: 34px; }
  .cert-step__num { font-size: 54px; line-height: 54px; }
  .cert-step__title { font-size: 22px; line-height: 26.4px; }
  .cert-step__text { font-size: 13px; line-height: 19.5px; }
  .cert-emp__title { font-size: 22px; line-height: 26.4px; }

  .cert-stats-sec__inner { gap: 24px; }
  .cert-stats { padding: 16px; gap: 10px; }
  .cert-stat { padding: 10px; }
  .cert-stat__num { font-size: 28px; line-height: 33.6px; }
  .cert-stat--big .cert-stat__num { font-size: 44px; line-height: 52.8px; }
  .cert-stat__label { font-size: 17px; line-height: 25.5px; }

  .cert-track__t1, .cert-track__t2, .cert-track__t3, .cert-track__t4 { max-width: none; }
  .cert-formats { font-size: 15px; line-height: 22.5px; }
  .cert-formats strong { font-size: 15px; line-height: 22.5px; }

  .cert-cta { padding: 80px 30px; }
  .cert-cta__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cert-cta__title { width: 100%; }
  .cert-cta__side { width: 100%; }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 809.98px) {
  .cert-hero { padding: 180px 20px 120px; }
  .cert-hero__row { flex-direction: column; gap: 48px; }
  .cert-hero__left { flex: none; width: 100%; align-items: stretch; }
  .cert-hero__kicker { font-size: 14px; line-height: 21px; }
  .cert-hero__right { flex: none; width: 100%; height: 216px; }
  .cert-hero__right img { width: 223px; height: 223px; }

  .cert-skills__inner { gap: 40px; }
  .cert-head { gap: 20px; }
  .cert-skills__grid { flex-direction: column; }
  .cert-skill { width: 100%; padding: 30px; }
  .cert-skill__title, .cert-isnt__h { font-size: 20px; line-height: 24px; }

  .cert-isnt__inner { gap: 40px; }
  .cert-isnt__row { flex-direction: column; align-items: center; }
  .cert-isnt__col { width: 100%; padding: 0; }
  .cert-list li { font-size: 14px; line-height: 21px; }

  .cert-how { padding: 80px 20px 60px; }
  .cert-how__cards { flex-direction: column; }
  .cert-step { flex: none; width: 100%; padding: 30px; }
  .cert-step--1 { padding-bottom: 30px; }
  .cert-step__num { font-size: 40px; line-height: 40px; }
  .cert-step__title { font-size: 20px; line-height: 24px; }
  .cert-step__text { font-size: 12px; line-height: 18px; }
  .cert-check p { font-size: 14px; line-height: 21px; }
  .cert-emp { justify-content: flex-start; }
  .cert-emp__kicker { line-height: 21px; }
  .cert-emp__title { font-size: 20px; line-height: 24px; }
  .cert-emp__row .at-p, .cert-emp__btn { flex: 0 0 calc(50% - 5px); min-width: 0; }
  .cert-emp__kicker { font-feature-settings: var(--inter-features); }

  .cert-stats-sec__inner { gap: 40px; }
  .cert-stats { flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px; }
  .cert-stat { flex: none; width: 100%; padding: 16px; }
  .cert-stat__num, .cert-stat--big .cert-stat__num { font-size: 44px; line-height: 52.8px; }
  .cert-stat__label { font-size: 16px; line-height: 24px; }

  .cert-formats, .cert-formats strong { font-size: 14px; line-height: 21px; }

  .cert-cta { padding: 60px 20px; }
  .cert-cta__side { align-items: center; }
  .cert-cta__btns { align-self: stretch; }
}
