.ai-learning-hub {
  --hub-green: #073d36;
  --hub-ink: #172521;
  --hub-blue: #075aa5;
  --hub-red: #8d1d2c;
  --hub-gold: #c5a451;
  --hub-paper: #f6f4ee;
  --hub-line: #d6d9d3;
  --hub-muted: #53615d;
}

.ai-learning-hub .article-header {
  position: relative;
  padding: 74px 0 84px;
  overflow: hidden;
  background: var(--hub-green);
  border-bottom: 8px solid var(--hub-gold);
}

.ai-learning-hub .article-header::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 0;
  width: 34%;
  height: 8px;
  background: #2d8f82;
}

.ai-learning-hub .article-header .article-shell { position: relative; z-index: 1; }
.ai-learning-hub .breadcrumbs { margin-bottom: 38px; }

.ai-learning-hub .article-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #f2d984;
}

.ai-learning-hub .article-header .eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.ai-learning-hub .article-header h1 {
  max-width: 960px;
  margin-top: 22px;
  font-size: clamp(3rem, 5.8vw, 5.3rem);
  line-height: 0.98;
}

.ai-learning-hub .article-deck {
  max-width: 790px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.58;
}

.ai-learning-hub .article-byline { margin-top: 26px; }

.ai-learning-hub .article-hero-image {
  width: min(calc(100% - 48px), 1180px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 40px auto 0;
  overflow: hidden;
  background: #eef1ee;
  box-shadow: 0 24px 56px rgb(7 61 54 / 13%);
}

.ai-learning-hub .article-hero-image img {
  object-fit: cover;
  object-position: center;
}

.ai-learning-hub .institutional-layout { padding-block: 68px 104px; }
.ai-learning-hub .institutional-layout .article-body { width: min(100%, 1180px); }

.ai-learning-hub .article-body {
  color: var(--hub-ink);
  font-size: 1.02rem;
  line-height: 1.68;
}

.ai-learning-hub .article-body > h2 {
  max-width: 880px;
  margin: 86px 0 16px;
  color: var(--hub-green);
  font-size: clamp(2.05rem, 3.7vw, 3.3rem);
  line-height: 1.04;
}

.ai-learning-hub .article-body > h2::before {
  display: block;
  margin-bottom: 13px;
  color: var(--hub-red);
  font: 800 0.72rem/1.2 Arial, sans-serif;
  text-transform: uppercase;
}

.ai-learning-hub .article-body > h2:nth-of-type(1)::before { content: "Choose a starting point"; }
.ai-learning-hub .article-body > h2:nth-of-type(2)::before { content: "Programme portfolio"; }
.ai-learning-hub .article-body > h2:nth-of-type(3)::before { content: "Structured progression"; }
.ai-learning-hub .article-body > h2:nth-of-type(4)::before { content: "Research library"; }
.ai-learning-hub .article-body > h2:nth-of-type(5)::before { content: "Implementation guide"; }
.ai-learning-hub .article-body > h2:nth-of-type(6)::before { content: "Continue learning"; color: #f2d984; }
.ai-learning-hub .article-body > h2:first-child { margin-top: 0; }

.ai-learning-hub .article-body > h2 + p {
  max-width: 800px;
  margin-top: 0;
  color: var(--hub-muted);
  font-size: 1.08rem;
}

.ai-learning-hub .article-body > blockquote {
  margin: 28px 0 34px;
  padding: 0;
  color: var(--hub-green);
  background: var(--hub-paper);
  border: 1px solid var(--hub-line);
  border-left: 5px solid var(--hub-gold);
  font: 700 0.88rem/1.45 Arial, sans-serif;
}

.ai-learning-hub .article-body > blockquote p { margin: 0; padding: 17px 20px; }

.ai-learning-hub .article-body table {
  margin-top: 30px;
  border-collapse: separate;
  border-spacing: 0;
}

.ai-learning-hub .article-body table:nth-of-type(1),
.ai-learning-hub .article-body table:nth-of-type(2),
.ai-learning-hub .article-body table:nth-of-type(3) {
  display: grid;
  gap: 16px;
}

.ai-learning-hub .article-body table:nth-of-type(1),
.ai-learning-hub .article-body table:nth-of-type(2) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-learning-hub .article-body table:nth-of-type(3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ai-learning-hub .article-body table:nth-of-type(-n+3) thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-learning-hub .article-body table:nth-of-type(-n+3) tbody,
.ai-learning-hub .article-body table:nth-of-type(-n+3) tr { display: contents; }

.ai-learning-hub .article-body table:nth-of-type(-n+3) td {
  display: block;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--hub-line);
}

.ai-learning-hub .article-body table:nth-of-type(1) td {
  position: relative;
  min-height: 238px;
  padding: 70px 24px 26px;
  color: #30403c;
  border-top: 5px solid var(--hub-gold);
}

.ai-learning-hub .article-body table:nth-of-type(1) td:nth-child(2) { border-top-color: #287c72; }
.ai-learning-hub .article-body table:nth-of-type(1) td:nth-child(3) { border-top-color: var(--hub-blue); }
.ai-learning-hub .article-body table:nth-of-type(1) td:nth-child(4) { border-top-color: var(--hub-red); }

.ai-learning-hub .article-body table:nth-of-type(1) td::before {
  content: "01";
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--hub-red);
  font: 800 0.76rem/1 Arial, sans-serif;
}

.ai-learning-hub .article-body table:nth-of-type(1) td:nth-child(2)::before { content: "02"; }
.ai-learning-hub .article-body table:nth-of-type(1) td:nth-child(3)::before { content: "03"; }
.ai-learning-hub .article-body table:nth-of-type(1) td:nth-child(4)::before { content: "04"; }

.ai-learning-hub .article-body table:nth-of-type(1) td strong,
.ai-learning-hub .article-body table:nth-of-type(3) td strong {
  display: block;
  margin-bottom: 12px;
  color: var(--hub-green);
  font: 700 1.28rem/1.18 Georgia, serif;
}

.ai-learning-hub .article-body table:nth-of-type(2) { gap: 20px; }

.ai-learning-hub .article-body table:nth-of-type(2) td {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 0 20px 22px;
  overflow: hidden;
  color: #3b4945;
  font-size: 0.94rem;
  line-height: 1.58;
  box-shadow: 0 10px 25px rgb(7 61 54 / 7%);
}

.ai-learning-hub .article-body table:nth-of-type(2) td > a:first-child {
  display: block;
  margin: 0 -20px 18px;
  overflow: hidden;
  background: #e8eeeb;
}

.ai-learning-hub .article-body table:nth-of-type(2) img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}

.ai-learning-hub .article-body table:nth-of-type(2) td:hover img { transform: scale(1.018); }

.ai-learning-hub .article-body table:nth-of-type(2) strong {
  display: block;
  margin-bottom: 10px;
  font: 700 1.16rem/1.2 Georgia, serif;
}

.ai-learning-hub .article-body table:nth-of-type(2) strong a {
  color: var(--hub-green);
  text-decoration: none;
}

.ai-learning-hub .article-body table:nth-of-type(2) strong a::after {
  content: "View programme  →";
  display: block;
  margin-top: 18px;
  color: var(--hub-blue);
  font: 800 0.72rem/1.2 Arial, sans-serif;
  text-transform: uppercase;
}

.ai-learning-hub .article-body table:nth-of-type(3) td {
  position: relative;
  min-height: 188px;
  padding: 32px 30px 28px 88px;
  color: #3c4945;
  background: var(--hub-paper);
  border: 0;
  border-left: 4px solid var(--hub-gold);
}

.ai-learning-hub .article-body table:nth-of-type(3) td::before {
  content: "A";
  position: absolute;
  top: 32px;
  left: 28px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--hub-green);
  font: 800 0.78rem/1 Arial, sans-serif;
}

.ai-learning-hub .article-body table:nth-of-type(3) td:nth-child(2)::before { content: "B"; background: var(--hub-blue); }
.ai-learning-hub .article-body table:nth-of-type(3) td:nth-child(3)::before { content: "C"; background: var(--hub-red); }
.ai-learning-hub .article-body table:nth-of-type(3) td:nth-child(4)::before { content: "D"; background: #287c72; }

.ai-learning-hub .article-body table:nth-of-type(4) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 30px;
  background: #eef2ef;
  border: 1px solid var(--hub-line);
}

.ai-learning-hub .article-body table:nth-of-type(4) thead,
.ai-learning-hub .article-body table:nth-of-type(4) tbody,
.ai-learning-hub .article-body table:nth-of-type(4) tr { display: contents; }

.ai-learning-hub .article-body table:nth-of-type(4) th,
.ai-learning-hub .article-body table:nth-of-type(4) td {
  display: block;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid #cfd7d2;
}

.ai-learning-hub .article-body table:nth-of-type(4) th {
  padding: 0 4px 15px;
  color: var(--hub-green);
  background: transparent;
  border-bottom: 3px solid var(--hub-gold);
  font: 800 0.76rem/1.2 Arial, sans-serif;
  text-transform: uppercase;
}

.ai-learning-hub .article-body table:nth-of-type(4) td a {
  display: block;
  color: var(--hub-green);
  font-weight: 750;
  line-height: 1.45;
  text-decoration: none;
}

.ai-learning-hub .article-body table:nth-of-type(4) td a::after { content: " →"; color: var(--hub-red); }

.ai-learning-hub .article-body table:nth-of-type(4) td a:hover,
.ai-learning-hub .article-body table:nth-of-type(4) td a:focus-visible {
  color: var(--hub-blue);
  text-decoration: underline;
}

.ai-learning-hub .article-body > ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  padding: 1px;
  background: #cfd7d2;
  counter-reset: hub-step;
  list-style: none;
}

.ai-learning-hub .article-body > ol li {
  position: relative;
  min-height: 190px;
  padding: 68px 22px 24px;
  color: #35433f;
  background: #fff;
  counter-increment: hub-step;
}

.ai-learning-hub .article-body > ol li::before {
  content: counter(hub-step, decimal-leading-zero);
  position: absolute;
  top: 24px;
  left: 22px;
  color: var(--hub-red);
  font: 800 0.78rem/1 Arial, sans-serif;
}

.ai-learning-hub .article-body > h2:last-of-type {
  max-width: none;
  margin-bottom: 0;
  padding: 46px 48px 12px;
  color: #fff;
  background: var(--hub-green);
  border-top: 7px solid var(--hub-gold);
}

.ai-learning-hub .article-body > h2:last-of-type + p {
  max-width: none;
  margin: 0;
  padding: 0 48px 46px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--hub-green);
}

.ai-learning-hub .article-body > h2:last-of-type + p a { color: #f2d984; font-weight: 800; }
.ai-learning-hub .related-content { display: none; }
.ai-learning-hub a:focus-visible { outline: 3px solid #f0c75e; outline-offset: 4px; }

@media (max-width: 1040px) {
  .ai-learning-hub .article-body table:nth-of-type(1),
  .ai-learning-hub .article-body table:nth-of-type(2),
  .ai-learning-hub .article-body > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-learning-hub .article-header { padding: 54px 0 58px; }
  .ai-learning-hub .breadcrumbs { margin-bottom: 30px; }
  .ai-learning-hub .article-header h1,
  .ai-learning-hub .article-header .eyebrow,
  .ai-learning-hub .article-deck,
  .ai-learning-hub .article-byline {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ai-learning-hub .article-header h1 { font-size: clamp(2.25rem, 11.5vw, 3.15rem); }

  .ai-learning-hub .article-hero-image {
    width: calc(100% - 28px);
    margin-top: 20px;
    box-shadow: 0 14px 30px rgb(7 61 54 / 11%);
  }

  .ai-learning-hub .institutional-layout { padding-block: 46px 72px; }
  .ai-learning-hub .article-body > h2 { margin-top: 62px; font-size: 2.08rem; }
  .ai-learning-hub .article-body > blockquote { font-size: 0.8rem; }

  .ai-learning-hub .article-body table:nth-of-type(1),
  .ai-learning-hub .article-body table:nth-of-type(2),
  .ai-learning-hub .article-body table:nth-of-type(3),
  .ai-learning-hub .article-body table:nth-of-type(4),
  .ai-learning-hub .article-body > ol {
    grid-template-columns: 1fr;
  }

  .ai-learning-hub .article-body table:nth-of-type(1) td { min-height: 0; }
  .ai-learning-hub .article-body table:nth-of-type(2) td { font-size: 0.98rem; }

  .ai-learning-hub .article-body table:nth-of-type(3) td {
    min-height: 0;
    padding: 30px 24px 26px 78px;
  }

  .ai-learning-hub .article-body table:nth-of-type(4) { gap: 0; padding: 22px; }
  .ai-learning-hub .article-body table:nth-of-type(4) th:nth-child(2) { margin-top: 22px; }
  .ai-learning-hub .article-body > ol li { min-height: 0; padding: 62px 22px 24px; }
  .ai-learning-hub .article-body > h2:last-of-type { padding: 34px 26px 10px; }
  .ai-learning-hub .article-body > h2:last-of-type + p { padding: 0 26px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-learning-hub .article-body table:nth-of-type(2) img { transition: none; }
}
