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

/* ==== DESKTOP ==== */

.bs-latest-insight {
  height: 300vh;
  padding: 97px 0 20px 0;
  position: relative;
}
@media (max-width: 991px) {
  .bs-latest-insight {
    display: none !important;
  }
}

.bs-latest-insight__sticky {
  height: calc(100vh - 117px);
  position: sticky; 
  top: 97px;
  overflow: hidden;
}

.bs-latest-insight__inner {
  display: flex;
  height: 100%;
  top: 50%;
  transform: translateY(-50%);
  max-height: 550px;
  flex-wrap: nowrap;
  position: relative;
}

.bs-latest-insight__left,
.bs-latest-insight__right {
  height: 100%;
  flex-grow: 1;
  flex-shrink: 1;
}

.bs-latest-insight__left {
  flex-basis: 100%;
  padding-right: 0;
  position: relative;
}

.bs-latest-insight__right {
  flex-basis: 0%;
  overflow: hidden;
  padding-left: 0;
}

.bs-latest-insight__link-all {
  background-color: #104CDF;
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
}

.bs-latest-insight__link-all::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 300px;
  width: 300px;
  border-radius: 50%;
  background-color: #1143B5;
  z-index: 2;
  content: '';
  transition: all 0.25s ease;
}

.bs-latest-insight__link-all .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.175em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: inline-block;
  z-index: 3;
  color: #fff;
}

.bs-latest-insight__link-all .cta {
  font-weight: 500;
  font-size: 30px;
  line-height: 35px;
  letter-spacing: 0.01em;
  color: #fff;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  text-transform: uppercase;
  padding-right: 55px;
}

.bs-latest-insight__link-all .cta .arrow {
  top: 0;
  right: 0;
  height: 35px;
  width: 35px;
  position: absolute;
  transition: transform 0.25s ease;
}

.bs-latest-insight__link-all:hover::after {
  height: 100%;
  width: 100%;
  border-radius: 0;
}

.bs-latest-insight__link-all:hover .cta .arrow {
  transform: rotate(45deg);
}

.bs-latest-insight__article {
  display: block;
  height: 100%;
  width: 100%;
  transform: translateY(100%);
  overflow: hidden;
}

.bs-latest-insight__article__top {
  height: 30%;
  display: flex;
}

.bs-latest-insight__article__top__content {
  display: inline-block;
  width: 100%;
  align-self: flex-end;
  overflow: hidden;
  max-height: 400px;
}

.bs-latest-insight__article__top__content h2 {
  font-size: 30px;
  line-height: 35px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #333;
}

.bs-latest-insight__article__top__content a {
  display: inline-block;
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #011226;
  padding-right: 62px;
  background-size: 22px auto;
  background-position: right 30px center;
  background-repeat: no-repeat;
  transition: padding 0.25s ease;
  margin-bottom: 15px;
}

.bs-latest-insight__article__top__content a:hover {
  padding-right: 52px;
}

.bs-latest-insight__article__bottom {
  height: 70%;
  background-size: cover;
}

/* ==== MOBILE ==== */

.bs-latest-insight-mobile {
  display: none;
}
@media (max-width: 991px) {
  .bs-latest-insight-mobile {
    display: block;
  }
}

.bs-latest-insight-mobile__article {
  display: block;
  height: 100%;
  width: 100%;
}

.bs-latest-insight-mobile__article__top__content h2 {
  font-size: 28px;
  line-height: 32.73px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #333;
}

.bs-latest-insight-mobile__article__top__content a {
  display: inline-block;
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #011226;
  padding-right: 62px;
  background-size: 22px auto;
  background-position: right 30px center;
  background-repeat: no-repeat;
  transition: padding 0.25s ease;
  margin-bottom: 15px;
}

.bs-latest-insight-mobile__article__bottom {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
}
@media (max-width: 768px) {
  .bs-latest-insight-mobile__article__bottom {
    height: 300px;
  }
}

.bs-latest-insight-mobile__link-all {
  height: 100px;
  width: 100%;
  background-color: #104CDF;
  text-align: center;
  display: block;
  color: #fff !important;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

.bs-latest-insight-mobile__link-all::after {
  content: '';
  border-radius: 50%;
  background-color: #1143B5;
  z-index: 1;
  position: absolute;
  height: 260px;
  width: 260px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  
}

.bs-latest-insight-mobile__link-all .cta {
  font-size: 28px;
  display: block;
  line-height: 32.73px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  vertical-align: center;
}

.bs-latest-insight-mobile__link-all .cta .arrow {
  height: 32.73px;
  width: 32.73px;
  background-size: 28px 28px;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
}

/** STAGING ONLY **/
.hs-content-id-134910709071 .bs-latest-insight {
  position: relative;
  min-height: 300px;
  max-height: 550px;
  width: 100%;
  max-width: 1480px;
  margin: 8rem auto;
  padding: 0;
}
.hs-content-id-134910709071 .bs-latest-insight__sticky {
  height: inherit;
}
.hs-content-id-134910709071 .bs-latest-insight__inner {
  gap: 2rem;
  top: 0;
  transform: none;
}
.hs-content-id-134910709071 .bs-latest-insight__left {
  flex-basis: 0;
}
.hs-content-id-134910709071 .bs-latest-insight__article {
  transform: none;
}
.hs-content-id-134910709071 div[class^="bs-latest-insight__article__b"] {
  height: auto ;
  background-size: 100% ;
  background-repeat: no-repeat ;
  padding-top: 56.25%;
}

.hs-content-id-134910709071 .bs-latest-insight-mobile__article__bottom {
  background-size: 100%;
  height: auto;
}
.hs-content-id-134910709071 .bs-latest-insight-mobile__article__bottom {
  height: auto;
  padding-top: 56.25%;
}
@media (max-width: 768px) {
  .hs-content-id-134910709071 .bs-latest-insight-mobile__article__bottom {
    height: auto;
    padding-top: 56.25%;
  }
}