/* @news-article-press-release */
.news-article-press-release {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: white;
  width: 100%;
  @include poly-padding-y;

  @media screen and (max-width: #{$medium-screen - 1 }) {

    &::after {
      content: '';
      width: 92%;
      height: 1px;
      border-bottom: 1px solid black;
      position: absolute;
      bottom: 0;
      left: 4%;
    }
  }

  @media screen and (min-width: $medium-screen) {
    flex-direction: row;
    align-items: center;
  }

  &__content {
    flex-grow: 1;
    
    @include poly-padding-right--small;

    @media screen and (min-width: $medium-screen) {
      border-bottom: 1px solid black;
    }

    &__text {
      font: 900 12px/18px "Biryani", sans-serif;
      @include poly-margin-bottom--small;
      @include poly-padding-right--small;

      @include themify($themes) {
        color: themed('ctaColor');
      }
    }
    
    &__category {
      margin-bottom: 0; 
    }

    &__header,
    &__footer {
      display: flex;

      > span {
        font: 200 14px/28px "Quicksand", sans-serif;
        letter-spacing: 1px;

        @include poly-margin-right--small;
        
        &:last-child{
          margin-right:0;
        }
      }

      .select2-container {
        width: 50px !important;
        
        .select2-selection--single {
          height: 28px;

          .select2-selection__rendered {
            border-bottom: none;
            height: 28px;
            padding: 0 0 0 6px;
            font: 400 12px/24px "Biryani", sans-serif;
            letter-spacing: 0;

            @include themify($themes) {
              color: themed('ctaColor');
            }
          }

          .select2-selection__arrow {
            top: 6px;
            right: 8px;
            width: 10px;
            height: 10px;

            b {
              width: 9px;
              height: 9px;
            }
          }
        }

        &.select2-container--open {
          .select2-selection--single {
            border-radius: 0;

            @include themify($themes) {
              background-color: themed('ctaColor');
            }

            .select2-selection__rendered {
              color: white;
            }

            .select2-selection__arrow b {
              background-image: $down-arrow-white-svg;
            }
          }
        }
      }

      .select2-dropdown {
        border-radius: 0;

        @include themify($themes) {
          background-color: themed('ctaColor');
          color: white;
        }

        .select2-results__option {
          padding: 1em 6px 7px;
          margin: 0;
          font: 400 12px/10px "Biryani", sans-serif;
          letter-spacing: 0;

          &[data-selected="true"] {
            display: none;
          }
        }

        .select2-results__option--highlighted[data-selected] {
          @include themify($themes) {
            background-color: darken(themed('ctaColor'), 10%);
          }
          color: white;
        }

        &::before {
          display: none;
        }
      }
    }

    &__header {
      color: $red-ribbon;
      margin-bottom: 3px;
      height: 28px;
    }

    &__footer {
      @include poly-padding-y--small;
      justify-content: space-between;
      flex-direction: column;

      @media screen and (max-width: #{$medium-screen - 1 }) {
        > span {
          display: flex;
        }
      }

      @media screen and (min-width: $medium-screen) {
        flex-direction: row;
      }
    }

    &__languages {
      float: right;

      @media screen and (max-width: #{$medium-screen - 1 }) {
        position: absolute;
        bottom: 0.5em;
        right: 1em;
      }

      @media screen and (min-width: $medium-screen) {
        @include poly-margin-left;
      } 
    }

    &__format {
      // @include poly-margin-left;
    }
  }

  &__icons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    height: 80%;

    @media screen and (max-width: #{$medium-screen - 1 }) {
      width: 100%;
      height: unset;
    }

    @media screen and (min-width: $medium-screen) {
      border-left: 1px solid black;
      flex-direction: column;
      justify-content: center;
      @include poly-padding-left--small;
    }

    div {
      width: 44px;
      height: 30px;
      padding: 5px 10px 0;

      @media screen and (min-width: $medium-screen) {
        padding: 10px;
        height: 44px;
      }

      @include themify($themes) {
        svg {
          fill: themed('ctaColor');

          &:hover {
            fill: darken(themed('ctaColor'), 10%);
          }
        }
      }
    }
  }
 }
