[data-ly-blog-slider] {
  width: 100%;
  max-width: none;
  background: transparent;
  padding: 0;
  position: relative;
}

.ly-blog-slider__controls {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 24px;
}

[data-ly-blog-slider] .swiper-wrapper {
  align-items: stretch;
}

.ly-blog-slider__nav {
  width: 47px;
  height: 47px;
  border-radius: 10px;
  border: 1px solid #df8eb5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #dc78a8;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ly-blog-slider__nav:hover,
.ly-blog-slider__nav:focus-visible {
  outline: none;
  border-color: #cb2f79;
  color: #cb2f79;
  box-shadow: 0 0 0 2px rgba(203, 47, 121, 0.1);
}

.ly-blog-slider__nav--next {
  background: #bf0a5b;
  border-color: #bf0a5b;
  color: #fff;
}

.ly-blog-slider__nav--next:hover,
.ly-blog-slider__nav--next:focus-visible {
  background: #9f0b4d;
  border-color: #9f0b4d;
  outline: none;
}

.ly-blog-slider__nav.swiper-button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

[data-ly-blog-slider] .swiper-slide {
  height: auto;
}

.ly-blog-card {
  background: #fff;
  border: 1px solid #d9d9dd;
  border-radius: 12px;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}

.ly-blog-card__image-link {
  display: block;
  padding: 8px 8px 0;
}

.ly-blog-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.4;
  object-fit: cover;
  border-radius: 6px;
}

.ly-blog-card__image--placeholder {
  background: linear-gradient(130deg, #b0b5c3, #e0e3ea);
}

.ly-blog-card__content {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ly-blog-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: #22242c;
}

.ly-blog-card__title a {
  text-decoration: none;
  color: inherit;
}

.ly-blog-card__excerpt {
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #666977;
  flex-grow: 1;
}

.ly-blog-card__more {
  width: 100%;
  margin-top: auto;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #133b8c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 16px;
  font-weight: 400;
  border-top: 1px solid #ececf0;
  padding-top: 14px;
}

.ly-blog-card__more::after {
  content: "↗";
  color: #d3d4da;
  text-decoration: none;
  margin-left: auto;
}

.ly-blog-card--empty {
  min-height: 220px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1279px) {
  [data-ly-blog-slider] {
    padding: 0;
  }

  [data-ly-blog-slider] .swiper-slide {
    width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 767px) {
  [data-ly-blog-slider] {
    padding: 0;
  }

  .ly-blog-slider__controls {
    margin-bottom: 18px;
    gap: 10px;
  }

  .ly-blog-slider__nav {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  [data-ly-blog-slider] .swiper-slide {
    width: calc((100% - 14px) / 1.12);
  }
}

@media (min-width: 1280px) {
  [data-ly-blog-slider] .swiper-slide {
    width: calc((100% - 66px) / 4);
  }
}
