@import '../../scss/variables.scss';

.news-container {
  .news-categories {
    background-color: var(--color-primary);
    display: flex;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;

    li {
      color: #ffffff;
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;

      &:hover {
        background-color: #ffffff;
        color: var(--color-primary);
      }

      // &:not(:last-child)::after {
      //   width: 1px;
      //   content: "";
      //   background: #fff;
      //   height: 20px;
      //   position: absolute;
      //   right: 0;
      //   top: 50%;
      //   transform: translateY(-50%);
      // }

      a {
        color: inherit;
        display: inline-block;
        font-size: 15px;
        padding: 6px 14px;
        text-align: center;
        text-decoration: none;
        width: 100%;
      }
    }
  }

  .large {
    .single-news-wrapper {
      .single-news-details-wrapper {
        overflow: hidden;
        position: relative;

        &:hover img {
          transform: scale(1.1);
        }

        img {
          height: 100%;
          max-height: 300px;
          object-fit: cover;
          transition: transform 0.3s;
          width: 100%;
        }

        .single-news-details {
          position: absolute;
          bottom: 10px;
          left: 10px;
          text-shadow: 2px 2px 8px #000;
          z-index: 2;
        }
      }
    }
  }

  .category-news {
    .category-title {
      border-bottom: 2px solid var(--color-golden-2);
      padding-bottom: 5px;
    }

    .single-news-wrapper {
      text-decoration: none;
      width: 100%;

      &:hover .single_news-title {
        text-decoration: underline;
      }

      .single-news-details {
        color: #000;

        .image-wrapper {
          padding-top: 56.25%;
          position: relative;
          width: 100%;

          img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }

    }
  }
}

.single-news-details-wrapper::before {
  content: "";
  width: 100%;
  position: absolute;
  background: rgba(0, 0, 0, .1);
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}