/*------------- #INFO-BOX --------------*/


.info-boxes {
  .crumina-info-box {
    margin-bottom: 80px;

    @media (max-width: 640px) {
      margin-bottom: 30px;
    }
  }
}

.crumina-info-box {

  .info-box-image {
    border-radius: 100%;
    margin-right: 30px;
    margin-bottom: 10px;
    overflow: hidden;
    text-align: center;
    transition: all 0.2s ease-in-out;

    i {
      font-size: 50px;
      color: var(--secondary-accent-color);
    }
  }

  .info-box-content {
    overflow: hidden;
    position: relative;
  }

  .info-box-title {
    text-transform: capitalize;
    line-height: 1.3em;
    margin-bottom: 10px;
    margin-top: 0;

    a:hover {
      color: inherit;
    }
  }

  .info-box-text {
    + * { margin-bottom: 20px; }

    @media (max-width: 480px) {
      font-size: 14px;
    }

    &.c-white {
      color: #fff;
    }
  }

  &.info-box--standard {

    @media (max-width: 800px) {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .info-box-image {
      border-radius: 0;
      float: left;

      @media (max-width: 800px) {
        margin-right: 0;
      }

      @media (max-width: 360px) {
        float: none;
      }
    }
  }

  &.info-box--standard-nofloat {

    .info-box-image {
      border-radius: 0;
      float: none;
      text-align: left;
    }

  }

  &.info-box--standard-centered {
    text-align: center;

    .info-box-image {
      width: 100px;
      height: 100px;
      line-height: 100px;
      background-color: #c0e3cf;
      overflow: visible;
      margin: 0 auto 10px;

      i {
        font-size: 50px;
        line-height: 100px;
      }
    }

    .info-box-content {

      .btn {
        margin-bottom: 30px;

        &:hover {
          background-color: var(--primary-accent-color);
        }
      }
    }

    .info-box-text {
      margin-bottom: 30px;
      font-size: 16px;

      @media (max-width: 480px) {
        font-size: 14px;
      }
    }

    .info-box-title {
      text-transform: uppercase;
    }

    &:hover {

      .info-box-image {
        -webkit-box-shadow: 25px 20px 20px -15px rgba(0, 0, 0, 0.3);
        -moz-box-shadow: 25px 20px 20px -15px rgba(0, 0, 0, 0.3);
        box-shadow: 25px 20px 20px -15px rgba(0, 0, 0, 0.3);
      }

    }
  }

  &.info-box--standard-bg {
    text-align: center;

    @media (max-width: 1024px) {
      margin-bottom: 30px;
    }

    .info-box-content {
      overflow: visible;
      background-color: $white-color;
      padding: 60px 40px 40px;
    }

    .info-box-title {
      text-transform: uppercase;
    }

    .info-box-text {
      @media (max-width: 480px) {
        font-size: 14px;
      }
    }

    .info-box-image {
      width: 100px;
      height: 100px;
      line-height: 100px;
      background-color: #e9e7df;
      position: relative;
      z-index: 5;
      margin: 0 auto -50px;

      i {
        font-size: 50px;
        line-height: 100px;
        color: var(--primary-accent-color);
      }
    }
  }

  &.info-box--modern {
    position: relative;
    padding: 30px;
    background-color: #f7f9f9;
    transition: background-color .3s ease;

    .info-box-content {
      transition: color .3s ease-in;
    }

    .info-box-image {
      width: 130px;
      height: 130px;
      line-height: 130px;
      background-color: $border-color;
      float: left;

      @media (max-width: 980px) {
        float: none;
      }

      i {
        line-height: 130px;
      }
    }

    .info-box-title {
      margin-bottom: 15px;
    }

    &:hover {
      background-color: #2f2c2c;
      color: $white-color;

      .info-box-content {
        color: inherit;
      }
      .info-box-title {
        color: var(--primary-accent-color);
      }

      .read-more,
      .read-more i {
        color: var(--primary-accent-color);
      }
    }
  }

  .read-more {
    padding: 0;
    border-left: none;
    margin: 0;
    float: none;
    display: block;
    margin-top: 15px;

    i {
      margin-left: 10px;
      font-size: 12px;
    }
  }

  &.info-box--standard-centered-big {
    text-align: center;

    .info-box-image {
      width: 170px;
      height: 170px;
      line-height: 170px;
      margin: 0 auto 20px;
      background-color: $border-color;

      i {
        line-height: 170px;
      }
    }

    .info-box-title {
      text-transform: uppercase;
    }

    &:hover {

      .info-box-image {
        -webkit-box-shadow: 25px 20px 20px -15px rgba(0, 0, 0, 0.3);
        -moz-box-shadow: 25px 20px 20px -15px rgba(0, 0, 0, 0.3);
        box-shadow: 25px 20px 20px -15px rgba(0, 0, 0, 0.3);
      }
    }
  }

  &.info-box--standard-round {
    text-align: left;

    .info-box-title {
      text-transform: uppercase;
    }

    .info-box-image {
      float: left;
      width: 70px;
      height: 70px;
      line-height: 68px;
      background-color: $border-color;

      i {
        line-height: 70px;
        font-size: 30px;
      }
    }
  }

  &.info-box--standard-hover {
    text-align: center;

    .info-box-image {
      margin: 0 auto 20px auto;
      border-radius: 0;
    }

    .info-box-title {
      display: block;
    }

    .info-box-text {
      -moz-hyphens: auto;
      -webkit-hyphens: auto;
      -ms-hyphens: auto;
    }

    &:hover {
      .info-box-title,
      .read-more {
        color: var(--primary-accent-color);
      }
    }

  }
}

