.frame-type-news_pi1 h1 {
  margin-bottom: 3rem;
}
.news-list-view {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  grid-auto-rows: auto;
  margin-bottom: 1rem; /* Ensure space below the news list */

  .news-list-item {
      grid-column: span 6;
      max-width: 100%;
  }

  @media (min-width: $breakpoint-lg) {
    .news-list-item {
      grid-column: span 2;

      &:first-of-type {
          grid-column: 1 / span 4;
          grid-row: span 2;
      }
      &:nth-of-type(2) {
        grid-column: 5 / span 2;
        grid-row: 1;
      }
      &:nth-of-type(3) {
        grid-column: 5 / span 2;
        grid-row: 2;
      }
    }
  }

  .f3-widget-paginator {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    grid-column: span 6;

    li {
      margin: 0 0.5rem;

      &.dots span {
        background: none;
        color: $primary-color;
      }

      &.current a, a:hover {
        background: var(--bs-primary);
        color: var(--bs-yellow);
        font-weight: bold;
      }

      a {
        display: inline-block;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        text-align: center;
        border-radius: 0.5rem;
        background: transparent;
        text-decoration: none;
        transition: background 0.3s ease-in-out;
      }
    }
  }
}

.news-list-item {
  .readmore {
    font-weight: 700;
  }

  img {
    width: 100%;
    height: auto;
  }

  a {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border-bottom-right-radius: 0;
    overflow: hidden;

    .news-item-content {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: var(--bs-primary);
      color: #fff;
      border-top-right-radius: 1rem;
      padding: 1rem;
      padding-right: 3rem;

      &:after {
        position: absolute;
        right: 1.625rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        display: block;
        content: ' ';
        width: 1em;
        height: 1em;
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        background-color: currentColor;
        /* vertical-align: middle; */
        mask-image: url(../Icons/angle-right.svg);
      }
    }

    time {
      font-size: 0.75rem;
      font-weight: 400;

      @media (min-width: $breakpoint-md) {
        font-size: 1rem;
      }
    }

    h3 {
      font-family: 'Inter', sans-serif;
      font-size: 1.25rem;
      font-weight: 500;
      color: #fff;
      margin: 0;
    }
  }
}

.news-list-item-big {
  picture {
    @media (min-width: $breakpoint-md) {
      padding-bottom: .8rem;
    }
  }
  a .news-item-content {
    @media (min-width: $breakpoint-md) {
      padding: 2.875rem;
      padding-right: 5rem;

      &:after {
        right: 3.5rem;
      }
    }
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Show header button only on desktop */
.header-btn {
  display: none;
  @media (min-width: $breakpoint-lg) {
    display: inline-block;
  }
}

/* Show mobile button only below desktop breakpoint, inline-block and margin-top */
.mobile-btn {
  display: inline-block;
  @media (min-width: $breakpoint-lg) {
    display: none;
  }
}
