@charset "UTF-8";

.feature {
  background-color: $color-primary;
  background-color: var(--theme-color-primary, $color-primary);
  color: white;
  padding: calc(1.5vw + 30px) 0 calc(1.5vw + 40px);
  border-bottom: 8px solid var(--theme-color-secondary, $color-secondary);

  h2 {
    margin-bottom: 0.4em;
  }

  p {
    font-size: 18px;

    @media(max-width: 767px) {
      font-size: 16px;
    }
  }

  + .topics, + .feature, + .events {
    margin-top: 0;
  }

  .row {
    min-height: calc(120px + 6vw);
    flex-wrap: nowrap;
    align-items: center;

    @media(max-width: 567px) {
      flex-direction: column;

      .col {
        flex: 1 1 0;
      }
    }
  }

  a {
    color: white;
  }

  .col:nth-child(2) {
    @media(max-width: 567px) {
      width: 50%;
      min-width: 220px;
      max-width: 360px;
    }
    @media(min-width: 568px) {
      max-width: 44%;
      min-width: 44%;
      flex: 1 1 44%;
    }
    @media(min-width: 1000px) {
      max-width: 33.3333%;
      min-width: 33.3333%;
      flex: 1 1 33.3333%;
    }
  }

  .text-box {
    padding-right: 20px;
  }

  .linklist > li > a:hover {
    color: $color-secondary;
    color: var(--theme-color-secondary, $color-secondary);
  }

  .icon-box {
    position: relative;
    display: block;
    border-radius: 40%;
    overflow: hidden;

    &:after {
      content: "";
      position: relative;
      display: block;
      padding-top: 100%;
      background-color: white;
    }

    &:before {
      position: absolute;
      display: block;
      z-index: 1;
      top: 50%;
      left: 50%;
      font-size: 200px;
      line-height: 1;
      transform: translate(-50%, -50%);
      color: $color-secondary;
      color: var(--theme-color-secondary, $color-secondary);

      @media(max-width: 767px) {
        font-size: 140px;
      }
    }
  }
}
