/* Variables
Variables that the other CSS sections depend upon
*/
{% include '../../css/variables/_colors.css' %}

.bs-accordion {
  padding-top: 70px;
  padding-bottom: 100px;
}

.bs-accordion__single {
  border-bottom: 5px solid #000000;
  padding: 30px 30px 30px 0;
  transition: background-color 0.25s ease, border 0.25s ease, padding 0.25s ease;
  cursor: pointer;
}

@media (max-width: 991px) {
  .bs-accordion__single {
    border-bottom: 3px solid #000000;
    padding: 22px 22px 22px 0;
  }
}

.bs-accordion__single__title {
  font-size: 60px;
  line-height: 1.167em;
  letter-spacing: 0.01em;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  padding-right: 70px;
  color: #000;
  transition: color 0.25s ease;
}

@media (max-width: 991px) {
  .bs-accordion__single__title {
    font-size: 23px;
  }
}

.bs-accordion__single__trigger {
  height: 35px;
  width: 35px;
  right: 0;
  bottom: 12px;
  position: absolute;
}

@media (max-width: 991px) {
  .bs-accordion__single__trigger {
    height: 25px;
    width: 25px;
    bottom: 3px;
  }
}

.bs-accordion__single__trigger::before {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 100%;
  top: 0;
  background-color: #104ADF;
  content: '';
  transform-origin: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

@media (max-width: 991px) {
  .bs-accordion__single__trigger::before {
    width: 3px;
  }
}

.bs-accordion__single__trigger::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  width: 100%;
  left: 0;
  background-color: #104ADF;
  content: '';
  transition: background-color 0.25s ease;
}

@media (max-width: 991px) {
  .bs-accordion__single__trigger::after {
    height: 3px;
  }
}


.bs-accordion__single__text {
  transition: max-height 0.25s ease;
  overflow: hidden;
  max-height: 0;
}

.bs-accordion__single__text p {
  font-size: 32px;
  line-height: 1.25em;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  color: #fff;
}

@media (max-width: 991px) {
  .bs-accordion__single__text p {
    font-size: 20px;
  }
}

.bs-accordion__single__text p:last-of-type {
  margin-bottom: 0;
}

.bs-accordion__single__text p a {
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 0.8em;
  padding-right: 25px;
  background-image: url('https://23611281.fs1.hubspotusercontent-na1.net/hubfs/23611281/raw_assets/public/ballast-website-theme/images/icons/caret-white-right.svg');
  background-size: 0.5em auto;
  background-position: right center;
  background-repeat: no-repeat;
  font-weight: 700;
  transition: background-position 0.25s ease;
}

.bs-accordion__single__text p a:hover {
  background-position: right 6px center;
  padding-bottom: 0px;
}

.bs-accordion__single:not(.activated):hover {
  border-color: #104ADF;
}

.bs-accordion__single:not(.activated):hover
.bs-accordion__single__title {
  color: #104ADF;
}

.bs-accordion__single.activated {
  background-color: #104ADF;
  border-color: #104ADF;
  padding: 30px;
}

@media (max-width: 991px) {
  .bs-accordion__single.activated {
    padding: 22px;
  }
}

.bs-accordion__single.activated
.bs-accordion__single__title {
  color: #fff;
}

.bs-accordion__single.activated
.bs-accordion__single__text {
  max-height: 500px;
}

.bs-accordion__single.activated
.bs-accordion__single__text p {
  color: #fff;
}

.bs-accordion__single.activated 
.bs-accordion__single__trigger::before {
  transform: translateX(-50%) rotate(-90deg);
  background-color: #fff;
}

.bs-accordion__single.activated 
.bs-accordion__single__trigger::after {
  background-color: #fff;
}