/*
 * MaMeLa Homepage CPD Promo
 * Component: /comp/cpd-home.php
 */

/* ==========================================================
   Homepage CPD promo component: /comp/cpd-home.php
   ========================================================== */
.cpd-home-promo {
  --cpd-home-primary: #005880;
  --cpd-home-soft: #F2F9F9;
  --cpd-home-white: #FFFFFF;

  width: 100%;
  overflow: hidden;
  background: var(--cpd-home-primary);
  color: var(--cpd-home-white);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cpd-home-promo,
.cpd-home-promo * {
  box-sizing: border-box;
}

.cpd-home-eyebrow {
  color: var(--cpd-home-white);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cpd-home-title {
  max-width: 20ch;
  color: var(--cpd-home-white);
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cpd-home-description {
  max-width: 52ch;
  color: var(--cpd-home-white);
  font-size: 16px;
  line-height: 1.7;
}

.cpd-home-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--cpd-home-white);
  border-radius: 999px;
  color: var(--cpd-home-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cpd-home-button {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--cpd-home-white);
  border-radius: 2px;
  background: var(--cpd-home-white);
  color: var(--cpd-home-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cpd-home-button:hover,
.cpd-home-button:focus {
  border-color: var(--cpd-home-soft);
  background: var(--cpd-home-soft);
  color: var(--cpd-home-primary);
  transform: translateY(-1px);
}

.cpd-home-ledger {
  border-left: 1px solid var(--cpd-home-white);
}

.cpd-home-stage {
  padding: 12px 0;
  border-bottom: 1px solid var(--cpd-home-white);
  color: var(--cpd-home-white);
  font-family: 'Inter', sans-serif;
  font-size: clamp(21px, 2.2vw, 25px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}

.cpd-home-stage:first-child {
  padding-top: 0;
}

.cpd-home-stage:last-child {
  border-bottom: 0;
}

@media (max-width: 991.98px) {
  .cpd-home-title {
    max-width: 24ch;
  }

  .cpd-home-ledger {
    padding-top: 28px;
    border-top: 1px solid var(--cpd-home-white);
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .cpd-home-promo {
    text-align: left;
  }

  .cpd-home-title {
    max-width: none;
    font-size: clamp(28px, 9vw, 36px);
  }

  .cpd-home-description {
    font-size: 15px;
  }

  .cpd-home-button {
    width: 100%;
  }

  .cpd-home-chips span {
    font-size: 10.5px;
  }
}
