/* =========================================================
   Programs Page — Sanaye Danesh Bartar
   Scoped page styles. Does not affect other pages.
========================================================= */

.programs-page {
  --programs-max: 1680px;
  --programs-pad: clamp(22px, 6vw, 108px);
  --programs-line: rgba(31, 26, 20, 0.1);
  --programs-muted: #746f69;
  background: #fbfaf8;
}

.programs-page main {
  overflow: hidden;
}

.programs-page img {
  max-width: 100%;
}

/* Hero */

.programs-hero {
  width: min(var(--programs-max), calc(100% - 32px));
  min-height: 650px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(620px, 1.1fr);
  gap: clamp(46px, 5.5vw, 92px);
  align-items: center;
  padding: clamp(44px, 4.5vw, 72px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 28, 20, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 14% 12%,
      rgba(242, 121, 5, 0.075),
      transparent 24%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 245, 240, 0.94)
    );
  box-shadow: 0 28px 78px rgba(42, 31, 20, 0.075);
}

.programs-hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -170px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(242, 121, 5, 0.1);
  box-shadow:
    0 0 0 56px rgba(242, 121, 5, 0.022),
    0 0 0 112px rgba(242, 121, 5, 0.012);
  pointer-events: none;
}

.programs-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
  text-align: right;
}

.programs-hero__copy .eyebrow {
  margin-bottom: 14px;
}

.programs-hero h1 {
  max-width: 12ch;
  margin: 0 0 22px;
  color: #151515;
  font-size: clamp(43px, 4.45vw, 68px);
  line-height: 1.4;
  font-weight: 540;
  letter-spacing: -2px;
}

.programs-hero h1 span {
  display: block;
  color: var(--orange);
}

.programs-hero__lead {
  max-width: 54ch;
  margin: 0;
  color: var(--programs-muted);
  font-size: 14.5px;
  line-height: 2.18;
}

.programs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 28px;
}

.programs-text-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #292622;
  font-size: 12.5px;
  font-weight: 650;
  border-bottom: 1px solid rgba(242, 121, 5, 0.3);
}

.programs-text-link span {
  color: var(--orange);
  font-size: 16px;
}

.programs-hero__visual {
  position: relative;
  height: 510px;
  min-width: 0;
}

.programs-hero__main-photo,
.programs-hero__small-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #e9e5df;
  border: 6px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 58px rgba(41, 31, 20, 0.15);
}

.programs-hero__main-photo {
  inset: 8px 58px 28px 0;
  border-radius: 28px;
}

.programs-hero__small-photo--students {
  width: 36%;
  height: 168px;
  left: -4px;
  top: 48px;
  border-radius: 20px;
}

.programs-hero__small-photo--group {
  width: 43%;
  height: 188px;
  right: 0;
  bottom: 0;
  border-radius: 20px;
}

.programs-hero__main-photo img,
.programs-hero__small-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.programs-hero__badge {
  position: absolute;
  left: 24px;
  bottom: 12px;
  z-index: 5;
  min-width: 230px;
  display: grid;
  gap: 4px;
  padding: 15px 18px;
  color: #fff;
  text-align: right;
  border-radius: 16px;
  background: rgba(22, 21, 18, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.programs-hero__badge span {
  font-size: 13px;
  font-weight: 750;
}

.programs-hero__badge small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

/* Shared heading */

.programs-section-heading {
  width: min(100%, 790px);
  margin: 0 0 48px auto;
  text-align: right;
}

.programs-section-heading .eyebrow {
  margin: 0 0 12px;
}

.programs-section-heading h2 {
  max-width: 14ch;
  margin: 0 0 16px;
  color: #171717;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1.48;
  font-weight: 520;
  letter-spacing: -1.6px;
}

.programs-section-heading > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--programs-muted);
  font-size: 14px;
  line-height: 2.12;
}

.programs-section-heading--compact {
  width: min(100%, 1180px);
  margin: 0 auto 34px;
  display: grid;
  gap: 14px;
}

.programs-section-heading--compact .eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

.programs-section-heading--compact h2 {
  max-width: 14ch;
  margin: 0;
  color: #171717;
  font-size: clamp(34px, 3.1vw, 52px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -1px;
  text-wrap: balance;
}

.programs-section-heading--compact > p:last-child {
  max-width: 78ch;
  margin: 0;
  color: #6f6a64;
  font-size: 15px;
  line-height: 2.1;
}

/* =========================================================
   Programs Pillars — Clean Minimal Cards
========================================================= */

.programs-pillars {
  padding: 76px var(--programs-pad) 86px;
  background: #fbfaf8;
}

.programs-pillars__grid {
  width: min(var(--programs-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.program-pillar {
  position: relative;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 22px 24px;
  overflow: hidden;
  text-align: right;
  border: 1px solid rgba(31, 26, 20, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 30px rgba(34, 27, 19, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition:
    opacity 0.62s var(--ease-premium),
    transform 0.62s var(--ease-premium),
    border-color 0.3s ease,
    box-shadow 0.3s var(--ease-premium),
    background 0.3s ease;
}

.program-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  width: 34px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--orange);
  transition: width 0.34s var(--ease-premium);
}

.program-pillar__top {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 18px;
}

.program-pillar__label {
  min-width: 72px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #837c75;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(242, 121, 5, 0.18);
  border-radius: 13px;
  background: #fffaf6;
  transition:
    color 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s var(--ease-premium),
    box-shadow 0.28s var(--ease-premium);
}

.program-pillar h3 {
  margin: 0 0 10px;
  color: #1b1a18;
  font-size: 20px;
  line-height: 1.72;
  font-weight: 720;
  letter-spacing: -0.2px;
}

.program-pillar p {
  max-width: 31ch;
  margin: 0;
  color: #756f69;
  font-size: 12.75px;
  line-height: 2;
}

.programs-pillars__grid.is-reveal-ready .program-pillar {
  opacity: 0;
  transform: translateY(18px);
}

.programs-pillars__grid.is-reveal-ready .program-pillar.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--pillar-delay, 0ms);
}

@media (hover: hover) and (pointer: fine) {
  .program-pillar:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 121, 5, 0.15);
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
      0 20px 44px rgba(36, 29, 20, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }

  .program-pillar:hover::before {
    width: 56px;
  }

  .program-pillar:hover .program-pillar__label {
    color: #fff;
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(242, 121, 5, 0.15);
  }

  .programs-pillars__grid.is-reveal-ready .program-pillar.is-visible:hover {
    transform: translateY(-4px);
  }
}

/* Grade pathway */

.programs-grades {
  padding: 92px var(--programs-pad) 104px;
  color: #f8f4ed;
  background:
    radial-gradient(circle at 88% 10%, rgba(242, 121, 5, 0.1), transparent 24%),
    #181714;
}

.programs-grades--second {
  padding-top: 0;
  background:
    radial-gradient(circle at 9% 86%, rgba(242, 121, 5, 0.075), transparent 24%),
    #181714;
}

.programs-grades--second .programs-grades__intro {
  padding-top: 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.programs-grades__intro {
  width: min(var(--programs-max), 100%);
  margin: 0 auto 48px;
  text-align: right;
}

.programs-grades__intro .eyebrow {
  margin-bottom: 12px;
}

.programs-grades__intro h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(39px, 4vw, 60px);
  line-height: 1.45;
  font-weight: 520;
  letter-spacing: -1.6px;
}

.programs-grades__intro > p:last-child {
  max-width: 59ch;
  margin: 0;
  color: rgba(248, 244, 237, 0.6);
  font-size: 14px;
  line-height: 2.12;
}

.programs-grades__grid {
  width: min(var(--programs-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grade-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.grade-card--featured {
  border-color: rgba(242, 121, 5, 0.34);
  background: linear-gradient(
    145deg,
    rgba(242, 121, 5, 0.09),
    rgba(255, 255, 255, 0.045)
  );
}

.grade-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.grade-card__index {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #ff8a38;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid rgba(242, 121, 5, 0.3);
  border-radius: 14px;
}

.grade-card__label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 650;
}

.grade-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 25px;
  line-height: 1.6;
  font-weight: 650;
}

.grade-card > p {
  margin: 0 0 22px;
  color: rgba(248, 244, 237, 0.6);
  font-size: 13px;
  line-height: 2;
}

.grade-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.grade-card li {
  position: relative;
  list-style: none;
  padding-right: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12.5px;
  line-height: 1.9;
}

.grade-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.grade-card__result {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.grade-card__result small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10.5px;
}

.grade-card__result strong {
  color: #f7f1e9;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 650;
}

/* Learning cycle */

.programs-cycle {
  padding: 104px var(--programs-pad);
  display: grid;
  grid-template-columns: minmax(430px, 0.88fr) minmax(560px, 1.12fr);
  gap: clamp(58px, 7vw, 118px);
  align-items: center;
  background: #fbfaf8;
}

.programs-cycle__visual {
  position: relative;
  min-height: 590px;
}

.programs-cycle__photo {
  position: absolute;
  inset: 0 0 36px 52px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #e8e3dc;
  box-shadow: 0 28px 68px rgba(42, 31, 20, 0.14);
}

.programs-cycle__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.programs-cycle__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 250px;
  display: grid;
  gap: 4px;
  padding: 17px 20px;
  color: #fff;
  text-align: right;
  border-radius: 17px;
  background: #1c1a17;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.17);
}

.programs-cycle__caption strong {
  font-size: 13px;
}

.programs-cycle__caption span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
}

.programs-cycle__copy {
  max-width: 710px;
  text-align: right;
}

.programs-cycle__copy .eyebrow {
  margin-bottom: 12px;
}

.programs-cycle__copy > h2 {
  max-width: 13ch;
  margin: 0 0 16px;
  color: #171717;
  font-size: clamp(39px, 3.9vw, 58px);
  line-height: 1.48;
  font-weight: 520;
  letter-spacing: -1.6px;
}

.programs-cycle__lead {
  max-width: 56ch;
  margin: 0;
  color: var(--programs-muted);
  font-size: 14px;
  line-height: 2.12;
}

.programs-cycle__steps {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--programs-line);
}

.programs-cycle__steps article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--programs-line);
}

.programs-cycle__steps article > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 750;
  border: 1px solid rgba(242, 121, 5, 0.25);
  border-radius: 13px;
  background: #fffaf5;
}

.programs-cycle__steps h3 {
  margin: 0 0 4px;
  color: #24211d;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 650;
}

.programs-cycle__steps p {
  margin: 0;
  color: #746f69;
  font-size: 12.5px;
  line-height: 1.95;
}

/* =========================================================
   Learning Domains — Balanced Minimal Layout
========================================================= */

.programs-domains {
  position: relative;
  padding: 68px var(--programs-pad) 76px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f5f0 0%, #fbfaf8 100%);
  border-top: 1px solid rgba(35, 28, 20, 0.07);
  border-bottom: 1px solid rgba(35, 28, 20, 0.07);
}

.programs-domains__layout {
  width: min(var(--programs-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-areas: "media content";
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  direction: ltr;
}

.programs-domains__photo {
  grid-area: media;
  position: relative;
  height: 460px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #e9e4dd;
  box-shadow:
    0 22px 52px rgba(42, 31, 20, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.programs-domains__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(18, 16, 13, 0.36) 100%
  );
}

.programs-domains__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-premium);
}

.programs-domains__photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  min-width: 230px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: #fff;
  text-align: right;
  direction: rtl;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(24, 22, 19, 0.78);
  backdrop-filter: blur(9px);
}

.programs-domains__photo figcaption strong {
  font-size: 12.5px;
  line-height: 1.7;
  font-weight: 700;
}

.programs-domains__photo figcaption span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10.5px;
  line-height: 1.7;
}

.programs-domains__list {
  grid-area: content;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  direction: rtl;
}

.program-domain {
  position: relative;
  min-width: 0;
  min-height: 224px;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  overflow: hidden;
  text-align: right;
  border: 1px solid rgba(35, 28, 20, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 26px rgba(42, 31, 20, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    transform 0.35s var(--ease-premium),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s var(--ease-premium);
}

.program-domain__accent {
  width: 3px;
  height: 46px;
  display: block;
  justify-self: center;
  border-radius: 999px;
  background: rgba(242, 121, 5, 0.32);
  transition:
    height 0.35s var(--ease-premium),
    background 0.35s ease;
}

.program-domain > div {
  min-width: 0;
}

.program-domain h3 {
  margin: 0 0 9px;
  color: #201e1b;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
  letter-spacing: -0.25px;
}

.program-domain p {
  margin: 0;
  color: #77716b;
  font-size: 12.5px;
  line-height: 2;
}

@media (hover: hover) and (pointer: fine) {
  .programs-domains__photo:hover img {
    transform: scale(1.025);
  }

  .program-domain:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 121, 5, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 18px 38px rgba(42, 31, 20, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }

  .program-domain:hover .program-domain__accent {
    height: 66px;
    background: var(--orange);
  }
}

/* Neuron */

.programs-neuron {
  width: min(var(--programs-max), calc(100% - 2 * var(--programs-pad)));
  margin: 92px auto;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 55, 180, 0.15);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(111, 44, 255, 0.08),
      transparent 30%
    ),
    #fff;
  box-shadow: 0 24px 58px rgba(52, 36, 77, 0.08);
}

.programs-neuron__logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f1ff;
  border: 1px solid rgba(111, 44, 255, 0.13);
}

.programs-neuron__logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.programs-neuron__copy {
  min-width: 0;
  text-align: right;
}

.programs-neuron__copy .eyebrow {
  margin: 0 0 5px;
  color: #6f2cff;
}

.programs-neuron__copy h2 {
  margin: 0 0 7px;
  color: #1e1925;
  font-size: 24px;
  line-height: 1.65;
  font-weight: 650;
}

.programs-neuron__copy p {
  max-width: 72ch;
  margin: 0;
  color: #756d7d;
  font-size: 12.5px;
  line-height: 1.95;
}

.programs-neuron__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: #5521b3;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  border: 1px solid rgba(111, 44, 255, 0.15);
  border-radius: 14px;
  background: rgba(111, 44, 255, 0.055);
  transition:
    transform 0.3s var(--ease-premium),
    background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .programs-neuron__link:hover {
    transform: translateX(-4px);
    background: rgba(111, 44, 255, 0.1);
  }
}

/* CTA */

.programs-cta {
  width: min(var(--programs-max), calc(100% - 2 * var(--programs-pad)));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
  padding: 48px 50px;
  color: #f8f4ed;
  text-align: right;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 121, 5, 0.17), transparent 30%),
    #191815;
}

.programs-cta .eyebrow {
  margin: 0 0 8px;
}

.programs-cta h2 {
  max-width: 20ch;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(27px, 2.6vw, 38px);
  line-height: 1.55;
  font-weight: 520;
}

.programs-cta p {
  max-width: 67ch;
  margin: 0;
  color: rgba(248, 244, 237, 0.6);
  font-size: 13px;
  line-height: 2;
}

.programs-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.programs-cta .btn-outline {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive */

@media (max-width: 1180px) {
  .programs-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 52px;
    gap: 42px;
  }

  .programs-hero__copy {
    max-width: 780px;
  }

  .programs-hero h1 {
    max-width: 15ch;
  }

  .programs-hero__visual {
    height: 520px;
  }

  .programs-pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .programs-cycle {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .programs-cycle__visual {
    min-height: 520px;
  }

  .programs-domains__layout {
    grid-template-areas:
      "media"
      "content";
    grid-template-columns: 1fr;
  }

  .programs-domains__photo {
    height: 390px;
  }

  .program-domain {
    min-height: 190px;
  }
}

@media (max-width: 900px) {
  .programs-grades__grid {
    grid-template-columns: 1fr;
  }

  .grade-card {
    min-height: auto;
  }

  .programs-neuron {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .programs-neuron__link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .programs-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .programs-page {
    --programs-pad: 20px;
  }

  .programs-hero {
    width: calc(100% - 20px);
    margin-top: 4px;
    padding: 34px 22px 22px;
    gap: 28px;
    border-radius: 24px;
  }

  .programs-hero h1 {
    max-width: none;
    margin-bottom: 16px;
    font-size: 37px;
    line-height: 1.48;
    letter-spacing: -1px;
  }

  .programs-hero__lead {
    font-size: 13px;
    line-height: 2.05;
  }

  .programs-hero__actions {
    display: grid;
    margin-top: 22px;
  }

  .programs-hero__actions .btn {
    width: 100%;
  }

  .programs-text-link {
    width: fit-content;
  }

  .programs-hero__visual {
    height: 375px;
  }

  .programs-hero__main-photo {
    inset: 6px 0 42px 24px;
    border-radius: 20px;
  }

  .programs-hero__small-photo--students {
    width: 38%;
    height: 116px;
    left: 0;
    top: 24px;
  }

  .programs-hero__small-photo--group {
    width: 47%;
    height: 136px;
    right: -4px;
  }

  .programs-hero__badge {
    left: 10px;
    bottom: 4px;
    min-width: 180px;
    padding: 12px 14px;
  }

  .programs-pillars,
  .programs-grades,
  .programs-cycle,
  .programs-domains {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .programs-section-heading,
  .programs-grades__intro {
    margin-bottom: 28px;
  }

  .programs-section-heading h2,
  .programs-grades__intro h2,
  .programs-cycle__copy > h2 {
    max-width: none;
    font-size: 32px;
    line-height: 1.55;
    letter-spacing: -0.7px;
  }

  .programs-section-heading > p:last-child,
  .programs-grades__intro > p:last-child,
  .programs-cycle__lead {
    font-size: 12.5px;
    line-height: 2;
  }

  .programs-section-heading--compact {
    width: 100%;
    margin-bottom: 26px;
    gap: 10px;
  }

  .programs-section-heading--compact .eyebrow {
    font-size: 12px;
  }

  .programs-section-heading--compact h2 {
    max-width: none;
    font-size: 29px;
    line-height: 1.58;
  }

  .programs-section-heading--compact > p:last-child {
    max-width: none;
    font-size: 12.5px;
    line-height: 2;
  }

  .programs-pillars__grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .program-pillar {
    min-height: auto;
    padding: 20px 18px 22px;
    border-radius: 19px;
  }

  .program-pillar::before {
    right: 18px;
  }

  .program-pillar__top {
    min-height: 34px;
    margin-bottom: 15px;
  }

  .program-pillar__label {
    min-width: 66px;
    height: 34px;
    font-size: 10.5px;
    border-radius: 12px;
  }

  .program-pillar h3 {
    font-size: 18.5px;
  }

  .program-pillar p {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.95;
  }

  .grade-card {
    padding: 25px;
    border-radius: 20px;
  }

  .programs-cycle {
    gap: 38px;
  }

  .programs-cycle__visual {
    min-height: 390px;
  }

  .programs-cycle__photo {
    inset: 0 0 32px 22px;
    border-radius: 20px;
  }

  .programs-cycle__caption {
    min-width: 195px;
    padding: 14px 16px;
  }

  .programs-cycle__steps article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
  }

  .programs-domains__layout {
    gap: 14px;
  }

  .programs-domains__photo {
    height: 280px;
    border-radius: 20px;
  }

  .programs-domains__photo figcaption {
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 13px;
  }

  .programs-domains__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .program-domain {
    min-height: auto;
    grid-template-columns: 3px minmax(0, 1fr);
    gap: 13px;
    padding: 19px 18px;
    border-radius: 17px;
  }

  .program-domain__accent {
    height: 38px;
  }

  .program-domain h3 {
    margin-bottom: 6px;
    font-size: 16.5px;
  }

  .program-domain p {
    font-size: 12px;
    line-height: 1.95;
  }

  .programs-neuron {
    width: calc(100% - 40px);
    margin: 64px auto;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
    padding: 24px;
    border-radius: 21px;
  }

  .programs-neuron__logo {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .programs-neuron__copy h2 {
    font-size: 19px;
  }

  .programs-neuron__copy p {
    grid-column: 1 / -1;
  }

  .programs-cta {
    width: calc(100% - 40px);
    margin-bottom: 68px;
    padding: 34px 25px;
    border-radius: 22px;
  }

  .programs-cta h2 {
    max-width: none;
    font-size: 27px;
  }

  .programs-cta__actions {
    display: grid;
  }

  .programs-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-pillar,
  .program-pillar__label,
  .program-domain,
  .program-domain__accent,
  .programs-domains__photo img,
  .programs-neuron__link {
    transition: none;
  }

  .programs-pillars__grid.is-reveal-ready .program-pillar {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   Programs Pillars Heading — Single Line Desktop
========================================================= */

.programs-pillars .programs-section-heading {
  width: min(var(--programs-max), 100%) !important;
  max-width: none !important;
  display: block !important;
  margin: 0 auto 38px !important;
  padding: 0 !important;
  text-align: right !important;
}

.programs-pillars .programs-section-heading .eyebrow {
  margin: 0 0 8px !important;
  color: var(--orange) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  font-weight: 700 !important;
}

.programs-pillars .programs-section-heading h2 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 9px !important;
  color: #171717 !important;
  font-size: clamp(30px, 2.7vw, 44px) !important;
  line-height: 1.55 !important;
  font-weight: 620 !important;
  letter-spacing: -1px !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

.programs-pillars .programs-section-heading > p:last-child {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  color: #706a64 !important;
  font-size: 13.5px !important;
  line-height: 2 !important;
  white-space: nowrap !important;
}

/* در نمایشگرهای کوچک‌تر اجازه شکستن متن داده شود */

@media (max-width: 1250px) {
  .programs-pillars .programs-section-heading h2,
  .programs-pillars .programs-section-heading > p:last-child {
    white-space: normal !important;
    text-wrap: balance !important;
  }

  .programs-pillars .programs-section-heading > p:last-child {
    max-width: 80ch !important;
  }
}

@media (max-width: 680px) {
  .programs-pillars .programs-section-heading {
    margin-bottom: 28px !important;
  }

  .programs-pillars .programs-section-heading h2 {
    margin-bottom: 10px !important;
    font-size: 29px !important;
    line-height: 1.6 !important;
    letter-spacing: -0.6px !important;
  }

  .programs-pillars .programs-section-heading > p:last-child {
    font-size: 12.5px !important;
    line-height: 2 !important;
  }
}
/* =========================================================
   Programs Domains Heading — Single Line Desktop
========================================================= */

.programs-domains .programs-section-heading,
.programs-domains .programs-section-heading--compact {
  width: min(var(--programs-max), 100%) !important;
  max-width: none !important;
  display: block !important;
  margin: 0 auto 36px !important;
  padding: 0 !important;
  text-align: right !important;
}

.programs-domains .programs-section-heading .eyebrow,
.programs-domains .programs-section-heading--compact .eyebrow {
  margin: 0 0 8px !important;
  color: var(--orange) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  font-weight: 700 !important;
}

.programs-domains .programs-section-heading h2,
.programs-domains .programs-section-heading--compact h2 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 9px !important;
  color: #171717 !important;
  font-size: clamp(30px, 2.7vw, 44px) !important;
  line-height: 1.55 !important;
  font-weight: 620 !important;
  letter-spacing: -1px !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

.programs-domains .programs-section-heading > p:last-child,
.programs-domains .programs-section-heading--compact > p:last-child {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  color: #706a64 !important;
  font-size: 13.5px !important;
  line-height: 2 !important;
  white-space: nowrap !important;
}

/* در نمایشگرهای کوچک، متن به‌صورت طبیعی چندخطی شود */

@media (max-width: 1250px) {
  .programs-domains .programs-section-heading h2,
  .programs-domains .programs-section-heading--compact h2,
  .programs-domains .programs-section-heading > p:last-child,
  .programs-domains .programs-section-heading--compact > p:last-child {
    white-space: normal !important;
    text-wrap: balance !important;
  }

  .programs-domains .programs-section-heading > p:last-child,
  .programs-domains .programs-section-heading--compact > p:last-child {
    max-width: 80ch !important;
  }
}

@media (max-width: 680px) {
  .programs-domains .programs-section-heading,
  .programs-domains .programs-section-heading--compact {
    margin-bottom: 26px !important;
  }

  .programs-domains .programs-section-heading h2,
  .programs-domains .programs-section-heading--compact h2 {
    margin-bottom: 10px !important;
    font-size: 29px !important;
    line-height: 1.6 !important;
    letter-spacing: -0.6px !important;
  }

  .programs-domains .programs-section-heading > p:last-child,
  .programs-domains .programs-section-heading--compact > p:last-child {
    font-size: 12.5px !important;
    line-height: 2 !important;
  }
}


/* =========================
   v9.3 Patch — Subtle Grade Card Motion
========================= */

.grade-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    opacity 0.66s var(--ease-premium),
    transform 0.66s var(--ease-premium),
    filter 0.66s var(--ease-premium),
    border-color 0.34s ease,
    background 0.34s ease,
    box-shadow 0.34s var(--ease-premium);
}

.grade-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -36%;
  right: -24%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 121, 5, 0.13) 0%,
    rgba(242, 121, 5, 0.045) 42%,
    transparent 72%
  );
  opacity: 0.42;
  transform: translate3d(0, 0, 0) scale(0.92);
  transition:
    opacity 0.42s ease,
    transform 0.58s var(--ease-premium);
  pointer-events: none;
}

.programs-grades__grid.is-grade-reveal-ready .grade-card {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(20px) scale(0.985);
}

.programs-grades__grid.is-grade-reveal-ready .grade-card.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  transition-delay: var(--grade-delay, 0ms);
}

.grade-card__index {
  transition:
    transform 0.36s var(--ease-premium),
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.grade-card li::before {
  transition:
    transform 0.28s var(--ease-premium),
    box-shadow 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .grade-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 121, 5, 0.24);
    background: rgba(255, 255, 255, 0.065);
    box-shadow:
      0 22px 52px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .grade-card--featured:hover {
    border-color: rgba(242, 121, 5, 0.52);
    background: linear-gradient(
      145deg,
      rgba(242, 121, 5, 0.125),
      rgba(255, 255, 255, 0.055)
    );
  }

  .grade-card:hover::after {
    opacity: 0.9;
    transform: translate3d(-12px, 14px, 0) scale(1.12);
  }

  .grade-card:hover .grade-card__index {
    color: #fff;
    border-color: rgba(242, 121, 5, 0.68);
    background: rgba(242, 121, 5, 0.18);
    box-shadow: 0 10px 24px rgba(242, 121, 5, 0.14);
    transform: translateY(-2px) rotate(-3deg);
  }

  .grade-card:hover li::before {
    transform: scale(1.28);
    box-shadow: 0 0 0 5px rgba(242, 121, 5, 0.1);
  }

  .programs-grades__grid.is-grade-reveal-ready .grade-card.is-visible:hover {
    transform: translateY(-5px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grade-card,
  .grade-card::after,
  .grade-card__index,
  .grade-card li::before {
    transition: none !important;
    animation: none !important;
  }

  .programs-grades__grid.is-grade-reveal-ready .grade-card {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
