@media (min-width: 50em) {
  .pillars {
    position: relative;
    padding-bottom: 3rem;
    background-color: #fff;
    margin-top: 10rem;
  }
  .js .pillars {
    position: absolute;
    bottom: 0;
    width: 100%;
  }
}

.pillars--second {
  z-index: 2;
}

.pillars__content {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
  max-width: 1170px;
  margin: 0;
}

@media (min-width: 50em) {
  .pillars__content {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
            flex-direction: row;
    -webkit-box-align: stretch;
            align-items: stretch;
    margin-left: 5px;
    margin-right: 5px;
  }
  .js .pillars__content {
    position: absolute;
    bottom: 50px;
    width: calc(100% - 10px);
    margin: 0;
    padding-right: 7px;
  }
}

@media (min-width: 75em) {
  .pillars__content {
    margin-left: auto;
    margin-right: auto;
  }
}

.pillars__item {
  border-top: 1px solid #fff;
  background-color: #fff;
}

@media (min-width: 0) and (max-width: 49.9375em) {
  .js .pillars__item {
    position: relative;
  }
}

@media (min-width: 50em) {
  .pillars__item {
    box-shadow: 0 0 8px 0 rgba(69, 73, 91, 0.2);
    background-color: #fff;
    position: relative;
    margin-top: -7rem;
    border-top: 0;
    border-bottom: 3px solid transparent;
    transition: box-shadow 0.2s, border 0.2s;
  }
  .js .pillars__item {
    margin-top: 0;
  }
}

@media (min-width: 50em) {
  .pillars__item:hover {
    border-bottom: 3px solid #1764e2;
    transition: box-shadow 0.2s, border 0.2s;
  }
  .pillars__item:hover .pillars__title {
    top: 75%;
    height: 25%;
    transition: top 0.2s, height 0.2s;
  }
}

.pillars__header {
  position: relative;
}

@media (min-width: 0) and (max-width: 49.9375em) {
  .js .pillars__header {
    position: relative;
  }
  .js .pillars__header::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 43"><path fill="none" stroke="%23fff" stroke-width="4" d="M26.7 41.5l19.5-20.3L26.9 1M0 21.3h45.4"/></svg>');
    position: absolute;
    display: block;
    top: calc(50% - .68rem);
    right: .5rem;
    width: 1.4rem;
    height: 1.4rem;
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
    transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
    transition: transform 0.2s, -webkit-transform 0.2s;
  }
}

.pillars__item--opened .pillars__header::after {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.pillars__image img,
.pillars__image picture {
  display: block;
}

.pillars__title {
  position: absolute;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.1rem;
  background-color: rgba(23, 51, 83, 0.4);
  color: #fff;
}

@media (min-width: 50em) {
  .pillars__title {
    transition: top 0.2s, height 0.2s;
  }
}

.pillars__title-bg1 {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .75;
  background-color: #fff;
  mix-blend-mode: color;
}

.pillars__title-bg2 {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 51, 83, 0.4);
  mix-blend-mode: color;
}

.pillars__title-bg3 {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 51, 83, 0.4);
}

.pillars__title-bg4 {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 67, 115, 0.3);
  mix-blend-mode: multiply;
}

.pillars__title-text {
  position: relative;
}

@media (min-width: 0) and (max-width: 49.9375em) {
  .pillars__title-text {
    width: calc(100% - 10px);
    padding-left: 10px;
  }
}

.pillars__links {
  padding: .75rem 0;
  text-align: left;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.04rem;
}

@media (min-width: 50em) {
  .pillars__links {
    padding: 1.2rem .25rem 1.5rem;
    text-align: center;
    font-size: 1rem;
  }
}

.pillars__links a {
  display: block;
  padding: 5px 10px;
  color: #173353;
  text-decoration: none;
  line-height: 1rem;
}

@media (min-width: 50em) {
  .pillars__links a {
    padding: 5px 1.5rem;
  }
}

.pillars__links a:hover {
  position: relative;
  color: #1764e2;
}

.pillars__links a:hover::after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 43"><path fill="none" stroke="%231764e2" stroke-width="4" d="M26.7 41.5l19.5-20.3L26.9 1M0 21.3h45.4"/></svg>');
  position: absolute;
  display: block;
  top: calc(50% - .68rem);
  right: .5rem;
  width: 1rem;
  height: 1rem;
}
