/* Single course pages. Scoped so the shared header and footer stay as they are. */

.sc {
  --ink: #132f46;
  --teal: #1d6c80;
  --muted: #536474;
  --gold: #e6af01;
  --cream: var(--bn-cream);
  --line: #dfe3df;
  --sage: #f0f3ec;
  background: var(--bn-cream, #fdf8ee);
  color: var(--ink);
  overflow-x: clip;
}

.sc,
.sc h1,
.sc h2,
.sc h3,
.sc p,
.sc a,
.sc li,
.sc span,
.sc em,
.sc strong,
.sc blockquote {
  font-family: "Poppins", sans-serif !important;
  font-style: normal;
}

html[dir="rtl"] .sc,
html[dir="rtl"] .sc h1,
html[dir="rtl"] .sc h2,
html[dir="rtl"] .sc h3,
html[dir="rtl"] .sc p,
html[dir="rtl"] .sc a,
html[dir="rtl"] .sc li,
html[dir="rtl"] .sc span,
html[dir="rtl"] .sc em,
html[dir="rtl"] .sc strong,
html[dir="rtl"] .sc blockquote {
  font-family: "El Messiri", serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}

.sc h1,
.sc h2,
.sc h3,
.sc p {
  margin: 0;
  text-transform: none !important;
  color: var(--ink);
}

.sc em {
  font-style: italic;
  font-weight: inherit;
  color: inherit;
}

html[dir="rtl"] .sc em {
  font-style: normal !important;
}

.sc strong,
.sc b {
  font-weight: 600;
}

.sc-wrap {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}

.sc-hero {
  background: var(--cream);
  padding: 72px 0 0;
}

.sc-crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 12px;
  line-height: 20px;
}

.sc-crumb__brand {
  color: var(--teal);
  font-weight: 600;
}

.sc-crumb__sep,
.sc-crumb__cat {
  color: var(--muted);
  font-weight: 500;
}

.sc-hero__grid {
  display: flex;
  align-items: center;
  gap: 72px;
}

.sc-hero__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.sc-title {
  font-size: 52px;
  line-height: 1.23;
  font-weight: 600;
  letter-spacing: -1.6px;
  overflow-wrap: break-word;
}

.sc-sub {
  max-width: 40rem;
  font-size: 24px;
  line-height: 1.66;
  font-weight: 500;
  overflow-wrap: break-word;
}

.sc-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  overflow-wrap: break-word;
}

.sc-lead strong,
.sc-lead b {
  font-weight: 400;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 304px;
  max-width: 100%;
  min-height: 60px;
  padding: 18px 26px;
  border-radius: 8px;
  background: var(--bn-teal);
  color: #fff !important;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
}

.sc-btn:hover,
.sc-btn:focus-visible {
  background: var(--bn-teal);
  color: #fff !important;
}

.sc-hero__art {
  flex: 0 0 480px;
  width: 480px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}

.sc-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sc-rule {
  height: 1px;
  margin-top: 64px;
  background: var(--line);
}

.sc-block {
  background: var(--bn-cream, #fdf8ee);
  padding: 72px 0;
}

.sc-block--intro {
  background: var(--cream);
  padding-top: 28px;
  padding-bottom: 76px;
}

.sc-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.sc-label {
  min-width: 0;
}

.sc-num {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  line-height: 21px;
  font-weight: 500;
}

.sc-label h2 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: break-word;
}

.sc-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sc-prose {
  min-width: 0;
}

.sc-prose p,
.sc-prose li {
  font-size: 18px;
  line-height: 30px;
  overflow-wrap: break-word;
}

.sc-prose p {
  margin: 0 0 16px;
}

.sc-prose p:last-child {
  margin-bottom: 0;
}

.sc-prose blockquote {
  margin: 16px 0;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--gold);
}

.sc-prose ul,
.sc-prose ol {
  margin: 0;
  padding-inline-start: 1.25em;
}

.sc-rows {
  display: flex;
  flex-direction: column;
}

.sc-rows--open {
  gap: 20px;
}

.sc-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.sc-rows--lined .sc-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.sc-rows--lined .sc-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sc-rows--lined .sc-row:first-child {
  padding-top: 0;
}

.sc-row__num {
  flex: 0 0 32px;
  color: var(--teal);
  font-size: 13px;
  line-height: 28px;
  font-weight: 500;
}

.sc-row__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  line-height: 28px;
  overflow-wrap: break-word;
}

.sc-row__text ul,
.sc-row__text ol {
  margin: 8px 0 0;
  padding-inline-start: 1.25em;
}

.sc-row__text li {
  margin: 4px 0;
  font-size: 16px;
  line-height: 26px;
}

.sc-levels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-level {
  background: var(--sage);
  border-radius: 12px;
  padding: 28px;
}

.sc-level + .sc-level {
  position: relative;
}

.sc-level + .sc-level::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -9px;
  height: 1px;
  background: var(--line);
}

.sc-level__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sc-level__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--teal);
  color: var(--cream);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.sc-level__head h3 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 24px;
  line-height: 40px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.sc-level__meta {
  margin-top: 16px;
}

.sc-level__meta p {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 14px;
  line-height: 23px;
  font-weight: 500;
}

.sc-bullets {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: break-word;
}

.sc-bullets li::before {
  content: "•";
  flex: 0 0 12px;
  color: var(--teal);
  font-weight: 500;
  line-height: 26px;
}

.sc-next {
  background: var(--bn-cream, #fdf8ee);
  padding: 0 0 48px;
}

.sc-next a {
  color: var(--teal) !important;
  font-size: 17px;
  line-height: 28px;
  font-weight: 600;
  text-decoration: none !important;
  overflow-wrap: break-word;
}

.sc-next a:hover {
  text-decoration: underline !important;
}

.sc-close {
  background: var(--bn-cta);
  padding: 64px 0 72px;
}

.sc-close__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  border-radius: 12px;
  background: var(--sage);
}

.sc-close__card p {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
}

html[dir="rtl"] .sc-crumb {
  font-size: 14px;
  line-height: 24px;
  gap: 8px;
}

html[dir="rtl"] .sc-hero__copy {
  gap: 18px;
}

html[dir="rtl"] .sc-title {
  font-size: 52px;
  line-height: 1.5;
}

html[dir="rtl"] .sc-sub {
  font-size: 26px;
  line-height: 1.6;
}

html[dir="rtl"] .sc-lead {
  font-size: 18px;
  line-height: 32px;
}

html[dir="rtl"] .sc-btn {
  width: auto;
  min-width: 227px;
  padding: 16px 28px;
  font-size: 16px;
  line-height: 28px;
}

html[dir="rtl"] .sc-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

html[dir="rtl"] .sc-label h2,
html[dir="rtl"] .sc-level__head h3,
html[dir="rtl"] .sc-close__card p {
  line-height: 1.5;
}

@media (min-width: 1280px) {
  .sc-wrap {
    width: min(1200px, calc(100% - 240px));
  }
}

@media (max-width: 1100px) {
  .sc-wrap {
    width: min(754px, calc(100% - 80px));
  }

  .sc-hero {
    padding-top: 48px;
  }

  .sc-hero__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .sc-hero__art {
    order: -1;
    flex-basis: auto;
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .sc-title {
    font-size: 40px;
    line-height: 1.25;
    letter-spacing: -1px;
  }

  .sc-sub {
    font-size: 22px;
    line-height: 32px;
  }

  .sc-rule {
    margin-top: 36px;
  }

  .sc-grid,
  html[dir="rtl"] .sc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-block {
    padding: 48px 0;
  }

  .sc-block--intro {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .sc-label h2 {
    font-size: 28px;
  }

  .sc-close {
    padding: 48px 0 56px;
  }

  .sc-close__card {
    padding: 32px;
  }

  .sc-close__card p {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .sc-wrap,
  html[dir="rtl"] .sc-wrap {
    width: calc(100% - 40px);
  }

  .sc-hero {
    padding-top: 28px;
  }

  .sc-crumb {
    margin-bottom: 20px;
  }

  .sc-hero__grid {
    gap: 20px;
  }

  .sc-hero__copy {
    gap: 12px;
  }

  .sc-title,
  html[dir="rtl"] .sc-title {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.6px;
  }

  html[dir="rtl"] .sc-title {
    line-height: 1.45;
  }

  .sc-sub,
  html[dir="rtl"] .sc-sub {
    font-size: 18px;
    line-height: 28px;
  }

  .sc-lead,
  html[dir="rtl"] .sc-lead {
    font-size: 16px;
    line-height: 26px;
  }

  .sc-btn,
  html[dir="rtl"] .sc-btn {
    width: 100%;
    min-width: 0;
  }

  .sc-rule {
    margin-top: 28px;
  }

  .sc-block {
    padding: 36px 0;
  }

  .sc-block--intro {
    padding-bottom: 36px;
  }

  .sc-label h2 {
    font-size: 26px;
  }

  .sc-prose p,
  .sc-prose li {
    font-size: 16px;
    line-height: 28px;
  }

  .sc-row {
    gap: 12px;
  }

  .sc-row__text {
    font-size: 16px;
    line-height: 26px;
  }

  .sc-level {
    padding: 20px;
  }

  .sc-level__head h3 {
    font-size: 20px;
    line-height: 1.4;
  }

  .sc-level__mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .sc-close {
    padding: 36px 0 40px;
  }

  .sc-close__card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 20px;
  }

  .sc-close__card p {
    font-size: 24px;
    line-height: 1.35;
  }

  .sc-next {
    padding-bottom: 28px;
  }
}
