@supports (display: grid) {
  .rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-column-gap: 16px;
  }
}

/* ROW BUBBLE/CIRCLE DESIGN*/
.rows__bubble {
  @supports (display: grid) {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100%);
    column-gap: 24px;
    row-gap: 10px;

    @media (--screenMD) {
      grid-template-columns: repeat(2, 230px);
      justify-content: space-between;
      row-gap: 30px;
      column-gap: 0;
    }

    @media (--screenLG) {
      grid-template-columns: repeat(auto-fit, 210px);
      row-gap: 40px;
      column-gap: 12px;
    }
  }

  @media (--screenXL) {
    &[count^='3'] {
      justify-content: space-evenly;
    }
  }

  @media (--screenLG) {
    &[count^='2'] {
      justify-content: space-evenly;
    }
  }

  & .rows__item {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 150px;
    margin: 0;
    z-index: 2;
    @media (--screenMD) {
      min-height: 230px;
      width: 230px;
    }

    & h3 {
      margin-top: 20px;
    }

    & .rows__item-circle {
      position: absolute;
      top: 0;
      height: 150px;
      width: 150px;
      border-radius: 50%;
      z-index: -1;
      left: 0;

      @media (--screenMD) {
        min-height: 230px;
        width: 230px;
      }
    }

    @media (--maxScreenSM) {
      &:nth-child(even) {
        & .rows__item-circle {
          left: 40%;
          transform: translateX(-50%);
        }
      }
      &:nth-child(odd) {
        & .rows__item-circle {
          left: 60%;
          transform: translateX(-50%);
        }
      }
    }
  }
}

/*IE GRID*/
_:-ms-fullscreen,
:root {
  & .rows__bubble {
    display: inline-flex;
    flex-wrap: wrap;
    margin: -24px 0 0 -24px;
    width: calc(100% + 24px);
    flex-direction: row;
    & .rows__item {
      margin: 24px 0 0 20px;
    }
  }
}

/* TABLE ROW DESIGN*/
.rows__table {
  display: flex;
  flex-direction: column;
  & .rows__item {
    margin-bottom: 0;

    &:last-child {
      background-image: linear-gradient(
        to right,
        #142046 10%,
        rgba(255, 255, 255, 0) 0%
      );
      background-position: left bottom;
      background-size: 10px 1px;
      background-repeat: repeat-x;
    }
  }
  & .rows__item > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(
      to right,
      var(--colorMilaBlue) 10%,
      rgba(255, 255, 255, 0) 0%
    );
    background-position: left top;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    padding: 24px 0;

    & p {
      margin: 0;
    }

    & h3,
    & div {
      font-size: 16px;
      font-weight: normal;
    }

    & h3 {
      flex-basis: 35%;
      margin: 0;
      align-self: flex-start;
      @media (--screenLG) {
        flex-basis: 22.5%;
      }
    }
    & div {
      flex-basis: 60%;
      @media (--screenLG) {
        flex-basis: 75%;
      }
    }
  }
}

/* ROLES DESIGN*/

@supports (display: grid) {
  .rows__roles {
    display: grid;
    grid-column-gap: 16px;
    grid-row-gap: 24px;
    grid-template-columns: repeat(auto-fit, 100%);
    justify-content: space-between;

    @media (--screenXL) {
      grid-column-gap: 0px;
      grid-template-columns: repeat(3, 30%);
    }

    @media (--screenXXL) {
      grid-column-gap: 85px;
      grid-template-columns: repeat(auto-fit, 350px);
    }

    &[count^='1'] {
      grid-column-gap: 0px;
      grid-template-columns: repeat(auto-fit, 100%);
    }

    &[count^='2'] {
      grid-column-gap: 0px;
      grid-template-columns: repeat(auto-fit, 350px);
      justify-content: space-between;
    }

    @media (--maxScreenMD) {
      &[count^='2'] {
        grid-template-columns: repeat(auto-fit, 100%);
      }
    }
  }
}
/*IE GRID*/
_:-ms-fullscreen,
:root {
  & .rows__roles {
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: -24px 0 0 -16px;
    width: calc(100% + 16px);

    & .rows__item {
      width: 100%;
      margin: 24px 0 0 16px;
    }

    @media (--screenXL) {
      & .rows__item {
        width: calc(90% / 3);
      }
    }

    @media (--screenXXL) {
      & .rows__item {
        width: 350px;
      }
    }

    &[count^='1'] {
      & .rows__item {
        width: 100%;
      }
    }

    &[count^='2'] {
      & .rows__item {
        width: 350px;
      }
    }

    @media (--maxScreenMD) {
      &[count^='2'] {
        & .rows__item {
          width: 350px;
        }
      }
    }
  }
}
.rows__roles {
  & .rows__item {
    width: 100%;

    & > div {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    & > div > div {
      display: flex;
      flex-direction: column;
      height: min-content;
    }
    & > div > div > p:first-child {
      margin-top: 0;
    }
    & > div > h3:first-child {
      padding-bottom: 20px;
      margin-bottom: 20px;
      background-image: radial-gradient(
        circle,
        var(--colorMilaBlue) 1px,
        transparent 1px
      );
      background-position: left 0px bottom;
      background-repeat: repeat-x;
      background-size: 8px 4px;
    }
  }
}

.rows__item {
  margin-bottom: var(--spacingLarge);
}

/* CARDS */

.rows__cards {
  display: inline-flex;
  flex-wrap: wrap;
  margin: -24px 0 0 -24px;
  width: calc(100% + 24px);
  flex-direction: row;
  & .rows__item {
    margin: 24px 0 0 24px;
  }
}

@supports (display: grid) {
  .rows__cards-small {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(auto, 325px));
    grid-column-gap: 12px;
    grid-row-gap: 20px;
    margin-top: 80px;
    list-style: none;
    padding: 0;
    justify-content: center;

    @media (--screenMD) {
      justify-content: flex-start;
      grid-template-columns: repeat(auto-fit, 325px);
      grid-column-gap: 20px;
    }
    @media (--screenLG) {
      grid-column-gap: 30px;
      grid-template-columns: repeat(auto-fit, 235px);
    }
    @media (--screenXL) {
      grid-column-gap: 12px;
    }
  }
}

.rows__cards-small {
  & .rows__item {
    margin-bottom: 0;
    height: 290px;
    @media (--screenLG) {
      height: 315px;
    }
  }
}

/*IE GRID*/
_:-ms-fullscreen,
:root {
  & .rows__cards-small {
    list-style: none;
    padding: 0;
    position: relative;
    justify-content: center;
    display: inline-flex;
    flex-wrap: wrap;
    margin: 80px 0 0 -12px;
    width: calc(100% + 12px);
    flex-direction: row;
    & > div {
      margin: 20px 0 0 12px;
      width: 325px;
      height: 290px;
    }
    @media (--screenMD) {
      justify-content: flex-start;
      margin: 80px 0 0 -20px;
      width: calc(100% + 20px);

      & > div {
        margin: 20px 0 0 20px;
        width: 325px;
      }
    }
    @media (--screenLG) {
      justify-content: flex-start;
      margin: 80px 0 0 -30px;
      width: calc(100% + 30px);
      & > div {
        margin: 20px 0 0 30px;
        width: 235px;
        height: 315px;
      }
    }
    @media (--screenXL) {
      margin: 80px 0 0 -12px;
      width: calc(100% + 12px);
      & > div {
        margin: 20px 0 0 12px;
      }
    }
  }
}

.rows__partners {
  display: flex;

  & .rows__item {
    width: 100%;
  }
}

.ribbon {
  width: 44px;
  margin: auto;
  padding-top: 1.5px;
  margin-bottom: 20px;
}

.rows__campaign {
  text-align: center;
  color: white;
  & p {
    font: normal normal 200 18px/26px Avenir Next;
    margin: auto;
    max-width: 80%;
    padding: 5px 5px;
    margin-bottom: 15px;
    @media (--maxScreenMD) {
      font: normal normal 200 16px/18px Avenir Next;
      @media (--maxScreenSM) {
        font: normal normal 200 14px/18px Avenir Next;
        margin-bottom: 15px;
      }
    }
  }
  & h3 {
    text-transform: uppercase;
    letter-spacing: 4.6px;
    font: normal normal bold 46px/26px Avenir Next;

    @media (--maxScreenMD) {
      font: normal normal bold 38px/26px Avenir Next;
      letter-spacing: 3.8px;
      @media (--maxScreenSM) {
        font: normal normal bold 30px/26px Avenir Next;
        letter-spacing: 3px;
        font-weight: 600;
      }
    }
  }
  & h4 {
    letter-spacing: 3.6px;
    font: normal normal 200 30px/26px Avenir Next;
    padding-top: 26px;
    padding-bottom: 30px;

    @media (--maxScreenMD) {
      font: normal normal 200 25px/26px Avenir Next;
      letter-spacing: 3px;
      padding-bottom: 20px;
      @media (--maxScreenSM) {
        font: normal normal 200 20px/26px Avenir Next;
        letter-spacing: 2.4px;
      }
    }
  }
}

.rows__campaign__packages {
  text-align: center;
  color: white;
  background: linear-gradient(
    90deg,
    rgba(29, 29, 29, 1) 0%,
    rgba(68, 68, 68, 1) 100%
  );
  border-radius: 6px;
  margin-bottom: -75px;
  padding-bottom: 10px;
  & h3 {
    font: normal normal bold 28px/26px Avenir Next;
    letter-spacing: 2.8px;
    padding-bottom: 10px;
  }
  @media (--maxScreenMD) {
    margin-bottom: -65px;
  }
}
