/**
 * Program Page Styles
 * Scope: Program Content Type layout overrides.
 *
 * Visual parity source references:
 *   - Hero:     hero-small.css (uses actual block library)
 *   - Facts:    four-column-facts.css
 *   - Outcomes: side-by-side-outcomes.css
 *   - Accordion: accordion.css
 *   - Testimonials: testimonial.css (simplified variant)
 */

/* ==========================================================================
   Program Hero
   ========================================================================== */

.program-hero {
  position: relative;
  width: 100%;
  min-height: 350px;
  background-color: #500617;
  overflow: visible;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 10;
}

.program-hero__main {
  display: flex;
  min-height: 350px;
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.program-hero__text-section {
  width: 45%;
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  padding-left: 0;
  margin: 0;
  background-color: #500617;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.program-hero__header-container {
  text-align: left;
  z-index: 10;
  margin-bottom: 20px;
  position: relative;
}

.program-hero__main-header {
  color: white;
  font-family: 'Gelasio', serif;
  font-size: 78px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.16;
  letter-spacing: 0%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;

  &.fit-lines {
    line-height: 1.3;
  }
}

.program-hero__sub-text {
  color: white;
  font-family: 'Gotham', sans-serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0%;
  opacity: 0.9;
}

.program-hero__sub-text p {
  margin: 0;
}

.program-hero__arrow {
  position: absolute;
  left: var(--gs-margin);
  width: 21px;
  height: 190px;
  z-index: 100;
  bottom: -105px;
}

.program-hero__arrow svg {
  width: 100%;
  height: 100%;
}

.program-hero__arrow svg path {
  stroke: #FDB618;
  stroke-width: 2;
}

.program-hero__image-section {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  padding: 25px 65px;
  padding-right: 0;
  margin: 0;
  box-sizing: border-box;
}

.program-hero__pattern-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 35%;
  /* Restricts the left-boundary so it starts visibly inboard of the image's left edge */
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.program-hero__media-wrapper,
.program-hero__media-wrapper article.media {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.program-hero__media-wrapper {
  div {
    height: 100%;
  }

  .field--type-image {
    > .field__item {
      display: flex;
      align-items: center;
    }
  }
}

.program-hero__media-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768.1px) {
  .program-hero__media-wrapper {
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   Program Information Area (Replaces Gutenberg Body)
   ========================================================================== */

.program-info {
  margin: 4rem 0;
}

.program-info__footer {
  margin-top: 2rem;
}

/* ==========================================================================
   Waiting List Area
   ========================================================================== */

.program-waiting-list {
  background-color: #f5f3f1;
  padding: 4rem 0;
  margin: 4rem 0;
  width: 100%;
}

.program-waiting-list__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.program-waiting-list__icon {
  width: 101px;
  height: 101px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.program-waiting-list__icon img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.program-waiting-list__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.program-waiting-list__title {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.16;
  color: #840029;
  text-align: center;
  margin: 0;
}

.program-waiting-list__desc {
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.62;
  color: #82142c;
  text-align: left;
}

.program-waiting-list__desc p {
  margin: 0 0 1rem 0;
}

.program-waiting-list__desc p:last-child {
  margin-bottom: 0;
}

.program-waiting-list__desc a {
  color: #82142c;
  text-decoration: underline;
  font-weight: 700;
}

.program-waiting-list__desc a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .program-waiting-list {
    padding: 3rem 0;
    margin: 3rem 0;
  }

  .program-waiting-list__title {
    font-size: 32px;
  }

  .program-waiting-list__desc {
    font-size: 18px;
  }
}

.program-hero__placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #666, #888);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.program-hero__bottom-section {
  height: 60px;
  background-color: white;
  width: 100%;
}

/* Tablet and smaller - keep horizontal layout, adjust font sizes */
@media (max-width: 1024px) {
  .program-hero {
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__main {
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__main-header {
    font-size: 60px;
    line-height: 1.2;
  }

  .program-hero__sub-text {
    font-size: 24px;
    font-family: 'Gotham', sans-serif;
    font-weight: 400;
    line-height: 1.4;
  }

  .program-hero__arrow {
    height: 180px;
    left: calc(var(--gs-margin) * 0.25);
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .program-hero {
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__pattern-background {
    width: 100%;
    height: 50%;
    /* Image is stacked on top, bind pattern to top half */
    background-position: center;
  }

  .program-hero__main {
    min-height: 300px;
    flex-direction: column-reverse;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__text-section {
    flex: 1;
    width: calc(100% + var(--gs-margin) * 2);
    padding: 1.5rem var(--gs-margin);
    margin-inline: calc(var(--gs-margin) * -1);
  }

  .program-hero__image-section {
    flex: 0 0 50%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2rem 0;
  }

  .program-hero__header-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__main-header {
    font-size: 48px;
    line-height: 1.2;
  }

  .program-hero__sub-text {
    font-size: 18px;
    font-family: 'Gotham', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .program-hero__arrow {
    height: 150px;
    bottom: -85px;
  }

  .program-hero__bottom-section {
    height: 50px;
  }
}

/* Mobile portrait */
@media (max-width: 567px) {
  .program-hero {
    min-height: 300px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__main {
    min-height: 250px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__text-section {
    padding-block: 1rem;
  }

  .program-hero__image-section {
    flex: 0 0 45%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 0;
  }

  .program-hero__header-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-hero__main-header {
    font-size: 36px;
    line-height: 1.2;
  }

  .program-hero__sub-text {
    font-size: 16px;
    font-family: 'Gotham', sans-serif;
    font-weight: 400;
    line-height: 1.4;
  }

  .program-hero__arrow {
    height: 150px;
    bottom: -100px;
  }

  .program-hero__bottom-section {
    height: 40px;
  }
}

/* ==========================================================================
   Program Badges (Hero additions – not in block)
   ========================================================================== */

.program-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.program-badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  border-radius: 4px;
}

.program-badge--coming-soon {
  background-color: #840029;
}

.program-badge--new {
  background-color: #FDB618;
  color: #500617;
}

.program__tag--cluster {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Gelasio', serif;
  font-size: 16px;
}

/* ==========================================================================
   Shared Section Title
   (Matches .mstc-four-columns-facts__header / .mstc-side-by-side-outcomes__header)
   ========================================================================== */

.program-section-title {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #840029;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

/* ==========================================================================
   Section Vertical Rhythm
   (Matches --bl-padding-top/bottom from block modules)
   ========================================================================== */

.program-facts,
.program-outcomes,
.program-details,
.program-testimonials {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.program-body {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Enforce exact 100px visual gap (50px bottom + 50px top) between Gutenberg blocks on Program pages */
.program-body .gutenberg-prose > section,
.program-body .gutenberg-prose > .section {
  --bl-padding-top: 50px !important;
  --bl-padding-bottom: 50px !important;
  --bl-padding-xl-top: 50px !important;
  --bl-padding-xl-bottom: 50px !important;
  --bl-padding-lg-top: 50px !important;
  --bl-padding-lg-bottom: 50px !important;
  --bl-padding-md-top: 50px !important;
  --bl-padding-md-bottom: 50px !important;
  --bl-padding-sm-top: 50px !important;
  --bl-padding-sm-bottom: 50px !important;
}

.program-body .gutenberg-prose > :last-child.mstc-three-column-cards {
  padding-top: 100px;
}

/* ==========================================================================
   Program Facts  ↔  four-column-facts.css
   ========================================================================== */

.program-facts {
  background-color: #FFFFFF;
}

.program-facts__content {
  background-color: #F5F3F1;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .program-facts__content {
    padding: 2rem 1rem;
  }
}

/* Facts Grid – matches .mstc-four-columns-facts__facts */
.program-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Fact – matches .mstc-four-columns-facts__fact */
.program-fact {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  overflow: visible;
  gap: 0.5rem;
  position: relative;
}

/* Fact Content Padding – matches .mstc-four-columns-facts__fact-content */
.program-fact__content {
  padding: 1.25rem 1.5rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Fact Label – matches .mstc-four-columns-facts__fact-header */
.program-fact__label {
  font-family: 'Gotham', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #500617;
  margin: 0 0 0.5rem 0;
  border-top: none;
  padding-top: 0;
}

/* Fact Value – matches .mstc-four-columns-facts__fact-description */
.program-fact__value,
.program-fact__value p {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px;
  line-height: 1.39;
  letter-spacing: 0;
  color: #B40015;
  margin: 0;
}

.program-fact__value a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.program-fact__value a:hover {
  color: #500617;
  text-decoration: none;
}

/* Responsive: Facts Grid */

@media (min-width: 1024.1px) {
  .program-body {
    .testimonial {
      .testimonial-quote {
        font-size: 22px;
      }
    }
  }
}

/* Large Desktop */
@media (max-width: 1400px) {
  .program-facts__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .program-facts .program-section-title {
    font-size: 42px;
  }

  .program-facts__grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .program-facts .program-section-title {
    font-size: 36px;
    text-align: center;
  }

  .program-facts__grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
  }

  .program-fact__label {
    font-size: 12px;
  }

  .program-fact__value,
  .program-fact__value p {
    font-size: 20px;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .program-facts .program-section-title {
    font-size: 32px;
  }

  .program-facts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .program-fact__content {
    padding: 0;
  }

  .program-fact__label {
    font-size: 11px;
  }

  .program-fact__value,
  .program-fact__value p {
    font-size: 18px;
  }
}

/* Mobile Portrait */
@media (max-width: 567px) {
  .program-facts .program-section-title {
    font-size: 24px;
  }

  .program-fact__content {
    padding: 0;
  }

  .program-fact__label {
    font-size: 12px;
  }

  .program-fact__value,
  .program-fact__value p {
    font-size: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .program-facts__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   Graduate Outcomes  ↔  side-by-side-outcomes.css
   ========================================================================== */

.program-outcomes {
  background-color: #ffffff;
  width: 100%;
  min-height: 400px;
  box-sizing: border-box;
  overflow-x: clip;
}

.program-outcomes__wrapper {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.program-outcomes__left {
  flex: 1;
  padding-right: 1rem;
  box-sizing: border-box;
  min-width: 0;
}

.program-outcomes__right {
  flex: 1;
  padding-left: 0;
  box-sizing: border-box;
  min-width: 0;
}

/* Section Title override for outcomes */
.program-outcomes .program-section-title {
  margin: 0 0 1.5rem 0;
}

/* Description text below title (if any) */
.program-outcomes__description p {
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 162%;
  color: #500617;
  margin-bottom: 2rem;
  text-align: left;
}

/* List Header – matches .mstc-side-by-side-outcomes__list-header */
.program-outcomes__subtitle {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 120%;
  color: #840029;
  margin: 0 0 1rem 0;
  text-align: left;
}

/* Career List – matches .mstc-side-by-side-outcomes__list */
.program-outcomes__careers ul,
.program-outcomes__careers .field__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-outcomes__careers li,
.program-outcomes__careers .field__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #500617;
}

/* Gold triangle bullet – matches .mstc-side-by-side-outcomes__list-bullet */
.program-outcomes__careers li::before,
.program-outcomes__careers .field__item::before {
  content: '';
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 6px solid #FDB618;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-top: 0.4em;
}

/* Outcome Cards – matches .mstc-side-by-side-outcomes__cards */
.program-outcome-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.program-outcome-cards:has(.program-outcome-card:nth-child(3):last-child) .program-outcome-card:last-child {
  grid-column: 1 / -1;
}

/* Individual Card – matches .mstc-side-by-side-outcomes__card */
.program-outcome-card {
  background-color: #840029;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 220px;
  width: 100%;
}

/* Card Number – matches .mstc-side-by-side-outcomes__outcome-number */
.program-outcome-card__number {
  font-family: 'Gotham', sans-serif;
  font-weight: 400;
  font-size: 65px;
  line-height: 120%;
  letter-spacing: 0;
  text-transform: uppercase;
  font-variant-numeric: lining-nums proportional-nums;
  color: #FDB618;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Card Title – matches .mstc-side-by-side-outcomes__outcome-title */
.program-outcome-card__title {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 139%;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
}

/* Card Description – matches .mstc-side-by-side-outcomes__outcome-description */
.program-outcome-card__description {
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 162%;
  color: #FFFFFF;
}

/* Responsive: Outcomes */

@media (max-width: 1024px) {
  .program-outcomes__wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .program-outcomes__left {
    flex: 1;
    padding-right: 0;
  }

  .program-outcomes__right {
    flex: 1;
  }

  .program-outcomes .program-section-title {
    font-size: 40px;
  }

  .program-outcomes__description p {
    font-size: 18px;
  }

  .program-outcomes__subtitle {
    font-size: 20px;
  }

  .program-outcome-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .program-outcome-card {
    min-width: 100%;
    padding: 1.5rem;
  }

  .program-outcome-card__number {
    font-size: 70px;
  }
}

@media (max-width: 768px) {
  .program-outcomes__wrapper {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    height: auto;
  }

  .program-outcomes__left,
  .program-outcomes__right {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .program-outcomes .program-section-title {
    font-size: 2.25rem;
  }

  .program-outcomes__description p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .program-outcomes__subtitle {
    font-size: 1.25rem;
  }

  .program-outcome-card__number {
    font-size: 60px;
  }

  .program-outcome-card__title {
    font-size: 18px;
  }

  .program-outcome-card__description {
    font-size: 14px;
  }
}

@media (max-width: 567px) {
  .program-outcomes .program-section-title {
    font-size: 20px;
  }

  .program-outcomes__description p {
    font-size: 14px;
    margin-bottom: 1rem;
  }

  .program-outcomes__subtitle {
    font-size: 18px;
  }

  .program-outcome-cards {
    grid-template-columns: 1fr !important;
  }

  .program-outcome-cards .program-outcome-card {
    grid-column: 1 !important;
  }

  .program-outcome-card__number {
    font-size: 50px;
  }

  .program-outcome-card__title {
    font-size: 16px;
  }

  .program-outcome-card__description {
    font-size: 13px;
  }
}

/* ==========================================================================
   Program Details (Accordion)  ↔  accordion.css
   ========================================================================== */

.program-details {
  background: white;
}

.program-details .program-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.program-details__description {
  max-width: calc(882px + (var(--gs-margin, 2rem) * 2));
  margin: 0 auto;
  padding: 0 var(--gs-margin, 2rem);
  text-align: center;
}

.program-details__description p {
  margin: 0;
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 162%;
  letter-spacing: 0%;
  color: #500617;
  text-align: center;
}

/* Accordion Wrapper – matches .accordion-container */
.program-accordion-wrapper {
  max-width: calc(882px + (var(--gs-margin, 2rem) * 2));
  margin: 0 auto;
  border-top: none;
  padding-block: 0 3rem;
}

.program-accordion-wrapper .accordion-item:first-child .accordion-header {
  padding-top: 0;
}

/* Individual Accordion Item – matches .accordion-item */
.program-accordion {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 2px solid rgba(132, 0, 41, 0.1);
}

.program-accordion:last-child {
  border-bottom: none;
}

/* Active/open state – gold bottom border per .accordion-item.active */
.program-accordion[open] {
  border-bottom: 2px solid #FDB618;
}

/* Accordion Summary – matches .accordion-header */
.program-accordion__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-family: 'Gotham', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 120%;
  color: #500617;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid rgba(132, 0, 41, 0.1);
}

.program-accordion__summary::-webkit-details-marker {
  display: none;
}

.program-accordion__summary:hover {
  color: #8B1538;
}

/* Summary text bold – per .accordion-title-text */
.program-accordion__summary-text {
  flex: 1;
  font-weight: bold;
}

/* Open state: summary color + clear bottom border (moved to item) */
.program-accordion[open]>.program-accordion__summary {
  color: #B40015;
  border-bottom: 2px solid transparent;
}

.program-accordion__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-accordion__icon svg {
  width: 50px;
  height: 50px;
}

.program-accordion__icon .arrow-down {
  display: block;
}

.program-accordion__icon .arrow-up {
  display: none;
}

.program-accordion[open] .program-accordion__icon .arrow-down {
  display: none;
}

.program-accordion[open] .program-accordion__icon .arrow-up {
  display: block;
}

/* Accordion Content – matches .accordion-content-inner */
.program-accordion__content {
  padding: 1.5rem 0;
  font-family: 'Gelasio', serif;
  font-size: 18px;
  color: #500617;
  line-height: 1.6;
  border-top: none;
}

.program-accordion__content p {
  margin: 0 0 1rem 0;
}

.program-accordion__content p:last-child {
  margin-bottom: 0;
}

/* Responsive: Accordion */

@media (max-width: 1024px) {
  .program-accordion-wrapper {
    padding-block: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-details .program-section-title {
    font-size: 42px;
    line-height: 48px;
  }

  .program-accordion__summary {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .program-accordion-wrapper {
    padding-block: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-details .program-section-title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 1.5rem;
  }

  .program-accordion__summary {
    padding: 1rem 0;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .program-accordion__icon,
  .program-accordion__icon svg {
    width: 35px;
    height: 35px;
  }

  .program-accordion__content {
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 567px) {
  .program-accordion-wrapper {
    padding-block: 1.5rem;
  }

  .program-details .program-section-title {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 1rem;
  }

  .program-accordion__summary {
    padding: 0.75rem 0;
    font-size: 16px;
  }

  .program-accordion__icon,
  .program-accordion__icon svg {
    width: 30px;
    height: 30px;
  }

  .program-accordion__content {
    padding: 0.75rem 0;
    font-size: 14px;
  }
}

/* ==========================================================================
   Testimonials (simplified variant of testimonial.css)
   ========================================================================== */

.program-testimonial-content {
  background-color: rgba(253, 182, 24, 0.1);
  padding: 48px;
  border-left: 6px solid #FDB618;
  font-family: 'Gelasio', serif;
  font-size: 22px;
  font-style: italic;
  color: #500617;
}

/* Misc content (catch-all for remaining fields) */
.program-misc-content:empty {
  display: none;
}

/* ==========================================================================
   Program Bottom CTA
   Abstracted from Gutenberg cta-two-buttons block
   ========================================================================== */

.program-cta {
  background-color: var(--cta-bg-color, #FDB618);
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
}

.program-cta__main {
  display: flex;
  height: 100%;
  align-items: center;
}

/* Left decorative strip */
.program-cta__decorative-strip {
  width: var(--gs-margin);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  flex-shrink: 0;
  z-index: 1;
  background-color: transparent;
  overflow: visible;
}

.program-cta__pattern-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  opacity: 1;
}

/* Main content section */
.program-cta__content-section {
  flex: 1;
  padding: 3rem var(--gs-margin);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons container */
.program-cta__buttons-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  /* 3rem spacing between buttons */
}

/* CTA Button */
.program-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  color: #500617;
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px;
  line-height: 139%;
  letter-spacing: 0%;
  vertical-align: middle;
  transition: all 0.3s ease;
  cursor: pointer;
}

.program-cta__button:hover {
  color: #B40015;
  text-decoration: none;
}

.program-cta__button:hover .program-cta__button-arrow {
  transform: translateX(13px);
}

.program-cta__button:hover .program-cta__button-arrow svg circle {
  fill: #B40015;
  stroke: #B40015;
}

.program-cta__button:hover .program-cta__button-arrow svg path {
  stroke: white;
}

.program-cta__button-text {
  font-weight: 700;
}

.program-cta__button-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.program-cta__button-arrow svg {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet and smaller */
@media (max-width: 1024px) {
  .program-cta {
    padding: 0;
  }

  .program-cta__content-section {
    padding: 2rem var(--gs-margin);
  }

  .program-cta__buttons-container {
    gap: 2rem;
  }

  .program-cta__button {
    font-size: 20px;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {

  /* Main Module */
  .program-cta {
    height: auto;
    min-height: 300px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-cta__main {
    flex-direction: row;
    height: auto;
    min-height: 300px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Decorative strip - ensure visibility */
  .program-cta__decorative-strip {
    height: 100%;
    min-height: 300px;
  }

  .program-cta__content-section {
    padding: 1rem var(--gs-margin);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-cta__buttons-container {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-cta__button {
    font-size: 18px;
    width: 100%;
    justify-content: center;
  }

  .program-cta__button-arrow svg {
    width: 48px;
    height: 48px;
  }
}

/* Mobile portrait */
@media (max-width: 567px) {
  .program-cta {
    min-height: 250px;
  }

  .program-cta__main {
    min-height: 250px;
  }

  /* Decorative strip - ensure visibility */
  .program-cta__decorative-strip {
    height: 100%;
    min-height: 250px;
  }

  .program-cta__content-section {
    padding: 1rem var(--gs-margin);
  }

  .program-cta__buttons-container {
    gap: 1rem;
  }

  .program-cta__button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .program-cta__button-arrow svg {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Program Facts Modifications (Tooltips and CTAs)
   ========================================================================== */

/* Enhanced Label Styles */
.program-fact__label {
  font-family: 'Gotham', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #500617;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

/* Tooltip Styles */
.program-facts__tooltip-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  flex-shrink: 0;
  margin-top: -2px;
  /* optical alignment with uppercase text */
}

.program-facts__tooltip-icon {
  display: flex;
  align-items: center;
  color: #840029;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
}

.program-facts__tooltip-icon:hover,
.program-facts__tooltip-container.is-active .program-facts__tooltip-icon {
  color: #B40015;
}

.program-tooltip__heading {
  display: block;
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.39;
  color: #840029;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.program-tooltip__body,
.program-tooltip__body p {
  color: #82142c;
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

.program-tooltip__body p {
  margin-bottom: 15px;
}

.program-tooltip__body p:last-child {
  margin-bottom: 0;
}

.program-tooltip__body a {
  color: #840029;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.program-tooltip__body a:hover,
.program-tooltip__body a:focus {
  color: #500617;
  text-decoration-thickness: 2px;
}


/* Force a wrapped label segment onto its own line */
.program-fact__label-break {
  flex-basis: 100%;
}

/* Base Fact cell should not hide tooltip overflow */
.program-fact {
  overflow: visible;
}

/* Small CTA Button Styling */
.program-facts__fact-cta {
  display: block;
  margin-top: 5px;
}

.program-facts__fact-cta-button {
  display: inline-block;
  max-width: 100%;
}

.program-facts__fact-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #840029;
  font-family: 'Gotham', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.39;
  letter-spacing: 0;
  vertical-align: middle;
  transition: all 0.3s ease;
  max-width: 100%;
  flex-wrap: nowrap;
}

.program-facts__fact-cta-link:hover {
  gap: 25px;
  color: #500617;
  text-decoration: none;
}

.program-facts__fact-cta-text {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.39;
  letter-spacing: 0;
  vertical-align: middle;
  flex-shrink: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
}

/* CTA Arrow Styling */
.program-facts__fact-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 20px;
}

.program-facts__fact-cta-arrow svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.program-outcomes__description {
  margin-bottom: 2rem;
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}