@import "../../../../assets/scss/abstracts/variables";
@import "../../../../assets/scss/abstracts/mixins";

.rdg-blocks .rdg-secondary-banner {
    padding: 20px 0;

  .secondary-banner-container {
    display: flex;
    width: 100%;
    height: 125px;
    background-color: $color-gray;
    background-size: contain;
    border-radius: 0.8rem;

    @media screen and (max-width: $breakpoint-sm) {
        flex-direction: column;
        height: auto;
    }
  }

  .left {
    position: relative;
    flex-basis: 48%;
    height: 100%;
    background-color: $color-primary-dark-light;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 0.8rem;
    border-bottom-left-radius: 0.8rem;
    color: $color-white;

    @media screen and (max-width: $breakpoint-sm) {
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        text-align: center;
        border-top-left-radius: 0.8rem;
        border-top-right-radius: 0.8rem;
        border-bottom-left-radius: 0;
    }
  }


  .right {
    position: relative;
    flex-basis: 52%;
    height: 100%;
    background-color: $color-gray;
    border-top-right-radius: 0.8rem;
    border-bottom-right-radius: 0.8rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 50px;
    background-position: left 15% center;
    background-repeat: no-repeat;

    @media screen and (max-width: $breakpoint-sm) {
        min-height: auto;
        justify-content: center;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0.8rem;
        border-bottom-left-radius: 0.8rem;
        padding: 50px;
    }
    a {
      text-decoration: none;
      color: $color-white;
      font-weight: bold;
      background-color: $color-success;
      border-radius: 0.3rem;
      padding: 12px 40px; 
      border-top: 2px solid $color-success-light;
      transition: 0.3s ease-in;

      &:hover {
        background-color: $color-success-dark;
      }

      @media screen and (max-width: $breakpoint-md) {
        text-align: center;
        padding: 10px;
    }
      
    }
  }
}
