.program-page-shell {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
}

.program-site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.program-nav-shell {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.program-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  margin-left: auto;
}

.program-desktop-nav a {
  position: relative;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
}

.program-desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.program-desktop-nav a:hover::after {
  transform: scaleX(1);
}

.program-mobile-menu {
  display: none;
  position: relative;
}

.program-mobile-menu summary {
  padding: 10px 15px;
  color: var(--paper);
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.program-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.program-mobile-menu nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: 220px;
  padding: 15px;
  color: var(--paper);
  background: var(--deepest);
  border: 1px solid var(--white-line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.program-mobile-menu nav a {
  padding: 10px 8px;
  border-bottom: 1px solid var(--white-line);
  font-size: 0.77rem;
}

.program-mobile-menu nav a:last-child {
  border-bottom: 0;
}

.program-hero {
  position: relative;
  min-height: 700px;
  padding: 60px 0 95px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(228, 104, 50, 0.2), transparent 28%),
    linear-gradient(145deg, var(--cream), var(--paper));
}

.program-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(90, 19, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 19, 32, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%, #000);
  mask-image: linear-gradient(to right, transparent, #000 40%, #000);
}

.program-calligraphy {
  position: absolute;
  right: -25px;
  bottom: -20px;
  color: rgba(164, 32, 50, 0.055);
  font-family: "Amiri", serif;
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 1;
  transform: rotate(-6deg);
}

.program-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.66rem;
}

.program-breadcrumb a:hover {
  color: var(--green);
}

.program-breadcrumb span[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
}

.program-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
  min-height: 530px;
}

.program-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.program-eyebrow span {
  width: 29px;
  height: 1px;
  background: currentColor;
}

.program-hero h1 {
  max-width: 850px;
  margin-top: 24px;
  font-size: clamp(3.4rem, 6.4vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.program-summary {
  max-width: 760px;
  margin-top: 29px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.78;
}

.program-hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.program-hero-card {
  position: relative;
  display: flex;
  min-height: 365px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 75% 20%, rgba(228, 104, 50, 0.48), transparent 30%),
    var(--deep);
  border: 1px solid rgba(255, 199, 132, 0.26);
  border-radius: 180px 180px 24px 24px;
  box-shadow: var(--shadow-lg);
}

.program-hero-card::before {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 72px;
  height: 72px;
  content: "";
  border: 1px solid rgba(255, 199, 132, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 199, 132, 0.06);
}

.program-card-arabic {
  color: var(--gold-light);
  font-family: "Amiri", serif;
  font-size: 1.8rem;
}

.program-hero-card strong {
  margin-top: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
}

.program-hero-card p {
  margin-top: 14px;
  color: rgba(255, 250, 246, 0.67);
  font-size: 0.75rem;
}

.program-content {
  padding: 120px 0;
  background: var(--paper);
}

.program-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.34fr);
  align-items: start;
  gap: clamp(60px, 8vw, 115px);
}

.program-main-column {
  min-width: 0;
}

.program-section {
  padding: 0 0 82px;
}

.program-section + .program-section {
  padding-top: 82px;
  border-top: 1px solid var(--line);
}

.program-section-index {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.program-section h2 {
  max-width: 760px;
  margin-top: 17px;
  font-size: clamp(2.35rem, 4.4vw, 4.6rem);
  line-height: 1.02;
}

.program-check-list,
.program-number-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 37px 0 0;
  padding: 0;
  list-style: none;
}

.program-check-list li {
  position: relative;
  min-height: 84px;
  padding: 24px 24px 22px 54px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 0.8rem;
}

.program-check-list li::before {
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--paper);
  content: "✓";
  background: var(--green);
  border-radius: 50%;
  font-size: 0.59rem;
}

.program-split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.program-split-section h2 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.program-number-list {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.program-number-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
}

.program-number-list span {
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 700;
}

.program-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.program-info-cards article {
  min-height: 245px;
  padding: 27px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.program-info-cards article > span {
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 700;
}

.program-info-cards h3 {
  margin-top: 35px;
  font-size: 1.08rem;
}

.program-info-cards p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.72;
}

.program-faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.program-faq-list details {
  border-bottom: 1px solid var(--line);
}

.program-faq-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "Manrope", sans-serif;
  font-size: 0.91rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.program-faq-list summary::-webkit-details-marker {
  display: none;
}

.program-faq-list summary span {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--paper);
  background: var(--deep);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.program-faq-list details[open] summary span {
  background: var(--green);
  transform: rotate(45deg);
}

.program-faq-list details p {
  max-width: 710px;
  padding: 0 55px 24px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.program-sticky-cta {
  position: sticky;
  top: 25px;
  padding: 34px;
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 0%, rgba(228, 104, 50, 0.5), transparent 32%),
    var(--deepest);
  border: 1px solid rgba(255, 199, 132, 0.24);
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
}

.program-sticky-cta h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.program-sticky-cta > p:not(.program-section-index) {
  margin-top: 22px;
  color: rgba(255, 250, 246, 0.62);
  font-size: 0.78rem;
}

.program-sticky-cta .button {
  width: 100%;
  margin-top: 28px;
  text-align: center;
}

.program-whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 13px 0;
  color: var(--gold-light);
  border-bottom: 1px solid var(--white-line);
  font-size: 0.74rem;
  font-weight: 700;
}

.program-sticky-cta small {
  display: block;
  margin-top: 15px;
  color: rgba(255, 250, 246, 0.43);
  font-size: 0.56rem;
  line-height: 1.55;
}

.related-programs {
  padding: 110px 0;
  background: var(--cream);
}

.related-programs-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 15px;
}

.related-programs-heading h2 {
  max-width: 700px;
  font-size: clamp(2.5rem, 4.7vw, 5rem);
}

.related-programs-heading > a {
  flex: 0 0 auto;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 0.73rem;
  font-weight: 700;
}

.related-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 45px;
}

.related-program-grid > a {
  position: relative;
  min-height: 260px;
  padding: 27px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.related-program-grid > a:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-7px);
}

.related-program-grid span {
  color: var(--gold);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.related-program-grid h3 {
  margin-top: 34px;
  font-size: 1.3rem;
}

.related-program-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.related-program-grid i {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: var(--green);
  font-style: normal;
}

.program-final-cta {
  padding: 115px 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 20%, rgba(228, 104, 50, 0.45), transparent 30%),
    var(--deepest);
  text-align: center;
}

.program-final-cta p {
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.program-final-cta h2 {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: clamp(2.9rem, 5.5vw, 5.7rem);
}

.program-final-cta > .container > div {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 37px;
}

.program-outline-button {
  color: var(--paper);
  background: transparent;
  border-color: var(--white-line);
}

.program-outline-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.program-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
  padding: 55px 0;
}

.program-footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.program-footer-grid a,
.program-footer-grid span:not(.footer-label) {
  color: rgba(255, 250, 246, 0.54);
  font-size: 0.72rem;
}

.program-footer-grid a:hover {
  color: var(--paper);
}

@media (max-width: 980px) {
  .program-desktop-nav,
  .program-nav-shell > .nav-cta {
    display: none;
  }

  .program-mobile-menu {
    display: block;
    margin-left: auto;
  }

  .program-hero-layout {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 60px;
  }

  .program-hero-card {
    width: min(100%, 430px);
    min-height: 310px;
    border-radius: 25px;
  }

  .program-content-grid {
    grid-template-columns: 1fr;
  }

  .program-sticky-cta {
    position: relative;
    top: auto;
    width: min(100%, 580px);
  }

  .related-program-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 680px) {
  .program-nav-shell {
    min-height: 72px;
  }

  .program-hero {
    min-height: auto;
    padding: 35px 0 70px;
  }

  .program-hero-layout {
    min-height: auto;
  }

  .program-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .program-hero-actions,
  .program-final-cta > .container > div {
    align-items: stretch;
    flex-direction: column;
  }

  .program-hero-actions .button,
  .program-final-cta .button {
    width: 100%;
  }

  .program-hero-card {
    min-height: 270px;
    padding: 27px;
  }

  .program-content,
  .related-programs,
  .program-final-cta {
    padding: 80px 0;
  }

  .program-section {
    padding-bottom: 58px;
  }

  .program-section + .program-section {
    padding-top: 58px;
  }

  .program-check-list,
  .program-split-section,
  .program-info-cards,
  .related-program-grid {
    grid-template-columns: 1fr;
  }

  .program-split-section {
    gap: 60px;
  }

  .program-info-cards article {
    min-height: 210px;
  }

  .related-programs-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-page-shell *,
  .program-page-shell *::before,
  .program-page-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.not-found-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 103, 48, 0.23), transparent 29%),
    linear-gradient(135deg, var(--deepest), #3f0f18 64%, #7d241c);
}

.not-found-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
  background-size: 84px 84px;
}

.not-found-calligraphy {
  position: absolute;
  right: 4vw;
  bottom: -10vh;
  color: rgba(255, 225, 198, 0.08);
  font-family: "Amiri", serif;
  font-size: clamp(16rem, 35vw, 34rem);
  line-height: 1;
}

.not-found-content {
  position: relative;
  z-index: 1;
  padding-block: 80px;
}

.not-found-content .brand {
  display: inline-flex;
  margin-bottom: clamp(60px, 9vh, 105px);
  color: var(--paper);
}

.not-found-content h1 {
  max-width: 900px;
  margin-top: 25px;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.not-found-content h1 em {
  color: var(--gold-light);
  font-family: "Amiri", serif;
  font-weight: 400;
}

.not-found-lead {
  max-width: 720px;
  margin-top: 34px;
  color: rgba(252, 250, 245, 0.7);
  font-size: 1rem;
  line-height: 1.75;
}

.not-found-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 42px;
}

.not-found-actions > a:last-child {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .not-found-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .not-found-actions .button {
    width: 100%;
  }
}
