﻿.comp-latest-news {
  a:link {
    text-decoration: none !important;
  }
  a:hover {
    color: unset;
  }
  a:hover .Heading3-font {
    text-decoration: underline;
  }
  .Heading2-font {
    color: var(--waa-green);
    margin-bottom: 20px;
  }
  .Heading3-font {
    margin-bottom: 20px;
    color: var(--waa-dark-grey);

    a {
      color: var(--waa-dark-grey);
    }

    a:hover {
      text-decoration: underline !important;
    }
  }
  .slick-next .fa,
  .slick-prev .fa {
    display: block;
  }

  .slick-arrow:hover {
    background: var(--waa-dark-grey) !important;
  }
  .slick-next:hover i {
    color: var(--waa-yellow);
    transition: 0.2s ease-in;
  }
  .slick-prev:hover i {
    color: var(--waa-yellow);
    transition: 0.2s ease-in;
  }
  .dwl-latest-news ul.slick-dots {
    padding-left: 0 !important;
  }
  .latest-news-p {
    margin-bottom: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--waa-dark-grey);
  }
  .news-cta {
    top: -35px;
    position: relative;
    width: auto;
    left: 0px;

    a:link {
      position: relative;
      &:after {
        content: "";
        height: 3px;
        background-color: var(--waa-green);
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        border-radius: 1.5px;
      }
    }
  }

  .news-cta {
    a:hover:after {
      background-color: var(--waa-dark-grey)!important;
    }
  }

  .dwl-latest-news .img-wrap {
    right: 0;
    width: 100%;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-left: auto;
  }


  .card-news {
    min-height: 400px;
  }

  .navigation-wrapper .slick-arrow {
    font-size: 24px !important;
  }

  .dwl-latest-news .img-wrap img {
    aspect-ratio: 16/10;
    width: 100%;
    object-fit: cover;
    /* height: 467px; */
    transition: all ease 0.3s;
  }

  @media (max-width: 1199px) {
    .dwl-latest-news .img-wrap {
      width: 400px;
    }
    .dwl-latest-news .img-wrap img {
      width: 400px;
    }
  }

  @media (max-width: 991px) {
    .dwl-latest-news .img-wrap {
      width: 100%;
      height: 300px;
    }
    .dwl-latest-news .img-wrap img {
      width: 100%;
      height: 300px !important;
      margin-bottom: 25px;
    }
    .dwl-latest-news .news-cta {
      left: 0;
      right: 0;
      text-align: center;
    }

    .latest-news.slick-slider .slick-list {
      padding-bottom: 64px !important;
    }

    .dwl-latest-news {
      padding-bottom: 0 !important;
    }
    .Heading3-font {
      margin-top: 25px;
    }

    .news-cta {
      top: 0 !important;
      margin-top: 32px;
    }

    .navigation-wrapper {
      position: relative !important;
      bottom: unset !important;
      left: unset !important;
      width: 100% !important;
      margin-top: 0px !important;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navigation-wrapper .slick-arrow {
      height: 40px !important;
      width: 40px !important;
      font-size: unset !important;
    }

    .navigation-wrapper .custom-slick-dots {
      padding-left: 0 !important;
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }

    .navigation-wrapper .slick-dots {
      padding-left: 0 !important;
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }

    .navigation-wrapper .slick-dots {
      width: auto;
      position: static !important;
      padding-bottom: 4px;
      text-align: center;
      z-index: 50;
      top: 0px;
      left: 60px;
    }

    .navigation-wrapper .slick-prev {
      position: static !important;
    }
    .navigation-wrapper .slick-next {
      position: static !important;
    }
  }
  .dwl-latest-news__wrapper:hover {
    img {
      transform: scale(1.03);
      transition: all ease 0.3s;
    }

    h3 {
      color: #1a5632;
      text-decoration-color: #1a5632 !important;
    }
  }

  /****** SLICK SLIDER ******/

  .navigation-wrapper {
    position: absolute;
    bottom: 150px;
    left: 0px;
    width: 100%;
    margin-top: 50px;
  }

  .navigation-wrapper .slick-dots {
    width: auto;
    position: absolute;
    padding-bottom: 4px;
    text-align: center;
    z-index: 50;
    top: 0px;
    left: 60px;
  }

  .navigation-wrapper .slick-dots li {
    list-style: none;
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
    cursor: pointer;
    margin: 0 10px;
  }

  .navigation-wrapper .slick-dots li button {
    border: 0;
    background: white;
    display: block;
    border-radius: 100px;
    outline: none;
    color: var(--waa-dark-grey);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin: 0;
    height: 53px;
    width: 53px;
    font-weight: normal;
    font-stretch: var(--waa-condensed);
  }

  .navigation-wrapper .slick-dots li.slick-active button {
    color: var(--waa-green);
    font-weight: var(--waa-font-semibold);
    font-stretch: var(--waa-condensed);
  }

  .navigation-wrapper .slick-dots li:last-child {
    border-right: none;
  }

  .navigation-wrapper .slick-next {
    right: 0;
  }

  .navigation-wrapper .slick-prev {
    left: 0px;
    position: absolute;
    top: 0px;
    cursor: pointer;
    font-size: 34px;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    background-color: var(--waa-green);
    border: 0;
    border-radius: 100px;
    color: var(--waa-yellow);
    width: 53px;
    height: 53px;
    display: flex;
    justify-content: center;
    align-items: center;

    i {
      font-weight: 700;
      &:before {
        left: -1px;
        top: -1px;
        position: relative;
      }
    }
  }

  .navigation-wrapper .slick-next {
    position: absolute;
    top: 0px;
    left: 435px;
    cursor: pointer;
    font-size: 34px;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    background-color: var(--waa-green);
    border: 0;
    border-radius: 100px;
    color: var(--waa-yellow);
    width: 53px;
    height: 53px;
    display: flex;
    justify-content: center;
    align-items: center;

    i {
      font-weight: 700;
      &:before {
        right: -2px;
        top: -1px;
        position: relative;
      }
    }
  }

  @media (min-width: 991px) {
    .dwl-latest-news__wrapper .row {
      --bs-gutter-x: 123px;
    }
  }

  @media (min-width: 992px) and (max-width: 1399px) {
    .latest-news .slick-dots li button {
      height: 40px;
      width: 40px;
    }
    .latest-news .slick-prev {
      bottom: 65px;
      font-size: 28px;
      width: 40px;
      height: 40px;
    }
    .latest-news .slick-next {
      bottom: 65px;
      font-size: 28px;
      width: 40px;
      height: 40px;
      left: 357px;
    }
    .latest-news .slick-dots {
      bottom: 45px;
      left: 47px;
    }
    .latest-news .slick-dots li {
      margin: 0 10px;
    }
  }

  @media (max-width: 1199px) {
    .dwl-latest-news {
      padding-bottom: 0px;
    }
    .latest-news .slick-prev {
      bottom: -45px;
    }
    .latest-news .slick-next {
      bottom: -45px;
    }
    .latest-news .slick-dots {
      bottom: -65px;
    }
    .dwl-latest-news .news-cta {
      top: unset;
      bottom: 0;
      position: absolute;
    }
  }

  @media (max-width: 991px) {
    .dwl-latest-news {
      padding-bottom: 100px;
    }
    .navigation-wrapper {
      position: absolute;
      bottom: -60px;
      width: 330px;
      margin-top: 50px;
      left: calc(50% - 165px);
    }
    .latest-news.slick-slider .slick-list {
      height: auto;
    }
    .latest-news .slick-prev {
      bottom: -45px;
      width: 40px;
      height: 40px;
    }
    .latest-news .slick-next {
      bottom: -45px;
      width: 40px;
      height: 40px;
      left: 290px;
    }
    .latest-news .slick-dots {
      bottom: -35px;
      top: 5px;
      left: 50px;
    }
    .navigation-wrapper .slick-dots li button {
      font-size: 16px;
      line-height: 16px;
      height: 30px;
      width: 30px;
    }
    .navigation-wrapper .slick-dots li {
      margin: 0 8px;
    }
    .news-cta {
      top: -50px;
      position: relative;
      width: auto;
      left: 0px;
      text-align: center;
      right: 0;
    }
  }

  @media (min-width: 768px) {
    .latest-news-p {
      margin-bottom: 20px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      font-weight: 500;
    }
  }

  .container.slick-slide {
    transition: opacity 0ms !important;
  }

  .container.slick-slide {
    padding-inline: 0;
  }

  @media (max-width: 450px) {
    .latest-news__mobile-pagination {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }
}

.card-news:hover .btn-primary {
  background: var(--waa-dark-grey) !important;
}

.card-news:hover h3 {
  color: var(--waa-green);
  text-decoration: underline;
}

.card-news .image {
  overflow: hidden !important;
  border-radius: 8px;
  height: 206px;
}
.card-news img {
  padding: 0 !important;
  object-position: top;
  object-fit: cover;
}
.card-news:hover .card-img-top {
  transform: scale(1.03) !important;
}
