/* === 5. CTA CARD & COMPONENTS === */
/* Program purchase card — see article-cta.css */

.article-program-cta {
  width: 100%;
  max-width: none;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 0.5px solid var(--b1);
}

.article-program-cta__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 148px;
  margin: 0;
  padding: 22px 26px 24px;
  border-radius: clamp(16px, 2.5vw, 24px);
  overflow: hidden;
  background-color: #0a3033;
  isolation: isolate;
}

/* SVG glow is authored bottom-left — anchor it there, no flip */
.article-program-cta__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("/static/svg/card_programs.svg");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 56% auto;
  pointer-events: none;
  z-index: 0;
}

.article-program-cta__content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: min(34rem, 72%);
  padding-right: 12px;
}

.article-program-cta__title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: #f4faf9;
}

.article-program-cta__desc {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--font-main);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: rgba(221, 241, 241, 0.82);
  max-width: 48ch;
}

.article-program-cta__btn {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  background: var(--teal, #0ecfb4);
  color: #041412;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: var(--text-ui-xs, 11px);
  font-weight: 600;
  letter-spacing: var(--tracking-ui, 0.08em);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 18px rgba(14, 207, 180, 0.2);
}

.article-program-cta__btn:hover {
  background: #3ddfc9;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(14, 207, 180, 0.28);
}

.article-program-cta__btn:focus-visible {
  outline: 2px solid #ddf1f1;
  outline-offset: 3px;
}

html.theme-light .article-program-cta__btn,
html[data-theme="light"] .article-program-cta__btn {
  background: #3edfc9;
  color: #041412;
  box-shadow: 0 3px 18px rgba(62, 223, 201, 0.28);
}

html.theme-light .article-program-cta__btn:hover,
html[data-theme="light"] .article-program-cta__btn:hover {
  background: #f7fffe;
  color: #041412;
  box-shadow: 0 6px 22px rgba(62, 223, 201, 0.22);
}

@media (max-width: 768px) {
  .article-program-cta {
    margin-top: 32px;
    padding-top: 24px;
  }

  .article-program-cta__card {
    min-height: 132px;
    padding: 18px 16px 18px;
    border-radius: 16px;
  }

  .article-program-cta__card::after {
    background-size: 64% auto;
  }

  .article-program-cta__content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 14px;
  }

  .article-program-cta__title {
    font-size: 1.0625rem;
    margin-bottom: 8px;
  }

  .article-program-cta__desc {
    padding-left: 0.875rem;
    font-size: var(--text-sm);
    line-height: var(--leading-body);
  }

  .article-program-cta__btn {
    min-height: 38px;
    padding: 9px 18px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-program-cta__btn {
    transition: none;
  }

  .article-program-cta__btn:hover {
    transform: none;
  }
}
