/* news-owl-background-v1.1
   Full-bleed decorative background for the complete “Новости и события” block.
   Does not change width, height, grid, padding or card logic. */

#nc-home-block.nc-home-slot {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, .98) 0%,
      rgba(255, 255, 255, .92) 30%,
      rgba(250, 253, 252, .68) 63%,
      rgba(243, 249, 247, .28) 100%),
    url('/assets/news-owl-background-v1/news-owl-light.webp') center right / cover no-repeat !important;
  background-color: #f8fbf9 !important;
}

/* The image now belongs to the outer card, so the old inset pseudo background is disabled. */
#nc-home-block .nc-home-slot-inner.nc-home-slot-planet::before,
#nc-home-block .nc-home-slot-inner.nc-home-slot-planet::after {
  content: none !important;
  display: none !important;
}

#nc-home-block .nc-home-slot-inner.nc-home-slot-planet {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

#nc-home-block .nc-home-card {
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(249,252,250,.58));
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
}

#nc-home-block .nc-home-card:hover,
#nc-home-block .nc-home-card:focus-visible {
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(248,252,249,.70));
}

body[data-theme="dark"] #nc-home-block.nc-home-slot {
  background:
    linear-gradient(90deg,
      rgba(14, 26, 22, .98) 0%,
      rgba(14, 26, 22, .92) 30%,
      rgba(12, 24, 20, .62) 63%,
      rgba(9, 19, 16, .22) 100%),
    url('/assets/news-owl-background-v1/news-owl-dark.webp') center right / cover no-repeat !important;
  background-color: #0e1a16 !important;
}

body[data-theme="dark"] #nc-home-block .nc-home-card,
body[data-theme="dark"] #nc-home-block .nc-home-chip,
body[data-theme="dark"] #nc-home-block .nc-home-read,
body[data-theme="dark"] .nc-read-toggle,
body[data-theme="dark"] #nc-home-block .nc-home-arrow,
body[data-theme="dark"] #nc-home-block .nc-home-rotation {
  background: linear-gradient(145deg, rgba(32, 44, 38, .78), rgba(21, 33, 28, .62));
  backdrop-filter: blur(13px) saturate(1.05);
  -webkit-backdrop-filter: blur(13px) saturate(1.05);
}

@media (max-width: 760px) {
  #nc-home-block.nc-home-slot {
    background-position: 64% center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nc-home-block.nc-home-slot {
    transition: none;
  }
}
