/* Joomla 6/SP Page Builder 6 compatibility for the legacy Knight design. */

@media (min-width: 992px) {
  #sp-header > .container {
    width: 100%;
    max-width: none;
  }
}

.acs-course-price-guidance {
  border-top: 1px solid #d9dee3;
  background: #f4f6f7;
  color: #34404a;
  padding: 22px 0;
}

.acs-course-price-guidance .container {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.acs-course-price-guidance strong {
  flex: 0 0 auto;
  color: #172633;
  font-size: 15px;
  text-transform: uppercase;
}

.acs-course-price-guidance p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .acs-course-price-guidance {
    padding: 18px 0;
  }

  .acs-course-price-guidance .container {
    display: block;
    padding-right: 20px;
    padding-left: 20px;
  }

  .acs-course-price-guidance strong {
    display: block;
    margin-bottom: 6px;
  }
}

body.itemid-437 .home-top-block-grid > .row {
  display: block;
}

body.itemid-437 .home-top-block-grid > .row > a {
  display: block;
  float: left;
  width: 33.333333%;
}

body.itemid-437 .home-top-block-grid > .row > a > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: 100%;
}

body.itemid-437 .home-top-block-grid > .row::after {
  display: table;
  clear: both;
  content: "";
}

body.itemid-437 .home-top-block-content h1 {
  margin-top: 50px;
  font-size: 36px;
  line-height: 1.1;
}

body.itemid-437 .home-top-block-content > p {
  max-width: 680px;
  font-size: 19px;
  line-height: 1.5;
}

body.itemid-437 .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.itemid-437 .home-primary-action,
body.itemid-437 .home-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #c91f31;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

body.itemid-437 .home-primary-action {
  background: #c91f31;
  color: #fff;
}

body.itemid-437 .home-primary-action:hover,
body.itemid-437 .home-primary-action:focus {
  border-color: #a71727;
  background: #a71727;
  color: #fff;
}

body.itemid-437 .home-secondary-action {
  border-color: #fff;
  background: rgba(12, 27, 39, 0.72);
  color: #fff;
}

body.itemid-437 .home-secondary-action:hover,
body.itemid-437 .home-secondary-action:focus {
  background: #fff;
  color: #111;
}

body.itemid-437 .info-service h3 span {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}

body.itemid-437 .home-top-block-grid figure::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(7, 19, 28, 0.38);
  content: "";
  pointer-events: none;
}

body.itemid-437 #sppb-addon-1479128080694 .sppb-addon-title {
  display: block;
  width: 100%;
  font-size: 30px;
  line-height: 1.1;
}

body.itemid-437 .home-route-intro {
  max-width: 900px;
  margin: 0 auto 32px;
  color: #4b5560;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
}

body.itemid-437 .home-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 42px;
  border-top: 1px solid #d9dde1;
  border-bottom: 1px solid #d9dde1;
}

body.itemid-437 .home-trust-strip > div {
  min-width: 0;
  padding: 22px 26px;
  border-right: 1px solid #d9dde1;
}

body.itemid-437 .home-trust-strip > div:last-child {
  border-right: 0;
}

body.itemid-437 .home-trust-strip strong,
body.itemid-437 .home-trust-strip span {
  display: block;
}

body.itemid-437 .home-trust-strip strong {
  margin-bottom: 7px;
  color: #111820;
  font-size: 17px;
}

body.itemid-437 .home-trust-strip span {
  color: #5d6670;
  font-size: 14px;
  line-height: 1.5;
}

body.itemid-437 .home-fast-track-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 44px;
  align-items: center;
  padding: 38px 42px;
  border-left: 5px solid #c91f31;
  background: #102332;
  color: #fff;
  text-align: left;
}

body.itemid-437 .home-section-label {
  color: #e5b13c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body.itemid-437 .home-fast-track-feature h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}

body.itemid-437 .home-fast-track-feature p,
body.itemid-437 .home-fast-track-feature li {
  color: #e7edf1;
  font-size: 15px;
  line-height: 1.65;
}

body.itemid-437 .home-fast-track-feature ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

body.itemid-437 .home-fast-track-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

body.itemid-437 .home-text-action {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.itemid-437 .home-course-grid .info-service-shop {
  min-height: 136px;
  background: #fff;
}

body.itemid-437 .home-course-grid .info-service-shop h3 {
  color: #252c33;
  font-size: 19px;
  line-height: 1.25;
}

body.itemid-437 .home-course-grid .info-service-shop p {
  margin: 9px 0 0;
  color: #616a73;
  font-size: 14px;
  line-height: 1.5;
}

/* Make the complete six course cards clickable, including their title overlays. */
body.itemid-437 #sppb-addon-1479128080697 .highlight-black-img,
body.itemid-437 #sppb-addon-1479129170257 .highlight-black-img {
  position: relative;
}

body.itemid-437 #sppb-addon-1479128080697 .image-wrap > a::after,
body.itemid-437 #sppb-addon-1479129170257 .image-wrap > a::after {
  position: absolute;
  z-index: 10;
  inset: 0;
  content: "";
  cursor: pointer;
}

/* Present partner logos at a consistent visual size despite mixed source ratios. */
body.itemid-437 #sppb-addon-1478524103667 .sppb-addon-single-image-container,
body.itemid-437 #sppb-addon-1479122556703 .sppb-addon-single-image-container,
body.itemid-437 #sppb-addon-1479122556706 .sppb-addon-single-image-container,
body.itemid-437 #sppb-addon-1479122556709 .sppb-addon-single-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
}

body.itemid-437 #sppb-addon-1478524103667 img,
body.itemid-437 #sppb-addon-1479122556703 img,
body.itemid-437 #sppb-addon-1479122556706 img,
body.itemid-437 #sppb-addon-1479122556709 img {
  width: auto;
  height: 96px;
  max-width: 90%;
  object-fit: contain;
}

@media (max-width: 767px) {
  /* Keep the primary navigation visible without sacrificing the first screen. */
  #sp-top-bar {
    display: none !important;
  }

  #sp-header {
    top: 0 !important;
    height: 90px !important;
    background: rgba(17, 36, 49, 0.97) !important;
    box-shadow: 0 1px 10px rgba(17, 24, 32, 0.12);
  }

  body #sp-header > .container,
  body #sp-header > .container > .row,
  body #sp-header #sp-logo,
  body #sp-header #sp-logo .sp-column,
  body #sp-header #sp-logo .logo,
  body #sp-header #sp-logo .logo > a {
    height: 90px !important;
  }

  body #sp-header > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body #sp-header #sp-logo .sp-column,
  body #sp-header #sp-logo .logo,
  body #sp-header #sp-logo .logo > a {
    display: flex !important;
    align-items: center;
  }

  body #sp-header #sp-logo .sp-default-logo.hidden-xs,
  body #sp-header #sp-logo .sp-retina-logo.hidden-xs {
    display: none !important;
  }

  body #sp-header #sp-logo .sp-default-logo.visible-xs {
    display: block !important;
    width: auto !important;
    height: 64px !important;
    max-width: 106px !important;
    max-height: 64px !important;
    margin: 0 !important;
    object-fit: contain;
  }

  body #sp-header #offcanvas-toggler {
    display: flex !important;
    top: 23px !important;
    right: 15px !important;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    border-radius: 4px !important;
    background: #c91f31 !important;
  }

  #offcanvas-toggler i {
    width: 24px;
    height: 18px;
    background: linear-gradient(#fff 0 0) top / 100% 3px no-repeat,
      linear-gradient(#fff 0 0) center / 100% 3px no-repeat,
      linear-gradient(#fff 0 0) bottom / 100% 3px no-repeat;
    font-size: 0;
  }

  .top-page-head h1.sppb-addon-title {
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
    font-size: 30px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    overflow-wrap: anywhere;
  }

  .sp-page-builder .sppb-addon-title {
    overflow-wrap: anywhere;
  }

  .sp-page-builder p,
  .sp-page-builder li {
    max-width: 100%;
    font-size: 16px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
  }

  .sp-page-builder h2.sppb-addon-title,
  .sp-page-builder h3.sppb-addon-title {
    max-width: 100%;
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  /* Keep the long Fleet gallery heading inside the physical viewport. */
  #sppb-addon-1540559255984 .sppb-addon-title {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 300px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 22px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center;
  }

  .sp-page-builder .sppb-btn {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .offcanvas-menu ul.collapse:not(.show) {
    display: none !important;
  }

  .offcanvas-menu ul.collapse.show {
    display: block !important;
  }

  #acs-cookie-panel:not([hidden]) {
    inset: auto 10px 10px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: auto !important;
    max-height: 58vh;
    padding: 16px !important;
    overflow-y: auto;
  }

  #acs-cookie-eyebrow {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  #acs-cookie-title {
    margin: 5px 0 7px !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
  }

  #acs-cookie-copy p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  #acs-cookie-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px !important;
  }

  #acs-cookie-actions .acs-cookie-button {
    min-width: 0 !important;
    min-height: 44px;
    padding: 8px 5px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body.itemid-437 #slider-top {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 26px !important;
    background-color: #102332 !important;
    background-image: linear-gradient(rgba(8, 22, 32, 0.55), rgba(8, 22, 32, 0.72)), url("/images/2023/08/18/shutterstock_1238494933.jpg") !important;
    background-position: 58% center !important;
    background-size: cover !important;
  }

  body.itemid-437 #slider-top > .sppb-container-inner {
    position: relative;
    top: auto;
    height: auto;
    transform: none;
  }

  body.itemid-437 #slider-top .sppb-row,
  body.itemid-437 #slider-top [class*="sppb-col-"],
  body.itemid-437 #slider-top .sppb-column,
  body.itemid-437 #slider-top .sppb-column-addons,
  body.itemid-437 #slider-top .sppb-addon-wrapper,
  body.itemid-437 #slider-top .sppb-addon,
  body.itemid-437 #slider-top .sppb-addon-content,
  body.itemid-437 .home-top-block-content {
    height: auto;
    min-height: 0;
  }

  body.itemid-437 .home-top-block-content {
    padding: 114px 4px 0;
  }

  body.itemid-437 .home-top-block-content h1 {
    max-width: 320px;
    margin: 0 auto;
    font-size: 26px;
    line-height: 1.15;
    text-align: center;
  }

  body.itemid-437 .home-top-block-content > p {
    max-width: 330px;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
  }

  body.itemid-437 .home-top-block-grid {
    margin: 28px -12px 0;
    padding: 0 12px 10px;
    overflow: hidden;
  }

  body.itemid-437 .home-top-block-grid > .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
    padding: 0 4px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body.itemid-437 .home-top-block-grid > .row > a {
    flex: 0 0 82%;
    float: none;
    width: auto;
    scroll-snap-align: start;
  }

  body.itemid-437 .home-top-block-grid .image-wrap,
  body.itemid-437 .home-top-block-grid figure {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  body.itemid-437 .home-top-block-grid img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  body.itemid-437 .home-top-block-grid .info-service {
    display: flex;
    align-items: flex-end;
    padding: 18px;
  }

  body.itemid-437 .home-top-block-grid .info-service h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  body.itemid-437 .home-hero-actions {
    flex-direction: column;
    gap: 10px;
    margin: 20px auto 0;
    max-width: 330px;
  }

  body.itemid-437 .home-primary-action,
  body.itemid-437 .home-secondary-action {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
  }

  body.itemid-437 #section-id-1479128080698,
  body.itemid-437 #section-id-1478518655595,
  body.itemid-437 #section-id-1563558139821,
  body.itemid-437 #section-id-1790977000715 {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  body.itemid-437 #sppb-addon-1479128080694 .sppb-addon-title {
    font-size: 24px;
    line-height: 1.2;
  }

  body.itemid-437 .home-route-intro {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.5;
  }

  body.itemid-437 .home-trust-strip {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  body.itemid-437 .home-trust-strip > div {
    padding: 18px 12px;
    border-right: 0;
    border-bottom: 1px solid #d9dde1;
  }

  body.itemid-437 .home-trust-strip > div:last-child {
    border-bottom: 0;
  }

  body.itemid-437 .home-fast-track-feature {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  body.itemid-437 .home-fast-track-feature h2 {
    font-size: 24px;
  }

  body.itemid-437 .home-course-grid .info-service-shop {
    min-height: 0;
    padding: 16px;
  }

  body.itemid-437 .home-course-grid .info-service-shop h3 {
    font-size: 18px;
  }

  body.itemid-437 .home-course-grid .image-wrap figure {
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 2;
  }

  body.itemid-437 .home-course-grid .image-wrap img {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 991px) {
  /* The desktop menu must never share the mobile hero with the drawer menu. */
  body #sp-menu .sp-megamenu-parent {
    display: none !important;
  }

  body .offcanvas-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(320px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    background: rgba(17, 36, 49, 0.99) !important;
    z-index: 10000 !important;
  }

  body:not(.offcanvas) .offcanvas-menu {
    visibility: hidden !important;
    transform: translateX(100%) !important;
  }

  body.offcanvas .offcanvas-menu {
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  body .offcanvas-menu .offcanvas-inner {
    padding-top: 48px !important;
  }

  body .offcanvas-menu .offcanvas-inner .sp-module:first-child {
    padding: 0 18px 24px !important;
  }

  body .offcanvas-menu .offcanvas-inner .sp-module ul > li > a {
    padding: 12px 42px 12px 12px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}

@media (min-width: 768px) {
  #sp-header .sp-default-logo.visible-xs {
    display: none !important;
  }
}

/* PPL exam guidance added as local, accessible course content. */
.ppl-exam-timeline-section {
  background: #f4f6f7;
}

.ppl-exam-timeline {
  max-width: 1160px;
  margin: 0 auto;
}

.ppl-exam-timeline-intro {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.ppl-timeline-label {
  color: #c91f31;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ppl-exam-timeline h2 {
  margin: 8px 0 12px;
  color: #151b21;
  font-size: 34px;
  line-height: 1.2;
}

.ppl-exam-timeline-intro p {
  margin: 0;
  color: #59636d;
  font-size: 17px;
  line-height: 1.65;
}

.ppl-exam-timeline-figure {
  margin: 0;
  border: 1px solid #d7dce0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 27, 33, 0.08);
}

.ppl-exam-timeline-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ppl-exam-timeline-image-link {
  display: block;
}

.ppl-exam-timeline-figure figcaption {
  padding: 16px 20px;
  border-top: 1px solid #e2e5e8;
  color: #4e5862;
  font-size: 14px;
  line-height: 1.55;
}

.ppl-exam-timeline-figure figcaption a {
  color: #b71829;
  font-weight: 700;
  white-space: nowrap;
}

.ppl-exam-timeline-summary {
  padding: 30px 34px 0;
}

.ppl-exam-timeline-summary h3 {
  margin: 0 0 18px;
  color: #20262d;
  font-size: 22px;
  text-align: center;
}

.ppl-timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d7dce0;
  border-bottom: 1px solid #d7dce0;
}

.ppl-timeline-steps > div {
  padding: 20px 24px;
  border-right: 1px solid #d7dce0;
}

.ppl-timeline-steps > div:last-child {
  border-right: 0;
}

.ppl-timeline-steps strong,
.ppl-timeline-steps span {
  display: block;
}

.ppl-timeline-steps strong {
  margin-bottom: 7px;
  color: #20262d;
  font-size: 16px;
}

.ppl-timeline-steps span,
.ppl-timeline-note {
  color: #59636d;
  font-size: 14px;
  line-height: 1.55;
}

.ppl-timeline-note {
  max-width: 880px;
  margin: 20px auto 0;
  text-align: center;
}

@media (max-width: 767px) {
  .ppl-exam-timeline h2 {
    font-size: 26px;
  }

  .ppl-exam-timeline-figure figcaption {
    padding: 14px;
  }

  .ppl-exam-timeline-summary {
    padding: 26px 0 0;
  }

  .ppl-timeline-steps {
    grid-template-columns: 1fr;
  }

  .ppl-timeline-steps > div {
    padding: 17px 10px;
    border-right: 0;
    border-bottom: 1px solid #d7dce0;
  }

  .ppl-timeline-steps > div:last-child {
    border-bottom: 0;
  }
}

/* Keep page titles legible over every hero image at all viewport sizes. */
.top-page-head .sppb-row-overlay {
  background: rgba(7, 19, 28, 0.52) !important;
}

.top-page-head h1.sppb-addon-title {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

/* Keep the promotional strip and navigation coherent at every breakpoint. */
@media (min-width: 992px) and (max-width: 1199px) {
  body #sp-header {
    position: absolute !important;
    top: 58px !important;
    height: 150px !important;
    background: transparent !important;
  }
}

@media (max-width: 991px) {
  body #sp-top-bar {
    display: block !important;
  }

  body #sp-header {
    position: relative !important;
    top: 0 !important;
    height: 90px !important;
    background: rgba(17, 36, 49, 0.97) !important;
  }
}
