/* Layout of editor content (blog posts, pages, course copy): the b-* classes apps.cms.cleaning maps the
   old editor's classes to, with the same rules live's block library applies to them. */

.b-columns { display: flex; flex-wrap: wrap !important; align-items: normal !important; gap: 2em; margin-bottom: 1.75em; box-sizing: border-box; }
@media (min-width: 782px) {
  .b-columns { flex-wrap: nowrap !important; }
  .b-columns:not(.b-no-stack) > .b-column { flex-basis: 0; flex-grow: 1; }
}
@media (max-width: 781px) { .b-columns:not(.b-no-stack) > .b-column { flex-basis: 100% !important; } }
.b-columns:not(.b-no-stack) > .b-column[style*="flex-basis"] { flex-grow: 0; }
.b-columns.b-no-stack { flex-wrap: nowrap !important; }
.b-columns.b-no-stack > .b-column { flex-basis: 0; flex-grow: 1; }
.b-columns.b-v-top { align-items: flex-start; }
.b-columns.b-v-center { align-items: center; }
.b-columns.b-v-bottom { align-items: flex-end; }
.b-column { flex-grow: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.b-column.b-v-top { align-self: flex-start; }
.b-column.b-v-center { align-self: center; }
.b-column.b-v-bottom { align-self: flex-end; }
.b-column.b-v-stretch { align-self: stretch; }
.b-column.b-v-top, .b-column.b-v-center, .b-column.b-v-bottom { width: 100%; }

.b-group { box-sizing: border-box; }
.b-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.b-flex > * { margin: 0; }
.b-flex.b-nowrap { flex-wrap: nowrap; }
.b-flex.b-vertical { flex-direction: column; align-items: flex-start; }
.b-flex.b-justify-center { justify-content: center; }
.b-flex.b-justify-right { justify-content: flex-end; }
.b-flex.b-justify-between { justify-content: space-between; }

.b-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
.b-image > a, .b-image > figure > a { display: inline-block; }
.b-image figure { margin: 0; }
.b-image :where(figcaption) { margin-top: 0.5em; margin-bottom: 1em; }

.b-table { overflow-x: auto; }
.b-table table { border-collapse: collapse; width: 100%; }
.b-table thead { border-bottom: 3px solid; }
.b-table tfoot { border-top: 3px solid; }
.b-table td, .b-table th { border: 1px solid; padding: 0.5em; }

.b-separator { border: none; border-top: 2px solid; }

.b-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.b-button-link {
  display: inline-block; padding: calc(0.667em + 2px) calc(1.333em + 2px); border-radius: 9999px;
  background-color: #32373c; color: #fff; font-size: 1.125em; text-align: center; text-decoration: none;
  box-shadow: none; cursor: pointer; word-break: break-word;
}
.b-button-full { width: 100%; }

.b-text-center { text-align: center; }
.b-text-left { text-align: left; }
.b-text-right { text-align: right; }
.b-fs-small { font-size: 13px !important; }
.b-fs-normal { font-size: 16px; }
.b-fs-medium { font-size: 20px !important; }
.b-fs-large { font-size: 36px !important; }
.b-fs-x-large { font-size: 42px !important; }

/* Icons that were Font Awesome glyphs on live: the span carries live's inline size and colour. */
.fa-icon { display: inline-block; line-height: 1; }
.fa-icon .icon { vertical-align: -0.125em; }
/* Font Awesome's list layout, under neutral names: icons hang in the left margin of each item. */
.icon-list { list-style-type: none; margin-left: 2.5em; padding-left: 0; }
.icon-list > li { position: relative; }
.icon-list__icon { position: absolute; left: -2em; width: 2em; text-align: center; line-height: inherit; }

/* Bootstrap collapse panels in page markup (live's FAQ accordions); site.js toggles .show. */
.collapse:not(.show) { display: none; }

/* Related-course card slider (live: Swiper, 3 per view, 50px apart). A scroll-snapping row instead of
   the slider script: same cards, same sizes, swipe/scroll to see more. */
.slider-post-teasers { overflow: hidden; }
.slider-post-teasers .swiper-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-post-teasers .swiper-wrapper::-webkit-scrollbar { display: none; }
.slider-post-teasers .swiper-slide { position: relative; flex: 0 0 calc((100% - 100px) / 3); height: 350px; margin: 0 50px 30px 0; scroll-snap-align: start; }
@media (max-width: 991px) { .slider-post-teasers .swiper-slide { flex-basis: calc((100% - 50px) / 2); } }
@media (max-width: 767px) { .slider-post-teasers .swiper-slide { flex-basis: 100%; } }

/* Icons from static/icons/sprite.svg: 1em of the current colour, like the glyphs they replace. */
.doc .icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* Logo rails (live's Swiper logo sliders, apps.cms.extract._swipers; templates/blocks/trust_logos.html).
   site.js clones the track so the marquee loops. */

.trust-logos { padding: 20px 0; }
/* The accreditations instance is narrower than the page container: the live
   wrapper is max-width 1100px with 10/40 vertical padding. */
.trust-logos.accreds-logos { max-width: 1100px; padding: 10px 0 40px; margin: 0 auto; }
/* Trusted-by's container carries an inline margin-top:40px on live. */
.trust-logos:not(.accreds-logos) .container { margin-top: 40px; }
.trust-logos h3,
.trust-logos .logo-rail-heading {
  margin: 0 auto 5px;
  font-size: var(--text-size-medium);
  line-height: var(--text-line-medium);
  font-weight: var(--font-weight-boldest);
  text-transform: capitalize;
  text-align: center;
}
/* Live colours differ per rail: "Accredited by" is the plain body colour,
   "Trusted by" is navy (inline-styled on live). */
.trust-logos h3 { color: #212529; }
.trust-logos .logo-rail-heading { margin-top: 10px; color: var(--color-darkbleu); }

/* Marquee replacing Swiper: duplicate the track and translate it. */
.logo-rail { position: relative; overflow: hidden; }
.logo-rail__track {
  display: flex;
  align-items: center;
  /* No gap: Swiper's inline margin-right:40px is killed on live by
     `#trusted__by .swiper-slide { margin: 0 auto !important }`, so the tiles
     sit edge to edge and the visual spacing is the letterboxing inside each
     3:2 `contain` box. */
  gap: 0;
  width: max-content;
  animation: logo-marquee 60s linear infinite;
}
.logo-rail:hover .logo-rail__track { animation-play-state: paused; }
/* Tile widths measured from the live DOM at 1592px: Swiper computes
   (content − 5×40)/6, then the 40px margins are deleted by the override
   above. Trusted-by sits in the 1300px container → 178.33px; the narrower
   1100px accreditations wrapper → 145px. Aspect 3/2, 16px padding,
   `contain` letterboxing — identical uniform tiles either way. */
.logo-rail__track img {
  width: 178.33px;
  aspect-ratio: 3 / 2;
  padding: 1rem;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  margin: 0;
  mix-blend-mode: multiply;
}
.accreds-logos .logo-rail__track img { width: 145px; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-rail__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}
/* Trusted by: live's heading is a paragraph (10px above, 1rem below) and its slider row carries
   Bootstrap's pb-5 (3rem). */
#trusted__by .logo-rail-heading { margin-bottom: 1rem; }
#trusted__by .logo-rail { padding-bottom: 3rem; }
