/**
 * Opti Skills Africa - main stylesheet
 *
 * Layout of this file (search for the banner comments):
 *   tokens & base -> buttons -> header -> sections -> hero -> course cards ->
 *   how it works -> course detail -> additions for the Teachable version
 *
 * Colours are CSS variables at the top (:root); change them there once
 * and the whole site follows.
 */

/* ==================================================================
   Design tokens, reset and base typography
   ================================================================== */

:root {
  --stripimg: url(../img/pattern-strip.png); /* faint pattern used behind some blocks */
  --navy: #004263;
  --blue: #0091ba;
  --yel: #ffb501;
  --ora: #ff7b02;
  --bg: #fff;
  --fg: #004263;
  --alt: #f4fafc;
  --card: #fff;
  --line: #d5e6ec;
  --tint: #cce9f1;
  --hl: #0091ba;
  --hero: #eaf6fa;
  --selbg: #004263;
  --selfg: #fff;
  --bar: #004263;
  --lg: block;
  --lw: none;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==================================================================
   Headings and section scaffolding
   ================================================================== */

h1,
h2,
h3,
h4,
.mx {
  font-family: "Manrope", system-ui, sans-serif;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==================================================================
   Buttons and pills
   ================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font:
    700 16px "Manrope",
    sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  color: var(--navy);
  transition:
    transform 0.15s,
    filter 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.yel {
  background: var(--yel);
}

.ora {
  background: var(--ora);
}

.navy {
  background: var(--selbg);
  color: var(--selfg);
}

.wht {
  background: #fff;
}

.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.pill {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font:
    700 15px "Manrope",
    sans-serif;
  cursor: pointer;
  border: 2px solid var(--fg);
  background: var(--card);
  color: var(--fg);
}

.pill[aria-pressed="true"] {
  background: var(--selbg);
  color: var(--selfg);
  border-color: var(--selbg);
}

:focus-visible {
  outline: 3px solid var(--ora);
  outline-offset: 2px;
}

/* ==================================================================
   Header and navigation
   ================================================================== */

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
  transition: box-shadow 0.2s;
}

header.sc {
  box-shadow: 0 6px 24px rgba(0, 66, 99, 0.14);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
}

.logo {
  height: 52px;
  width: auto;
}

.lg {
  display: var(--lg);
}

.lw {
  display: var(--lw);
}

nav {
  display: flex;
  gap: 4px;
  font:
    700 15px "Manrope",
    sans-serif;
  margin: 0 0 0 auto;
}

nav a {
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
}

nav a:hover {
  background: var(--alt);
}

nav a[aria-current="true"]:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--ora);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

#mm {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

#mm .wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  padding-bottom: 20px;
  height: auto;
}

#mm a:not(.btn) {
  padding: 14px 8px;
  font: 700 18px "Manrope";
  border-bottom: 1px solid var(--line);
}

@media (max-width: 940px) {
  nav,
  .hcta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

@media (min-width: 941px) {
  #mm {
    display: none !important;
  }
}

h1 {
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.eb {
  font: 800 12.5px "Manrope";
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hl);
}

.sec {
  padding: 64px 0;
}

.alt {
  background: var(--alt);
}

.sh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.sh > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more {
  font: 700 15px "Manrope";
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--hl);
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero .wrap > div {
  flex: 1 1 420px;
  min-width: 0;
}

.note {
  font:
    800 22px/1.15 "Manrope",
    sans-serif;
  color: var(--navy);
  transform: rotate(-4deg);
  position: absolute;
  z-index: 2;
}

/* ==================================================================
   Stats strip
   ================================================================== */

.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat svg {
  color: var(--hl);
  flex: none;
}

.stat b {
  font: 800 28px/1.1 "Manrope";
  display: block;
}

.stat small {
  font-size: 14px;
}

@media (max-width: 640px) {
  .stat {
    border-left: 0;
  }
}

/* ==================================================================
   Generic grids, icon bubbles, panels and lists
   ================================================================== */

.g4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ib {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro {
  max-width: 760px;
  font-size: 18px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.tile {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font: 700 15px "Manrope";
  color: var(--fg);
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.tile[aria-pressed="true"] {
  border-color: var(--ora);
  background: var(--alt);
}

.tile .ib {
  width: 56px;
  height: 56px;
}

.panel {
  margin-top: 24px;
  border-radius: 24px;
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--line);
}

.panel > * {
  flex: 1 1 300px;
  min-width: 0;
}

.pts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pts li {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--alt);
  align-items: center;
}

.pts li:before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yel);
}

/* ==================================================================
   How it works: journey steps
   ================================================================== */

.hw {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.hw > .l {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.steps {
  flex: 2 1 520px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.sp {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.sn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 800 20px "Manrope";
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--tint);
}

.sp h3 {
  font-size: 18px;
  font-weight: 800;
}

.sp p {
  font-size: 14.5px;
}

.ar {
  color: var(--hl);
  margin-top: 16px;
  flex: none;
}

@media (max-width: 900px) {
  .steps {
    flex-wrap: wrap;
  }
  .ar {
    display: none;
  }
}

/* ==================================================================
   About section
   ================================================================== */

.ab {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.ab > div {
  flex: 1 1 420px;
  min-width: 0;
}

.vis {
  position: relative;
  border-radius: 28px;
  background: var(--navy);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 32px;
}

.vis:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stripimg) center/auto 96px repeat;
  opacity: 0.1;
}

.vis img {
  position: relative;
  width: min(100%, 380px);
  height: auto;
}

.vis .note {
  color: var(--yel);
  left: 28px;
  bottom: 26px;
  font-size: 34px;
}

.ck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 20px;
  margin: 4px 0;
}

.ck span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ck i {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mvb {
  background: var(--alt);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fade {
  animation: f 0.35s ease;
}

@keyframes f {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==================================================================
   Experts cards
   ================================================================== */

.ex {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.av {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ex b {
  font: 800 16px "Manrope";
  display: block;
}

.ex small {
  font-size: 13.5px;
  display: block;
}

/* ==================================================================
   Call-to-action band
   ================================================================== */

.cta {
  background: var(--navy);
  color: #fff;
  border-radius: 32px 32px 0 0;
  position: relative;
  margin-top: 40px;
}

.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.cta .t {
  flex: 1 1 360px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.cta h2 {
  font-size: 26px;
  color: #fff;
}

.cta .t svg {
  color: var(--yel);
  flex: none;
}

/* ==================================================================
   Footer
   ================================================================== */

footer {
  background: var(--bar);
  color: #cce9f1;
  font-size: 14.5px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  justify-content: space-between;
  padding-top: 44px;
  padding-bottom: 36px;
}

footer a:hover {
  color: var(--yel);
}

footer h4 {
  font: 800 13px "Manrope";
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb {
  flex-basis: 100%;
  border-top: 1px solid #1c7399;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
}

/* ==================================================================
   Enquiry dialog and form fields
   ================================================================== */

dialog {
  border: 0;
  border-radius: 24px;
  padding: 32px;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--card);
  color: var(--fg);
}

dialog::backdrop {
  background: rgba(0, 41, 63, 0.6);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--fg);
  padding: 0 14px;
  font: 16px "DM Sans";
  background: var(--bg);
  color: var(--fg);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* ==================================================================
   Course-card logo mark and social-proof strip
   ================================================================== */

.cl {
  display: block;
  width: 140px;
  height: 46px;
  background: no-repeat left center/contain;
}

.dk .cl {
  background-image: url(../img/logo-mark-light.png);
}

.lt .cl {
  background-image: url(../img/logo-mark-dark.png);
}

.proof {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.proof b {
  display: block;
  font: 800 22px/1.1 "Manrope";
}

.proof span {
  font-size: 14px;
}

.pav {
  display: flex;
}

.pav img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  margin-left: -12px;
  object-fit: cover;
}

.pav img:first-child {
  margin-left: 0;
}

.rt {
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--yel);
  letter-spacing: 2px;
  font-size: 17px;
}

/* ==================================================================
   Course cards (rendered from Teachable data)
   ================================================================== */

.cg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.co {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.co:hover,
.co:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(0, 66, 99, 0.2);
  border-color: var(--blue);
}

.cv {
  position: relative;
  height: 170px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.cv.dk {
  background: var(--navy);
  color: #fff;
}

.cv.lt {
  background: #fef9ec;
  color: var(--navy);
}

.cv:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 0
    0/22px 22px;
  opacity: 0.1;
}

.cv > * {
  position: relative;
}

.ct {
  font: 800 20px/1.1 "Manrope";
  max-width: 52%;
}

.ci {
  position: absolute !important;
  right: 16px;
  top: 50%;
  margin-top: -42px;
  transition: transform 0.35s;
  opacity: 0.95;
}

.co:hover .ci {
  transform: scale(1.14) rotate(-4deg);
}

.tg {
  position: absolute !important;
  top: 12px;
  right: 12px;
  background: var(--yel);
  color: var(--navy);
  font: 700 12px "Manrope";
  padding: 4px 10px;
  border-radius: 999px;
}

.cb {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cb p {
  font-size: 15px;
  flex: 1;
}

.mt {
  font-weight: 700;
  font-size: 14px;
  color: var(--hl);
}

.by {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
}

.by b {
  font: 800 20px "Manrope";
}

.by .btn {
  min-height: 40px;
  padding: 0 18px;
}

.vall {
  text-align: center;
  margin-top: 34px;
}

/* ==================================================================
   "What makes our courses different" rows
   ================================================================== */

.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}

.fr.rev > .fi {
  order: -1;
}

.fr > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fr h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.fr p {
  max-width: 440px;
}

.fi {
  position: relative;
  margin: 0;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Offset yellow frame that slides out behind the photo on hover */
.fi::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--yel);
  transform: translate(0, 0);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}

.fr.rev .fi:hover::before { transform: translate(-14px, 14px); }
.fi:hover::before { transform: translate(14px, 14px); }
.fi:hover { transform: translateY(-6px); }

.fi img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s;
}

/* Image zooms inside its rounded frame; caption slides up over a navy fade */
.fiw {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
}

.fi:hover img { transform: scale(1.07); filter: saturate(1.1); }

.fiw::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 51, 102, 0.78));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.fi:hover .fiw::after { opacity: 1; }

.fi figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 800 13px "Manrope";
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(8px);
  opacity: 0.95;
  transition: transform 0.4s, background 0.3s;
}

.fi:hover figcaption {
  transform: translateY(0);
  background: var(--yel);
}

@media (hover: none) {
  .fiw::after { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .fi, .fi::before, .fi img, .fi figcaption { transition: none; }
  .fi:hover, .fi:hover img { transform: none; }
}

/* ==================================================================
   Success story cards (section is hidden by default)
   ================================================================== */

.tm {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tm p {
  flex: 1;
}

.tw {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tw img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.tw b {
  display: block;
  font: 800 15px "Manrope";
}

.tw small {
  font-size: 13.5px;
}

@media (max-width: 800px) {
  .fr {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fr.rev > .fi {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co,
  .ci {
    transition: none;
  }
  .co:hover {
    transform: none;
  }
}

/* ==================================================================
   Hero section
   ================================================================== */

.hvg {
  background: #fff;
}

.hv {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 32px;
}

.hl {
  max-width: 480px;
  font-size: 18px;
  opacity: 0.82;
  margin: 22px 0 30px;
}

.hbtns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}

.hplay {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 15px "Manrope";
}

.hplay i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ora);
  display: grid;
  place-items: center;
}

.hplay svg {
  fill: #fff;
  width: 16px;
  margin-left: 3px;
}

.hvis {
  position: relative;
  min-height: 440px;
}

.hb {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
}

.hb1 {
  inset: 0 90px 70px 0;
  background: var(--blue);
}

.hb2 {
  width: 210px;
  height: 240px;
  right: 0;
  bottom: 0;
  background: #fef9ec;
  border: 6px solid #fff;
  border-radius: 120px 120px 28px 28px;
}

.hb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hb1 img {
  object-position: 50% 35%;
}

.hbadge {
  position: absolute;
  left: -18px;
  top: 18px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--yel);
  display: grid;
  place-items: center;
  text-align: center;
  font: 800 14px/1.2 "Manrope";
  color: var(--navy);
  padding: 14px;
  box-shadow: 0 0 0 6px #fff;
  animation: hs 28s linear infinite;
  z-index: 2;
}

.hbadge span {
  display: block;
  animation: hs 28s linear infinite reverse;
}

@keyframes hs {
  to {
    transform: rotate(360deg);
  }
}

.hfloat {
  position: absolute;
  right: -6px;
  top: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  width: 210px;
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(0, 66, 99, 0.14);
  z-index: 2;
}

.hfloat div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.hfloat i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ora);
}

.hfloat i.on {
  background: var(--blue);
  border-color: var(--blue);
}

/* ==================================================================
   "Find your pathway" search band
   ================================================================== */

.fband {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 30px 36px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 32px;
  align-items: center;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 2px, transparent 2.5px);
  background-size: 26px 26px;
  box-shadow: 0 18px 40px rgba(0, 51, 102, 0.18);
}

.fl { display: flex; flex-direction: column; gap: 8px; }
.fl .eb { color: var(--yel); }

.fband h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
}

.fband em { font-style: normal; color: var(--yel); }

.fr2 { display: flex; flex-direction: column; gap: 14px; }

.ffind {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ffind:focus-within { box-shadow: 0 0 0 4px rgba(255, 183, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.18); }

.ffind .fs { color: var(--navy); display: flex; opacity: 0.6; }

.ffind input {
  border: 0;
  background: transparent;
  color: var(--navy);
  min-height: 46px;
  padding: 0 6px;
  outline: none;
  flex: 1;
}

.ffind .btn { border-radius: 999px; min-height: 46px; padding: 0 26px; }

.fchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 32px; }
.fchips:empty { display: none; }
.fchips small { color: #fff; opacity: 0.8; font-weight: 700; margin-right: 2px; }

.fchips button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font: 700 13px "DM Sans";
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fchips button:hover { background: var(--yel); color: var(--navy); border-color: var(--yel); }

/* Friendly notice when the course list is unavailable */
.cnote {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.cnote .ci2 {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yel); color: var(--navy);
}

.cnote h3 { font-size: 22px; font-weight: 800; }
.cnote p { max-width: 420px; opacity: 0.8; }
.cnote .row { justify-content: center; margin-top: 6px; }

/* ==================================================================
   How it works: dark section theme
   ================================================================== */

#how {
  background: var(--navy);
  color: #fff;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07) 2px,
    transparent 2.5px
  );
  background-size: 26px 26px;
}

#how .eb {
  color: var(--yel);
}

#how .pill {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

#how .pill[aria-pressed="true"] {
  background: var(--yel);
  color: var(--navy);
  border-color: var(--yel);
}

#how .sn {
  background: var(--yel);
  color: var(--navy);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}

#how .ar {
  color: var(--yel);
}

.cta {
  background: var(--blue);
}

.cta .t svg {
  color: #fff;
}

.cta .t p {
  color: #fff !important;
}

@media (max-width: 900px) {
  .hv {
    grid-template-columns: 1fr;
  }
  .hvis {
    min-height: 400px;
  }
  .fband {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .hfloat {
    display: none;
  }
  .ffind .btn {
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbadge,
  .hbadge span {
    animation: none;
  }
}

/* ==================================================================
   Hero floating "AI for Professionals" card
   ================================================================== */

.hai {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px -8px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  position: relative;
  animation: hp 2.4s ease-in-out infinite;
  transition: transform 0.2s;
}

.hai:hover {
  transform: translateY(-2px);
}

.hai .hs {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yel);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

.hai .ht {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
}

.hai b {
  font: 800 14px "Manrope";
}

.hai small {
  font-size: 12px;
  color: var(--yel);
}

.hai em {
  font: 800 11px "Manrope";
  font-style: normal;
  background: var(--ora);
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
}

@keyframes hp {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 181, 1, 0.55);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 181, 1, 0);
  }
}

.hfloat {
  width: 250px !important;
}

.by .btn {
  width: 100%;
}

/* ==================================================================
   Course detail view and certification table
   ================================================================== */

body.dv main > section:not(#detail) {
  display: none;
}

.jh {
  color: #fff;
  font-size: 22px;
  margin: 40px 0 0;
}

.jtw {
  background: #fff;
  border-radius: 20px;
  overflow-x: auto;
  margin-top: 16px;
}

.jtb {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  color: var(--navy);
  font-size: 15px;
}

.jtb th {
  text-align: left;
  font: 800 13px "Manrope";
  padding: 16px 20px;
  background: #eaf6fa;
}

.jtb td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.jtb td:first-child {
  min-width: 190px;
}

.jtb .btn {
  min-height: 40px;
  padding: 0 18px;
  white-space: nowrap;
}

.back {
  display: inline-block;
  font-weight: 700;
  color: var(--hl);
  margin-bottom: 24px;
}

.dgrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.dh {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  margin: 8px 0 14px;
}

.dl {
  font-size: 19px;
  max-width: 620px;
}

.dgrid h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.dcard {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 66, 99, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp {
  font-weight: 700;
  font-size: 14px;
  color: var(--hl);
}

.dpr {
  font: 800 34px "Manrope";
  color: var(--navy);
}

.dcard dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 15px;
}

.dcard dt {
  font-weight: 700;
}

.dcard dd {
  margin: 0;
}

.dn {
  font-size: 14px;
  margin: 0;
}

.dst {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 15px;
}

.dst ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .dgrid {
    grid-template-columns: 1fr;
  }
  .dcard {
    position: static;
  }
}

@media (max-width: 520px) {
  .hfloat {
    display: block !important;
    top: auto;
    bottom: 10px;
    right: 6px;
    width: 230px !important;
    padding: 6px;
  }
  .hfloat > div {
    display: none;
  }
  .hai {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hai {
    animation: none;
  }
}

.hfloat {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
}

.hfloat .hai {
  margin: 0;
  width: 260px;
}

/* ==================================================================
   Additions for the Teachable-driven version of the page
   ================================================================== */

/* Anything marked `hidden` must stay hidden, whatever display rule it has. */
[hidden] {
  display: none !important;
}

/* How it works: "Microsoft Credentials" introduction block */
.ms-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 56px;
}

.ms-intro h2 {
  color: #fff;
}

.ms-intro .intro {
  color: #fff;
  opacity: 0.92;
}

/* Course cards that use the image uploaded on Teachable */
.cv.has-img {
  background: var(--navy);
  color: #fff;
  justify-content: flex-end;
}

.cv-img {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkens the photo so the white course title is always readable */
.cv.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 66, 99, 0.1) 30%,
    rgba(0, 66, 99, 0.85)
  );
}

.cv.has-img .ct,
.cv.has-img .tg {
  z-index: 2;
}

.cv.has-img .ct {
  max-width: 100%;
}

/* Loading placeholders while courses are fetched */
.sk .cv {
  background: var(--tint);
}

.sk .cv::before {
  display: none;
}

.sk .cb i {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: var(--line);
}

.sk .cb i:nth-child(2) {
  width: 80%;
}

.sk .cb i:nth-child(3) {
  width: 55%;
}

.sk .cv,
.sk .cb i {
  animation: sk-pulse 1.4s ease-in-out infinite;
}

@keyframes sk-pulse {
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk .cv,
  .sk .cb i {
    animation: none;
  }
}

/* Message shown if courses can't be loaded or none are published yet */
.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 20px;
  font-size: 17px;
}

/* Course detail: paragraphs from the Teachable description */
.dbody p,
.dgrid p {
  margin-bottom: 12px;
}

.dbody {
  max-width: 640px;
  margin-top: 16px;
}

.vall[hidden], #viewAll[hidden] { display: none; }

/* Search results note above the course grid */
.rnote {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 700;
}

.rnote button {
  background: none;
  border: 0;
  color: var(--hl);
  font: 800 14px "Manrope";
  text-decoration: underline;
  cursor: pointer;
}
/* Whole course card is clickable */
.co { cursor: pointer; }
.co .btn:focus-visible { outline: 3px solid var(--yel); outline-offset: 2px; }
