/* Layout fixes on top of the original theme (loaded on every page after the theme CSS). */

/* 1. Cyber Security "Methodologies": five cards in one row instead of 3 + 2.
      Same look as the 4-card rows on Software Development / Hedge Funding, just narrower cards. */
@media (min-width: 1200px) {
  body .dev-cards.dev-cards-5 .card { flex-basis: 145px; }
  body .dev-cards.dev-cards-5 .card.active { flex-basis: 435px; }
  body .dev-cards.dev-cards-5 .card-heading { top: calc(100% + 12px); bottom: auto; font-size: 17px; line-height: 1.35; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  /* not enough width for five: wrap into rows like before */
  body .dev-cards.dev-cards-5 { flex-wrap: wrap; row-gap: 90px; }
}

/* 2. Numbered steps: the icon box covered two-digit numbers (and at some widths every number).
      On tablets/desktops fixes.js places each number just left of its icon.
      On phones there is no room beside the icon, so the number sits above it. */
@media (max-width: 767px) {
  body .pxl-list-box.pxl-list-box1.style-default .pxl--item .pxl-number-text,
  body .pxl-list-box.pxl-list-box1.style-2 .pxl--item .pxl-number-text {
    position: relative; top: 0; left: 0; right: auto; display: block;
    text-align: left; font-size: 56px; margin: 0 0 8px;
  }
}
