/* Program (البرنامج ومخرجاته) — Figma 2179:68 */
.program {
  direction: ltr;                 /* match Figma LTR auto-layout */
  background: #f7f7fb;
  padding: 96px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  font-family: "Tajawal", sans-serif;
}
.program__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.program__eyebrow { margin: 0; color: #372873; font-size: 14px; font-weight: 700; letter-spacing: 0.42px; }
.program__title   { margin: 0; color: #241b4f; font-size: 34px; font-weight: 700; }
.program__sub     { margin: 0; color: #6b6790; font-size: 17px; line-height: 1.6; max-width: 660px; }

.program__body {
  display: flex;
  gap: 56px;
  align-items: center;
  width: 1100px;
  max-width: 100%;
}

/* breakdown card (transparent — same as band) */
.program__breakdown {
  width: 440px;
  flex-shrink: 0;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* donut via conic-gradient (60/20/20) */
.program__donut {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(#372873 0 60%, #6c5ce7 60% 80%, #acd91a 80% 100%);
  /* reveal: spin + scale in when scrolled into view */
  transform: rotate(-22deg) scale(0.9);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.9s ease;
}
.program.is-visible .program__donut { transform: none; opacity: 1; }
.program__donut::before {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: #f7f7fb;
}
.program__donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.program__donut-num { color: #241b4f; font-size: 34px; font-weight: 700; line-height: 1; }
.program__donut-cap { color: #6b6790; font-size: 15px; font-weight: 500; }

/* legend */
.program__legend { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.program__leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.program__leg-pct  { color: #241b4f; font-size: 16px; font-weight: 700; }
.program__leg-lbl  { display: flex; align-items: center; gap: 8px; }
.program__leg-text { color: #454070; font-size: 14px; font-weight: 500; }
.program__dot      { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* outcomes */
.program__outcomes {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
.program__outcomes-title { margin: 0; color: #241b4f; font-size: 22px; font-weight: 700; text-align: right; width: 100%; }
.program__list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.program__out {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.program__out:hover {
  background: rgba(55, 40, 115, 0.06);
  transform: translateX(-4px);
}
.program__out:hover p { color: #241b4f; }
.program__check { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.program__out:hover .program__check {
  transform: scale(1.14);
  box-shadow: 0 6px 14px rgba(99, 153, 34, 0.4);
}

/* reveal columns on scroll */
.program__breakdown,
.program__outcomes {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.program.is-visible .program__breakdown { opacity: 1; transform: none; }
.program.is-visible .program__outcomes { opacity: 1; transform: none; transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .program__donut,
  .program__breakdown,
  .program__outcomes,
  .program__out { transition: none; transform: none; opacity: 1; }
}
.program__out p {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #454070;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}
.program__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #639922;
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 900px) {
  .program { padding: 64px 24px; gap: 40px; }
  .program__title { font-size: 28px; }
  .program__body { flex-direction: column; width: 100%; gap: 40px; }
  .program__breakdown { width: 100%; max-width: 440px; }
  .program__outcomes { width: 100%; }
}
@media (max-width: 560px) {
  .program__title { font-size: 23px; }
  .program__sub { font-size: 15px; }
}
