/*!
 *  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";

.pillars {
  padding: 0 30px 15px;

  .pillars-title {
    @extend .component-title;

    text-align: center;
    border: none;
  }

  .pillars-content {
    display: grid;
    grid-template-columns: 443px 443px;
    grid-gap: 50px 89px;
    justify-content: center;
    margin-top: 30px;

    .pillars-item {
      display: flex;
      align-items: center;

      .pillars-item-icon {
        margin-right: 47px;
      }

      .pillars-item-description {
        width: 100%;
        max-width: 284px;

        .pillars-item-header {
          @extend .component-header;
        }

        .pillars-item-text {
          @extend .component-text;
        }
      }
    }
  }

  .pillars-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;

    .pillars-social-icons {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 45px;

      div {
        padding-right: 20px;

        &:last-child {
          padding-right: 0;
        }
      }

      svg {
        height: 41px;
        width: auto;
      }

      #about-twitter-icon {
        height: 45px;
      }

      a {
        filter: grayscale(100%);
        opacity: 0.7;

        &:hover {
          filter: grayscale(0);
          opacity: 1;
        }
      }
    }

    .pillars-social-text {
      @extend .component-text;
      max-width: 285px;
    }
  }

  h2 {
    @extend .component-title;
  }

  .margin {
    margin-top: 84px;
    margin-bottom: 84px;
    @media (max-width: $mobile) {
      margin-top: 0;
      margin-bottom: 64px;
    }
  }

  .row {
    display: flex;
    justify-content: space-between;
    @media (max-width: $mobile) {
      flex-direction: column;
      align-items: center;
    }
    .logos-row {
      display: flex;
      align-items: center;
      margin-top: 20px;
      max-height: 73px;
      @media (max-width: $mobile) {
        margin-top: 64px;
      }
      img {
        height: auto;
        width: 112px;
      }
    }
    .first_logo {
      margin-right: 18px;
    }
    #last_logo {
      margin-left: 18px;
      width: 55px;
    }
    .column {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 306px;

      h4 {
        margin-top: 32px;
      }
      .more {
        margin-top: 32px;
        font-size: 14px;
        font-weight: bold;
        line-height: 16px;
        letter-spacing: 0.6px;
        color: #f26628;
      }
    }
    .icon {
      width: 34px;
      height: 44px;
      margin-top: 16px;
      @media (max-width: $mobile) {
        margin-top: 64px;
      }
    }
    img {
      max-width: 306px;
      height: 42px;
    }
  }
}

@media (max-width: $ak-breakpoint-lg) {
  .pillars {
    padding: $pad-md $pad-s;

    .pillars-content {
      grid-template-columns: 330px;
      grid-column-gap: 47px;
      margin-top: 62px;

      .pillars-item {
        align-items: flex-start;
        @media (max-width: $mobile) {
          padding-left: 10px;
          padding-right: 10px;
        }

        .pillars-item-icon {
          margin-right: 17px;
          margin-top: 12px;
        }

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

    .pillars-social {
      margin-top: 91px;

      .pillars-social-icons {
        svg {
          height: 34px;
          width: auto;
        }

        #about-twitter-icon {
          height: 37px;
        }

        a {
          filter: none;
          opacity: 1;
        }

        .pillars-youtube-icon {
          margin: 0 60px;
        }
      }
    }
  }
}
