/* ==========================================================================
   Niyuk Academy — styles for sections/academy/*.php and the academy footer.

   Hand-written rather than added to style.css: style.css is a Tailwind build
   with its own freshness checks (css/build.json), and editing it would switch
   off the inlined critical CSS. Values follow the theme's tokens, copied from
   tailwind.config.js, so these sections sit alongside the theme's own.
   ========================================================================== */
:root {
  --ac-ink: #1D1D1D;
  --ac-muted: #4D585F;
  --ac-line: #DDE5ED;
  --ac-surface: #EDF1F4;
  --ac-brand: #2563EB;
  --ac-blue: #3B82F6;
  --ac-success: #10B981;
  --ac-display: "Bricolage Grotesque", system-ui, sans-serif;
  --ac-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ac-shadow: 0 1px 2px rgba(29, 29, 29, .04), 0 14px 34px -14px rgba(29, 29, 29, .16);
  --ac-shadow-hover: 0 12px 32px -8px rgba(29, 29, 29, .16), 0 2px 6px rgba(29, 29, 29, .05);
}

/* --- Brand lockup -------------------------------------------------------- */
.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ac-brand__tag {
  padding-left: 10px;
  border-left: 1.5px solid var(--ac-line);
  font-family: var(--ac-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--ac-ink);
  line-height: 1;
}

/* --- Shared bits --------------------------------------------------------- */
.ac-i { width: 22px; height: 22px; }

.ac-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}

.ac-textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ac-ink);
}
.ac-textlink__arrow { width: 14px; height: 10px; transition: transform .35s var(--ac-ease); }
.ac-textlink:hover .ac-textlink__arrow { transform: translateX(4px); }
/* White pill version, used beside .btn-primary in the course hero. */
.ac-textlink--pill {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .25);
  transition: transform .3s var(--ac-ease), box-shadow .3s var(--ac-ease);
}
.ac-textlink--pill:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(15, 23, 42, .3); }
.ac-textlink--pill:active { transform: translateY(-1px) scale(.98); transition-duration: 90ms; }

.ac-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--ac-surface);
  overflow: hidden;
}
.ac-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7CB0FC, var(--ac-brand));
}

/* Colour tones shared by course art, icons and tiles. */
.ac-tone--blue   { --tone: #2563EB; --tone-soft: #E3EDFF; }
.ac-tone--rose   { --tone: #E2456F; --tone-soft: #FFE6EC; }
.ac-tone--violet { --tone: #6D4FE0; --tone-soft: #EDE8FF; }
.ac-tone--green  { --tone: #0E9F6E; --tone-soft: #DDF6EC; }
.ac-tone--amber  { --tone: #D97706; --tone-soft: #FEF0D7; }
.ac-tone--sky    { --tone: #0284C7; --tone-soft: #DDF2FD; }

/* ==========================================================================
   Hero
   ========================================================================== */
.ac-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 90px;
}
.ac-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Sky only, as on the Niyuk About page: the image is drawn at twice the
   hero's height and anchored top, so the meadow below the horizon (about
   halfway down hero-bg.webp) falls outside the clipped hero. */
.ac-hero__bg img {
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 767px) {
  .ac-hero__bg img { height: 180%; }
}
/* Fade the sky into the white band below so the hero has no hard edge. */
.ac-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 55%, #fff 100%);
}

.ac-hero__grid {
  display: grid;
  gap: 60px;
  align-items: center;
}
@media (min-width: 1024px) {
  .ac-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.ac-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ac-hero__title {
  margin-top: 22px;
  font-family: var(--ac-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--ac-ink);
  max-width: 620px;
}
@media (min-width: 640px)  { .ac-hero__title { font-size: 52px; } }
@media (min-width: 1280px) { .ac-hero__title { font-size: 60px; letter-spacing: -1.4px; } }

.ac-hero__lead {
  margin-top: 20px;
  max-width: 540px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ac-muted);
}
.ac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 32px;
}
.ac-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-ink);
}
.ac-hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.ac-hero__points .ac-i {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ac-success);
  color: #fff;
  stroke-width: 2.6;
}

/* The hero artwork. */
.ac-hero__art {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.ac-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 30px 70px -28px rgba(29, 29, 29, .35), 0 0 0 6px rgba(255, 255, 255, .6);
}

.ac-float__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #FEF0D7;
  color: #D97706;
  flex-shrink: 0;
}

/* ==========================================================================
   Course library
   ========================================================================== */
.ac-search {
  max-width: 680px;
  margin: 36px auto 0;
}
.ac-search__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  height: 60px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line), 0 10px 30px -18px rgba(29, 29, 29, .3);
  transition: box-shadow .3s var(--ac-ease);
}
.ac-search__box:focus-within { box-shadow: 0 0 0 2px var(--ac-blue), 0 10px 30px -18px rgba(37, 99, 235, .45); }
.ac-search__icon { width: 20px; height: 20px; color: var(--ac-muted); flex-shrink: 0; }
.ac-search__box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ac-ink);
}
.ac-search__box input::placeholder { color: #8A949C; }

.ac-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.ac-terms__label { font-size: 14px; font-weight: 600; color: var(--ac-ink); margin-right: 2px; }
.ac-chip {
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--ac-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ac-ink);
  transition: background-color .25s, color .25s;
}
.ac-chip:hover, .ac-chip.is-on { background: var(--ac-ink); color: #fff; }

.ac-grid {
  display: grid;
  gap: 22px;
  margin-top: 50px;
}
@media (min-width: 680px)  { .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ac-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line), var(--ac-shadow);
  overflow: hidden;
  transition: transform .45s var(--ac-ease), box-shadow .45s var(--ac-ease);
}
.ac-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ac-line), var(--ac-shadow-hover); }
.ac-card[hidden] { display: none; }

.ac-card__art {
  position: relative;
  aspect-ratio: 500 / 296;   /* the course banners' shape, so every card matches */
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.75) 0 18%, transparent 19%),
    var(--tone-soft);
}
.ac-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  color: var(--tone);
  box-shadow: 0 14px 30px -14px var(--tone);
  transition: transform .45s var(--ac-ease);
}
.ac-card__icon .ac-i { width: 34px; height: 34px; }
.ac-card:hover .ac-card__icon { transform: translateY(-3px) rotate(-4deg); }
.ac-card__ring {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 22px solid var(--tone);
  opacity: .1;
  left: -60px;
  bottom: -120px;
}
.ac-card__level {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--tone);
}

.ac-card__body { padding: 22px 22px 0; flex: 1; }
.ac-card__title {
  font-family: var(--ac-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.2px;
  color: var(--ac-ink);
}
/* The title link covers the whole card. */
.ac-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ac-card__blurb { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ac-muted); }
.ac-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ac-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--ac-surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-ink);
}
.ac-card__meta .ac-i { width: 14px; height: 14px; color: var(--ac-muted); }

.ac-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 22px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ac-line);
}
.ac-card__price { font-size: 16px; font-weight: 700; color: var(--ac-success); }
.ac-card__price small { font-size: 12px; font-weight: 500; color: var(--ac-muted); }
.ac-card__cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--ac-ink);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: background-color .3s;
}
.ac-card__cta:hover { background: var(--ac-brand); }
.ac-card__arrow { width: 12px; height: 9px; filter: invert(1); }

.ac-empty {
  margin-top: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ac-muted);
}
.ac-empty a { color: var(--ac-brand); text-decoration: underline; }

/* ==========================================================================
   Who it's for — slider
   ========================================================================== */
.ac-learners { background: var(--ac-surface); }
.ac-slider {
  max-width: 1040px;
  margin: 50px auto 0;
}
.ac-slide {
  display: grid;
  gap: 0;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--ac-shadow);
  animation: ac-in .6s var(--ac-ease);
}
.ac-slide[hidden] { display: none; }
@media (min-width: 820px) { .ac-slide { grid-template-columns: 380px minmax(0, 1fr); } }
@keyframes ac-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ac-slide__photo { position: relative; min-height: 300px; }
.ac-slide__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.ac-slide__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
}
@media (min-width: 820px) { .ac-slide__text { padding: 50px 54px; } }
.ac-slide__who {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 100px;
  background: #E3EDFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--ac-brand);
}
.ac-slide__head {
  margin-top: 18px;
  font-family: var(--ac-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.4px;
  color: var(--ac-ink);
}
@media (min-width: 820px) { .ac-slide__head { font-size: 34px; } }
.ac-slide__body { margin-top: 16px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--ac-muted); }

.ac-slider__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.ac-slider__dots { display: flex; gap: 8px; }
.ac-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #C9D3DC;
  transition: width .4s var(--ac-ease), background-color .3s;
}
.ac-slider__dot.is-on { width: 30px; background: var(--ac-brand); }
.ac-slider__arrows { display: flex; gap: 10px; }
.ac-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line);
  transition: transform .3s var(--ac-ease), background-color .3s;
}
.ac-arrow:hover { transform: translateY(-2px); }
.ac-arrow--solid { background: var(--ac-ink); }
.ac-arrow--solid .ac-arrow__i { filter: invert(1); }
.ac-arrow__i { width: 14px; height: 10px; }
.ac-arrow__i--back { transform: scaleX(-1); }

/* ==========================================================================
   Why Niyuk Academy
   ========================================================================== */
.ac-why__grid {
  display: grid;
  gap: 50px;
  align-items: center;
}
@media (min-width: 1024px) { .ac-why__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; } }
.ac-why__lead { margin-top: 18px; max-width: 560px; }
.ac-why__list { display: grid; gap: 22px; margin-top: 36px; }
.ac-why__item { display: flex; gap: 16px; }
.ac-why__tick {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #DDF6EC;
  color: var(--ac-success);
  flex-shrink: 0;
}
.ac-why__tick .ac-i { width: 18px; height: 18px; stroke-width: 2.6; }
.ac-why__head { font-size: 18px; font-weight: 600; color: var(--ac-ink); }
.ac-why__body { margin-top: 5px; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--ac-muted); }

.ac-why__photo { position: relative; }
.ac-why__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
}
.ac-why__note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 500;
  color: var(--ac-muted);
}
.ac-why__note strong { display: block; font-size: 15px; font-weight: 600; color: var(--ac-ink); }

/* ==========================================================================
   Community
   ========================================================================== */
.ac-community { background: linear-gradient(180deg, #fff 0%, #F4F7FB 100%); }
.ac-community__grid {
  display: grid;
  gap: 50px;
  align-items: center;
}
@media (min-width: 1024px) { .ac-community__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.ac-community__lead { margin-top: 18px; max-width: 520px; }
.ac-community__btn { margin-top: 30px; }

.ac-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 560px) { .ac-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line), var(--ac-shadow);
  transition: transform .45s var(--ac-ease);
}
.ac-topic:hover { transform: translateY(-4px); }
.ac-topic__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #E3EDFF;
  color: var(--ac-brand);
}
.ac-topic__icon .ac-i { width: 28px; height: 28px; }
.ac-topic__label { font-size: 15px; font-weight: 600; color: var(--ac-ink); }

/* ==========================================================================
   Help band
   ========================================================================== */
.ac-help { padding: 0 0 100px; background: #fff; }
.ac-help__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 30px;
  border-radius: 30px;
  background: var(--ac-surface);
}
@media (min-width: 820px) {
  .ac-help__card { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 50px; }
}
.ac-help__title { font-family: var(--ac-display); font-size: 30px; font-weight: 600; letter-spacing: -.4px; color: var(--ac-ink); }
.ac-help__text { margin-top: 10px; max-width: 620px; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--ac-muted); }
.ac-help__text a { color: var(--ac-brand); text-decoration: underline; }
.ac-help__card .btn-brand { flex-shrink: 0; align-self: flex-start; }
@media (min-width: 820px) { .ac-help__card .btn-brand { align-self: center; } }

/* ==========================================================================
   Footer — the theme's .sf layout with four columns of our own.
   ========================================================================== */
.ac-footer__groups {
  display: grid !important;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px)  { .ac-footer__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ac-footer__groups { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }
.ac-footer__about { display: flex; flex-direction: column; align-items: flex-start; }
.ac-footer__blurb { margin-top: 18px; max-width: 320px; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--ac-muted); }
.ac-footer__cta { margin-top: 22px; }

/* The footer is dark: white logo, light text. */
.ac-footer .ac-brand img { filter: brightness(0) invert(1); }
.ac-footer .ac-brand__tag { color: #fff; border-left-color: rgba(255, 255, 255, .25); }
.ac-footer__blurb { color: rgba(255, 255, 255, .62); }

/* Course cards with a designed banner (1200x480, 2.5:1). */
.ac-card__art--banner {
  height: auto;
  display: block;
  background: var(--tone-soft);
}
.ac-card__art--banner img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s var(--ac-ease);
}
.ac-card:hover .ac-card__art--banner img { transform: scale(1.03); }

/* ==========================================================================
   Course page — includes/course-page.php, sections/academy/course-*.php
   ========================================================================== */
.ac-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 600;
  color: var(--ac-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
}
.ac-pill .ac-i { width: 15px; height: 15px; color: var(--ac-muted); }
.ac-pill--tone { background: var(--tone-soft); color: var(--tone); box-shadow: none; }
.ac-pill--soft { background: var(--ac-surface); box-shadow: none; font-weight: 500; }

/* --- Hero --- */
.ac-chero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 70px;
}
@media (min-width: 1024px) { .ac-chero { padding: 150px 0 110px; } }
.ac-chero__copy { max-width: 700px; }
@media (min-width: 1024px) { .ac-chero__copy { max-width: calc(100% - 420px); } }

.ac-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-muted);
}
.ac-crumbs a { color: var(--ac-ink); }
.ac-crumbs a:hover { color: var(--ac-brand); }
.ac-crumbs span[aria-hidden] { color: #9AA6B2; }

.ac-chero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ac-chero__title {
  margin-top: 18px;
  font-family: var(--ac-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--ac-ink);
}
@media (min-width: 640px)  { .ac-chero__title { font-size: 48px; } }
@media (min-width: 1280px) { .ac-chero__title { font-size: 56px; letter-spacing: -1.3px; } }
.ac-chero__lead { margin-top: 16px; max-width: 600px; font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--ac-muted); }
.ac-chero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--ac-ink); }
.ac-chero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.ac-chero__meta .ac-i { width: 18px; height: 18px; color: var(--ac-brand); }
.ac-chero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }

/* --- Body grid + enrol card --- */
.ac-course { padding-bottom: 30px; background: #fff; }
.ac-course__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .ac-course__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .ac-course__aside { grid-column: 2; grid-row: 1; position: sticky; top: 110px; margin-top: -420px; z-index: 5; }
  .ac-course__main  { grid-column: 1; grid-row: 1; }
}

.ac-enrol {
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ac-line), 0 30px 60px -30px rgba(29, 29, 29, .35);
}
.ac-enrol__art img { display: block; width: 100%; height: auto; }

.ac-enrol__body { padding: 22px 24px 26px; }
.ac-enrol__price { font-family: var(--ac-display); font-size: 34px; font-weight: 700; color: var(--ac-ink); letter-spacing: -.6px; line-height: 1; }
.ac-enrol__price span { margin-left: 8px; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ac-success); }
.ac-enrol__btn { display: flex; width: 100%; margin-top: 18px; }
.ac-enrol__login { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ac-muted); }
.ac-enrol__login a { color: var(--ac-brand); font-weight: 600; }
.ac-enrol__head { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ac-line); font-size: 15px; font-weight: 700; color: var(--ac-ink); }
.ac-enrol__list { display: grid; gap: 12px; margin-top: 14px; }
.ac-enrol__list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--ac-muted); }
.ac-enrol__list .ac-i { width: 19px; height: 19px; color: var(--ac-brand); flex-shrink: 0; }

/* --- Tabs --- */
.ac-tabs {
  position: sticky;
  top: 92px;
  z-index: 4;
  display: flex;
  gap: 4px;
  margin-top: 6px;
  padding: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--ac-line), 0 10px 30px -20px rgba(29, 29, 29, .3);
  overflow-x: auto;
  scrollbar-width: none;
}
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tabs a {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-muted);
  transition: background-color .25s, color .25s;
}
.ac-tabs a:hover { color: var(--ac-ink); }
.ac-tabs a.is-on { background: var(--ac-ink); color: #fff; }

/* --- Content blocks --- */
.ac-block { padding-top: 54px; scroll-margin-top: 160px; }
.ac-block__title { font-family: var(--ac-display); font-size: 28px; font-weight: 600; letter-spacing: -.5px; color: var(--ac-ink); }
@media (min-width: 640px) { .ac-block__title { font-size: 32px; } }
.ac-block__sub { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ac-muted); }
.ac-block__text { margin-top: 14px; font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--ac-muted); }
.ac-block__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.ac-for { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.ac-for__label { margin-right: 4px; font-size: 14px; font-weight: 700; color: var(--ac-ink); }

.ac-learn {
  display: grid;
  gap: 14px 26px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #F4F8FF 0%, #EAF1FF 100%);
  box-shadow: inset 0 0 0 1px #DCE7FB;
}
@media (min-width: 640px) { .ac-learn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-learn li { display: flex; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ac-ink); }
.ac-learn__tick { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ac-brand); color: #fff; flex-shrink: 0; }
.ac-learn__tick .ac-i { width: 13px; height: 13px; stroke-width: 3; }

.ac-offers { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .ac-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-offers li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-muted);
}
.ac-offers strong { color: var(--ac-ink); font-weight: 700; }
.ac-offers__i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--tone-soft); color: var(--tone); flex-shrink: 0; }

/* --- Curriculum --- */
.ac-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--ac-surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-ink);
  transition: background-color .25s;
}
.ac-expand:hover { background: var(--ac-line); }
.ac-expand .ac-i { width: 16px; height: 16px; transition: transform .3s var(--ac-ease); }
.ac-expand[aria-expanded="true"] .ac-i { transform: rotate(180deg); }

.ac-modules { display: grid; gap: 12px; margin-top: 22px; }
.ac-module {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line);
  transition: box-shadow .3s;
}
.ac-module[open] { box-shadow: 0 0 0 1px #C9D9F5, 0 16px 34px -24px rgba(37, 99, 235, .45); }
.ac-module__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.ac-module__head::-webkit-details-marker { display: none; }
.ac-module__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #E3EDFF;
  font-family: var(--ac-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ac-brand);
  flex-shrink: 0;
}
.ac-module[open] .ac-module__num { background: var(--ac-brand); color: #fff; }
.ac-module__num--final { background: #FEF0D7; color: #D97706; }
.ac-module__title { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 16px; font-weight: 600; color: var(--ac-ink); }
.ac-module__title small { font-size: 13px; font-weight: 500; color: var(--ac-muted); }
.ac-module__chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ac-surface); color: var(--ac-ink); transition: transform .35s var(--ac-ease); }
.ac-module__chev .ac-i { width: 16px; height: 16px; }
.ac-module[open] .ac-module__chev { transform: rotate(180deg); }
.ac-module--final { background: linear-gradient(135deg, #FFFBF2, #FFF4DE); box-shadow: 0 0 0 1px #F6E2B8; }
.ac-module--final .ac-module__head { cursor: default; }

.ac-lessons { margin: 0 20px; padding: 6px 0 14px; border-top: 1px solid var(--ac-line); }
.ac-lessons li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-ink);
}
.ac-lessons li + li { border-top: 1px dashed #E4EAF1; }
.ac-lessons__play .ac-i { width: 20px; height: 20px; color: var(--ac-brand); }
.ac-lessons__name { flex: 1; }
.ac-lessons__time { font-size: 13px; color: var(--ac-muted); white-space: nowrap; }
.ac-lessons__lock .ac-i { width: 15px; height: 15px; color: #9AA6B2; }

/* --- Certificate --- */
.ac-certblock {
  display: grid;
  gap: 30px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background: var(--ac-surface);
}
@media (min-width: 900px) { .ac-certblock { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 36px; } }
.ac-certblock__list { display: grid; gap: 10px; margin-top: 18px; }
.ac-certblock__list li { display: flex; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ac-ink); }
.ac-certblock__list .ac-i { width: 18px; height: 18px; color: var(--ac-success); stroke-width: 2.6; flex-shrink: 0; }

.ac-cert {
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7CB0FC, #2563EB 55%, #4632B4);
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .7);
  transform: rotate(1.5deg);
}
.ac-cert__inner {
  position: relative;
  padding: 24px 24px 20px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, #EAF1FF 0 90px, transparent 91px),
    #fff;
  text-align: center;
}
.ac-cert__top { display: flex; align-items: center; justify-content: space-between; }
.ac-cert__top .ac-brand__tag { font-size: 14px; }
.ac-cert__seal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FEF0D7; color: #D97706; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #F6E2B8; }
.ac-cert__kicker { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ac-brand); }
.ac-cert__small { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--ac-muted); }
.ac-cert__name { margin-top: 4px; font-family: var(--ac-display); font-size: 28px; font-weight: 600; color: var(--ac-ink); }
.ac-cert__course { margin-top: 4px; font-family: var(--ac-display); font-size: 17px; font-weight: 600; color: var(--ac-brand); }
.ac-cert__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--ac-line);
  font-size: 11px;
  font-weight: 500;
  color: var(--ac-muted);
}
.ac-cert__foot b { display: block; font-size: 12px; font-weight: 700; color: var(--ac-ink); }

/* --- Related --- */
.ac-related { background: var(--ac-surface); }
.ac-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ac-related .ac-grid { margin-top: 36px; }

/* The help band follows a grey section here, so it needs its own space. */
.ac-related + .ac-help { padding-top: 100px; }

.ac-404 { padding: 180px 0 120px; }
.ac-404 a { color: var(--ac-brand); text-decoration: underline; }

/* Course library heading: one line from tablet width up. */
.ac-head--wide { max-width: none; }
@media (min-width: 900px) { .ac-head--wide .section-title { white-space: nowrap; } }
.ac-head--wide .section-lead { max-width: 720px; }

/* Level label above the title, used on cards that carry a banner (the
   banner fills the picture, so the label cannot sit on it). */
.ac-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--tone);
}
.ac-card__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
