.news-block {
  padding: 0;
  background-color: #ffffff;

  &__container {
    max-width: 1200px;
    margin: 0 auto;
  }

  &__grid {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    grid-template-rows: repeat(2, 1fr);
    height: 550px;
    max-height: 550px;
    gap: 0;
  }

  &__item {
    position: relative;
    overflow: hidden;
    background-image: var(--bg-image, none);
    background-color: var(--bg-color, transparent);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;

    &:hover {
      transform: scale(1.02);
      z-index: 10;
    }

    // First column - spans 2 rows (40% width)
    &:first-child {
      grid-column: 1;
      grid-row: 1 / 3;
    }

    // Second column top (30% width)
    &:nth-child(2) {
      grid-column: 2;
      grid-row: 1;
    }

    // Third column top (30% width)
    &:nth-child(3) {
      grid-column: 3;
      grid-row: 1;
    }

    // Second column bottom (30% width)
    &:nth-child(4) {
      grid-column: 2;
      grid-row: 2;
    }

    // Third column bottom (30% width)
    &:nth-child(5) {
      grid-column: 3;
      grid-row: 2;
    }
  }

  &__image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
  }

  &__content {
    position: relative;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: #fff;
  }

  &__header {
    margin-bottom: auto;
  }

  &__title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 30px;
    line-height: 1.2;
  }

  &__featured-box {
    background-color: rgba(139, 69, 19, 0.9);
    padding: 30px;
    margin-top: auto;
    border-left: 4px solid #fff;

    a {
      color: inherit;
      text-decoration: none;
      transition: opacity 0.3s ease;

      &:hover {
        opacity: 0.9;
      }
    }
  }

  &__featured-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
  }

  &__item-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.3;
  }

  &__link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: opacity 0.3s ease;

    &:hover {
      opacity: 0.9;
    }
  }

  &__arrow {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: -5px;
  }

  &__date {
    display: block;
    font-size: 18px;
    color: #fff;
    margin-top: 15px;
    font-weight: 400;
  }

  &__news-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  &__news-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    &:last-child {
      border-bottom: none;
    }

    a {
      color: #fff;
      text-decoration: none;
      display: flex;
      align-items: flex-start;
      gap: 15px;
      font-size: 18px;
      line-height: 1.4;
      transition: opacity 0.3s ease;

      &:hover {
        opacity: 0.8;
      }

      .news-block__arrow {
        font-size: 24px;
        margin-top: 0;
      }
    }
  }

  // Responsive
  @media (max-width: 1024px) {
    &__grid {
      grid-template-columns: 50% 50%;
      grid-template-rows: auto;
      height: auto;
      min-height: auto;
    }

    &__item {
      &:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: 400px;
      }

      &:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        min-height: 300px;
      }

      &:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        min-height: 300px;
      }

      &:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
        min-height: 300px;
      }

      &:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
        min-height: 300px;
      }
    }

    &__title {
      font-size: 36px;
    }

    &__content {
      padding: 30px;
    }
  }

  @media (max-width: 768px) {
    &__grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }

    &__item {
      &:first-child,
      &:nth-child(2),
      &:nth-child(3),
      &:nth-child(4),
      &:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
        min-height: 300px;
      }
    }

    &__title {
      font-size: 28px;
      margin-bottom: 20px;
    }

    &__content {
      padding: 20px;
    }

    &__item-title {
      font-size: 20px;
    }

    &__featured-box {
      padding: 20px;
    }
  }
}
