/* Chaning the colours? Look in custom-properties.scss */

.underline {
  --bottom-spacer: 1.5;
  --bottom-push: 3;
  position: relative;
  display: inline-block;
  margin-bottom: calc(1.618rem * var(--bottom-push));
}

.underline::before {
  content: "";
  background-color: var(--brand-color-c);
  height: 5px;
  width: 36%;
  min-width: 3rem;
  position: absolute;
  bottom: calc(-1.618rem * var(--bottom-spacer));
}

.underline--third-left::before {
  left: 0;
}

.underline--third-right::before {
  right: 0;
}

.underline-fancy {
  position: relative;
}

.underline-fancy::after {
  content: "";
  background-color: var(--brand-color-c);
  height: 3px;
  position: absolute;
  bottom: -0.618rem;
  left: 2%;
  right: 20%;
  -webkit-animation: slidein 1.2s;
          animation: slidein 1.2s;
}

@-webkit-keyframes slidein {
  0% {
    right: 100%;
    opacity: 0.75;
    height: 1px;
  }

  50% {
    right: 60%;
  }

  65% {
    right: 16%;
    opacity: 0.9;
  }

  80% {
    right: 20%;
  }

  85% {
    right: 17%;
  }

  80% {
    right: 20%;
  }

  90% {
    right: 17%;
  }

  100% {
    right: 19%;
    opacity: 1;
    height: 2px;
  }
}

@keyframes slidein {
  0% {
    right: 100%;
    opacity: 0.75;
    height: 1px;
  }

  50% {
    right: 60%;
  }

  65% {
    right: 16%;
    opacity: 0.9;
  }

  80% {
    right: 20%;
  }

  85% {
    right: 17%;
  }

  80% {
    right: 20%;
  }

  90% {
    right: 17%;
  }

  100% {
    right: 19%;
    opacity: 1;
    height: 2px;
  }
}

:hover.underline--none,
:hover.underline--0 {
  text-decoration: none;
}

.accreditation {
  max-width: 100%;
}

.accreditation a {
  display: block;
  width: 100%;
  max-width: 300px;
}

.accreditation--center {
  margin-left: auto;
  margin-right: auto;
}

.accreditation a:hover,
.accreditation a:focus {
  outline: var(--brand-color-a) 3px solid;
}

/*
    Shape A: Is a bottom right corner cutoff.
*/

.shape-a {
  --peel-bg-colour: var(--rgb-brand-color-d);
  background: linear-gradient(135deg, rgba(var(--peel-bg-colour), 1) calc(100% - 1rem), rgba(var(--peel-bg-colour), 0) calc(100% - 1rem));
  transition: all 200ms;
}

.shape-a.brand-color-a {
  --peel-bg-colour: var(--rgb-brand-color-a);
}

.shape-a.brand-color-b {
  --peel-bg-colour: var(--rgb-brand-color-b);
}

.shape-a.brand-color-c {
  --peel-bg-colour: var(--rgb-brand-color-c);
}

.shape-a.brand-color-d {
  --peel-bg-colour: var(--rgb-brand-color-d);
}

.shape-a.brand-shade-a {
  --peel-bg-colour: var(--rgb-brand-shade-a);
}

.shape-a.brand-shade-b {
  --peel-bg-colour: var(--rgb-brand-shade-b);
}

.shape-a.brand-shade-c {
  --peel-bg-colour: var(--rgb-brand-shade-c);
}

a.shape-a:hover {
  filter: drop-shadow(2px 4px 6px var(--drop-shadow-color));
}

.lottie {
  width: 100%;
  height: auto;
  height: 56.25vw;
}

.table__row:nth-child(1) .group {
  background-color: #6d6bb9;
}

.table__row:nth-child(2) .group {
  background-color: #a06bb9;
}

.table__row:nth-child(3) .group {
  background-color: #b96b8c;
}

.table__row:nth-child(4) .group {
  background-color: #b96b6b;
}

.table__row:nth-child(5) .group {
  background-color: #b9906b;
}

.table--border {
  border: 1px solid;
  border-radius: 1rem;
}

.table-header-shape {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
          clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  line-height: 1.2;
}

.no-l2-1 {
  margin-top: 1rem !important;
}

.no-l2plus-1 {
  margin-top: 1rem !important;
}

.form .form-control {
  border: var(--brand-color-c) 1px solid;
}

.map {
  width: auto;
  height: 800px;
}

.icon {
  position: relative;
}

.icon--light .svg {
  fill: white;
}

.icon--dark .svg {
  fill: black;
}

.ccfs-scale {
  font-size: calc( var(--baseFontSize) * var(--charCountOffsetPercent, 1));
}

.no-scale {
  --baseFontSize: calc(2rem);
  font-size: calc( var(--baseFontSize) * var(--charCountOffsetPercent, 1));
}

.fs-heading {
  --baseFontSize: calc(3rem);
}

.svg--silhouette {
  width: 100%;
  max-width: 526px;
}

.angle--right {
  background-color: pink;
  -webkit-clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
  min-height: 300px;
  /* border: dashed green 3px; */
  /* filter: drop-shadow(3px 3px red) drop-shadow(3px -3px red) drop-shadow(-3px 3px red) drop-shadow(-3px -3px red); */
  /* box-shadow: inset 1px 1px 1px greenyellow; */
}

.angle-a {
  --chev-image-width: calc(200px + 2vw);
  min-height: 300px;
  position: relative;
  /* width: 600px; */
  margin-right: calc(var(--chev-image-width) / 2);
}

a.angle-a:hover {
  text-decoration: none;
  filter: drop-shadow(1px 2px 5px #444c);
}

.chev-image {
  --adjustable-cp: 65%;
  --adjustable-cp-opposite: calc(100% - var(--adjustable-cp));
  position: absolute !important;
  left: calc(100% - (var(--chev-image-width) / 2));
  width: var(--chev-image-width);
  /* margin-right: 30%;  */
  background-color: var(--brand-color-d);
  min-height: 300px;
  /* clip-path: polygon(0% 0%, 55% 0%, 100% 50%, 55% 100%, 0% 100%); */
  -webkit-clip-path: polygon(var(--adjustable-cp) 0%, 100% 50%, var(--adjustable-cp) 100%, 0% 100%, var(--adjustable-cp-opposite) 50%, 0% 0%);
          clip-path: polygon(var(--adjustable-cp) 0%, 100% 50%, var(--adjustable-cp) 100%, 0% 100%, var(--adjustable-cp-opposite) 50%, 0% 0%);
  /* transform: translateX(-85px); */
}

.outline-a {
  outline: 1px dashed red;
}

/* @media screen and (min-width: 480px) {
    .shape {
        width: 225px;
        height: 225px;
        float: left;
        shape-outside: polygon(50% 0%, 0% 100%, 100% 100%) content-box;
        shape-margin: 1rem;
        margin-right: 2rem;
        margin-left: -4rem;
    }
} */

.shape {
  width: 226px;
  height: calc(100% + 2rem);
  float: right;
  shape-outside: polygon(65% 0%, 100% 50%, 65% 100%, 0% 100%, 35% 50%, 0% 0%) content-box;
  shape-margin: 1rem;
  background-color: lightblue;
  opacity: 0.1;
  margin-right: -7.5rem;
  /* Add some space between the shape and text */
  margin-top: -1rem;
  /* Remove float */
  /* height: 100%; (can often work well in flexbox) */
  /* Other shape styles */
  align-self: stretch;
  /* Make the shape stretch to the container's height */
  order: 2;
  /* Adjust order to position on the right */
  margin-left: 1rem;
  /* Instead of negative right margin */
}

.content {
  max-width: calc(100% - (var(--chev-image-width) / 3));
}

:root {
  --tri-width: calc(50vw - 15px);
  --triangle-angle: 0.2679;
  /* Approximation of tan(15 degrees) */
  --angle: 15deg;
  /* Set your desired angle here */
  --tan-angle: tan(var(--angle));
  /* Calculates the tangent of the angle */
  --triangle-height: calc(var(--tan-angle) * var(--tri-width));
  /* Calculate height */
}

.triangle {
  width: var(--tri-width);
  /* Replace with your desired width */
  height: var(--triangle-height);
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
          clip-path: polygon(50% 0, 100% 100%, 0 100%);
  /* Creates a triangle shape */
  background-color: blue;
  /* For visualization */
}

.angle-hero {
  --chev-image-width: calc(200px + 2vw);
  /* min-height: 300px; */
  position: relative;
  /* margin-right: 50%; */
}

.chev-shape {
  --adjustable-cp: 62%;
  --adjustable-cp-opposite: calc(100% - var(--adjustable-cp));
  position: absolute !important;
  left: calc(51% - (var(--chev-image-width) / 2));
  -webkit-clip-path: polygon(var(--adjustable-cp) 0%, 100% 50%, var(--adjustable-cp) 100%, 0% 100%, var(--adjustable-cp-opposite) 50%, 0% 0%);
          clip-path: polygon(var(--adjustable-cp) 0%, 100% 50%, var(--adjustable-cp) 100%, 0% 100%, var(--adjustable-cp-opposite) 50%, 0% 0%);
  width: var(--chev-image-width);
  height: 100%;
  z-index: 3 !important;
  display: none;
}

.chev-shape--a {
  background-color: var(--brand-color-a);
}

.angle-hero .content-area {
  --container-max-width: 1140px;
  padding-right: 85px;
  width: 100%;
  margin-left: auto;
  z-index: 5;
  position: relative;
  /* text-shadow: 0 0 0.1px black; */
}

/* @media (min-width: 576px) {
    .angle-hero .content-area {
        --container-max-width: 540px;
    }
}

@media (min-width: 768px) {
    .angle-hero .content-area {
        --container-max-width: 720px;
    }
} */

@media (min-width: 992px) {
  .angle-hero .content-area {
    --container-max-width: 960px;
    max-width: calc((var(--container-max-width) / 2) - 7.5px);
    padding-top: 0rem;
  }

  .chev-shape {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .angle-hero .content-area {
    --container-max-width: 1140px;
  }
}

.angle-hero__coloured,
.angle-hero__image {
  width: 50%;
  display: flex;
  align-items: center;
  min-height: 300px;
}

.chev-down {
  --chev-height: 10vw;
  --chev-triangle-pitch-ratio: 0.95;
  --chev-triangle-pitch: calc(var(--chev-triangle-pitch-ratio) * 100%);
  --negative-margin: calc(var(--chev-triangle-pitch-ratio) * var(--chev-height));
  --cutout-top-offset: calc(100% - var(--chev-triangle-pitch));
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0, 50% var(--chev-triangle-pitch));
          clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0, 50% var(--chev-triangle-pitch));
  background-color: var(--brand-color-a, #f005);
  height: var(--chev-height);
  width: 100%;
  margin-top: calc(-1 * var(--negative-margin));
  margin-bottom: -1px;
  display: none;
}

@media (max-width: 991px) {
  .angle-hero__coloured {
    /* clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0, 50% 15%);
    margin-top: -60px; */
  }

  .angle-hero__coloured,
  .angle-hero__image {
    width: 100%;
  }

  .chev-down {
    display: flex;
  }
}

/* Down */

/* clip-path: polygon(100% 0, 100% 75%, 50% 100%, 0 75%, 0 0, 50% 25%); */

/* clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0, 50% 25%); */

ul.list-chevvy {
  list-style: none;
  padding-left: 0.618em;
  position: relative;
  line-height: 1.2;
}

ul.list-chevvy li {
  position: relative;
  padding-left: 2em;
}

ul.list-chevvy li::before {
  content: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' %3E%3Cpolygon points='62 0, 100 50, 62 100, 0 100, 38 50, 0 0' fill='%23414955' /%3E%3C/svg%3E");
  width: 1.618em;
  display: inline-block;
  position: absolute;
  left: 0em;
  padding-top: 5px;
}

