.page-node-type-subsidiary {
  article footer [class^='col']:last-child {
    display: flex;
    flex-direction: column;
    padding: 0;
    float: none;
    min-height: 297px;
    flex-basis: 33.33333333%;
    &:last-child {
      .cta--buttons-wrap {
        position: relative;
        background-image: url(../../images/persona_teasers_cta_block.jpg);
        background-size: cover;
        background-position: center center;
        background-repeat: repeat;
        > div {
          &:first-child {
            &:before {
              content: '';
              position: absolute;
              left: 100%;
              top: 0;
              height: 50%;
              width: 100%;
              background: red;
              background-color: var(--primary_color_1);
            }
          }
        }
      }
    }
  }
  .cta--buttons-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-around;
    align-content: flex-end;
    div {
      flex: 1 1 50%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
    }
    .button {
      margin-bottom: 1.25rem;
    }
  }
  .col-lg-4:first-child {
    display: flex;
    padding: 0;
    min-height: 297px;
    flex-direction: column;
  }
}
@media (max-width: 991px) {
  .page-node-type-subsidiary {
    article footer [class^='col']:last-child {
      flex-basis: 50%;
    }
  }
}
@media (max-width: 767px) {
  .page-node-type-subsidiary {
    article footer [class^='col']:last-child {
      flex-basis: 100%;
    }
  }
}

.page-node-type-subsidiary {
  article header [class^='col']:last-child {
    justify-content: flex-end;
  }
  .field.field--name-field-persona-story-ref.field--type-entity-reference.field--label-hidden.field__item {
    display: flex;
    flex: 1;
  }
  section.node--type-persona {
    display: flex;
    flex: 1;
  }
  .node--type-persona.node--view-mode-teaser .node__content {
    position: relative;
    display: flex;
    flex: 1;
  }
  .node--type-persona.node--view-mode-teaser a {
    display: flex;
    flex: 1;
    color: var(--primary_color_1);
    &:hover img {
      opacity: 0.4;
    }
    img {
      vertical-align: middle;
      max-width: 100%;
      height: auto;
      width: 100%;
      object-fit: cover;
      object-position: 0 0;
      transition: opacity 0.35s;
    }
  }
  .field.field--name-field-photo-teaser.field--type-image.field--label-hidden.field__item {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  .text-bubble {
    background-color: white;
    border-radius: 5px;
    padding: 0.625rem;
    font-size: 1.625rem;
    line-height: 1.875rem;
    position: relative;
    &:after {
      top: 100%;
      left: 30%;
      border: solid transparent;
      content: ' ';
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
      border-color: rgba(255, 255, 255, 0);
      border-top-color: white;
      border-width: 11px;
      margin-left: -11px;
    }
  }
  .field--name-field-product {
    color: white;
    font-family: 'niveau-grotesk', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.938rem;
    margin-left: calc(30% - 40px);
    margin-top: 0.75rem;
    &:before {
      content: '';
      background: url(../../images/icon--hyposmart.png);
      background-position: 0px -25px;
      width: 24px;
      height: 25px;
      display: inline-block;
      margin-right: 5px;
    }
  }
  .cta--buttons-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-around;
    align-content: flex-end;
    div {
      flex: 1 1 50%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
    }
    .button {
      margin-bottom: 1.25rem;
    }
  }
  .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    .overlay--content {
      display: flex;
      flex-direction: column;
      align-self: center;
      justify-content: center;
      margin-bottom: 1.25rem;
    }
  }
  .field--name-field-product {
    color: white;
    font-family: 'niveau-grotesk', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.938rem;
    margin-left: calc(30% - 40px);
    margin-top: 0.75rem;
    &:before {
      content: '';
      background: url(../../images/icon--hyposmart.png);
      background-position: 0px -25px;
      width: 24px;
      height: 25px;
      display: inline-block;
      margin-right: 5px;
    }
  }
  .col-lg-4:nth-child(2) {
    background: var(--primary_color_2);
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
  }
  .hypostart .col-lg-4:nth-child(2) {
    background: var(--primary_color_3);
  }
  .hyposolutions .col-lg-4:nth-child(2) {
    background: var(--primary_color_4);
  }
  footer .row {
    display: flex;
    flex-wrap: wrap;
  }
  article footer [class^='col'] .button.button--product {
    color: white;
    font-size: 1.75rem;
    display: flex;
    align-self: center;
    flex: 1;
    align-items: center;
    position: relative;
    &:before {
      content: '';
      background: url(../../images/icon--hyposmart.png);
      background-position: 0px -25px;
      width: 24px;
      height: 25px;
      display: inline-block;
      margin-right: 5px;
    }
  }
  header .field--name-field-image {
    padding: 0.625rem 0;
  }
  @media (max-width: 991px) {
    footer .container {
      width: 100%;
    }
    article footer [class^='col'] {
      width: 100%;
      min-height: 150px;
    }
  }
}
