/* ==========================================================================
   early_careers_list — programs from the early-career-cpt CPT
   Two-column rows: category + badge (left) · title + description + apply (right).
   ========================================================================== */

.ec-list {
  padding-block: var(--section-y);
}
.ec-list__head {
  grid-column: 1 / -1;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}
.ec-list__head .section-header__eyebrow {
  color: var(--color-clay);
  margin: 0 0 0.75rem;
}
.ec-list__head h2 {
  margin: 0;
}
.ec-list__items {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(30, 23, 17, 0.16);
}

/* Row = Component 49: category pill + big display title (left) · cream card
   with body copy and a circular arrow CTA pinned bottom-right (right). */
.ec-prog {
  display: grid;
  /* Match .opp-row (33.75% 1fr, no column gap) so __main is the exact width of
     .opp-row__card; the left gutter now lives on .ec-prog__meta's padding. */
  grid-template-columns: 33.75% 1fr;
  align-items: stretch;
  padding-block: var(--sp-sm);
}
.ec-prog__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-inline-end: clamp(1.5rem, 4vw, 4rem);
}
.ec-prog__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.ec-prog__cat {
  align-self: flex-start;
  margin: 0;
  border: 1px solid var(--color-water);
  border-radius: 999px;
  padding: 0.35em 1em;
  color: var(--color-water);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 0.875rem;
  line-height: 1.3;
}
.ec-prog__title {
  margin: 0;
  color: var(--color-steel);
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  line-height: var(--lh-body);
  text-transform: capitalize;
}
.ec-prog__main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.5);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  transition: background-color 0.45s ease, color 0.45s ease;
}
/* Hover: whole row lights the card to Water with light text (matches .opp-row__card). */
.ec-prog:hover .ec-prog__main,
.ec-prog:focus-within .ec-prog__main {
  background: var(--color-water);
  color: var(--color-alabaster);
}
.ec-prog:hover .ec-prog__apply,
.ec-prog:focus-within .ec-prog__apply {
  color: var(--color-alabaster);
}
/* Divider under the card between rows — matches .opp-row__card (Frame 21093). */
.ec-prog:not(:last-child) .ec-prog__main::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: calc(-1 * var(--sp-sm));
  height: 1px;
  background: rgba(30, 23, 17, 0.15);
}
.ec-prog__body {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body-main);
  line-height: var(--lh-body);
  max-width: 60ch;
}
.ec-prog__body p {
  margin: 0 0 1em;
}
.ec-prog__body a,
.ec-prog__body u,
.ec-prog__body [style*="underline"] {
  color: var(--color-clay);
  text-decoration: none !important;
}

.ec-prog__body strong {
  font-weight: var(--fw-bold);
}

.ec-prog__body p:last-child {
  margin-bottom: 0;
}
.ec-prog__apply {
  margin-block-start: auto;
  align-self: flex-end;
  gap: 1rem;
  color: var(--color-water);
  font-size: var(--text-h7);
}
.ec-prog__apply .link-arrow__label {
  font-weight: var(--fw-regular);
}
/* Filled clay circle with the arrow inset via padding (matches .opp-row__apply .ph). */
.ec-prog__apply .ph {
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--color-clay);
  color: #fff;
}

@media (max-width: 760px) {
  .ec-prog {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
