.container__blog-slider {
  max-width: 370px;
  margin: 0 auto;
  margin-block: 2rem 4rem;
}
.blog__slider-title {
  padding-inline: 1rem;
}
.blog__slider-title-link {
  color: var(--primary-color);
  text-decoration: none;
}
.blog__slider {
  max-width: max-content;
  overflow: hidden;
  position: relative;
  padding-block: 2rem;
  padding-inline: 2.5rem;
}

.blog__slider__track {
  position: relative;
  display: flex;
  gap: 20px;
}

.blog__slider__item {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  flex: 1;
}

.blog__slider__buttons {
  position: absolute;
  display: flex;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  justify-content: space-between;
  width: 100%;
}

.blog__slider__button {
  width: 56px;
  height: 56px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 50%;
}

.blog__slider__button--prev {
  background: none;
  background-image: url("../images/blogs/arrow-left.svg");
}

.blog__slider__button--next {
  background: none;
  background-image: url("../images/blogs/arrow-right.svg");
}

.blog__slider__dots {
  display: flex;
  gap: 21px;
  justify-content: center;
}

.blog__slider__dot {
  width: 20px;
  height: 20px;
  background-color: #d9d9d9;
  list-style: none;
  border-radius: 50%;
  cursor: pointer;
}

.blog__slider__dot.active {
  background-color: black;
}

.blog__slider__buttons {
  display: none;
  z-index: 1;
}

.blog__slider__container-image {
  display: flex;
  max-width: 305px;
  flex: 1;
  max-height: 227px;
}

.blog__slider-image {
  display: block;
  width: 100%;
  height: 100%;
}

.blog__slider__content {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 2rem;
  flex: 1;
}

.blog__slider__content-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.blog__slider__content-link {
  font-size: 18px;
  color: #d40021;
  font-weight: 700;
  gap: 1rem;
  text-decoration: none;
  display: flex;
  max-width: max-content;
}

.blog__slider__layer-left,
.blog__slider__layer-right {
  position: absolute;
  width: 250px;
  height: 100%;
  top: 0;
  display: none;
}

.blog__slider__layer-right {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.blog__slider__layer-left {
  left: 0;
  background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0) 100%);
}

@media (min-width: 1301px) {
  .container__blog-slider {
    /* max-width: 630px; */
    max-width: 1280px;

  }
  .blog__slider {
    padding-inline: 0;
  }

  .blog__slider__layer-left,
  .blog__slider__layer-right {
    display: block;
    /* display: none; */
  }

  .blog__slider__buttons {
    display: flex;
  }

  .blog__slider__dots {
    display: none;
  }
  .blog__slider-title {
    padding-inline: 0;
  }
}

@media (min-width: 1050px) {
  .blog__slider__item {
    min-width: 305px;
  }
  .blog__slider-title{
    text-align: center;
  }
}
