.featured-news-block {
  padding: 80px 0;

  @media screen and (max-width: 768px) {
    padding: 60px 0;
  }


  .featured-news-heading {
    margin: 0 0 48px;
    font-weight: 700;

    @media screen and (max-width: 768px) {
      margin: 0 0 40px;
    }
  }

  .featured-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;

    @media screen and (max-width: 1024px) {
      grid-template-columns: 1fr;
    }

    @media screen and (max-width: 768px) {
      gap: 16px;
      margin-bottom: 40px;
    }


    article.featured-news-item {
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: border-color 0.3s ease, transform 0.3s ease;

      &:focus,
      &:focus-visible,
      &:focus-within,
      &:hover {
        border-color: rgba(255, 255, 255, 0.4);
      }

      &.is-featured {
        grid-row: span 3;

        @media screen and (max-width: 1024px) {
          grid-row: span 1;
        }

        .featured-news-image {
          height: 400px;

          @media screen and (max-width: 1024px) {
            height: 300px;
          }

          @media screen and (max-width: 768px) {
            height: 200px;
          }
        }
      }

      .featured-news-link {
        display: block;
        text-decoration: none;
        color: #ffffff;

        &:hover {
          text-decoration: none;
        }

        &:focus,
        &:focus-visible {
          outline: none;
          box-shadow: none;
          border: none;
          padding: 0;
        }
      }

      .featured-news-image {
        width: 100%;
        height: 180px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
        position: relative;

        @media screen and (max-width: 768px) {
          height: 160px;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.5s ease;
        }

        .featured-news-item:hover & img {
          transform: scale(1.05);
        }
      }

      .featured-news-content {
        padding: 24px;

        @media screen and (max-width: 768px) {
          padding: 20px;
        }
      }

      .featured-news-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
      }

      .featured-news-category {
        display: inline-block;
        padding: 6px 16px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 0;
      }

      .featured-news-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        margin-bottom: 16px;

      }

      .featured-news-tag {
        display: inline-block;
        padding: 8px 12px;
        font-size: 1.4rem;
        background-color: var(--rc-purple);
        color: #fff;
        
      }

      .featured-news-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
        margin: 0 0 16px;
        color: #151316;

        @media screen and (max-width: 768px) {
          font-size: 18px;
        }

        .is-featured & {
          font-size: 28px;

          @media screen and (max-width: 1024px) {
            font-size: 24px;
          }

          @media screen and (max-width: 768px) {
            font-size: 20px;
          }
        }
      }

      .featured-news-date {
        display: block;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.6);
      }
    }
  }
  
  .featured-news-view-all {
    display: flex;
    justify-content: center;
    margin-top: 48px;

    @media screen and (max-width: 768px) {
      margin-top: 40px;
    }
  }

  .featured-news-empty {
    padding: 40px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);

    p {
      margin: 0;
      font-size: 16px;
      color: rgba(255, 255, 255, 0.5);
      font-style: italic;
    }
  }
}

/* Dark theme adjustments */
.has-background {
  
  .featured-news-item {
    border-color: #fff;
    color: #fff;

    .featured-news-link {
      .featured-news-content {
        .featured-news-title {
          color: #fff;
        }
      }
    }
  }

  .featured-news-view-all {
    .rc-btn.secondary:focus,
    .rc-btn.secondary:focus-visible {
      background-color: transparent;
    }
  }

}