html,
body {
  margin: 0;
  padding: 0;
}
#app {
  min-height: 100vh;
}

#toolbar-administration {
  display: none !important;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --colour-dark-teal: #05767d;
  --colour-red: #f7a6b5;
  --colour-light-teal: #8cd1d9;
  --colour-yellow: #f9de69;

  --border-radius: 1.6rem;
  --header-height: 9rem;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  --colour: initial;

  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  line-height: 2.2rem;
  display: flex;
  flex-direction: column;
  color: #0b1837;

  &.nail-the-basics {
    --colour: var(--colour-red);
  }

  &.education,
  &.halls-of-learning {
    --colour: var(--colour-light-teal);
  }

  &.work,
  &.professional-pathways {
    --colour: var(--colour-yellow);
  }
}

.dialog-off-canvas-main-canvas {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 {
  font-size: 5.6rem;
}

sup {
  font-size: 60%;
  vertical-align: super;
  line-height: 0;
}

p {
  &.footnote {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    opacity: 0.6;
    margin: 0;
  }
}

header {
  height: var(--header-height);
  display: flex;
  .container {
    height: 100%;
    justify-content: flex-end;
    align-items: center;

    @media (max-width: 992px) {
      justify-content: center;
    }

    .header-right {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      p {
        margin: 0;
        font-size: 10px;
        text-align: center;
      }

      img {
        display: block;
        width: 165px;
      }
    }
  }
}

main {
  flex: 1;
  background-color: var(--colour);

  section.boxes {
    h1 {
      font-size: 32px;
      line-height: 48px;
      text-align: center;

      span {
        background-color: #05767d;
        color: #fff;
        padding: 8px 16px;
        border-radius: 8px;
      }

      @media (max-width: 992px) {
        font-size: 24px;
        line-height: 36px;
      }
    }
  }

  &.container-split {
    display: flex;

    .logo {
      width: 11.8rem;
      margin-bottom: 6rem;
    }

    .left {
      padding: 4rem;
      width: 30%;
      z-index: 100;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      h1 {
        font-size: 4rem;
        margin-bottom: 4rem;
        line-height: normal;
      }

      a.btn {
        margin-top: 4rem;
      }

      .disclaimer {
        font-size: 10px;
        line-height: normal;
      }
    }

    .right {
      flex: 1;
      position: relative;
      overflow: hidden;

      .background-image {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
      }

      .hotspot {
        position: absolute;
        top: 50%;
        left: 50%;
        width: fit-content;
        cursor: pointer;

        .btn-pulse {
          position: relative;
          width: 150px;
          height: 150px;

          .circle {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 20px;
            height: 20px;
            transform: translateX(-50%) translateY(-50%);
            background: var(--colour);
            border-radius: 50%;
            transform-origin: 50% 50%;
            transition: opacity 0.2s ease-in, transform 0.1s ease-out;
            color: white;
            font-size: 1.5em;
            padding: 0;
            text-align: center;
            line-height: 32px;
            overflow: hidden;
            &:hover {
              opacity: 0.8;
              cursor: pointer;
            }
            &:active {
              transform: scale(0.875);
            }
          }

          .ring {
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            width: 2em;
            height: 2em;
            margin: -1em auto auto -1em;
            transform-origin: 50% 50%;
            border-radius: 50%;
            border: 2px solid var(--colour);
            opacity: 0;
            animation: pulsate 1.4s ease-out infinite;
          }

          &:hover .ring {
            animation: none;
          }

          &:active .ring {
            animation: stop-pulsate 0.3s;
          }
        }

        /* .btn-pulse {
          position: relative;
        }

        
        .pulse-circle,
        .pulse-circle-2 {
          transform-origin: center;
          stroke-width: 2;
          fill: none;
          transform: translate3d(0, 0, 0);
          stroke: var(--colour);
        }

        .pulse-disk {
          r: 6;
          fill: var(--colour);
        }

        .pulse-circle {
          r: 4;
          animation: pulse 3s cubic-bezier(0.39, 0.54, 0.41, 1.5) infinite;
        }

        .pulse-circle-2 {
          r: 16;
          animation: pulse-2 3s cubic-bezier(0.39, 0.54, 0.41, 1.5) infinite;
        } */

        .title {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          bottom: -20px;
          background-color: var(--colour);
          width: max-content;
          padding: 1.6rem 3.2rem;
          border-radius: 0.8rem;
          font-weight: 600;
          /* opacity: 0; */
          transition: opacity 0.3s ease-in-out;

          .arrow {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);

            path {
              fill: var(--colour);
            }
          }
        }

        &:hover,
        &.hover {
          .title {
            opacity: 1;
          }
        }

        @media (max-width: 992px) {
          .title {
            opacity: 1;
            transition: initial;
            padding: 1rem 2rem;
            bottom: 0;
            font-size: 1.4rem;

            &:hover {
              opacity: 1;
            }
          }
        }
      }
    }

    @media (max-width: 992px) {
      flex-direction: column;

      .left {
        width: 100%;
        padding: 4rem 2rem;

        .logo {
          margin-bottom: 3rem;
        }
      }

      .right {
        height: 100vh;
        flex: initial;
        .background-image {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

.container {
  width: 124rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
}

footer {
  height: 7rem;
  background-color: var(--colour-dark-teal);

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    color: #fff;

    .right {
      display: flex;
      align-items: center;
      gap: 2rem;

      ul {
        display: flex;
        gap: 1.6rem;
        list-style: none;
        padding: 0;
        margin: 0;

        li {
          &::after {
            content: "|";
            margin-left: 1.6rem;
          }

          &:last-child {
            &::after {
              content: "";
              margin-left: 0;
            }
          }
        }

        @media (max-width: 992px) {
          gap: 1rem;
          flex-direction: column;

          li {
            &::after {
              content: "";
              margin-left: 0;
              display: none;
            }
          }
        }
      }

      .logo {
        width: 9.7rem;
        display: block;
      }
    }

    .centre {
      text-align: center;
      font-size: 1.2rem;
      line-height: 2rem;
      display: flex;
      gap: 1.5rem;

      img {
        width: 4rem;
      }

      a {
        text-decoration: underline;
      }

      @media (max-width: 992px) {
        margin-block: 1.6rem;
      }
    }
  }

  &.footer--white {
    background-color: #fff;

    .container {
      color: inherit;
    }
  }

  @media (max-width: 992px) {
    height: auto;
    padding-block: 2rem;

    .container {
      flex-direction: column-reverse;
      gap: 0rem;

      .right {
        flex-direction: column-reverse;
        gap: 1rem;
      }
    }
  }
}

/* Home Page */
section.hero {
  width: 100%;
  height: 100vh;
  background-image: url(/modules/custom/static_page/assets/images/home-banner.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

section.boxes {
  .container {
    width: 1283px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-block-start: 6.5rem;
    flex-wrap: wrap;

    &.text-intro {
      display: flex;
      flex-direction: column;
      gap: initial;

      h1 {
        margin-top: 0;
      }

      p {
        margin-top: 4rem;
        text-align: center;
      }

      p:first-of-type {
        margin: 0;
        font-size: 18px;
      }

      ul {
        margin: 0;
      }
    }

    p.disclaimer {
      font-size: 10px;
      line-height: normal;
      text-align: center;
      font-weight: bolder;
      margin-bottom: 28px;
    }
  }

  .box {
    position: relative;
    /* width: 28.2rem; */
    width: 369px;
    /* aspect-ratio: 1 / 1; */
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding-inline: 3.1rem;
    padding-block: 6.5rem;
    color: #fff;
    background-color: var(--colour-dark-teal);
    transition: all 0.2s ease-in-out;

    &:hover {
      background-color: #056a71;
      transform: translateY(-0.4rem);
    }

    @media (max-width: 992px) {
      width: 100%;
    }

    .top,
    .bottom {
      flex: 1;
    }

    .top {
      display: flex;
      align-items: flex-end;
      padding-bottom: 2.2rem;
    }

    h2 {
      font-size: 2.8rem;
      text-decoration: none;
      line-height: 3.6rem;
      width: 100%;
      text-align: center;
      margin: 0;
      font-weight: 600;
    }

    p {
      margin: 0;
      text-align: center;
      font-size: 1.8rem;
      font-weight: 400;
      text-wrap: balance;
      margin-top: 1rem;
    }

    .box__arrow {
      position: absolute;
      bottom: 1.6rem;
      right: 1.6rem;
      width: 2.4rem;
      aspect-ratio: 1 / 1;
    }
  }
}

.with-shadow {
  &::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.04);
    z-index: -1;
    right: -8px;
    bottom: -8px;
  }
}

.btn {
  width: fit-content;
  padding: 1.6rem 3.2rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  span {
    font-weight: 600;
  }

  img {
    width: 1.05rem;
    height: 0.8rem;
    transition: transform 0.2s ease-in-out;
  }

  &:hover {
    img {
      transform: translateX(0.7rem);
    }
  }

  &.btn--white {
    background-color: #fff;
  }

  &.btn--current {
    background-color: var(--colour);

    img {
      width: 1.6rem;
      height: 1.6rem;
    }
  }
}

.menu-container {
  width: 50%;
  display: flex;
  position: absolute;
  justify-content: flex-end;
  padding-block: 2.4rem;
  padding-inline: 3.4rem;
  right: 0;
  z-index: 9999999;
  top: var(--header-height);

  @media (max-width: 992px) {
    padding-inline: 2rem;
  }

  .menu {
    padding: 1.6rem 2rem;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    border-radius: 0.8rem;
    background-color: #fff;
    position: relative;
    cursor: pointer;

    .icon {
      display: flex;
      gap: 1rem;
      align-items: center;
      justify-content: flex-end;
    }

    &::after {
      position: absolute;
      content: "";
      width: 100%;
      height: 100%;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.32);
      z-index: -1;
      right: -8px;
      bottom: -8px;
    }

    .burger-icon {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      width: 24px;
      height: 16px;

      span {
        position: absolute;
        width: 2.4rem;
        height: 0.2rem;
        background-color: var(--colour);
        border-radius: 0.4rem;
        transition: all 0.2s ease-in-out;

        &:first-child {
          top: 0;
        }

        &:nth-child(2) {
          top: 50%;
          transform: translateY(-50%);
        }

        &:last-child {
          bottom: 0;
        }
      }
    }

    span {
      font-weight: 600;
    }

    ul {
      --timing: 0.2s;
      --delay: 0.2s;

      height: 0;
      width: 0;
      overflow: hidden;
      padding: 0;
      margin: 0;
      opacity: 0;

      list-style-type: none;
      visibility: hidden;
      transition: opacity var(--timing) linear,
        padding-top var(--timing) linear var(--delay),
        visibility var(--timing) linear,
        height var(--timing) linear var(--delay),
        width var(--timing) linear var(--delay);

      interpolate-size: allow-keywords;

      li {
        a {
          color: var(--black);
          font-weight: 600;
          font-size: 1.6rem;
          text-decoration: none;
          padding: 1.4rem 4rem;
          display: block;
          text-align: center;
          transition: all 0.2s ease-in-out;
          border-radius: 8px;

          @media (max-width: 992px) {
            padding: 1.4rem 0;
            font-size: 1.4rem;
          }

          &:hover {
            background-color: var(--colour);
            color: #fff;
          }
        }
      }
    }

    &[aria-expanded="true"] {
      &.menu {
        .icon {
          .burger-icon {
            span {
              &:first-child {
                rotate: 45deg;
                top: 7px;
              }

              &:nth-child(2) {
                opacity: 0;
              }

              &:last-child {
                rotate: -45deg;
                bottom: 7px;
              }
            }
          }
        }
      }

      ul {
        padding-top: 2rem;
        width: auto;
        height: auto;
        visibility: visible;
        opacity: 1;
        transition: height var(--timing) linear, width var(--timing) linear,
          visibility var(--timing) linear,
          opacity var(--timing) linear var(--delay),
          padding-top var(--timing) linear;
      }
    }
  }

  @media (max-width: 992px) {
    padding-inline: 2rem;
  }
}

body.modal-open {
  .menu-container {
    top: 0;
  }
}

body.home .menu,
body.adhd .menu {
  .burger-icon {
    span {
      background-color: var(--colour-dark-teal);
    }
  }

  ul {
    li {
      a {
        &:hover {
          background-color: var(--colour-dark-teal);
        }
      }
    }
  }
}

body.work .menu {
  ul {
    li {
      a {
        &:hover {
          color: var(--black);
        }
      }
    }
  }
}

@keyframes pulse {
  0% {
    r: 4;
  }
  50% {
    r: 16;
    opacity: 1;
  }
  99% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    r: 16;
  }
}
@keyframes pulse-2 {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  49.99% {
    r: 16;
    opacity: 0;
  }
  50% {
    r: 4;
    opacity: 1;
  }
  100% {
    r: 16;
    opacity: 1;
  }
}

.blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 24, 55, 0.5);
  backdrop-filter: blur(8px);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;

  &.active {
    opacity: 1;
  }
}

.link__map {
  position: absolute;
  bottom: 0;
  height: 35%;
  width: 100%;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  45% {
    transform: scale(1.75);
    opacity: 0;
  }
}
@keyframes stop-pulsate {
  from {
    opacity: 0.4;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.pb-20 {
  padding-bottom: 20px;
}

.swiper .swiper-slide .items-end.row {
  align-items: flex-end;
}

.swiper {
  --padding-block: 4.8rem;
  --padding-inline: 6.6rem;

  --nav-height: 7.8rem;

  position: fixed;
  max-height: 80vh;
  width: 88%;
  top: 0;
  left: 0;
  /* place-self: anchor-center; */
  background-color: #fff;
  border-radius: 1.6rem;

  transform: translateY(-250%);
  transition: transform 0.3s ease-in-out;

  &.open {
    transform: translateY(0);
    translate: -50% -50%;
    left: 50%;
    top: 50%;

    /* @media (min-width: 992px) {
      overflow: auto;
      overflow-x: hidden;
    } */
  }
  /* overflow: hidden; */
  overflow: auto;
  overflow-x: hidden;

  /* .swiper-wrapper {
    @media (min-width: 992px) {
      overflow: hidden;
    }
  } */

  z-index: 200;

  .swiper-slide {
    height: 0;
    overflow: hidden;
    padding-block: var(--padding-block);
    padding-inline: 5rem;

    &.swiper-slide-active {
      height: auto;
      overflow: auto;
    }

    &.no-padding-bottom {
      padding-block-end: 0;
    }

    .title {
      text-transform: uppercase;
      font-size: 1.2rem;
      letter-spacing: 1.2px;
      font-weight: 700;
    }

    h3 {
      font-size: 2.4rem;
      font-weight: 600;
      line-height: normal;
    }

    ul {
      margin-bottom: 0;
      li {
        margin-bottom: 1rem;

        &:last-child {
          margin-bottom: 0;
        }

        ul {
          list-style: disc;
          margin-top: 1rem;
          li {
            margin-bottom: 1rem;

            &:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }

    .pull-out {
      background-color: var(--colour);
      border-radius: 16px 0px 0px 16px;
      padding: 35px 50px 35px 35px;
      margin-top: 16px;
      translate: 49px;

      h4 {
        margin-top: 0;
      }
    }

    .references {
      margin-top: 2rem;
      border-top: 1px solid rgba(247, 166, 181, 0.1);
      font-size: 1.2rem;
      padding-right: 3rem;
      line-height: normal;

      p {
        font-weight: 700;
        margin-bottom: 0.5rem;
      }

      em {
        font-weight: bold;
        font-style: normal;
      }

      ol {
        margin: 0rem;
        list-style: none;
        counter-reset: list-counter;
        padding: 0;

        li {
          counter-increment: list-counter;
          position: relative;
          padding-left: 1.5rem;
          line-height: normal;

          &::before {
            content: counter(list-counter) ". ";
            position: absolute;
            left: 0;
            font-weight: 700;
          }
        }
      }
      a {
        text-decoration: underline;
        line-break: anywhere;
      }
    }

    svg path {
      fill: var(--colour);
    }

    .row {
      display: flex;
      gap: 3rem;
      align-items: flex-start;

      .col {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
        width: 100%;

        &:not(.col--with-video) {
          align-self: flex-start;
        }

        .placeholder-img {
          margin-top: 1.5rem;
          width: 300px;

          @media (max-width: 768px) {
            width: 100%;
          }
        }
      }

      &:has(.col--with-video) {
        align-items: flex-end;
      }
    }
  }

  a.btn {
    margin-block: 2rem;
    margin-top: 4rem;

    &:hover {
      img {
        transform: initial;
      }
    }
  }

  &:has(nav) {
    padding-block-end: 0;
    grid-template-rows: 1fr var(--nav-height);

    .modal__view {
      margin-bottom: var(--padding-block);
      opacity: 0;

      &.active {
        opacity: 1;
      }
    }
  }

  nav {
    height: var(--nav-height);
    background-color: var(--colour);
    border-bottom-right-radius: 1.6rem;
    border-bottom-left-radius: 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: var(--padding-inline);

    .left,
    .right {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      gap: 0.8rem;

      li {
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 50%;
        background-color: rgba(11, 24, 55, 0.3);
        cursor: pointer;
        position: relative;

        &.active {
          background-color: rgba(11, 24, 55, 1);
        }
      }
    }

    button {
      background-color: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 2rem;
      font-size: 16px;
      color: #0b1837;

      img {
        display: block;
      }

      &:disabled {
        opacity: 0.3;
        cursor: not-allowed;
      }
    }
  }

  .cta {
    width: 100%;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-inline: 1rem;
    padding-block: 1.4rem;
    background-color: var(--colour);
    border-radius: 1.6rem;

    img {
      width: 4.4rem;
      height: 4.4rem;
    }
  }

  .col--with-video {
    video {
      width: 375px;
      cursor: pointer;
      align-self: flex-end;
      object-fit: cover;
    }

    &.col--teal {
      video {
        width: 445px;
      }
    }

    .video__overlay {
      position: absolute;
      bottom: 0;
      right: 11px;
      pointer-events: none;

      img {
        width: 127px;
        display: none;
      }
    }
  }

  .close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;

    svg path {
      fill: var(--colour);
    }

    span {
      font-weight: 600;
    }

    @media (max-width: 992px) {
      background: #fff;
      width: 100%;
      left: 0;
      top: 0;
      height: 61px;
      display: flex;
      align-items: center;
      justify-content: end;
      padding-right: 27px;
    }
  }

  @media (max-width: 992px) {
    --padding-inline: 2rem;

    .swiper-wrapper {
      .swiper-slide {
        max-height: calc(70vh - var(--nav-height));
        padding-inline: 2rem;

        .title {
          margin-top: 2rem;
        }

        .modal__height {
          .row {
            flex-direction: column;
          }
        }

        .row {
          flex-direction: column;
        }
      }
      .close {
        top: 2rem;
        right: 0;
        width: 100%;
        background-color: white;
        justify-content: right;
        padding-inline: 2rem;
      }
    }

    .next-slide {
      display: none;
    }

    .cta {
      flex-direction: column;
    }
  }
}

@media (max-width: 768px) {
  .col--with-video {
    video {
      max-width: 100%;
    }
  }
}

body.nail-the-basics {
  .swiper {
    & .col--with-video {
      & .video__overlay {
        .video__overlay-image--red {
          display: block;
        }
      }
    }
  }
}

body.education,
body.halls-of-learning {
  .swiper {
    & .col--with-video {
      & .video__overlay {
        .video__overlay-image--teal {
          display: block;
        }
      }
    }
  }
}

body.work,
body.professional-pathways {
  .swiper {
    & .col--with-video {
      & .video__overlay {
        .video__overlay-image--yellow {
          display: block;
        }
      }
    }
  }
}
