/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
@import "media";
@import "fonts";

.text-with-icon-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 940px;
  margin: 0 auto 100px;
  justify-content: space-between;
}

.text-with-icon-item {
  display: flex;
  flex-direction: column;
  max-width: 410px;
  align-items: center;
  margin-top: 54px;

  svg {
    height: 100px;
  }

  &--header {
    @extend .header__xsmall--greyish-brown;
    text-align: center;
    margin-top: 23px;
  }

  &--text {
    @extend .bodytext__medium--brownish-grey;
    text-align: center;
  }
}

@media (min-width: $fullhd) {
  .text-with-icon-list {
    max-width: unset;
  }

  .text-with-icon-item {
    max-width: 305px;
  }
}

@media (max-width: $tablet) {
  .text-with-icon-item {
    margin-top: 30px;
    max-width: 276px;

    svg {
      width: 70px;
      height: 70px;
    }

    &--header {
      font-family: $primary-font;
      font-size: 24px;
      line-height: 1.5;
      margin-top: 16px;
    }

    &--text {
      font-size: 14px;
      line-height: 1.57;
    }
  }
}

@media (max-width: $mobile) {
  .text-with-icon-list {
    justify-content: center;
  }
}
