.page-header,
.filter-bar,
.courses-page,
.courses-cta {
  display: none !important;
}

.programs-page {
  --program-ink: #14251f;
  --program-muted: #64736d;
  --program-cream: #fbf7ed;
  --program-line: rgba(13, 107, 94, 0.16);
  background-color: var(--program-cream);
  background-image:
    linear-gradient(rgba(251, 247, 237, 0.91), rgba(251, 247, 237, 0.91)),
    url("islamic-pattern.png");
  background-size: auto, 520px;
  color: var(--program-ink);
}

.programs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 170px 20px 86px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(3, 33, 29, 0.975), rgba(3, 33, 29, 0.96)),
    url("islamic-pattern.png") center / 520px repeat;
}

.programs-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(13, 107, 94, 0.18), transparent 48%);
  animation: program-hero-glow 7s ease-in-out infinite alternate;
}

.programs-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 170, 85, 0.55), transparent);
}

.programs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.programs-hero-inner > * {
  opacity: 0;
  animation: program-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.programs-hero-inner > :nth-child(1) {
  animation-delay: 0.08s;
}

.programs-hero-inner > :nth-child(2) {
  animation-delay: 0.2s;
}

.programs-hero-inner > :nth-child(3) {
  animation-delay: 0.34s;
}

.programs-hero-inner > :nth-child(4) {
  animation-delay: 0.48s;
}

.programs-eyebrow,
.program-section-number {
  color: #e3aa55;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.programs-hero h1 {
  margin: 16px 0 20px;
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
}

.programs-hero-description {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.8;
}

.programs-arabic {
  margin-top: 24px;
  color: #e3aa55;
  font-family: var(--font-ar);
  font-size: 1.25rem;
}

.program-toolbar-wrap {
  position: sticky;
  top: 78px;
  z-index: 90;
  padding: 18px 0;
  border-bottom: 1px solid var(--program-line);
  background: rgba(251, 247, 237, 0.94);
  box-shadow: 0 14px 38px rgba(6, 62, 53, 0.07);
  backdrop-filter: blur(18px);
  animation: program-toolbar-enter 0.75s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.program-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 14px;
}

.program-search {
  position: relative;
}

.program-search svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  transform: translateY(-50%);
  fill: var(--teal);
}

.program-search input,
.program-sort {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--program-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--program-ink);
}

.program-search input {
  padding: 0 18px 0 52px;
}

.program-sort {
  min-width: 220px;
  padding: 0 16px;
}

.program-filters {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: thin;
}

.program-filter {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--program-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #54645e;
  font-size: 0.78rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.program-filter:hover,
.program-filter.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.program-catalog {
  padding: 84px 0 110px;
}

.program-section + .program-section {
  margin-top: 100px;
}

.program-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 42px;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--program-line);
}

.program-section-header,
.program-closing {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-section-header.program-visible,
.program-closing.program-visible {
  opacity: 1;
  transform: translateY(0);
}

.program-section-header h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.program-section-header p {
  color: var(--program-muted);
  line-height: 1.8;
}

.program-list {
  display: grid;
  gap: 22px;
}

.program-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  overflow: hidden;
  border: 1px solid rgba(13, 107, 94, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(6, 62, 53, 0.06);
  backdrop-filter: blur(7px);
  opacity: 0;
  position: relative;
  transform: translateY(38px) scale(0.985);
  transition:
    opacity 0.7s ease var(--program-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--program-delay, 0ms),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.38) 34%, transparent 58%);
  opacity: 0;
  transform: translateX(-120%) skewX(-15deg);
  transition: opacity 0.36s ease, transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card.program-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.program-card.program-visible:hover {
  transform: translateY(-8px) scale(1.018);
  border-color: rgba(200, 152, 42, 0.34);
  box-shadow: 0 30px 76px rgba(6, 62, 53, 0.16), 0 12px 28px rgba(200, 152, 42, 0.14);
  z-index: 3;
}

.program-card.program-visible:hover::before {
  opacity: 1;
  transform: translateX(125%) skewX(-15deg);
}

.program-card-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 26px;
  color: #fff;
  background: linear-gradient(150deg, #063e35, #0d6b5e);
}

.program-side-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 45, 40, 0.3), rgba(0, 45, 40, 0.82));
  transition: background 0.45s ease;
}

.program-card:nth-child(2n) .program-card-side {
  background: linear-gradient(150deg, #8e6918, #c8982a);
}

.program-card:nth-child(3n) .program-card-side {
  background: linear-gradient(150deg, #173c4d, #24657b);
}

.program-card-side::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background: url("islamic-pattern.png") center / 280px repeat;
}

.program-side-top,
.program-side-bottom {
  position: relative;
  z-index: 2;
}

.program-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-goal {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}

.program-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  fill: rgba(255, 255, 255, 0.92);
}

.program-category {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-main {
  padding: 30px 32px;
}

.program-main h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.program-summary {
  margin-bottom: 20px;
  color: var(--program-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
}

.program-meta span,
.program-audience span {
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(13, 107, 94, 0.07);
  color: #3f5b52;
  font-size: 0.72rem;
  font-weight: 700;
}

.program-learning-label,
.program-audience-label {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.program-learning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}

.program-learning li {
  position: relative;
  padding-left: 18px;
  color: #4f625b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.program-learning li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c8982a;
  font-weight: 900;
}

.program-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-left: 1px solid var(--program-line);
  background: rgba(250, 247, 239, 0.78);
}

.program-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.program-promise {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid rgba(200, 152, 42, 0.22);
  border-radius: 7px;
  background: rgba(200, 152, 42, 0.08);
  color: #80621d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.55;
}

.program-enroll {
  display: inline-flex;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: #e3aa55;
  color: #10211c;
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.program-enroll:hover {
  background: #f2bd68;
  color: #071311;
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(200, 152, 42, 0.25);
}

.program-card.program-visible:hover .program-side-image {
  transform: scale(1.065);
  filter: saturate(1.08) contrast(1.04);
}

.program-card.program-visible:hover .program-card-side::after {
  background: linear-gradient(180deg, rgba(0, 45, 40, 0.18), rgba(0, 45, 40, 0.78));
}

.program-card.program-visible:hover .program-enroll {
  background: #f2bd68;
  color: #071311;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(200, 152, 42, 0.28);
}

.program-empty {
  display: none;
  padding: 70px 20px;
  text-align: center;
  color: var(--program-muted);
}

.program-empty.visible {
  display: block;
}

.program-closing {
  margin-top: 94px;
  padding: 58px 30px;
  border-radius: 10px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 47, 41, 0.96), rgba(13, 107, 94, 0.91)),
    url("islamic-pattern.png") center / 440px repeat;
}

.program-closing h2 {
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.program-closing p {
  max-width: 650px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.72);
}

.program-closing-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes program-hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes program-hero-glow {
  from {
    opacity: 0.55;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes program-toolbar-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .program-card {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .program-action {
    grid-column: 1 / -1;
    border-top: 1px solid var(--program-line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .programs-hero {
    padding: 145px 20px 68px;
  }
  .program-toolbar {
    grid-template-columns: 1fr;
  }
  .program-sort {
    min-width: 0;
  }
  .program-section-header,
  .program-card {
    grid-template-columns: 1fr;
  }
  .program-card {
    max-width: 540px;
    margin: 0 auto 18px;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  }
  .program-card-side {
    position: relative;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .program-side-image {
    position: relative;
    width: 100%;
    height: 180px;
    min-height: 180px;
    object-fit: cover;
    object-position: center 50%;
  }
  .program-card-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.16));
  }
  .program-side-top {
    display: none;
  }
  .program-side-bottom {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
  }
  .program-badge {
    display: none;
  }
  .program-category {
    display: inline-flex;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .program-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
    fill: rgba(255, 255, 255, 0.9);
  }
  .program-goal {
    display: none;
  }
  .program-main {
    padding: 18px 18px 16px;
  }
  .program-main h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    line-height: 1.22;
    font-weight: 800;
    color: #10211c;
  }
  .program-summary {
    margin-bottom: 16px;
    color: #4f625b;
    font-size: 1rem;
    line-height: 1.65;
  }
  .program-meta,
  .program-learning,
  .program-audience,
  .program-promise,
  .program-learning-label,
  .program-audience-label {
    display: none !important;
  }
  .program-action {
    padding: 0 18px 18px;
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
  }
  .program-enroll {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 14px 16px;
  }
  .program-learning {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .programs-hero::before,
  .programs-hero-inner > *,
  .program-toolbar-wrap {
    animation: none;
  }

  .programs-hero-inner > *,
  .program-section-header,
  .program-card,
  .program-card::before,
  .program-side-image,
  .program-card-side::after,
  .program-enroll,
  .program-closing {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.custom-course-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(360px, 620px) auto;
  justify-content: center;
  gap: clamp(32px, 4.8vw, 72px);
  align-items: center;
  min-height: clamp(410px, 54vh, 560px);
  margin: 34px auto 62px;
  padding: clamp(38px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(198, 149, 69, .38);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .94), rgba(251, 243, 226, .92)),
    url("islamic-pattern.png") center / 480px repeat;
  box-shadow: 0 30px 90px rgba(17, 55, 47, .12), 0 14px 36px rgba(198, 149, 69, .1);
}

.custom-course-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(198, 149, 69, .18);
  border-radius: 18px;
  pointer-events: none;
}

.custom-course-logo {
  display: grid;
  width: clamp(126px, 10.5vw, 160px);
  height: clamp(126px, 10.5vw, 160px);
  place-items: center;
  border-radius: 50%;
  background: #083e36;
  box-shadow: 0 18px 44px rgba(8, 62, 54, .22);
}

.custom-course-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.custom-course-panel .program-section-number {
  margin-bottom: 12px;
  color: #d99a3f;
  font-size: 0.86rem;
}

.custom-course-panel h2 {
  margin: 0 0 14px;
  color: #083e36;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.custom-course-panel p:last-child {
  max-width: 760px;
  color: #4f625b;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.68;
}

.custom-course-panel .btn {
  justify-self: end;
  min-width: 220px;
  padding: 18px 30px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 16px 34px rgba(200, 152, 42, .24);
}

@media (max-width: 768px) {
  .custom-course-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 38px 24px;
    text-align: center;
  }

  .custom-course-logo,
  .custom-course-panel .btn {
    justify-self: center;
  }
}

/* Compact mobile course catalog. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .programs-page {
    background-size: auto, 360px;
    overflow-x: hidden;
  }

  .programs-hero {
    padding: 96px 16px 38px;
  }

  .programs-hero-inner {
    width: 100%;
    max-width: 340px;
    min-width: 0;
  }

  .programs-hero h1 {
    margin: 10px 0 12px;
    max-width: 100%;
    font-size: clamp(1.82rem, 8vw, 2.22rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .programs-eyebrow,
  .program-section-number {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .programs-hero-description {
    width: min(100%, 302px);
    max-width: 302px;
    margin-inline: auto;
    font-size: 0.78rem;
    line-height: 1.52;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .programs-hero-inner > *,
  .program-toolbar-wrap,
  .program-section-header,
  .program-card,
  .program-closing {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .program-toolbar-wrap {
    top: 60px;
    padding: 10px 0;
  }

  .program-toolbar {
    gap: 9px;
  }

  .program-search input,
  .program-sort {
    min-height: 42px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .program-search svg {
    left: 14px;
    width: 17px;
  }

  .program-search input {
    padding: 0 14px 0 42px;
  }

  .program-sort {
    padding: 0 12px;
  }

  .program-filters {
    gap: 6px;
    margin-right: -14px;
    padding: 2px 14px 2px 0;
    scrollbar-width: none;
  }

  .program-filters::-webkit-scrollbar {
    display: none;
  }

  .program-filter {
    padding: 7px 12px;
    font-size: 0.68rem;
  }

  .program-catalog {
    padding: 42px 0 60px;
  }

  .program-section + .program-section {
    margin-top: 52px;
  }

  .program-section-header {
    gap: 10px;
    margin: 0 auto 18px;
    padding-bottom: 14px;
    text-align: center;
    justify-content: center;
  }

  .program-section-header h2 {
    margin: 5px auto 0;
    font-size: clamp(1.4rem, 7vw, 1.9rem);
    line-height: 1.1;
  }

  .program-list {
    gap: 18px;
    min-width: 0;
    max-width: 480px;
    margin: 0 auto;
  }

  .program-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 16px;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
    background: #fff;
  }

  .program-card.program-visible:hover {
    transform: none;
  }

  .program-card-side {
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .program-side-image {
    width: 100%;
    height: 190px;
    min-height: 190px;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .program-card-side::before,
  .program-card-side::after,
  .program-side-bottom,
  .program-side-top,
  .program-badge,
  .program-goal,
  .program-icon,
  .program-category {
    display: none !important;
  }

  .program-main {
    min-width: 0;
    padding: 22px 20px 18px;
  }

  .program-main h3 {
    margin-bottom: 10px;
    font-size: 1.24rem;
    line-height: 1.3;
    font-weight: 800;
    color: #10211c;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .program-summary {
    margin-bottom: 18px;
    color: #4f5b55;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .program-meta,
  .program-learning,
  .program-audience,
  .program-promise,
  .program-learning-label,
  .program-audience-label {
    display: none !important;
  }

  .program-action {
    display: flex;
    justify-content: center;
    padding: 0 20px 20px;
    background: transparent;
  }

  .program-enroll {
    width: auto;
    max-width: 220px;
    min-width: 0;
    padding: 12px 22px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid #e34b57;
    color: #10211c;
    font-size: 0.96rem;
    font-weight: 800;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .custom-course-logo {
    width: 62px;
    height: 62px;
  }

  .custom-course-logo img {
    width: 52px;
    height: 52px;
  }

  .custom-course-panel h2 {
    font-size: 1.35rem;
  }

  .custom-course-panel p:last-child {
    font-size: 0.84rem;
    line-height: 1.55;
  }
}


@media (max-width: 980px) {
  .program-card {
    grid-template-columns: 1fr !important;
  }

  .program-card-side,
  .program-main,
  .program-action {
    min-width: 0;
  }

  .program-side-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    object-fit: cover;
    object-position: center 50%;
  }

  .program-card-side {
    display: block;
    min-height: auto;
    padding: 12px 14px 0;
  }

  .program-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .program-main {
    padding: 16px;
  }

  .program-main h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .program-summary {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .program-meta,
  .program-learning,
  .program-audience,
  .program-promise,
  .program-learning-label,
  .program-audience-label {
    display: none !important;
  }

  .program-action {
    padding: 14px 14px 18px;
  }

  .program-enroll {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .programs-hero {
    padding-top: 96px;
  }

  .program-card-side {
    min-height: 126px;
  }

  .program-main,
  .program-action {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.program-card {
  grid-template-columns: minmax(360px, 42%) minmax(0, 1fr) minmax(220px, 260px);
  align-items: start;
}

.program-card-side {
  aspect-ratio: 3 / 2;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  align-self: start;
}

.program-side-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.program-card-side::before,
.program-card-side::after,
.program-side-top,
.program-side-bottom,
.program-badge,
.program-goal,
.program-icon,
.program-category {
  display: none !important;
}

.program-card.program-visible:hover .program-side-image {
  transform: none;
  filter: none;
}

.program-card.program-visible:hover .program-card-side::after {
  display: none !important;
}

@media (max-width: 1180px) {
  .program-card {
    grid-template-columns: minmax(320px, 40%) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .program-card {
    grid-template-columns: 1fr !important;
    max-width: min(100%, 560px);
  }

  .program-card-side {
    width: 100%;
    aspect-ratio: 3 / 2;
    padding: 0;
    min-height: 0;
  }

  .program-side-image {
    position: absolute;
    height: 100%;
    min-height: 0;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .program-card-side {
    min-height: 0;
  }
}
