@import "@/styles/variables";
@import "@/styles/mixins";

.companyNewsCard {
  a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: $F1;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba($F1, 0.15);
    margin-bottom: 2rem;

    .left {
      flex: 1;
      padding-right: 2rem;
      h4 {
        padding-bottom: 0.5rem;
      }

      .author {
        @include p2;
        opacity: 0.4;
      }
    }

    .right {
      flex-shrink: 0;
      width: 12rem;
      height: 4.25rem;
      display: flex;
      justify-content: center;

      img {
        height: auto;
        max-height: 100%;
      }
    }

    @media screen and (max-width: 375px) {
      align-items: flex-start;
      .left {
        padding-right: 1rem;
      }
      .right {
        width: 6.1875rem;
        height: 2.19125rem;
        position: relative;
        top: 0.5rem;
      }
    }
  }
}
