@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

.feature {
  --theme-color-link: var(--theme-color-white);
  --theme-color-link-hover: var(--theme-color-secondary);
  color: var(--theme-color-white);
  background-color: var(--theme-color-primary);
  padding: var(--section-padding) 0;
  border-bottom: var(--border-width) solid var(--theme-color-secondary);
  margin: var(--section-margin) auto;

  h2 {
    margin-bottom: 0.4em;

    &:first-child {
      margin-top: var(--section-headline-margin);
    }
  }

  .kicker {
    margin-top: var(--section-headline-margin);
  }

  p {
    font-size: var(--font-size-small);
  }

  + .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;
    margin: calc(var(--col-padding) * -1) 0;
  }

  .icon-box {
    position: relative;
    display: block;
    border-radius: 40%;
    overflow: hidden;
    font-family: 'Pictograms', sans-serif;

    &: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: var(--theme-color-secondary);

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

  .linklist {
    margin-bottom: 0;
  }
}
