/* ============================================================
   Certification Page — IDSpeaker
   Editorial / restrained. Accent red #CC0000 used sparingly.
   All rules scoped under .cert-page
   ============================================================ */

.cert-page {
  --red: #cc0000;
  --red-ink: #a60000;
  --red-soft: #fbecec;
  --ink: #16181d;
  --ink-soft: #3a3e46;
  --muted: #6b7178;
  --faint: #9aa0a8;
  --line: #e7e8eb;
  --line-2: #dcdee2;
  --bg: #ffffff;
  --bg-soft: #f7f7f6;
  --radius: 12px;

  /* match the rest of the site (style.css uses Segoe UI everywhere) */
  font-family: "Segoe UI", "Arial", "sans-serif";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cert-page h1,
.cert-page h2,
.cert-page h3,
.cert-page h4,
.cert-page h5 {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.cert-page p {
  margin: 0;
}

.cert-page .cert-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- shared label (uppercase English kicker) ---- */
.cert-page .cert-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.cert-page .cert-label::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--red);
  display: inline-block;
}

/* ---- section heads (left aligned) ---- */
.cert-page .cert-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.cert-page .cert-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin: 16px 0 0;
}
.cert-page .cert-head p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}

/* ---- buttons ---- */
.cert-page .cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.cert-page .cert-btn-primary {
  background: var(--red);
  color: #fff;
}
.cert-page .cert-btn-primary:hover {
  background: var(--red-ink);
  color: #fff;
}
.cert-page .cert-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.cert-page .cert-btn-ghost:hover {
  color: var(--red);
  border-color: var(--red);
}
.cert-page .cert-btn i {
  font-size: 14px;
}

/* ============================================================
   HERO — shares the red .speakers-hero (about/speaker/program)
   plus a floating laptop mockup on the right. Same font, tag,
   title and stats row as the other hero pages for consistency.
   ============================================================ */
/* comfortable bottom padding so the white section (below) can rise over the red
   without clipping the hero copy */
.cert-hero.speakers-hero {
  overflow: hidden;
  padding-bottom: 150px;
}
/* center the hero content + align it with the page body (.cert-container);
   without this the shared .speakers-hero-container runs full-width flush-left */
.cert-hero .speakers-hero-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.cert-hero .cert-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
}
.cert-hero .cert-hero-layout .speakers-hero-inner {
  max-width: none;
}
/* let grid items shrink below their content's intrinsic size — without this the
   laptop PNG forces the hero (and the whole page) wider than the viewport,
   clipping the copy on small screens */
.cert-hero .speakers-hero-inner,
.cert-hero .cert-hero-figure {
  min-width: 0;
}
/* match the other heroes exactly: Segoe font + white title
   (beat .cert-page h1 { color: ink; font-family: inherit }) */
.cert-hero .speakers-hero-title {
  font-family: "Segoe UI", "Arial", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  color: #fff;
}
.cert-hero .speakers-hero-accent {
  color: #fff;
}

/* floating laptop mockup (transparent PNG) */
.cert-hero-figure {
  position: relative;
  text-align: right;
}
.cert-hero-figure img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.38));
}

/* on smaller screens: stack, drop the tall min-height/void, compact padding */
@media (max-width: 991px) {
  .cert-hero.speakers-hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 64px;
  }
  .cert-hero .cert-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .cert-hero-figure {
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
  }
  .cert-hero-figure img {
    margin: 0 auto;
    max-width: 100%;
  }
}
@media (max-width: 575px) {
  .cert-hero.speakers-hero {
    padding-bottom: 52px;
  }
  .cert-hero .speakers-hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cert-hero .speakers-hero-title {
    font-size: 1.75rem;
  }
  .cert-hero-figure {
    max-width: 320px;
  }
}

/* the white content section rises over the red hero with rounded TOP corners
   (the reference look). The hero's extra bottom padding keeps the copy clear. */
.cert-hero + .cert-section {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  background: var(--bg);
  border-radius: 40px 40px 0 0;
}
@media (max-width: 575px) {
  .cert-hero + .cert-section {
    margin-top: -30px;
    border-radius: 26px 26px 0 0;
  }
}

/* ---- collaboration / partners bar (floats on the red↔white seam) ---- */
.cert-partners {
  position: relative;
  z-index: 5;
  margin-top: -136px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 46px -24px rgba(0, 0, 0, 0.28);
  padding: 20px 40px;
}
.cert-partners-label {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.cert-partners-logos {
  display: flex;
  align-items: center;
  gap: 34px;
}
.cert-partners-sep {
  width: 1px;
  align-self: stretch;
  min-height: 46px;
  background: var(--line);
}
.cert-partner-logo {
  height: 50px;
  width: auto;
  display: block;
}
/* mobile: compact card — label on top, both logos side-by-side below */
@media (max-width: 767px) {
  .cert-partners {
    margin-top: -52px;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
  }
  .cert-partners-label {
    white-space: normal;
    text-align: center;
  }
  .cert-partners > .cert-partners-sep {
    display: none;
  }
  .cert-partners-logos {
    gap: 22px;
  }
  .cert-partners-logos .cert-partners-sep {
    min-height: 30px;
  }
  .cert-partner-logo {
    height: 32px;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.cert-section {
  padding: 84px 0;
}
.cert-section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- generic bordered card grid ---- */
.cert-grid {
  display: grid;
  gap: 18px;
}
.cert-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cert-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cert-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.cert-card:hover {
  border-color: var(--line-2);
}
.cert-ic {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 18px;
  margin-bottom: 20px;
}
.cert-card h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.cert-card .cert-en {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 13px;
}
.cert-card p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

/* program card: icon badge, kicker + title, desc, footer (count + pill CTA) */
.cert-prog {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
}
.cert-prog .cert-ic {
  background: var(--red-soft);
  border: none;
}
.cert-prog-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cert-prog h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cert-prog-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cert-prog-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.cert-prog-count i {
  font-size: 13px;
  color: var(--faint);
}
.cert-prog .cert-prog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.cert-prog .cert-prog-link:hover {
  background: var(--red);
  color: #fff;
}
.cert-prog .cert-prog-link i {
  transition: transform 0.16s ease;
}
.cert-prog .cert-prog-link:hover i {
  transform: translateX(3px);
}

/* ---- program grid pagination controls ---- */
.cert-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.cert-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.cert-page-btn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.cert-page-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cert-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---- HOW IT WORKS (restrained numbered timeline, matches .cert-ic language) ---- */
.cert-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.cert-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
/* thin static rule between steps — no dashes, no glow */
.cert-step::after {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(50% + 40px);
  width: calc(100% - 18px);
  height: 1px;
  background: var(--line-2);
}
.cert-step:last-child::after {
  display: none;
}
.cert-step-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  margin-bottom: 22px;
}
/* step index — small flat tag, not a floating glowing badge */
.cert-step-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}
/* icon sits in a bordered rounded square, same language as .cert-ic — not a circle avatar */
.cert-step-orbit {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.cert-step-orbit i {
  font-size: 25px;
}
.cert-step-body {
  max-width: 200px;
  margin: 0 auto;
}
.cert-step-body h5 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 6px;
}
.cert-step-en {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.cert-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- INTEGRATED BANNER (white card, photo with diagonal-cut left edge) ---- */
.cert-banner {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.22);
  min-height: 360px;
}
.cert-banner-body {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: 50px 46px;
}
.cert-banner-body h3 {
  font-size: clamp(24px, 2.8vw, 33px);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}
.cert-banner-body .cert-banner-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}
.cert-banner-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
}
.cert-banner-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
  padding: 8px 0;
}
.cert-banner-list li i {
  color: var(--red);
  font-size: 20px;
  flex-shrink: 0;
}
/* photo on the right, masked with a diagonal (slanted) left edge */
.cert-banner-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.cert-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- FAQ ---- */
.cert-faq-item {
  border-bottom: 1px solid var(--line);
}
.cert-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 4px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
}
.cert-faq-q .ic {
  flex-shrink: 0;
  color: var(--faint);
  font-size: 15px;
  transition:
    transform 0.22s ease,
    color 0.16s ease;
}
.cert-faq-item.open .cert-faq-q {
  color: var(--red);
}
.cert-faq-item.open .cert-faq-q .ic {
  transform: rotate(45deg);
  color: var(--red);
}
.cert-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.cert-faq-a p {
  padding: 0 4px 24px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 600px;
}

/* ============================================================
   AOS-safe reveal (subtle)
   ============================================================ */
.cert-page [data-aos] {
  transition-duration: 0.5s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .cert-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cert-step {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    text-align: left;
    align-items: center;
    padding: 0;
  }
  .cert-step::after {
    top: calc(100% - 2px);
    left: 53px;
    width: 1px;
    height: 30px;
    background: var(--line-2);
  }
  .cert-step-track {
    min-height: 96px;
    margin-bottom: 0;
  }
  .cert-step-body {
    max-width: none;
    margin: 0;
  }
  .cert-banner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .cert-banner-body {
    width: 100%;
    padding: 36px 30px;
  }
  .cert-banner-media {
    position: static;
    width: 100%;
    height: 220px;
    clip-path: none;
    order: -1;
  }
}
@media (max-width: 600px) {
  .cert-section {
    padding: 60px 0;
  }
  .cert-head {
    margin-bottom: 34px;
  }
  .cert-grid.cols-4,
  .cert-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .cert-steps {
    gap: 22px;
  }
  .cert-step {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    text-align: left;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }
  .cert-step::after {
    left: 40px;
    transform: none;
    top: calc(100% + 1px);
    height: 26px;
  }
  .cert-step-track {
    min-height: 82px;
  }
  .cert-step-badge {
    top: -6px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .cert-step-orbit {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }
  .cert-step-orbit i {
    font-size: 23px;
  }
  .cert-step-body {
    padding-top: 2px;
  }
  .cert-step-body h5 {
    font-size: 16px;
    margin-top: 0;
  }
  .cert-step-en {
    font-size: 11px;
  }
  .cert-step p {
    font-size: 13px;
    line-height: 1.55;
  }
  .cert-banner-body {
    padding: 36px 26px;
  }
}

@media (max-width: 420px) {
  .cert-page .cert-container {
    padding: 0 18px;
  }
  .cert-step {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 12px;
  }
  .cert-step::after {
    left: 36px;
    height: 22px;
  }
  .cert-step-track {
    min-height: 74px;
  }
  .cert-step-badge {
    top: -6px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .cert-step-orbit {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }
  .cert-step-orbit i {
    font-size: 20px;
  }
  .cert-step-en {
    font-size: 10.5px;
  }
  .cert-step-body h5 {
    font-size: 15px;
  }
  .cert-step p {
    font-size: 12.5px;
  }
}

/* ============================================================
   CATEGORY + PROGRAM DETAIL PAGES
   (sub-hero, breadcrumbs, program cards, detail layout)
   ============================================================ */

/* landing "coming soon" count label (categories with no programs yet) */
.cert-prog-soon {
  color: var(--faint);
  font-weight: 500;
}

/* ---- breadcrumbs (sit on the red hero) ---- */
.cert-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}
.cert-crumbs a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.16s ease;
}
.cert-crumbs a:hover {
  color: #fff;
}
.cert-crumbs .sep {
  color: rgba(255, 255, 255, 0.4);
}
.cert-crumbs .cur {
  color: #fff;
  font-weight: 600;
}

/* ---- sub-hero: shorter red hero shared by category + program pages ---- */
.cert-subhero.speakers-hero {
  min-height: auto;
  overflow: hidden;
  padding: 116px 0 92px;
}
.cert-subhero .speakers-hero-inner {
  max-width: 820px;
}
.cert-subhero .speakers-hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  font-weight: 600;
  margin-bottom: 14px !important;
}
.cert-subhero .speakers-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  max-width: 660px;
  margin-bottom: 0;
}
.cert-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 24px;
}
/* meta chips on the red hero */
.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cert-chip i {
  font-size: 12.5px;
}
.cert-chip-solid {
  background: #fff;
  color: var(--red);
  border-color: #fff;
  font-weight: 700;
}

/* ---- hero CTA buttons (on the red hero) ---- */
.cert-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cert-hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.cert-hbtn-solid {
  background: #fff;
  color: var(--red);
}
.cert-hbtn-solid:hover {
  color: var(--red-ink);
  transform: translateY(-2px);
}
.cert-hbtn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cert-hbtn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* ---- quick stats strip (program detail) ---- */
.cert-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.24);
  margin-bottom: 48px;
  overflow: hidden;
}
.cert-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.cert-stat:first-child {
  border-left: none;
}
.cert-stat-ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.cert-stat-val {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cert-stat-lbl {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---- count badge on section headers ---- */
.cert-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

/* ---- program cards (category listing + related strip) ---- */
.cert-page a.cert-pcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.cert-page a.cert-pcard:hover {
  border-color: var(--line-2);
  box-shadow: 0 18px 34px -26px rgba(22, 24, 29, 0.34);
  transform: translateY(-3px);
}
.cert-pcard .cert-ic {
  background: var(--red-soft);
  border: none;
  margin-bottom: 0;
}
.cert-pcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cert-pcard-badge {
  display: inline-flex;
  align-items: center;
  max-width: 60%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-pcard h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-pcard p {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-pcard-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cert-pcard-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.cert-pcard-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}
.cert-pcard-link i {
  transition: transform 0.16s ease;
}
.cert-pcard:hover .cert-pcard-link i {
  transform: translateX(3px);
}

/* ---- empty category state ---- */
.cert-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 20px 10px;
}
.cert-empty-ic {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.cert-empty h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cert-empty p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
}
.cert-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   PROGRAM DETAIL — two-column layout + sticky buy card
   ============================================================ */
.cert-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 44px;
  align-items: start;
}

.cert-block {
  margin-bottom: 40px;
}
.cert-block:last-child {
  margin-bottom: 0;
}
.cert-block > h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cert-block-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px !important;
}
.cert-lead {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

/* unit kompetensi — two-column checklist */
.cert-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 28px;
}
.cert-checklist li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cert-checklist li i {
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0;
}

/* profesi terkait — tags */
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--ink-soft);
}
.cert-tag i {
  color: var(--red);
  font-size: 12px;
}

/* syarat + benefit — two mini cards */
.cert-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.cert-mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  background: #fff;
}
.cert-mini-accent {
  background: var(--red-soft);
  border-color: #f3d6d6;
}
.cert-mini h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cert-mini h4 i {
  color: var(--red);
}
.cert-ticklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.cert-ticklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cert-ticklist li i {
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0;
}

/* alur — vertical numbered flow */
.cert-flow {
  display: grid;
  gap: 0;
}
.cert-flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 26px;
}
.cert-flow-item:last-child {
  padding-bottom: 0;
}
/* thin static rule — no dashed/pink connector cliché */
.cert-flow-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.cert-flow-item:last-child::before {
  display: none;
}
/* same bordered-square language as .cert-ic — not a pastel-filled circle */
.cert-flow-num {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.cert-flow-body h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 5px;
}
.cert-flow-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.62;
}
/* alur on the category page — grid of steps, no connector line */
.cert-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 30px;
}
.cert-flow-grid .cert-flow-item {
  padding-bottom: 0;
}
.cert-flow-grid .cert-flow-item::before {
  display: none;
}

/* sticky buy / pricing card */
.cert-buy {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.cert-buy-head {
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line);
}
.cert-buy-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cert-buy-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cert-buy-price small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0;
}
.cert-buy-body {
  padding: 22px 26px 26px;
}
.cert-buy-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 14px;
}
.cert-buy-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cert-buy-meta li i {
  color: var(--red);
  margin-top: 2px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.cert-buy .cert-btn {
  width: 100%;
}
.cert-buy-ghost {
  margin-top: 12px;
}
.cert-buy-incl {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cert-buy-incl-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.cert-buy-incl .cert-ticklist li {
  font-size: 14px;
}
.cert-buy-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.cert-buy-trust img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}
.cert-buy-trust span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}
.cert-buy-note {
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ---- detail responsive ---- */
@media (max-width: 900px) {
  .cert-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cert-detail-side {
    order: -1;
  }
  .cert-buy {
    position: static;
  }
  .cert-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cert-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 36px;
  }
  .cert-stat:nth-child(3) {
    border-left: none;
  }
  .cert-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .cert-subhero.speakers-hero {
    padding: 104px 0 72px;
  }
  .cert-checklist {
    grid-template-columns: 1fr;
  }
  .cert-two {
    grid-template-columns: 1fr;
  }
  .cert-flow-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cert-flow-grid .cert-flow-item {
    padding-bottom: 22px;
  }
  .cert-block > h3 {
    font-size: 20px;
  }
  .cert-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .cert-hbtn {
    width: 100%;
  }
  .cert-stats {
    grid-template-columns: 1fr;
  }
  .cert-stat {
    border-left: none;
  }
  .cert-stat:not(:first-child) {
    border-top: 1px solid var(--line);
  }
  .cert-stat-val {
    font-size: 17px;
  }
}
