/* Program landing — builds on university.css */

.cs-prog-single .cs-prose,
.cs-prog-guide .entry-content.cs-prose {
  max-width: none;
  width: 100%;
  text-align: justify;
}

.cs-prog-single .cs-uni-hero__lead {
  max-width: min(52rem, 100%);
}

.cs-prog-single .cs-prog-facts__body,
.cs-prog-single .cs-prog-faq,
.cs-prog-single .cs-uni-callout .cs-prose {
  text-align: justify;
}

.cs-prog-figure {
  margin: 1.5rem 0 2rem;
}

.cs-prog-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1rem;
}

.cs-prog-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--cs-soft, #5c4038);
  text-align: center;
}

.cs-prog-figure--pair {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cs-prog-figure--pair {
    grid-template-columns: 1fr 1fr;
  }

  .cs-prog-figure--pair img {
    max-height: 280px;
  }
}

@media (max-width: 767px) {
  .cs-prog-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-prog-hero__actions .cs-btn {
    width: 100%;
    justify-content: center;
  }

  .cs-prog-single .cs-uni-body {
    padding-bottom: 5.5rem;
  }
}

.cs-prog-hero__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cs-prog-hero__actions .cs-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (min-width: 560px) {
  .cs-prog-hero__actions {
    flex-direction: row;
  }

  .cs-prog-hero__actions .cs-btn {
    width: auto;
  }
}

.cs-btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.cs-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cs-prog-facts {
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}

.cs-prog-facts__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--cs-ink, #1a1a1a);
}

.cs-prog-facts__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.cs-prog-facts__body td,
.cs-prog-facts__body th {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: right;
  vertical-align: top;
  font-size: 0.92rem;
}

.cs-prog-facts__body tr:last-child td {
  border-bottom: 0;
}

.cs-prog-facts__body td:first-child,
.cs-prog-facts__body th:first-child {
  font-weight: 700;
  width: 36%;
  color: var(--cs-soft, #5a5a5a);
  padding-inline-end: 0.75rem;
}

.cs-prog-intro {
  color: var(--cs-soft, #5a5a5a);
  margin: 0 0 1.25rem;
  line-height: 1.8;
}

.cs-prog-eval {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .cs-prog-eval {
    grid-template-columns: 1fr 1fr;
  }
}

.cs-prog-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.75rem;
}

.cs-prog-tabs__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cs-soft, #5a5a5a);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.cs-prog-tabs__btn:hover {
  color: var(--cs-ink, #1a1a1a);
}

.cs-prog-tabs__btn.is-active {
  background: var(--cs-red, #de2910);
  color: #fff;
  border-color: var(--cs-red, #de2910);
}

.cs-prog-tabs__panel {
  display: none;
}

.cs-prog-tabs__panel.is-active {
  display: block;
}

.cs-prog-faq h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
}

.cs-prog-faq h3:first-child {
  margin-top: 0;
}

.cs-prog-faq p {
  margin: 0 0 0.75rem;
  color: var(--cs-soft, #5a5a5a);
  line-height: 1.85;
}

/* Program FAQ uses shared accordion */
.cs-prog-single .cs-faq__list {
  margin-top: 0.25rem;
}

.cs-prog-guide .cs-prose {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.cs-prog-guide .cs-prose > h2 {
  scroll-margin-top: 6rem;
}

.cs-prog-guide .cs-prose .cs-table-wrap {
  max-width: 100%;
}

.cs-prog-guide .cs-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.25rem 0 2rem;
}

.cs-prog-guide .cs-prose th,
.cs-prog-guide .cs-prose td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.65rem 0.7rem;
  text-align: right;
  vertical-align: top;
}

.cs-prog-guide .cs-prose thead th {
  background: rgba(222, 41, 16, 0.06);
  font-weight: 800;
}

.cs-prog-guide .cs-prose ul,
.cs-prog-guide .cs-prose ol {
  padding-inline-start: 1.25rem;
}

.cs-prog-guide .cs-prose .cs-callout-note {
  background: rgba(255, 222, 0, 0.18);
  border-inline-start: 4px solid var(--cs-gold, #ffde00);
  padding: 1rem 1.15rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}
